Question
Question: What is the integral of \(\int{x{{\sin }^{2}}\left( x \right)dx}\)?...
What is the integral of ∫xsin2(x)dx?
Solution
Use the trigonometric identity sin2x=21−cos2x and simplify the function inside the integral. Now, break the integral into two parts and for the first part use the formula ∫xndx=n+1xn+1 to find its integral. For the second part use the ILATE rule and consider x as function 1 (f1(x)) and cos2x as function 2 (f2(x)) and apply the rule of integration by parts given as ∫f1(x).f2(x)dx=[f1(x)∫f2(x)dx]−∫[f1′(x)∫f2(x)dx]dx to get the answer. Here, f1′(x)=dxd(f1(x)). Use the formulas ∫cos(ax+b)dx=asin(ax+b) and ∫sin(ax+b)dx=a−cos(ax+b) to evaluate the integral.
Complete step by step answer:
Here we are asked to find the integral of the function xsin2(x). First let us simplify the trigonometric function using the half angle formula. Let us assume the integral as I, so we have,
⇒I=∫xsin2(x)dx
Using the half angle trigonometric identity given as sin2x=21−cos2x we get,
⇒I=∫x(21−cos2x)dx
Since, 2 is a constant so it can be taken out of the integral sign, we have,
⇒I=21∫(x−xcos2x)dx
Breaking the integral into two parts we get,
⇒I=21(∫xdx−∫xcos2xdx)
Using the formula ∫xndx=n+1xn+1 for the integral of the first term we get,