Solution of the differential equation cosx dy=y(sinx−y) dx\cos x \, dy = y(\sin x - y)\,dxcosxdy=y(sinx−y)dx, 0<x<π20 < x < \frac{\pi}{2}0<x<2π is
ysecx=tanx+cy \sec x = \tan x + cysecx=tanx+c
ytanx=secx+cy \tan x = \sec x + cytanx=secx+c
tanx=(secx+c)y\tan x = (\sec x + c)ytanx=(secx+c)y
secx=(tanx+c)y\sec x = (\tan x + c)ysecx=(tanx+c)y
Key idea: This is a Bernoulli equation. Substitute v=1yv = \frac1yv=y1.
Answer: (D) secx=(tanx+c)y\sec x = (\tan x + c)ysecx=(tanx+c)y
Tagged Bernoulli and exact differential equations. Machine-assigned, so read it as a strong shortlist rather than a verdict.