TeX source:
\frac{1}{2} m v_{\mathrm{i}}^{2}-f d=0