Quadratic Forms with Symmetric Matrices
A quadratic equation with a cross term does not state its principal directions directly. Its quadratic form collects the coefficients in a symmetric matrix, and the eigenvectors of that matrix give the principal directions. In two dimensions, let
Because is real and symmetric, it has real eigenvalues and an orthonormal eigenbasis . Put those eigenvectors into . Then and .
For the equation , use the rotated coordinates and the rotated linear coefficient . The cross term disappears:
Completing the Square
For both variables with , the completing the square process is performed separately:
Name the completed-square brackets to keep both added and subtracted terms visible:
Collecting the completed squares gives
Define the center in rotated coordinates and the translated constant by
Then
The signs of , , and determine whether the real solution set is an ellipse, a hyperbola, a parabola, a degenerate conic, or empty. The next two cases assume .
Curve Classification
With positive translated constant , two nonzero eigenvalues of the same positive sign give an ellipse, while opposite signs give a hyperbola. A zero eigenvalue requires checking the remaining linear term: it yields a parabola only when that term is nonzero.
Two Positive Eigenvalues
If and , then the conic section formed is an ellipse:
With semi-axis lengths in the direction of and in the direction of .
Eigenvalues with Opposite Signs
When and , the conic section formed is a hyperbola:
With semi-axis lengths in the direction of and in the direction of .
One Zero Eigenvalue
A special case occurs when , , and . Completing the square gives
Keep the same completed-square brackets visible, because the added and subtracted terms must cancel separately:
Here the zero eigenvalue means we use only the first completed square, so define:
Solving for shows the parabola directly:
Rotating and Translating a Two Dimensional Conic
Consider
The eigenpairs are
The center in the original coordinates is because . In rotated coordinates, . With , the equation becomes
It is an ellipse centered at . Its semiaxes have lengths along and along . Substituting the center into the original equation gives , which confirms the translated right-hand side.
Quadratic Surfaces and Transformation
For a symmetric matrix , vector , and scalar , the quadratic surface is defined as the solution set of the general quadratic equation:
Writing the same equation entry by entry gives:
If is symmetric and is an orthonormal basis of eigenvectors with , then the orthonormal matrix enables diagonalization or .
In the rotated coordinates , write . The coordinates of points on satisfy:
Diagonalizing gives:
Written entry by entry:
Collecting the terms and moving to the right gives:
In the orthonormal basis of eigenvectors, the quadratic form has a diagonal structure. This transformation is called principal axis transformation because the new coordinate axes are aligned with the directions of the matrix eigenvectors.