Why Small Notational Errors Change the Answer
A quadratic form can be written as a polynomial or as a matrix expression, and moving between those representations requires care. A missing factor of two can change a positive definite form into an indefinite one. A nonsymmetric matrix can represent a quadratic form, but its eigenvalues do not in general classify that form. And a test using leading principal minors answers a specific question only when its hypotheses are met.
Throughout, the scalars are real. A quadratic form on \(\mathbb{R}^n\) is a function \(q:\mathbb{R}^n\to\mathbb{R}\) expressible as \(q(\mathbf{x})=\mathbf{x}^{\top}\mathbf{A}\mathbf{x}\) for some real \(n\times n\) matrix \(\mathbf{A}\). A form is positive definite if \(q(\mathbf{x})>0\) for every \(\mathbf{x}\ne\mathbf{0}\); it is positive semidefinite if \(q(\mathbf{x})\ge0\) for every \(\mathbf{x}\). Negative definite and negative semidefinite are defined by reversing the inequalities. A form is indefinite if it takes both positive and negative values.
When the matrix is symmetric, its entries have a direct polynomial interpretation: diagonal entries give square-term coefficients, and each off-diagonal entry contributes twice to the corresponding mixed term. That factor of two is the source of the first common error.
Mixed Terms and the Correct Matrix
Worked Example: Recovering the Matrix from a Mixed Term
Write \(q(x,y)=x^2+2xy+2y^2\) as \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}\) with \(\mathbf{A}\) symmetric, and determine whether the form is positive definite.
Let \(\mathbf{x}=\begin{bmatrix}x\\y\end{bmatrix}\) and \(\mathbf{A}=\begin{bmatrix}a&b\\b&c\end{bmatrix}\). Multiplying gives \(x^2a+2xyb+y^2c\). Matching coefficients gives \(a=1\), \(2b=2\), and \(c=2\), so \(b=1\) and
Completing the square gives \(q(x,y)=(x+y)^2+y^2\). If this sum is zero, then both \(y=0\) and \(x+y=0\), so \(x=0\). Thus \(q(x,y)>0\) whenever \((x,y)\ne(0,0)\). The form is positive definite.
Check: the matrix product reproduces the coefficient \(2\) on \(xy\), and the completed-square expression is positive for every nonzero pair.
The check is not merely cosmetic: using \(2\) rather than \(1\) in both off-diagonal entries would produce a coefficient of \(4\) on \(xy\), not \(2\). The resulting form would be different and could have a different definiteness classification.
What a Nonsymmetric Matrix Represents
A quadratic form may be presented using a nonsymmetric matrix, but its skew-symmetric part contributes nothing. The relevant matrix for classifying the form is the symmetric part \(\tfrac12(\mathbf{A}+\mathbf{A}^{\top})\).
Proof. The scalar \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}\) equals its transpose. Transposing this \(1\times1\) matrix gives \((\mathbf{x}^{\top}\mathbf{A}\mathbf{x})^{\top}=\mathbf{x}^{\top}\mathbf{A}^{\top}\mathbf{x}\). Therefore \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}=\mathbf{x}^{\top}\mathbf{A}^{\top}\mathbf{x}\). Adding these equal expressions and dividing by \(2\) proves the identity. \(\square\)
Worked Example: Symmetrizing a Matrix Representation
Find the quadratic polynomial represented by \(\mathbf{A}=\begin{bmatrix}2&5\\1&3\end{bmatrix}\), then identify the symmetric matrix representing the same form.
With \(\mathbf{x}=\begin{bmatrix}x\\y\end{bmatrix}\), first calculate \(\mathbf{A}\mathbf{x}=\begin{bmatrix}2x+5y\\x+3y\end{bmatrix}\). Hence
The symmetric part is
Multiplication confirms that this symmetric matrix gives \(2x^2+6xy+3y^2\): its two off-diagonal entries contribute \(3xy+3xy=6xy\).
Check: directly, \(x(2x+5y)+y(x+3y)=2x^2+6xy+3y^2\), while the symmetric representation gives \(2x^2+2(3)xy+3y^2\), the same polynomial.
A common mistake is to classify a quadratic form by looking at the eigenvalues of the nonsymmetric matrix used to write it. The theorem shows why that is unsafe: the form is determined by the symmetric part, not by the full nonsymmetric matrix. The next example makes the distinction concrete.
Congruence Is Not Similarity
Changing variables in a quadratic form has a specific matrix rule. If \(\mathbf{x}=\mathbf{P}\mathbf{y}\), then
The matrix \(\mathbf{P}^{\top}\mathbf{A}\mathbf{P}\) is obtained by congruence. In contrast, a similarity transformation has the form \(\mathbf{P}^{-1}\mathbf{A}\mathbf{P}\) and describes a change of basis for a linear map. These formulas are generally different. They coincide in the orthogonal change of variables used in orthogonal diagonalization, because an orthogonal matrix satisfies \(\mathbf{P}^{-1}=\mathbf{P}^{\top}\); for a general invertible \(\mathbf{P}\), that equality does not hold.
Proof. For every \(\mathbf{y}\), the transformed form has value \(\mathbf{y}^{\top}\mathbf{P}^{\top}\mathbf{A}\mathbf{P}\mathbf{y}=(\mathbf{P}\mathbf{y})^{\top}\mathbf{A}(\mathbf{P}\mathbf{y})\). Because \(\mathbf{P}\) is invertible, \(\mathbf{P}\mathbf{y}\ne\mathbf{0}\) whenever \(\mathbf{y}\ne\mathbf{0}\), and every nonzero \(\mathbf{x}\) equals \(\mathbf{P}\mathbf{y}\) for the nonzero vector \(\mathbf{y}=\mathbf{P}^{-1}\mathbf{x}\). Thus the two forms have the same sign on corresponding nonzero vectors, in both directions. Replacing “positive” by “nonnegative,” “negative,” or “nonpositive” gives the other stated conclusions. \(\square\)
Worked Example: A Similar Matrix Can Give a Different Quadratic Form
Take \(\mathbf{A}=\begin{bmatrix}1&0\\0&4\end{bmatrix}\) and \(\mathbf{P}=\begin{bmatrix}1&2\\0&1\end{bmatrix}\). Compare the congruence and similarity transformations.
First, \(\mathbf{P}^{\top}=\begin{bmatrix}1&0\\2&1\end{bmatrix}\). Multiplying gives
The congruence matrix represents \(x^2+4xy+8y^2\). In fact, substituting \(\mathbf{x}=\mathbf{P}\mathbf{y}\), so \(x=y_1+2y_2\) and \(y=y_2\), into the original form \(x^2+4y^2\) gives \((y_1+2y_2)^2+4y_2^2=y_1^2+4y_1y_2+8y_2^2\), as required.
Now \(\mathbf{P}^{-1}=\begin{bmatrix}1&-2\\0&1\end{bmatrix}\), so the similarity transformation gives
If this last matrix is used in a quadratic expression, it gives \(u^2-6uv+4v^2\). At \((u,v)=(3,1)\), this value is \(9-18+4=-5\). Thus the expression is not positive definite, even though the original form \(x^2+4y^2\) is positive definite.
Check: multiplying \(\mathbf{P}^{-1}\mathbf{A}\mathbf{P}\) gives \(\begin{bmatrix}1&-6\\0&4\end{bmatrix}\); its quadratic expression at \((3,1)\) is indeed \(-5\). It is the congruence matrix, not the similar matrix, that represents the form after the stated variable substitution.
Leading Principal Minors: Check the Hypotheses
For an \(n\times n\) matrix \(\mathbf{A}\), its \(k\)th leading principal minor is \(\Delta_k\), the determinant of the submatrix in the first \(k\) rows and first \(k\) columns. For a real symmetric matrix, Sylvester’s criterion says that the form is positive definite if and only if \(\Delta_k>0\) for every \(k=1,\dots,n\). The symmetry hypothesis and the strict inequalities both matter. The criterion is not a test for positive semidefiniteness, and merely checking one leading minor cannot establish positive definiteness.
Worked Example: Nonnegative Leading Minors Do Not Prove Positive Semidefiniteness
Consider the symmetric matrix \(\mathbf{A}=\begin{bmatrix}0&0&1\\0&0&0\\1&0&0\end{bmatrix}\). Its leading principal minors are \(\Delta_1=0\), \(\Delta_2=0\), and \(\Delta_3=0\). Thus they are all nonnegative, but that does not establish that the form is positive semidefinite.
Indeed, its quadratic form is \(q(x,y,z)=2xz\). At \(\mathbf{x}=\begin{bmatrix}1\\0\\-1\end{bmatrix}\), the value is \(-2\), so the form is not positive semidefinite. At \(\begin{bmatrix}1\\0\\1\end{bmatrix}\), the value is \(2\), so it is indefinite.
Check: multiplying \(\mathbf{A}\mathbf{x}\) for \(\mathbf{x}=(1,0,-1)^{\top}\) gives \((-1,0,1)^{\top}\), and \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}=-1-1=-2\). This directly verifies the negative value.
The opposite error is to apply the positive-definite test to a matrix that is not symmetric, even when the question concerns the quadratic form it represents. First replace that matrix by its symmetric part; then use a definiteness criterion with the correct hypotheses. For positive definiteness, the leading principal minors must all be strictly positive. For positive semidefiniteness, nonnegative leading principal minors alone are not enough, as the example shows.
A Reliable Diagnostic Routine
When a quadratic-form calculation seems inconsistent, separate the representation from the classification. Use this sequence of checks:
For a symmetric matrix, verify that an off-diagonal entry is half the coefficient of the associated mixed term.
Replace a nonsymmetric matrix \(\mathbf{A}\) by \(\tfrac12(\mathbf{A}+\mathbf{A}^{\top})\) when classifying the form \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}\).
A variable substitution \(\mathbf{x}=\mathbf{P}\mathbf{y}\) gives the congruence matrix \(\mathbf{P}^{\top}\mathbf{A}\mathbf{P}\), not generally the similar matrix \(\mathbf{P}^{-1}\mathbf{A}\mathbf{P}\).
Use Sylvester’s criterion for positive definiteness only with a symmetric matrix and all leading principal minors strictly positive.
The safest final check is to evaluate the polynomial and the matrix expression on the same vector, or to substitute the proposed change of variables directly. A single carefully chosen vector can expose a false definiteness claim: if a purportedly positive semidefinite form takes a negative value, the claim is disproved. Conversely, one positive value does not prove positive definiteness; that requires a valid argument covering every nonzero vector.
Check Your Understanding
For each question, state the relevant hypothesis or calculation that decides the issue.
- What symmetric matrix represents \(3x^2-8xy+5y^2\)?
- For \(\mathbf{A}=\begin{bmatrix}2&7\\1&4\end{bmatrix}\), find the symmetric matrix representing \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}\).
- If \(\mathbf{x}=\mathbf{P}\mathbf{y}\), which matrix represents the transformed quadratic form, and why is it not generally a similarity transformation?
- Why do nonnegative leading principal minors alone fail to prove positive semidefiniteness? Give a vector witnessing the failure for the three-by-three example above.
- State the symmetry and minor conditions required to use Sylvester’s criterion for positive definiteness.