This rule is quadratic rather than linear. Although the input now appears twice, eigenvectors and the orthogonal diagonalization theorem still make the rule simple.
The quadratic form associated with an \(n \times n\) matrix \(A\) is the scalar-valued function \(q_A\) on \(\R^n\) defined by \(q_A(\mathbf{x}) = \mathbf{x}^T A \mathbf{x}\text{.}\)
Definition5.4.3.Positive definite, negative definite, and indefinite matrices.
A symmetric matrix is called positive definite if all of its eigenvalues are strictly positive. It is called negative definite if all of its eigenvalues are strictly negative. It is called indefinite if it has at least one strictly positive eigenvalue and at least one strictly negative eigenvalue.
The quadratic form is larger in the first coordinate direction than in the second coordinate direction. For Hessians, this kind of comparison measures curvature in different directions.
Activity5.4.5.Expanding a quadratic form in three variables (U5-LO4).
For a symmetric \(3 \times 3\) matrix \(A = [A_{ij}]\text{,}\) write out the quadratic form \(q_A(\mathbf{x}) = \mathbf{x}^T A \mathbf{x}\) explicitly in terms of the entries of \(A\) and the components of \(\mathbf{x} = (x_1, x_2, x_3)\text{.}\)
More generally, for a symmetric \(n \times n\) matrix \(A = [A_{ij}]\text{,}\) the quadratic form \(q_A(\mathbf{x}) = \mathbf{x}^T A \mathbf{x}\) can be written as:
which is simple to understand. We will use spectral theory to show that a rotation of a coordinate system reduces a quadratic form to a quadratic form defined by a diagonal matrix. The signs of the diagonal entries will then tell us the behavior of the critical point.
Recall the orthogonal diagonalization theorem, which says that there is an orthogonal matrix \(Q\) so that \(Q^T A Q\) is a diagonal matrix \(D\text{.}\)
If \(A\) is a symmetric, \(n \times n\) matrix, then an orthonormal basis of eigenvectors of \(A\) is called a set of principal axes for the quadratic form \(q_A\text{.}\)
The orthogonal matrix \(Q\) with these unit eigenvectors as columns diagonalizes \(A\text{.}\) When we express a vector \(\mathbf{x} = Q\mathbf{y} = y_1\mathbf{v}'_1 + y_2\mathbf{v}'_2\text{,}\) the quadratic form becomes:
Four nested ellipses centered at the origin show the level sets \(q(x,y)=c\) for \(c=5,10,20,30\text{.}\) The first principal axis \(\mathbf{v}'_1=(-3,1)/\sqrt{10}\) runs from upper left to lower right, and the second principal axis \(\mathbf{v}'_2=(1,3)/\sqrt{10}\) runs from lower left to upper right. Each ellipse is shorter in the \(\mathbf{v}'_1\) direction, which has eigenvalue \(14\text{,}\) and longer in the \(\mathbf{v}'_2\) direction, which has eigenvalue \(4\text{.}\)
Figure5.4.10.Level curves of \(q(x,y)=13x^2-6xy+5y^2\text{.}\) The principal-axis directions \(\mathbf{v}'_1\) and \(\mathbf{v}'_2\) are orthonormal eigenvectors of \(A\) with eigenvalues \(14\) and \(4\text{,}\) respectively.
Thus the eigenvalues are \(2\) and \(-3\text{.}\) For eigenvalue \(\lambda_1 = 2\text{,}\) we solve \((A - \lambda_1 I)\mathbf{v}_1 = \mathbf{0}\text{:}\)
is an eigenvector for \(\lambda_1\text{.}\) For the eigenvalue \(\lambda_2 = -3\text{,}\) we solve \((A - \lambda_2 I)\mathbf{v}_2 = \mathbf{0}\text{:}\)
That is, \(v_2 = -2v_1\text{.}\) Taking \(v_1 = 1\text{,}\) we get \(v_2 = -2\text{.}\) So an eigenvector for \(\lambda_2\) is \(\mathbf{v}_2 = \begin{bmatrix} 1 \\ -2 \end{bmatrix}\text{.}\)
Apply the previous theorem to express \(q(x_1, x_2)\) in terms of new coordinates \(y_1\) and \(y_2\) that eliminate the cross term, and classify the level curves \(q(x_1, x_2) = c\) for different values of \(c\text{.}\)
The orthogonal matrix \(Q\) with these unit eigenvectors as columns diagonalizes \(A\text{.}\) When we express a vector \(\mathbf{x} = Q\mathbf{y} = y_1\mathbf{v}'_1 + y_2\mathbf{v}'_2\text{,}\) the quadratic form becomes:
The blue branches are the level set \(q(x,y)=5\) and open along \(\mathbf{v}'_1=(2,1)/\sqrt{5}\text{,}\) the eigenvector with positive eigenvalue \(2\text{.}\) The red branches are the level set \(q(x,y)=-4\) and open along \(\mathbf{v}'_2=(1,-2)/\sqrt{5}\text{,}\) the eigenvector with negative eigenvalue \(-3\text{.}\) Two dashed lines show the zero level set \(q(x,y)=0\text{;}\) these lines are asymptotes for the hyperbolas.
A symmetric matrix \(A\) is positive definite if and only if \(\mathbf{x}^T A \mathbf{x} > 0\) for every vector \(\mathbf{x} \neq \mathbf{0}\) in \(\R^n\text{.}\) It is negative definite if and only if \(\mathbf{x}^T A \mathbf{x} \lt 0\) for every vector \(\mathbf{x} \neq \mathbf{0}\text{.}\)
where \(\lambda_1,\ldots,\lambda_n\) are the eigenvalues of \(A\text{.}\) Set \(\mathbf{y}=Q^T\mathbf{x}\text{,}\) so \(\mathbf{x}=Q\mathbf{y}\text{.}\) Because \(Q\) is invertible, \(\mathbf{x}\neq\mathbf{0}\) if and only if \(\mathbf{y}\neq\mathbf{0}\text{.}\) The diagonalization theorem gives
Suppose first that \(A\) is positive definite. Then every \(\lambda_i\) is strictly positive. If \(\mathbf{x}\neq\mathbf{0}\text{,}\) then \(\mathbf{y}\neq\mathbf{0}\text{,}\) so at least one coordinate \(y_i\) is nonzero. Therefore \(\lambda_1y_1^2+\cdots+\lambda_ny_n^2>0\text{,}\) and hence \(\mathbf{x}^TA\mathbf{x}>0\text{.}\)
Conversely, suppose \(\mathbf{x}^TA\mathbf{x}>0\) for every \(\mathbf{x}\neq\mathbf{0}\text{.}\) For each \(i\text{,}\) take \(\mathbf{y}=\mathbf{e}_i\) and \(\mathbf{x}=Q\mathbf{e}_i\text{.}\) Then \(\mathbf{x}\neq\mathbf{0}\) and
The negative-definite case is analogous. If every \(\lambda_i\lt 0\text{,}\) then \(\lambda_1y_1^2+\cdots+\lambda_ny_n^2\lt 0\) for every \(\mathbf{y}\neq\mathbf{0}\text{,}\) so \(\mathbf{x}^TA\mathbf{x}\lt 0\) for every \(\mathbf{x}\neq\mathbf{0}\text{.}\) Conversely, if this quadratic form is strictly negative for every nonzero \(\mathbf{x}\text{,}\) taking \(\mathbf{x}=Q\mathbf{e}_i\) gives \(\lambda_i\lt 0\) for each \(i\text{.}\) Hence \(A\) is negative definite.