We begin with the given differential equation
dxdy+2ysecx=2ytanx,0≤x<2π,y(0)=1.
To clear the denominators we multiply every term by 2y, obtaining
2ydxdy+y2secx=tanx.
Here we recognize that the derivative of y2 is 2ydxdy, so we set
z=y2⟹dxdz=2ydxdy.
Substituting z into the transformed equation gives
dxdz+zsecx=tanx.
This is now a first-order linear differential equation in z of the standard form
dxdz+P(x)z=Q(x),P(x)=secx,Q(x)=tanx.
The integrating factor is found from the formula I.F.=e∫P(x)dx. Since
∫secxdx=lnsecx+tanx,
we have
I.F.=eln∣secx+tanx∣=∣secx+tanx∣.
Because 0≤x<2π, both secx and tanx are positive, so ∣secx+tanx∣=secx+tanx.
Multiplying the whole differential equation by this integrating factor yields
(secx+tanx)dxdz+zsecx(secx+tanx)=tanx(secx+tanx).
By construction, the left-hand side is the derivative of the product z(secx+tanx), that is,
dxd[z(secx+tanx)]=tanx(secx+tanx).
Integrating both sides with respect to x, we obtain
z(secx+tanx)=∫tanx(secx+tanx)dx+C.
We now evaluate the integral on the right. We split it into two simpler integrals:
∫tanxsecxdx+∫tan2xdx.
Using the standard antiderivatives ∫tanxsecxdx=secx and ∫tan2xdx=∫(sec2x−1)dx=tanx−x, we find
∫tanx(secx+tanx)dx=secx+tanx−x.
Therefore
z(secx+tanx)=secx+tanx−x+C.
To determine the constant C we use the initial condition y(0)=1⟹z(0)=y2(0)=1. At x=0 we have sec0=1 and tan0=0, so
1⋅(1+0)=1+0−0+C⟹1=1+C⟹C=0.
Thus the relation simplifies to
z(secx+tanx)=secx+tanx−x.
Dividing by secx+tanx (which is positive in the given interval) gives
z=1−secx+tanxx.
Recall that z=y2, so
y2=1−secx+tanxx.
This expression automatically satisfies the initial condition and is valid for 0≤x<2π.
Hence, the correct answer is Option D.