WordGPT

Integral of xcos⁡(x)x \cos\left(x\right)

The integral of xcos⁡(x)x \cos\left(x\right) is cos⁡(x)+xsin⁡(x)+C\cos\left(x\right) + x \sin\left(x\right) + C.

Graph of f(x) = x * cos(x) with the area from 0 to π/2 shaded-0.50.511.522.5-2-1.5-1-0.50.5f(x)
Graph of f(x) = x * cos(x) with the area from 0 to π/2 shaded. The shaded area equals the definite integral, about 0.57079633.

How to work it out

  1. 1

    We want an antiderivative of f(x) = x * cos(x).

    ∫xcos⁡(x) dx\int x \cos\left(x\right)\,dx
  2. 2

    Method: integration by parts with u = x, dv = cos x dx.

  3. 3

    That gives the antiderivative; add the constant C because any constant disappears when you differentiate:

    ∫xcos⁡(x) dx=cos⁡(x)+xsin⁡(x)+C\int x \cos\left(x\right)\,dx = \cos\left(x\right) + x \sin\left(x\right) + C
  4. 4

    Check by differentiating the answer; you must get the original function back:

    ddx[cos⁡(x)+xsin⁡(x)]=−sin⁡(x)+sin⁡(x)+xcos⁡(x)\frac{d}{dx}\left[\cos\left(x\right) + x \sin\left(x\right)\right] = -\sin\left(x\right) + \sin\left(x\right) + x \cos\left(x\right)
  5. 5

    As a definite integral, evaluate the antiderivative at both ends and subtract. Between 0 and π/2:

    ∫0π2xcos⁡(x) dx=[cos⁡(x)+xsin⁡(x)]0π2≈0.57079633\int_{0}^{\frac{\pi}{2}} x \cos\left(x\right)\,dx = \Big[\cos\left(x\right) + x \sin\left(x\right)\Big]_{0}^{\frac{\pi}{2}} \approx 0.57079633
LaTeX source of the formulas on this page
\[ \int x \cos\left(x\right)\,dx = \cos\left(x\right) + x \sin\left(x\right) + C \]
\[ \int x \cos\left(x\right)\,dx \]
\[ \frac{d}{dx}\left[\cos\left(x\right) + x \sin\left(x\right)\right] = -\sin\left(x\right) + \sin\left(x\right) + x \cos\left(x\right) \]
\[ \int_{0}^{\frac{\pi}{2}} x \cos\left(x\right)\,dx = \Big[\cos\left(x\right) + x \sin\left(x\right)\Big]_{0}^{\frac{\pi}{2}} \approx 0.57079633 \]

Definite integrals of the same function

IntervalValue
from 0 to π/20.57079633
from 0 to 0.78539816339744830.26246715

Questions

What is the integral of x * cos(x)?

The integral of xcos⁡(x)x \cos\left(x\right) is cos⁡(x)+xsin⁡(x)+C\cos\left(x\right) + x \sin\left(x\right) + C.

Why do we add + C?

Every function F(x) + C has the same derivative, so the antiderivative is only defined up to a constant.

What is the integral of x * cos(x) from 0 to π/2?

About 0.57079633.

More integrals

    Integral of x * cos(x): cos(x) + x * sin(x) + C (with steps) | WordGPT