Solveeit Logo

Question

Question: What is \(\int{\left( x\cos x+\sin x \right)dx}\) equal to? (C is an arbitrary constant) [a] xsinx...

What is (xcosx+sinx)dx\int{\left( x\cos x+\sin x \right)dx} equal to? (C is an arbitrary constant)
[a] xsinx+C
[b] xcosx+C
[c] -xsinx+C
[d] -xcosx+C

Explanation

Solution

Use the fact that (f(x)+g(x))dx=f(x)dx+g(x)dx\int{\left( f\left( x \right)+g\left( x \right) \right)dx}=\int{f\left( x \right)dx}+\int{g\left( x \right)dx} and hence prove that the given integral is equal to xcosxdx+sinxdx\int{x\cos xdx}+\int{\sin x}dx. In the first integral use integration by parts taking x as first function and cosx as second function as per the ILATE rule. The result of the first function and second function can be related and hence find the value of the given integral.

Complete step-by-step answer:
Let I=(xcosx+sinx)dxI=\int{\left( x\cos x+\sin x \right)dx}
We know that (f(x)+g(x))dx=f(x)dx+g(x)dx\int{\left( f\left( x \right)+g\left( x \right) \right)dx}=\int{f\left( x \right)dx}+\int{g\left( x \right)dx}(Linearity of integration).
Hence, we have
I=xcosxdx+sinxdx=I1+I2I=\int{x\cos xdx}+\int{\sin x}dx={{I}_{1}}+{{I}_{2}}, where I1=xcosxdx{{I}_{1}}=\int{x\cos xdx} and I2=sinxdx{{I}_{2}}=\int{\sin xdx}
Evaluating I1=xcosxdx{{I}_{1}}=\int{x\cos xdx}
We know that uvdx=uvdx(dudxvdx)dx\int{uvdx}=u\int{vdx}-\int{\left( \dfrac{du}{dx}\int{vdx} \right)dx}. This is known as integration by parts rule. Here uu is called the first function and vv is known as the second function.
While solving questions using integration by parts, it is important to choose the first function and second function in such a way that the integral simplifies. A general order of preference for first function is given by ILATE rule
I = Inverse Trigonometric
L = Logarithmic
A = Algebraic
T = Trigonometric
E = Exponential.
Hence, according to the ILATE rule, we choose u(x) = x and v(x) = cosx.
We have u(x)=cosxdx=sinx\int{u\left( x \right)}=\int{\cos xdx}=\sin x and dv(x)dx=ddx(x)=1\dfrac{dv\left( x \right)}{dx}=\dfrac{d}{dx}\left( x \right)=1
Hence, we have
xcosxdx=xsinxsinxdx+C\int{x\cos xdx}=x\sin x-\int{\sin xdx}+C
We have sinxdx=I2\int{\sin xdx}={{I}_{2}}
Hence, we have
I1=xsinxI2+C{{I}_{1}}=x\sin x-{{I}_{2}}+C
Adding I2{{I}_{2}} on both sides, we get
I1+I2=xsinx+C{{I}_{1}}+{{I}_{2}}=x\sin x+C
But we know that I1+I2=I{{I}_{1}}+{{I}_{2}}=I
Hence, we have
I=xsinx+C (xcosx+sinx)dx=xsinx+C \begin{aligned} & I=x\sin x+C \\\ & \Rightarrow \int{\left( x\cos x+\sin x \right)dx}=x\sin x+C \\\ \end{aligned}

So, the correct answer is “Option A”.

Note: [1] Verification: In case the integrands are simple, we should always verify the correctness of our solution. We can verify the correctness of our solution by checking that the derivative of our answer is equal to the integrand.
We have ddx(xsinx+c)=xddxsinx+sinxddxx+0 =xcosx+sinx \begin{aligned} & \dfrac{d}{dx}\left( x\sin x+c \right)=x\dfrac{d}{dx}\sin x+\sin x\dfrac{d}{dx}x+0 \\\ & =x\cos x+\sin x \\\ \end{aligned}
Hence, we have
ddx(xsinx+C)=xcosx+sinx\dfrac{d}{dx}\left( x\sin x+C \right)=x\cos x+\sin x
Hence our solution is verified to be correct.