WordGPT

Integral of xsin⁡(x)x \sin\left(x\right)

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

Graph of f(x) = x * sin(x) with the area from 0 to π shaded-112345-5-4-3-2-112f(x)
Graph of f(x) = x * sin(x) with the area from 0 to π shaded. The shaded area equals the definite integral, about 3.1415927.

How to work it out

  1. 1

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

    ∫xsin⁡(x) dx\int x \sin\left(x\right)\,dx
  2. 2

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

  3. 3

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

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

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

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

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

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

Definite integrals of the same function

IntervalValue
from 0 to π3.1415927
from 0 to π/21

Questions

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

The integral of xsin⁡(x)x \sin\left(x\right) is sin⁡(x)−xcos⁡(x)+C\sin\left(x\right) - x \cos\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 * sin(x) from 0 to π?

About 3.1415927.

More integrals

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