Answer is (A) y2 = sinx
On dividing by sin x
2y(dy/dx) + y2cotx = 2cosx
Put y2 = v, we get
dv/dx + vcotx = 2cosx
I.F. = e∫cotxdx = elog sinx = sin x
Therefore, the solution is v sin x = ∫sinx(2cosx)dx + c
⇒ y2 sin x = sin2x + c
When x = π/2, y = 1, then c = 0.
Therefore,
y2 = sinx