Question
Question: How do you integrate \({{x}^{2}}\sin xdx\)?...
How do you integrate x2sinxdx?
Solution
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 ∫udv=uv−∫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 x2sinxdx.
We need to find its integration.
Since this function is a product of two separate functions x2 and sinx. So let us use integration by parts here. As we know from integration by parts that ∫udv=uv−∫vdu⋯⋯⋯(1).
As we need to find ∫x2sinxdx.
So let us suppose u as x2 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=x2 we need the value of du.
So taking derivatives with respect to x we get dxdu=2x⇒du=2xdx.
So value du=2xdx⋯⋯⋯(2).
As supposed earlier dv=sinxdx.
We need the value of v. So let us use integration on both sides we get ∫dv=∫sinxdx.
As we know that ∫sinxdx=−cosx so we get v=−cosx⋯⋯⋯(3).
Putting in the values of u, v, du from (2), (3) in (1) we get,
∫x2sinxdx=−x2cosx−∫(−2xcosx)dx.
Simplifying the negative sign we get ∫x2sinxdx=−x2cosx+2∫xcosxdx⋯⋯⋯(4).
We still need to evaluate the integral ∫xcosxdx.
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 dxdu=1⇒du=dx⋯⋯⋯(5).
We have dv=cosxdx.
We need to find the value of v. So let us take integration on both sides we get ∫dv=∫cosxdx.
We know that ∫cosxdx=sinx so we get v=sinx⋯⋯⋯(6).
Now let us put value of u, v, du again in (1) to get the integral ∫xcosx we get ∫xcosx=xsinx−∫sinxdx.
As we know that, ∫sinxdx is equal to -cosx. So we get ∫xcosx=xsinx−(−cosx).
Simplifying the negative sign we get ∫xcosx=xsinx+cosx.
Putting this value of integral in (4) we get,
∫x2sinxdx=−x2cosx+2(xsinx+cosx)⇒∫x2sinxdx=−x2cosx+2xsinx+2cosx.
Adding the necessary constant c we get the final answer of required integral as ∫x2sinxdx=−x2cosx+2xsinx+2cosx+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.