TeX source:
\frac{1}{2} k x_{\mathrm{i}}^{2}=\frac{1}{2} m v_{\mathrm{f}}^{2}