TeX source:
\begin{aligned}\cos (\theta) &=\frac{w_{\perp}}{w} \\w_{\perp} &=w \cos (\theta)=m g \cos (\theta)\end{aligned}