Given:
f(x)sin2x+sinx−(1+cos2x)f′(x)=0
Now, let f(x)=y we get,
⇒ysin2x+sinx−(1+cos2x)dxdy=0
⇒(1+cos2x)ysin2x+(1+cos2x)sinx−dxdy=0
⇒dxdy−(1+cos2xsin2x)y=1+cos2xsinx
⇒I.F.=e∫−(1+cos2xsin2x)dx
⇒I.F.=elog(1+cos2x)
⇒I.F.=1+cos2x
So, solution of the equation is given by,
y(1+cos2x)=∫(1+cos2x)sinx(1+cos2x)dx
⇒y(1+cos2x)=∫sinxdx
⇒y(1+cos2x)=−cosx+C
It is given that, f(0)=0.
⇒0(1+1)=−cos0+C
⇒C=1
⇒y(1+cos2x)=1−cosx
⇒y=1+cos2x1−cosx
⇒y(2π)=1+cos22π1−cos2π
⇒y(2π)=1