Source TeX:
\sin(\frac{\pi}{4})= \dfrac{\text{opp}}{\text{hyp}}=\dfrac{a}{2}=\dfrac{\sqrt{2}}{2}