Question
Question: How do you integrate \(\int{{{\sin }^{2}}x}\)by integration by parts method?...
How do you integrate ∫sin2xby integration by parts method?
Solution
In integration by parts method if we integrate f(x)g(x) we can write
∫f(x)g(x)dx=f(x)∫g(x)dx−∫f′(x)(∫g(x)dx)dx wheref′(x)=dxdf(x).
While choosing f(x) and g(x) choose in such a way that solving ∫f′(x)(∫g(x)dx)dx would be easier. For example while integrating xex our f(x) would be x and g(x) will be exso that solving ∫f′(x)(∫g(x)dx)dx is easier.
Complete step by step answer:
The formula for integration by parts is ∫f(x)g(x)dx=f(x)∫g(x)dx−∫f′(x)(∫g(x)dx)dx
Wheref′(x)=dxdf(x).
In the given question we have to integrate sin2x by integration by parts method.
So f(x)g(x)=sin2x
We can choose f(x)=sinx and g(x)=sinx so we can write
∫sin2xdx=∫sinx×sinxdx
Substituting f(x) as sinx,g(x) as sinx and f(x)g(x) as sin2x
In the formula for integration by parts we get
∫sin2xdx=sinx∫sinxdx−∫dxdsinx(∫sinxdx)dx
We know that dxdsinx=cosx and ∫sinxdx=−cosx substituting these values in the above equation
⇒∫sin2xdx=sinx(−cosx)−∫cosx×(−cosx)dx
⇒∫sin2xdx=−sinxcosx+∫cos2xdx
We know that cos2x=1−sin2x substituting this value in the equation we get
⇒∫sin2x=−sinxcosx+∫(1−sin2x)dx
Let’s assume I=∫sin2xdx
Substituting I in the equation
I=−sinxcosx+∫1dx−I
By solving the equation
2I=−sinxcosx+∫1dx
We know that
∫1dx=x+c1
Where c1 is a constant so substituting the value in the equation we get
2I=−sinxcosx+x+c1
Now we can write
I=2x−cosxsinx+c
where c is a constant
c=2c1
As the final answer we can write
∫sin2x=2x−sinxcosx+c
We can verify the result by solving the integration we can write
sin2x=21−cos2x
And solve the integration very easily and it will match with our result.
Note: Always remember the formula for integrating in integration by parts method. Some people make mistakes while choosing f(x) and g(x) so carefully choose f(x) and g(x) such that integration would be easier to solve. Sometimes when we solve a problem we find the function of L.H.S in the right hand side in that case we should take our L.H.S as variable I like we did in the above question then it would be easier to solve we just have to find the value of I.