Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store
seo-qna
SearchIcon
banner

How do you integrate ${{x}^{2}}\sin xdx$?

Answer
VerifiedVerified
545.1k+ views
Hint: In this question, we are given a function containing two terms multiplied and we need to find the integration of this function. For a product of two functions, we will use the formula of integration by parts which is given by $\int{udv}=uv-\int{vdu}$. So we will suppose one of the terms as u and another term as dv. Using it we will find du and v to use the formula and find the required integration.

Complete step by step answer:
Here we are given the function as ${{x}^{2}}\sin xdx$.
We need to find its integration.
Since this function is a product of two separate functions ${{x}^{2}}$ and sinx. So let us use integration by parts here. As we know from integration by parts that $\int{udv}=uv-\int{vdu}\cdots \cdots \cdots \left( 1 \right)$.
As we need to find $\int{{{x}^{2}}\sin xdx}$.
So let us suppose u as ${{x}^{2}}$ and dv as sinxdx.
We need the value of u, v, du, dv to solve this integration so let us find them.
As supposed earlier, $u={{x}^{2}}$ we need the value of du.
So taking derivatives with respect to x we get $\dfrac{du}{dx}=2x\Rightarrow du=2xdx$.
So value $du=2xdx\cdots \cdots \cdots \left( 2 \right)$.
As supposed earlier $dv=\sin xdx$.
We need the value of v. So let us use integration on both sides we get $\int{dv}=\int{\sin xdx}$.
As we know that $\int{\sin xdx}=-\cos x$ so we get $v=-\cos x\cdots \cdots \cdots \left( 3 \right)$.
Putting in the values of u, v, du from (2), (3) in (1) we get,
$\int{{{x}^{2}}\sin xdx}=-{{x}^{2}}\cos x-\int{\left( -2x\cos x \right)dx}$.
Simplifying the negative sign we get $\int{{{x}^{2}}\sin xdx}=-{{x}^{2}}\cos x+2\int{x\cos xdx}\cdots \cdots \cdots \left( 4 \right)$.
We still need to evaluate the integral $\int{x\cos xdx}$.
Let us solve it now.
We again have a product of two functions. So using integration by parts again.
Now supposing the value of u as x and dv as cosxdx so we want du and v.
We have u = x let us find dx.
Taking derivatives on both sides we get $\dfrac{du}{dx}=1\Rightarrow du=dx\cdots \cdots \cdots \left( 5 \right)$.
We have $dv=\cos xdx$.
We need to find the value of v. So let us take integration on both sides we get $\int{dv=}\int{\cos xdx}$.
We know that $\int{\cos xdx}=\sin x$ so we get $v=\sin x\cdots \cdots \cdots \left( 6 \right)$.
Now let us put value of u, v, du again in (1) to get the integral $\int{x\cos x}$ we get $\int{x\cos x}=x\sin x-\int{\sin xdx}$.
As we know that, $\int{\sin xdx}$ is equal to -cosx. So we get $\int{x\cos x}=x\sin x-\left( -\cos x \right)$.
Simplifying the negative sign we get $\int{x\cos x}=x\sin x+\cos x$.
Putting this value of integral in (4) we get,
$\begin{align}
  & \int{{{x}^{2}}\sin xdx}=-{{x}^{2}}\cos x+2\left( x\sin x+\cos x \right) \\
 & \Rightarrow \int{{{x}^{2}}\sin xdx}=-{{x}^{2}}\cos x+2x\sin x+2\cos x \\
\end{align}$.
Adding the necessary constant c we get the final answer of required integral as $\int{{{x}^{2}}\sin xdx}=-{{x}^{2}}\cos x+2x\sin x+2\cos x+c$.

Note:
Students should keep in mind all the derivative integral formulas for basic functions. Do not forget to add any constant at the end as this is an indefinite integral. Take care of signs as well.