Simplify $\frac{\sin\left(s\right)}{\cos\left(s\right)-1}$

trigonometry

I am interested in simplification for:
$$\frac{\sin\left(s\right)}{\cos\left(s\right)-1}$$

With Wolfram I know the correct answer is:
$$-\cot\left(\frac{s}{2}\right)$$

How to make this step by step?

Best Answer

You can use the fact that$$\sin(s)=2\sin\left(\frac s2\right)\cos\left(\frac s2\right),$$whereas\begin{align}\cos(s)-1&=\cos^2\left(\frac s2\right)-\sin^2\left(\frac s2\right)-\left(\cos^2\left(\frac s2\right)+\sin^2\left(\frac s2\right)\right)\\&=-2\sin^2\left(\frac s2\right).\end{align}

Related Question