If I have a symmetric matrix for a given quadratic form, how do I complete the square using this matrix to put the quadratic as the sum and difference of squares?
There is NOT necessarily possible to write a quadratic form as a "sum and difference". It is always possible to write a symmetric matrix as either a difference of squares (which can be written as sum and difference) or as a su of squares.
The symmetric matrix A=[abbc] gives the quadratic form XTAX=[xy][abbc][xy]=ax2+2bxy+cy2. Now, because this matrix is symmetric, we know it is "diagonalizable". There exist an invertible matrix, P, and a diagonal matrix, D, such that A=P−1DP so that we can write XTAX=XT(P−1DP)X=(XTP−1)D(PX)=YTDY where Y= PX.
That then gives [y1y2][λ100λ2][y1y2]=a1y12+a2y22. Whether that is a difference of squares or a sum of squares depends upon the signs of λ1 and λ2.
Of course, λ1 and λ2 are the eigenvalues of A and the matrix, P, has the eigenvectors of A as columns.
You need that A is orthogonally diagonalizable for the above to work, which again is implied by A being symmetric. You must make P orthogonal in order for (XTP−1)T=PX
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.