‹ Back to the paper
Solve the following.
Evaluate: ∫ x² cos x dx
Evaluate: $\int x^2 \cos x dx$
Answer
Answer
Integral: $\int \left(x^2 cos x\right) dx$
Integrate by parts, taking $u = x^2$ and $dv = \cos x\,dx$:
$\int x^2\cos x\,dx = x^2\sin x - \int 2x\sin x\,dx$
For $\int x\sin x\,dx$ take $u = x$, $dv = \sin x\,dx$: $= -x\cos x + \int\cos x\,dx = -x\cos x + \sin x$
$\int x^2\cos x\,dx = x^2\sin x - 2\left(-x\cos x + \sin x\right) + C$
Hence $\int x^2\cos x\,dx = x^2\sin x + 2x\cos x - 2\sin x + C$.
Final answer: $x^2\sin x + 2x\cos x - 2\sin x + C$