Write down the matrix A associated to the quadratic form $$3x^2 + 3y^2+3z^2-2xy-2xz-2yz$$ Classify the form as positive/negative definite/semidefinite, or indefinite. Diagonalise the form by completing the square.
I've worked out the matrix which is:
$$ \begin{pmatrix} 3 & -1 & -1 \\ -1 & 3 & -1 \\ -1 & -1 & 3 \\ \end{pmatrix} $$
How would I then complete the square to diagoanlise the form?
Any help is much appreciated :) Thank you!
In this case, it's quite simple:$$3x^2 + 3y^2+3z^2-2xy-2xz-2yz=(-x+y+z)^2+(x-y+z)^2+(x+y-z)^2.$$