TeX source:
\dfrac{49}{4}v^2+7vw+w^2 = \left(\dfrac{7}{2}\right)^2v^2+2\cdot\dfrac{7}{2}\cdot 1vw+1^2w^2 = \left(\dfrac{7}{2}v+w\right)^2