TeX source:
W=/frac{1}{2}(q_1/varphi_1+q_2/varphi_2)