Question
Question: Evaluate the given integral: \(\int{\text{xsi}{{\text{n}}^{2}}\text{x }dx}\) ....
Evaluate the given integral: ∫xsin2x dx .
Solution
Hint: Start by applying by-parts as ∫xsin2x dx=x∫sin2xdx−∫dxdx(∫sin2xdx)dx . For finding the integral of sin2x with respect to x, use the formula sin2x=21−cos2x followed by the use of the formulas ∫sinxdx=−cosx+c and ∫cosxdx=sinx to reach the answer.
Complete step-by-step solution -
Let us start with the integral given in the above question.
∫xsin2x dx
Now according to the rule of the integration by parts:
∫uvdx=u∫vdx−∫(dxdu∫vdx) . From the two functions, u and v are decided using the ILATE preference rule. According to the ILATE rule, the preference order for u in decreasing order is Inverse, Logarithmic, Algebraic, Trigonometric and Exponential. For xsin2x , u is x and v is sin2x .
∫xsin2x dx=x∫sin2xdx−∫dxdx(∫sin2xdx)dx
Now, we know that dxdx=1 and sin2x=21−cos2x . So, if we put this in our integral and simplify, we get
∫xsin2x dx=x∫(21−cos2x)dx−∫(∫(21−cos2x)dx)dx
⇒∫xsin2x dx=x(∫21dx−∫2cos2xdx)−∫(∫21dx−∫2cos2xdx)dx
Now, we know that ∫cos2xdx=2sin2x+c and the integral of a constant term is equal to x+c.
∫xsin2x dx=x(21x−4sin2x)−∫(21x−4sin2x)dx
We also know that ∫sin2xdx=−2cos2x+c and ∫xdx=2x2+c . So, our integral comes out to be:
∫xsin2x dx=x(21x−4sin2x)−21×2x2−4(−2cos2x)+c
⇒∫xsin2x dx=21x2−4xsin2x−4x2−8cos2x+c
The c has been added to compensate for all the constant terms that would have appeared when we put the formulas of different integrals.
So, we can say that the value of ∫xsin2x dx=21x2−4xsin2x−4x2−8cos2x+c .
Note: See while you use integral by-parts, you don’t have to put the constant of integral I each and every step, but you just have to put a constant term at the end of the integrated answer to compensate for all the constant terms that would have appeared. Also, you need to remember all the basic formulas that we use for indefinite integrals as they are used in definite integrations as well. Also, be careful about the formula of integral of sin2x, as there is a negative sign in the result which is generally missed by the students.