I have come across a problem in which I must solve an equation of the form:
$$ \csc(y)\ +\ \cot(y)\ = \ p $$ Where $y$ is to be solved in terms of $p$. I realise of course that there are many different solutions due to periodicity.
Asking wolfram provides an answer $\left(y=2\left(\pi n+\tan^{-1}\left(\frac{1}{p}\right)\right)\right)$ but not an understanding, and since I am a beginner in this sort of problem and would appreciate some guidance on how to solve problems like this involving various trigonometric functions.
$$\csc(y)+\cot(y)=\frac1{\sin\theta}+\frac{\cos\theta}{\sin\theta}=\frac{1+\cos\theta}{\sin\theta}=\cot\frac\theta2$$ That last equality comes from the half angle and double angle identities. Can you take it from here?