$\underline{\mathbf{Answer: A}}$
$\underline{\mathbf{Solution:}}$
$\begin{align} \mathrm{\frac{dy}{dx} = \dfrac{\frac{dy}{dt}}{\frac{dx}{dt}} = -\frac{\sin^2x}{\tan x} =-\frac{1}{2}\sin2x }\end{align}$
$\therefore \mathrm{y = \frac{1}{4}\cos2x + c}$
It is given that the curve passes through the points $\left ( \frac{\pi}{2}, 0\right )$
$\therefore \mathrm {c = \frac{1}{4}}$
$\therefore$ The curve would be :
$\mathrm{y = \frac{1}{4} \cos2x + \frac{1}{4}}$
or,
$\mathrm{4y = 1 + \cos 2x = 1 + 2\cos^2x -1 = 2 \cos^2x }$
$\mathrm{\Rightarrow y = \frac{1}{2} \cos^2x}$
$\therefore \mathbf A$ is the correct option.