Solveeit Logo

Question

Question: How do you find the antiderivative of \(\int{{{x}^{2}}\cos xdx}\)....

How do you find the antiderivative of x2cosxdx\int{{{x}^{2}}\cos xdx}.

Explanation

Solution

In the problem we have two functions which are in multiplication one is x2{{x}^{2}} and the second one is cosx\cos x. In integration we have the uvuv formula as uv=uv(u)v\int{uv}=u\int{v}-\int{\left( {{u}^{'}} \right)\int{v}}. So, we will use the ILATE rule and determine the values of uu and vv. After getting these values we will use the uvuv formula and do simplification. Now we will get another equation which is in the same form. So, we will again use the uvuv formula and simplify the obtained equation. Now we will get the required result.

Complete step by step answer:
Given that, x2cosxdx\int{{{x}^{2}}\cos xdx}.
In the above equation we have two functions, one is x2{{x}^{2}} which is an algebraic function and the second one is cosx\cos x which is a trigonometric function. By using the ILATE formula
u=x2u={{x}^{2}}, v=cosxv=\cos x.
Applying uvuv formula in the given equation, then we will get
x2cosxdx=x2cosxdx((x2)cosxdx)dx\int{{{x}^{2}}\cos xdx}={{x}^{2}}\int{\cos xdx}-\int{\left( {{\left( {{x}^{2}} \right)}^{'}}\int{\cos xdx} \right)dx}
We know that (x2)=2x{{\left( {{x}^{2}} \right)}^{'}}=2x, cosxdx=sinx+C\int{\cos xdx}=\sin x+C, then we will get
x2cosxdx=x2(sinx)2xsinxdx x2cosxdx=x2sinx2xsinxdx....(i) \begin{aligned} & \Rightarrow \int{{{x}^{2}}\cos xdx}={{x}^{2}}\left( \sin x \right)-\int{2x\sin xdx} \\\ & \Rightarrow \int{{{x}^{2}}\cos xdx}={{x}^{2}}\sin x-2\int{x\sin xdx}....\left( \text{i} \right) \\\ \end{aligned}
In the above equation, we have xsinxdx\int{x\sin xdx} which is similar to the uvuv rule. So again, using the ILATE formula then we will get
u=xu=x, v=sinxv=\sin x.
Now the value of xsinxdx\int{x\sin xdx} is given by
xsinxdx=xsinx((x)sinxdx)dx\int{x\sin xdx}=x\int{\sin x}-\int{\left( {{\left( x \right)}^{'}}\int{\sin xdx} \right)dx}
We have x=1{{x}^{'}}=1, sinxdx=cosx+C\int{\sin xdx}=-\cos x+C, then we will get
xsinxdx=xcosx(cosx)dx xsinxdx=xcosx+cosxdx \begin{aligned} & \int{x\sin xdx}=-x\cos x-\int{\left( -\cos x \right)dx} \\\ & \Rightarrow \int{x\sin xdx}=-x\cos x+\int{\cos xdx} \\\ \end{aligned}
We have cosxdx=sinx+C\int{\cos xdx}=\sin x+C, then we will get
xsinxdx=xcosx+sinx+C\Rightarrow \int{x\sin xdx}=-x\cos x+\sin x+C
Substituting the above value in the equation (i)\left( \text{i} \right), then we will get
x2cosxdx=x2sinx2(xcosx+sinx)+C\Rightarrow \int{{{x}^{2}}\cos xdx}={{x}^{2}}\sin x-2\left( -x\cos x+\sin x \right)+C
Simplifying the above equation by applying multiplication distribution law, then we will get
x2cosxdx=x2sinx+2xcosx2sinx+C\Rightarrow \int{{{x}^{2}}\cos xdx}={{x}^{2}}\sin x+2x\cos x-2\sin x+C
Taking sinx\sin x common from the terms x2sinx2sinx{{x}^{2}}\sin x-2\sin x, then we will get
x2cosxdx=(x22)sinx+2xcosx+C\Rightarrow \int{{{x}^{2}}\cos xdx}=\left( {{x}^{2}}-2 \right)\sin x+2x\cos x+C

Hence the value of x2cosxdx\int{{{x}^{2}}\cos xdx} is (x22)sinx+2xcosx+C\left( {{x}^{2}}-2 \right)\sin x+2x\cos x+C.

Note: In the above problem we have used the uvuv, ILATE formulas several times. We need to follow some rules while using the uvuv rule which is denoted by ILATE which indicates the order of giving priority for a function. It states that the order of the priority of functions as Inverse, Logarithmic, Algebraic, Trigonometric, Exponential. From the above priority table, we will choose the functions uu and vv in uvuv rule.