TeX source:
f(x,y) = \left(x+3y\right)^2-2xy