The given differential equation is:
sin2x(dxdy−tanx)−y=0
First, expand the equation:
sin2x⋅dxdy−sin2x⋅tanx−y=0
Recall that sin2x=2sinxcosx, so substitute:
2sinxcosx⋅dxdy−2sinxcosx⋅tanx−y=0
Rearrange the terms to isolate the derivative:
2sinxcosx⋅dxdy−y=2sinxcosx⋅tanx
Divide both sides by sinxcosx:
sinxcosx2sinxcosx⋅dxdy−sinxcosxy=sinxcosx2sinxcosx⋅tanx
Simplify:
2dxdy−sinxcosxy=2tanx
Note that sinxcosx1=sin2x2, so:
2dxdy−2sin2xy=2tanx
Divide both sides by 2:
dxdy−sin2xy=tanx
This is a linear differential equation of the form dxdy+P(x)y=Q(x), where P(x)=−sin2x1 and Q(x)=tanx.
The integrating factor (I.F.) is e∫P(x)dx=e∫−sin2x1dx.
Compute ∫−sin2x1dx. Since sin2x1=csc2x, we have ∫−csc2xdx.
Let θ=2x, so dθ=2dx and dx=2dθ:
∫−cscθ⋅2dθ=−21∫cscθdθ
The integral of cscθ is ln∣cscθ−cotθ∣+C, so:
−21∫cscθdθ=−21ln∣cscθ−cotθ∣+C
Substitute back θ=2x:
−21ln∣csc2x−cot2x∣+C
Simplify csc2x−cot2x:
csc2x−cot2x=sin2x1−sin2xcos2x=sin2x1−cos2x
Use identities 1−cos2x=2sin2x and sin2x=2sinxcosx:
2sinxcosx2sin2x=cosxsinx=tanx
Thus:
∫−sin2x1dx=−21ln∣tanx∣+C
The integrating factor is:
I.F.=e−21ln∣tanx∣=eln∣tanx∣−1/2=∣tanx∣−1/2
Since tanx is in the equation, we consider tanx>0, so drop the absolute value:
I.F.=(tanx)−1/2=tanx1=cotx
The solution of the linear differential equation is:
y⋅(I.F.)=∫Q(x)⋅(I.F.)dx+C
ycotx=∫tanx⋅cotxdx+C
Simplify the integrand:
tanx⋅cotx=tanx⋅cotx=1=1
Thus:
ycotx=∫1dx+C=x+C
Comparing with the options:
A. ytanx=x+c
B. ycotx=tanx+c
C. ytanx=cotx+c
D. ycotx=x+c
Hence, the correct answer is Option D.