Rešenje:
Dva puta primenjujemo parcijalnu integraciju.
Neka je [tex]u=x^{2}[/tex], [tex]dv=\sin x\,dx[/tex], pa je [tex]du=2x\,dx[/tex], [tex]v=-\cos x[/tex]:
[tex]\int x^{2}\sin x\,dx=-x^{2}\cos x+2\int x\cos x\,dx[/tex]
Sada neka je [tex]u=x[/tex], [tex]dv=\cos x\,dx[/tex], pa je [tex]du=dx[/tex], [tex]v=\sin x[/tex]:
[tex]\int x\cos x\,dx=x\sin x-\int \sin x\,dx=x\sin x+\cos x+C[/tex]
Dakle,
[tex]\int x^{2}\sin x\,dx=-x^{2}\cos x+2\left( x\sin x+\cos x\right) +C[/tex]