markdown
Quadratic forms and positive definite matricesmd 5ae3fde
lecture/math/linear-algebra/quadratic-forms-and-positive-definite-matrices.lecture.n.md
Download PDF

Quadratic forms二次形式にじけいしき and positive definite matrices正定値行列せいていちぎょうれつ

date2026-07-14document_iddoc_4a8d2f4f75ae889a2fd408e5b2ba1761description二次形式を対称行列が定める量として導入し、直交対角化によって正定値性と固有値の関係を整理する講義である。prerequisites対称行列と直交対角化 / 行列式 / 固有値と固有ベクトルtype講義content_typelecturestatusactiverelateddata/lecture/math/linear-algebra/linear-algebra-portal.lecture.n.md / data/lecture/math/algebra/completing-squares-and-quadratic-forms.lecture.n.md / data/lecture/math/linear-algebra/symmetric-matrices-and-orthogonal-diagonalization.lecture.n.md / data/lecture/math/linear-algebra/complex-inner-products-and-unitary-matrices.lecture.n.md / data/lecture/math/linear-algebra/determinants.lecture.n.md / data/lecture/math/linear-algebra/eigenvalues-and-eigenvectors.lecture.n.md / data/exercise/math/linear-algebra/eigenvalues-diagonalization-and-extensions.exercise.n.md
mathlinear-algebraundergraduatelecture

1Introduction

The important point of this lecture is that a quadratic form二次形式にじけいしき is a quadratic expression determined by a matrix行列ぎょうれつ, and that the sign of the form can be read from the eigenvalues固有値こゆうち of a symmetric matrix対称行列たいしょうぎょうれつ.

Eigenvalues are not only tools for diagonalization. In quadratic forms they control shape, convexity, and how values grow in different directions.

2Terms and definitions

A quadratic form二次形式にじけいしき associated with a real square matrix A is

q(x)=xTAx,xRn.

In the complex case, a Hermitian formエルミート形式けいしき is

q(x)=x*Ax,

where A is Hermitian. This condition ensures x*Ax is real, so positivity and negativity make sense.

A real symmetric matrix A is positive definite正定値せいていち if

xTAx>0

for every x0. It is positive semidefinite if xTAx[PARSE ERROR: Undefined("Command(\"ge\")")]0, negative definite if xTAx<0 for all x0, and indefinite if the expression takes both positive and negative values.

3Plan

Use orthogonal diagonalization. If A=QDQT and y=QTx, then

xTAx=yTDy=λ1y12++λnyn2.

Thus the sign of the quadratic form is reduced to the signs of the eigenvalues.

data/lecture/math/linear-algebra/symmetric-matrices-and-orthogonal-diagonalization.lecture.n.md data/lecture/math/linear-algebra/complex-inner-products-and-unitary-matrices.lecture.n.md

4Intuitive explanation

A quadratic form measures how a value grows in each direction. If it is positive definite, moving away from the origin in any nonzero direction gives a positive value, like the bottom of a bowl. If it is indefinite, some directions give positive values and others give negative values, producing saddle behavior.

5Precise explanation

5.11. The skew-symmetric part does not contribute

For any real square matrix A,

A=A+AT2+A-AT2.

Let S=(A+AT)/2 be symmetric and K=(A-AT)/2 be skew-symmetric. Since

xTKx=0,

we have

xTAx=xTSx.

Thus only the symmetric part matters for a real quadratic form.

5.22. Positive definiteness and eigenvalues

For a real symmetric matrix A,

[PARSE ERROR: Undefined("Command(\"boxed\")")]Aispositivedefiniteλi>0(i=1,,n).

Indeed, write A=QDQT and y=QTx. Then

xTAx=λ1y12++λnyn2.

If all λi>0, then x0 implies y0, so the sum is positive. Conversely, if some λi<0, the corresponding eigenvector gives a negative value. If some λi=0, the corresponding nonzero eigenvector gives value 0, so A is not positive definite. Thus positive semidefinite is not enough; strict positivity of all eigenvalues is required.

5.33. Sylvester's criterion

For a real symmetric matrix A, positivity of all leading principal minors is equivalent to positive definiteness:

detA1>0,detA2>0,,detAn>0.

This is useful computationally, while the eigenvalue criterion explains the underlying geometry.

5.44. Sylvester's law of inertia

Under an invertible change of variables x=Py,

