The solution of dxdy+2ysecx=2ytanx, 0≤x<π/2, y(0)=1, is given by:
Solutions · 1
Official solution
With t=y2: dxdt+tsecx=tanx. I.F.=secx+tanx.
\[t(\sec x+\tan x) = \sec x+\tan x-x+C.\]
Using y(0)=1⇒t(0)=1: C=0. So t=1−secx+tanxx, i.e. y2=1−secx+tanxx.