Mathwords logoMathwords

Principal Axis Theorem — Definition, Formula & Example

The Principal Axis Theorem is a result about quadratic forms. It says that you can always rotate your coordinate axes so that a quadratic expression like ax2+bxy+cy2ax^2 + bxy + cy^2 loses its cross term and becomes a plain weighted sum of squares.

Let AA be a real symmetric n×nn \times n matrix and Q(x)=xTAxQ(\mathbf{x}) = \mathbf{x}^T A \mathbf{x} the associated quadratic form. Then there is an orthogonal matrix PP such that the change of variable x=Py\mathbf{x} = P\mathbf{y} transforms QQ into λ1y12+λ2y22+⋯+λnyn2\lambda_1 y_1^2 + \lambda_2 y_2^2 + \cdots + \lambda_n y_n^2. Here λ1,…,λn\lambda_1, \dots, \lambda_n are the eigenvalues of AA, and the columns of PP are corresponding orthonormal eigenvectors. These columns are called the principal axes of QQ.

Key Formula

A=PDPT,xTAx=yTDy=λ1y12+⋯+λnyn2where x=PyA = PDP^T, \qquad \mathbf{x}^T A \mathbf{x} = \mathbf{y}^T D \mathbf{y} = \lambda_1 y_1^2 + \cdots + \lambda_n y_n^2 \quad \text{where } \mathbf{x} = P\mathbf{y}
Where:
  • AA = Symmetric matrix of the quadratic form. Diagonal entries are the squared-term coefficients. Each off-diagonal entry is half the matching cross-term coefficient.
  • PP = Orthogonal matrix (PT=P−1P^T = P^{-1}) whose columns are unit eigenvectors of AA
  • DD = Diagonal matrix holding the eigenvalues λi\lambda_i of AA
  • y\mathbf{y} = New coordinates measured along the principal axes

Worked Example

Problem: Identify the curve 3x2+2xy+3y2=83x^2 + 2xy + 3y^2 = 8 by removing the xyxy term. Find its principal axes and semi-axis lengths.
Step 1: Write the matrix of the form. Split the cross-term coefficient 2 evenly between the two off-diagonal entries.
A=(3113)A = \begin{pmatrix} 3 & 1 \\ 1 & 3 \end{pmatrix}
Step 2: Find the eigenvalues from det⁡(A−λI)=0\det(A - \lambda I) = 0. Then find a unit eigenvector for each one.
(3−λ)2−1=0  ⇒  λ=4, 2;v1=12(11),  v2=12(1−1)(3-\lambda)^2 - 1 = 0 \;\Rightarrow\; \lambda = 4, \, 2; \qquad \mathbf{v}_1 = \tfrac{1}{\sqrt{2}}\begin{pmatrix} 1 \\ 1 \end{pmatrix}, \; \mathbf{v}_2 = \tfrac{1}{\sqrt{2}}\begin{pmatrix} 1 \\ -1 \end{pmatrix}
Step 3: Substitute x=u+v2x = \frac{u+v}{\sqrt{2}} and y=u−v2y = \frac{u-v}{\sqrt{2}}. The theorem guarantees the cross term disappears. Then divide by 8.
4u2+2v2=8  ⇒  u22+v24=14u^2 + 2v^2 = 8 \;\Rightarrow\; \frac{u^2}{2} + \frac{v^2}{4} = 1
Answer: The curve is an ellipse. Its principal axes lie along the lines y=xy = x (the uu-axis) and y=−xy = -x (the vv-axis). The semi-axis along y=xy = x has length 2\sqrt{2}, and the semi-axis along y=−xy = -x has length 22.

Why It Matters

In multivariable calculus, you use this theorem to classify critical points with the second-derivative test: the signs of the Hessian's eigenvalues tell you whether you have a minimum, a maximum, or a saddle. In physics and engineering, the same idea finds the principal axes of a body's inertia tensor. In statistics, it underlies principal component analysis.

Common Mistakes

Mistake: Putting the full cross-term coefficient in both off-diagonal entries. For 3x2+2xy+3y23x^2 + 2xy + 3y^2, this gives (3223)\begin{pmatrix} 3 & 2 \\ 2 & 3 \end{pmatrix}.
Correction: The product xTAx\mathbf{x}^T A \mathbf{x} counts each off-diagonal entry twice, once as a12xya_{12}xy and once as a21yxa_{21}yx. So each entry must be half the cross-term coefficient. Here that gives 1, not 2. Check by expanding xTAx\mathbf{x}^T A \mathbf{x} and comparing with the original form.

Related Terms