xTAx=yT(PTAP)y.

This is a congruence transformation. Even if the quadratic form is rewritten as

y12++yp2-yp+12--yp+q2,

the numbers of positive, negative, and zero square terms are invariant. This is Sylvester's law of inertia and shows that the sign structure does not depend on the chosen coordinates.

6Concrete example

Let

A=(2112).

Then

xTAx=2x12+2x1x2+2x22.

The eigenvalues are 3 and 1, both positive, so A is positive definite. In orthogonally diagonalized coordinates,

xTAx=3y12+y22.

The cross term disappears after changing to principal axes.

7Hessian test for extrema

Quadratic forms appear in second derivatives of multivariable functions. If a is a critical point, meaning f(a)=0, and the Hessian matrix Hf(a) is positive definite, then a is a strict local minimum. If the Hessian is negative definite, a is a strict local maximum; if it is indefinite, a is a saddle point. Without the critical-point assumption, positive definiteness of the Hessian alone does not imply a local extremum.

8Criteria

  • For a quadratic form, only the symmetric part of the matrix contributes.
  • A real symmetric matrix is positive definite exactly when all eigenvalues are positive.
  • It is positive semidefinite exactly when all eigenvalues are nonnegative.
  • It is indefinite when positive and negative eigenvalues both occur.
  • At a critical point, a positive definite Hessian is a sufficient condition for a strict local minimum.

9Scope and limitations

Eigenvalue tests for definiteness assume a symmetric or Hermitian matrix. For a nonsymmetric real matrix, the quadratic form only sees the symmetric part. In the complex case, use x*Ax, not xTAx. If A is not Hermitian, x*Ax may be complex, so positivity is not directly meaningful.

10Final forms

[PARSE ERROR: Undefined("Command(\"boxed\")")]q(x)=xTAx
[PARSE ERROR: Undefined("Command(\"boxed\")")]xTAx=yTDy=iλiyi2
[PARSE ERROR: Undefined("Command(\"boxed\")")]A>0λi>0foralli
[PARSE ERROR: Undefined("Command(\"boxed\")")]A>0detAk>0(k=1,,n)
[PARSE ERROR: Undefined("Command(\"boxed\")")]Congruencetransformationspreserveinertia[PARSE ERROR: Undefined("RBrace")]

11In one sentence

A quadratic form二次形式にじけいしき is a quadratic expression whose sign and shape are determined by the eigenvalues of its symmetric or Hermitian matrix.

12Theorem: equivalent conditions for positive definiteness

Let A be a real symmetric matrix. The following are equivalent:

  • A is positive definite正定値せいていち.
  • All eigenvalues of A are positive.
  • In an orthogonal diagonalization A=QDQT, every diagonal entry of D is positive.
  • All leading principal minors are positive, by Sylvester's criterion.

The core proof uses orthogonal diagonalization. If A=QDQT and y=QTx, then Q preserves nonzero vectors and

xTAx=yTDy=iλiyi2.

If all λi>0, this is positive for every y0. Conversely, if some λj[PARSE ERROR: Undefined("Command(\"le\")")]0, choose y=ej to get xTAx[PARSE ERROR: Undefined("Command(\"le\")")]0, so A is not positive definite.

13Boundary cases: positive semidefinite versus positive definite

For

A=(1000),

we have

xTAx=x12[PARSE ERROR: Undefined("Command(\"ge\")")]0.

But for x=(0,1)T0, xTAx=0. Thus A is positive semidefinite, not positive definite. Positive definiteness does not allow a nonzero flat direction.

For

B=(100-1),

we have xTBx=x12-x22, which can be positive or negative depending on direction. Hence B is indefinite.

14Practical 2×2 test

For a real symmetric matrix

A=(abbd),

Sylvester's criterion gives

A>0a>0,ad-b2>0.

Computationally this is convenient. Geometrically it is another way of saying that all principal-axis stretch factors, namely the eigenvalues, are positive.

15Optimization warning

In the second-derivative test, the assumption f(a)=0 is essential. A positive definite Hessian means that the quadratic approximation opens upward near the point, but if the gradient is nonzero, a linear term remains and the point itself need not be a local minimum.

raw .n.md をコピー
loc をコピー (filepath:line ~ line)
copy share link
copy encoded share link
path をコピー
copy share link
copy encoded share link
copy share link
copy encoded share link
タブを全て閉じる