The differential equation is dxdy+2ytanx=sinx, which is a first-order linear ODE. The integrating factor is e∫2tanxdx=e−2ln∣cosx∣=sec2x.
Multiplying both sides by sec2x: dxd(ysec2x)=sinx⋅sec2x=cos2xsinx=secxtanx.
Integrating: ysec2x=∫secxtanxdx=secx+C. So y=cosx+Ccos2x.
Applying the initial condition y(π/3)=0: 0=cos(π/3)+Ccos2(π/3)=21+C⋅41, giving C=−2.
Therefore y=cosx−2cos2x. To find the maximum, let u=cosx, so y=u−2u2, where u∈[−1,1]. Setting dudy=1−4u=0 gives u=41, and the maximum value is y=41−2⋅161=41−81=81.