Let ey=t⇒eydxdy=dxdt
So,
eydxdy−2eysinx+sinxcos2x=0
⇒dxdt−(2sinx)t=−sinxcos2x
So, the integrating factor I.F.=e∫−2sinxdx=e2cosx
So, the solution of differential equation is
t⋅e2cosx=∫e2cosx⋅(−sinxcos2x)dx
⇒ey⋅e2cosx=∫e2z⋅z2dz (Assume, z=cosx⇒dz=−sinx)
Using integration by parts,
⇒ey⋅e2cosx=21⋅z2⋅e2z−21z⋅e2z+4e2z+C
⇒ey⋅e2cosx=21⋅cos2x⋅e2cosx−21cosx⋅e2cosx+4e2cosx+C
at x=2π,y=0⇒C=43
⇒ey=21cos2x−21cosx+41+43⋅e−2cosx
Put x=0
⇒y=log[41+43e−2]⇒α=41,β=43
So, α+β=41+43=1