Источник TeX:
\cos{\alpha}=\frac{1-\text{tg}^2(\frac{\alpha}{2})}{1+\text{tg}^2(\frac{\alpha}{2})}