Maths WorkshopMaths problems with full solutions
Exercise 1854Linear algebra › Quadratic formsL1Added 3 Nov 2026

Reduction of a quadratic form with cross terms

#reduction#completing square#cross terms

Statement

Reduce the quadratic form
Q(x,y,z)=xy+yz+zxQ(x,y,z)=xy+yz+zx
by completing the square.

Hint

Group the terms as xy+yz+zx=14[(x+y+z)2−(x−y)2−(y−z)2−(z−x)2]xy+yz+zx = \frac14[(x+y+z)^2-(x-y)^2-(y-z)^2-(z-x)^2], or use the substitution u=x+yu=x+y, v=x−yv=x-y.

Show solutionHide solution

Solution

Approach 1: direct grouping. Use the identity
xy+yz+zx=12[(x+y+z)2−(x2+y2+z2)].xy+yz+zx=\frac12\left[(x+y+z)^2-(x^2+y^2+z^2)\right].
This is not directly a sum of squares, but shows the signature.

Approach 2: substitution. Let u=x+yu=x+y, v=x−yv=x-y, z=zz=z (this is invertible: x=(u+v)/2x=(u+v)/2, y=(u−v)/2y=(u-v)/2). Then
xy=u2−v24,yz=u−v2z,zx=u+v2z.xy=\frac{u^2-v^2}{4},\qquad yz=\frac{u-v}{2}z,\qquad zx=\frac{u+v}{2}z.
So
Q=u2−v24+uz.Q=\frac{u^2-v^2}{4}+uz.
Complete the square in uu:
Q=14(u+2z)2−14v2−z2.Q=\frac14(u+2z)^2-\frac14v^2-z^2.

Signature. One positive square, two negative squares. Signature (1,2,0)(1,2,0).

Conclusion. Q=14(u+2z)2−14v2−z2Q=\frac14(u+2z)^2-\frac14v^2-z^2, with signature (1,2,0)(1,2,0).