For x∈(0,2π), find ∫sin2xsinx+cosxdx
Using the double angle formula sin2x=2sinxcosx:
∫2sinxcosxsinx+cosxdx
Let t=sinx−cosx
Differentiating:
dxdt=cosx+sinx
dt=(sinx+cosx)dx
To express the denominator in terms of t:
t2=(sinx−cosx)2
t2=sin2x−2sinxcosx+cos2x
t2=1−2sinxcosx
Therefore:
2sinxcosx=1−t2
2sinxcosx=1−t2
The integral becomes:
∫1−t2dt
=sin−1(t)+C
Substituting back t=sinx−cosx:
sin−1(sinx−cosx)+C