Solveeit Logo

Question

Question: Evaluate the given integral \(\int{x\sin x\cos xdx}\)...

Evaluate the given integral xsinxcosxdx\int{x\sin x\cos xdx}

Explanation

Solution

Hint: Assume the integral to be a quantity I. Then perform the integration by parts where the integrand is expressed as the product of two functions of x in the form uvdx\int{\text{u}\cdot \text{vd}x}, where u and v are two differentiable functions of x. The general formula for integrating an integral of form uvdx\int{\text{u}\cdot \text{vd}x}is,
uvdx = uvdx  [dudxvdx]dx\int{u\cdot v\text{d}x}\text{ = }u\int{v\text{d}x\text{ }-\text{ }\int{\left[ \dfrac{du}{dx}\cdot \int{vdx} \right]}\text{d}x}

Complete step-by-step answer:
Let us assume, I = xsinxcosxdx\int{x\sin x\cos xdx}
Now, let us manipulate the integrand so that it can be expressed in a much simpler form.
We know, sin2x = 2sinxcosx\sin 2x\text{ = 2}\sin x\cos x
Therefore, we can say, sinxcosx = sin2x2\sin x\cos x\text{ = }\dfrac{\sin 2x}{2}
Thus, the integration can be expressed as, I = 12xsin2xdx\dfrac{1}{2}\int{x\sin 2xdx}
Let, !!!! = xsin2xdx\text{I }\\!\\!'\\!\\!\text{ = }\int{x\sin 2xdx}. Thus, I = !!!! 2\text{I = }\dfrac{\text{I }\\!\\!'\\!\\!\text{ }}{2}.
Now, observe that the integral !!!! \text{I }\\!\\!'\\!\\!\text{ } is of the form uvdx\int{\text{u}\cdot \text{vd}x}, where u = x and v = sin 2x. Also, both u and v are differentiable functions of x. Thus, we can apply the process of integration by parts to find the value of !!!! \text{I }\\!\\!'\\!\\!\text{ }, and subsequently I.

& \int{x\sin 2xdx} \\\ & =\text{ }x\int{\sin 2xdx\text{ }-\text{ }\int{\left[ \dfrac{d\left( x \right)}{dx}\cdot \int{\sin 2xdx} \right]}}dx \\\ & =\text{ }x\cdot \left( \dfrac{-\cos 2x}{2} \right)\text{ }-\text{ }\int{\left[ 1\cdot \left( \dfrac{-\cos 2x}{2} \right) \right]dx}\text{ }\left( \because \text{ }\int{\sin axdx}\text{ = }\dfrac{-\cos ax}{a} \right) \\\ & =\text{ }\dfrac{-x\cos 2x}{2}\text{ + }\int{\dfrac{\cos 2x}{2}dx} \\\ & =\text{ }\dfrac{-x\cos 2x}{2}\text{ + }\dfrac{\sin 2x}{4}\text{ + c }\left( \because \text{ }\int{\cos axdx}\text{ = }\dfrac{sinax}{a} \right) \\\ \end{aligned}$$ where, c is the constant of integration. Thus, we find the value of $\text{I }\\!\\!'\\!\\!\text{ }$ to be $$\dfrac{-x\cos 2x}{2}\text{ + }\dfrac{\sin 2x}{4}\text{ + c}$$. We know that, $\text{I = }\dfrac{\text{I }\\!\\!'\\!\\!\text{ }}{2}$ Therefore, the value of I $\begin{aligned} & =\text{ }\dfrac{1}{2}\cdot \left( \dfrac{-x\cos 2x}{2}\text{ + }\dfrac{\sin 2x}{4}\text{ + c} \right) \\\ & =\text{ }\dfrac{-x\cos 2x}{4}\text{ + }\dfrac{\sin 2x}{8}\text{ + k} \\\ \end{aligned}$ where, k is the constant of integration. Note: i) While choosing u and v as functions of x for integration by parts, we need to select in such a way that $\int{vdx}$ and $\int{\left[ \dfrac{du}{dx}\cdot \int{vdx} \right]dx}$ are simple to integrate. For example, in this problem, if we choose u = xsinx and v = cosx before manipulating the integrand in an easier way, then it would have been much harder to integrate $\int{\left[ \dfrac{du}{dx}\cdot \int{vdx} \right]dx}$. ii) u and v are generally chosen in such a way that these functions are kept in order of ILATE, where, I is Inverse function, L is logarithmic function, A is algebraic function, T is trigonometric function and E is exponential function.