We can solve the integral $\int x^2\sin\left(x\right)dx$ by applying integration by parts method to calculate the integral of the product of two functions, using the following formula
First, identify or choose $u$ and calculate it's derivative, $du$
Now, identify $dv$ and calculate $v$
Solve the integral to find $v$
Apply the integral of the sine function: $\int\sin(x)dx=-\cos(x)$
Now replace the values of $u$, $du$ and $v$ in the last formula
We can solve the integral $\int x\cos\left(x\right)dx$ by applying integration by parts method to calculate the integral of the product of two functions, using the following formula
First, identify or choose $u$ and calculate it's derivative, $du$
Now, identify $dv$ and calculate $v$
Solve the integral to find $v$
Apply the integral of the cosine function: $\int\cos(x)dx=\sin(x)$
Now replace the values of $u$, $du$ and $v$ in the last formula
Multiply the single term $2$ by each term of the polynomial $\left(x\sin\left(x\right)-\int\sin\left(x\right)dx\right)$
The integral $-2\int\sin\left(x\right)dx$ results in: $2\cos\left(x\right)$
Gather the results of all integrals
As the integral that we are solving is an indefinite integral, when we finish integrating we must add the constant of integration $C$
Try other ways to solve this exercise
Get a preview of step-by-step solutions.
Earn solution credits, which you can redeem for complete step-by-step solutions.
Save your favorite problems.
Become premium to access unlimited solutions, download solutions, discounts and more!