expand (x-3)^2+(x^2-1/2)^2