x^2+y^2+z^2-xy-yz-xz
=(1/2)*2(x^2+y^2+z^2-xy-yz-xz)
=(1/2)*(x^2+y^2-2xy+x^2+z^2-2xz+y^2-z^2-2yz)
=(1/2)*[(x-y)^2+(x-z)^2+(y-z)^2]
=(1/2)*[25+(5+4)^2+16]
=61
x^2+y^2+z^2-xy-yz-xz
=(1/2)*2(x^2+y^2+z^2-xy-yz-xz)
=(1/2)*(x^2+y^2-2xy+x^2+z^2-2xz+y^2-z^2-2yz)
=(1/2)*[(x-y)^2+(x-z)^2+(y-z)^2]
=(1/2)*[25+(5+4)^2+16]
=61