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