Find the derivative of LaTeX:  \displaystyle f(x)=\sin{\left(x \right)} - 2 \cot{\left(x \right)} .

Using the sum rule to take the derivative of each term separately gives LaTeX:  \displaystyle f'(x)=\cos{\left(x \right)} + 2 \cot^{2}{\left(x \right)} + 2 .