Let $f(\theta)$ be a continue function for $\theta\in[\theta_1,\theta_2]$. Prove that: \begin{cases} f(\theta_1)\cos \theta_1=f(\theta_2)\cos \theta_2 \\ f(\theta_1)\sin \theta_1=f(\theta_2)\sin \theta_2 \end{cases} if and only if $f(\theta_1)=f(\theta_2)$ and $\theta_2-\theta_1=2n\pi$ for some integer $n$.
It is easily to verify that $\{(\theta_1,\theta_2):\, f(\theta_1)=f(\theta_2), \, \theta_2-\theta_1=2n\pi, \, n\in\mathbb Z\}$ satisfies the system but... is it the only solution of the system?
$f(\theta_1)^2=f(\theta_1)^2\sin^2(\theta_1)+f(\theta_1)^2\cos^2(\theta_1)= f(\theta_2)^2\sin^2(\theta_2)+f(\theta_2)^2\cos^2(\theta_2)=f(\theta_2)^2$
then $f(\theta_1)=\pm f(\theta_2)$.
-If $f(\theta_1)= f(\theta_2)$ it is necessary that $\theta_1$ and $\theta_2$ differ for a multiple of $2\pi$.
-If $f(\theta_1)=- f(\theta_2)$ you have to find $\theta_1$ and $\theta_2$ such that \begin{align} \sin(\theta_1)&=-sin(\theta_2) \\ \cos(\theta_1) &=-\cos(\theta_2) \end{align} and it is true for $\theta_2=\theta_1+\pi+2k\pi,k\in \mathbb{Z}$ (note that this was true if $f(\theta_1)\neq 0\neq f(\theta_2)$).
There are then three sets of solutions $$f(\theta_1)=f(\theta_2) \qquad \text{and} \qquad \theta_2=\theta_1+2k\pi$$
$$f(\theta_1)=-f(\theta_2) \qquad \text{and} \qquad \theta_2=\theta_1+\pi+2k\pi$$
$$f(\theta_1)=f(\theta_2)=0 \qquad \text{and} \qquad \forall \theta_1,\theta_2 \in \mathbb{R} $$