Parametric equation of curve is $ x=2\sin\theta +\cos(2\theta) $ , $y=1+\cos(2\theta)$ , for $0\leq\theta\leq\pi/2$
Show that $$\frac{\mathrm{d}y}{\mathrm{d}x}=\frac{2\sin\theta}{2\sin\theta-1}$$ I drived $x$ and $y$ seperatly for $x$,
$$ x=2\cos\theta+\sin\theta\pm\sin\theta$$ and for the
derivative of $y$ i got $y=-2\sin(2\theta)$
and then I did
$$dy/dx= y=-2\sin(2\theta), \qquad x=2\cos\theta+\sin\theta\pm \sin\theta$$
but I dont know if I did it wronge or I don't know how to continue. Any help would be much appreciated. Thank you!
$$\frac{dy}{dx}=\frac{dy}{d\theta}/\frac{dx}{d\theta}=\frac{-2\sin 2\theta}{2\cos \theta-2\sin 2 \theta}=\frac{-\sin \theta \cos \theta}{\cos \theta(1-2\sin \theta)}=\frac{\sin \theta}{2\sin \theta-1}.$$