Since every , the diagonal matrix is invertible. Set
The division is by the diagonal entry of row . Thus is an upper triangular matrix with diagonal entries one and .
To use symmetry without assuming the conclusion, multiply by the matrix inverse of and its transpose:
The matrix is symmetric because is a symmetric matrix. It is also an upper triangular matrix, since every factor on the right is an upper triangular matrix. A symmetric upper triangular matrix is diagonal. Its diagonal is exactly , because and have diagonal entries one. Hence , giving
This is the LDL decomposition.
Take the positive square roots of the diagonal entries:
The matrix is a lower triangular matrix with positive diagonal, and
This is a Cholesky decomposition. For a nonzero vector , the vector is nonzero because is invertible. Therefore
Here is the Euclidean norm. Thus is a positive-definite matrix.
For , the coefficient is positive. Moreover
is a positive-definite matrix: for a nonzero vector , put ; then . Hence every eigenvalue of is strictly below one. Part (d) also gives , so these eigenvalues are nonnegative. Therefore
The energy-norm proof of convergence of SOR thus makes the iteration a strict contraction mapping in this norm. Its forward error satisfies , so it converges geometrically to zero.
The Gaussian linear model has log likelihood function, up to an additive constant,
For each fixed positive , maximize this by minimizing the residual sum of squares. Differentiation gives the normal equations
The full column rank of makes positive definite, hence invertible, so
The quadratic objective is strictly convex, which proves uniqueness. The joint maximum-likelihood estimate has the same coefficient estimate, except on the probability-zero event of an exactly zero residual when the positive-variance likelihood has no finite joint maximizer.
If is a minimizer, then for each the quadratic
has a minimum at , so . Conversely, if this orthogonality holds, then for every the Pythagorean theorem in the inner product space gives
Thus the minimizers are exactly the orthogonal projections characterized by
For existence, write . The conditions form the normal equations , with Gram matrix and . For every nonzero coefficient vector ,
Indeed a nonzero polynomial is nonzero on some open interval away from , where the weight is positive. Hence is a positive-definite matrix and is invertible, proving existence and uniqueness of . Uniqueness also follows from the preceding Pythagorean theorem identity. The zero of the weight at one point therefore causes no degeneracy on continuous functions or polynomials.
Definition and equations. A normal mode is a motion in which every component of a linear system has the same time dependence with fixed amplitude ratios and phases. For a conservative system near equilibrium, the most useful form is
The vector describes the mode shape, while is its angular frequency. Linear combinations of modes describe arbitrary sufficiently small motions when the modes form a complete basis.
Let be displacements of independent generalized coordinates from equilibrium. Expand the Lagrangian to quadratic order:
The mass matrix defines a positive-definite quadratic form on the independent coordinates, while the stiffness matrix is the Hessian of the potential energy. Substituting a mode gives the generalized eigenvalue problem for small oscillations
A practical calculation identifies the equilibrium, chooses independent coordinates, computes the quadratic kinetic and potential energies, solves for the eigenvalues and then obtains their eigenvectors. One can equivalently diagonalize the real symmetric matrix . This guarantees real and a complete orthogonal basis in mass-weighted coordinates.
For distinct eigenvalues, the fact that and are real symmetric matrices implies
Thus distinct modes are orthogonal in the inner product weighted by the mass matrix. Choosing decouples the motion into , with total energy . A positive-definite matrix gives positive eigenvalues and oscillatory stability. Zero modes can describe rigid translations or rotations without restoring force; a negative eigenvalue gives exponential instability rather than an oscillatory mode.
Symmetry. A symmetry preserving both quadratic energies maps modes into modes of the same frequency. Coordinates adapted to symmetry divide the eigenvalue problem into smaller independent blocks. For two identical subsystems, exchanging them gives symmetric and antisymmetric modes. The degeneracy of normal modes means that independent modes share one frequency. Higher-dimensional group representations of a symmetry can enforce such degeneracies; symmetry does not require every pair of modes to be degenerate, and accidental degeneracies can also occur. Within a degenerate eigenspace, orthogonal linear combinations are equally valid mode shapes.
For two equal masses , each attached to a fixed support by a spring of stiffness and coupled to the other by a spring of stiffness ,
The symmetric mode leaves the coupling spring unstretched and has . The antisymmetric mode stretches it and has . Superposing the two gives beats when their frequencies are close.
Continuous systems. The same idea replaces matrices by differential operators and mode vectors by functions satisfying boundary conditions. For a taut string of length , tension and mass per unit length , the wave equation and fixed endpoints give
Orthogonality of the sine functions allows an arbitrary initial displacement to be decomposed into modes. Changing the endpoints changes the spectrum: boundary conditions are part of the physical mode problem.
A uniform chain of equal masses joined by springs , with spacing , has travelling normal modes with
Their quantization gives phonons; the long-wavelength limit is a sound wave. Rectangular electromagnetic cavity modes satisfy Maxwell's equations and conductor boundary conditions, with in vacuum. An elastic beam instead has a fourth-order spatial equation and flexural dispersion . These examples show how restoring forces and geometry determine the frequency spectrum.
Real systems. Small-amplitude motion is often approximately linear even when the full equations are nonlinear. Large amplitudes produce frequency shifts, mode coupling and transfer of energy between modes. Friction broadens resonances and makes free oscillations decay. A damping matrix proportional to or can retain the undamped mode shapes; general damping need not, and the appropriate eigenfrequencies and modes can be complex. External periodic forcing predominantly excites modes near resonance, with amplitude set by coupling to the forcing and dissipation. Imperfections split ideal degeneracies, while radiation or coupling to a surrounding fluid can remove energy from the chosen subsystem. Normal modes remain useful when linearization, the boundary conditions and the treatment of damping accurately describe the motion being measured.
The following R code implements the given recursion for the Cholesky decomposition. The input is assumed to be a real symmetric matrix that is a positive-definite matrix.
mychol <- function(A) {
  n <- nrow(A)
  if (n == 1L) return(matrix(sqrt(A[1L, 1L]), 1L, 1L))
  j <- 2L:n
  L <- matrix(0, n, n)
  L[1L, 1L] <- sqrt(A[1L, 1L])
  b <- A[j, 1L, drop = FALSE] / L[1L, 1L]
  L[j, 1L] <- b
  S <- A[j, j, drop = FALSE] - tcrossprod(b)
  L[j, j] <- mychol(S)
  L
}
Here tcrossprod(b) is the outer product . The drop = FALSE arguments preserve matrix dimensions, including the final one-by-one subproblem, and the base case also returns a matrix.
To verify correctness, partition . The code sets , and recursively factors . This Schur complement is a positive-definite matrix: for ,
If is the recursive answer, then the returned lower triangular matrix satisfies
The one-dimensional identity starts this mathematical induction proof. Each recursive call reduces the matrix size by one and therefore terminates.
Each state has exactly neighbours: choose one occupied coordinate and one unoccupied coordinate to swap. The normalized proposal distribution is therefore
The swap relation is symmetric and the number of neighbours is constant, so . The discrete uniform distribution used as the prior distribution is also constant on , with mass . Both factors cancel in the Metropolis–Hastings acceptance probability.
Let and . The displayed multivariate normal distribution presupposes that the covariance matrix is a positive-definite matrix, so is a symmetric matrix. Expanding the difference of quadratic forms gives
Consequently
The truncation at zero is essential: a log acceptance ratio can be positive, but the logarithm of an acceptance probability cannot.
For the particular proposed swap, let be the coordinate changing from zero to one and the coordinate changing from one to zero. Then , and the untruncated scalar simplifies further to
Only two rows and four entries of are needed for this evaluation. This is Metropolis sampling on fixed-cardinality subsets.
A critical point requires . Since for every real , the first partial derivative forces . The second then reduces to , so the only critical points are and .
At these points the Hessian matrix is diagonal:
The first is a positive-definite matrix, giving a strict local minimum; the second is an indefinite matrix, giving a saddle point. Their values are and . Hence
The minimum is local: along , is unbounded below as .
Put , and . The chain rule yields
For every nonzero vector , the Cauchy-Schwarz inequality gives
Thus the Hessian is a positive-definite matrix everywhere. The Hessian criterion for convexity implies that is strictly convex on . Its unique global minimum is at , where .
Let , so and . Multiplying the proposed inverse matrix by the Hessian gives
Hence , as required. Its existence also follows from the Hessian being a positive-definite matrix.
Use the optimization Lagrangian
Symmetry gives the gradient equations and . The positive-definite matrices are invertible, so define
The affine constraint gives , hence
For a global certificate, write any other feasible point as . Feasibility implies . Expansion cancels the cross terms and leaves
By positive definiteness this is positive unless . Thus the solution is the unique global minimum, not merely a stationary point. This is a two-block instance of positive quadratic minimization under one affine constraint.
The eigenvector identity gives . Since is a positive-definite matrix, this is a strict local minimum. A global certificate follows by completing the quadratic form:
Positive definiteness makes the first term nonnegative, with equality only at . Thus is the unique global minimum, with value .
Write and put , which is symmetric. Differentiating this quadratic form gives
Unlike , need not be a positive-definite matrix. Its behaviour must be checked before classifying the stationary point.
A perfect elimination ordering of a finite simple graph is a permutation of its vertices such that each set of later graph neighbours
is a clique. Thus is a simplicial vertex in the remaining induced subgraph . Empty and one-vertex sets satisfy the clique condition automatically. The order here is the order of deletion: goes first.
The characterization is powerful: a finite simple graph is a chordal graph if and only if it has a perfect elimination ordering. For one proof outline, the earliest vertex of an induced cycle of length at least four would have two later graph neighbours on that graph cycle that are not adjacent, contradicting the clique condition. Conversely, every nonempty chordal graph has a simplicial vertex, and every induced subgraph of a chordal graph is a chordal graph; repeatedly deleting such a vertex supplies the ordering.[ref]
In the square-plus-diagonal chordal graph above, is a perfect elimination ordering, with later graph neighbourhoods , , , and . Starting instead with fails: its graph neighbours do not form a clique, because is absent. Thus even a chordal graph can have a poor elimination ordering.
For a larger example, join three triangles along shared edges, using
The exact graph neighbourhoods are , , , , and . The ordering has later graph neighbourhoods , , , , and , all cliques; this certifies that the graph is a chordal graph without enumerating its graph cycles. Its maximal cliques , , form a junction tree in that order, with intersections and .
Figure 1.
A perfect elimination ordering removes three overlapping triangles without fill-in; choosing the central vertex first adds three edges
. Details.
To find an ordering, maximum cardinality search starts with all scores zero, repeatedly selects an unselected vertex of largest score, and increases each unselected graph neighbour's score by one. Reverse the selection order to obtain a candidate perfect elimination ordering. For the three-triangle graph, one valid selection sequence is , with scores at selection ; reversing it gives the displayed deletion order. On a chordal graph every tie choice works. On an arbitrary graph, test the resulting later graph neighbourhoods for the clique condition to recognize chordal graphs. Suitable adjacency lists, score buckets and a linear-time verification method give recognition.[ref]
The deletion rule also explains sparse Gaussian elimination. For a symmetric positive-definite matrix whose matrix graph is , eliminating pivot applies the Schur complement update
Only pairs of remaining graph neighbours of can acquire new off-diagonal entries. A perfect elimination ordering already has all those edges, so Cholesky decomposition creates no symbolic fill-in. Positive definiteness ensures nonzero pivots in exact arithmetic. Special numerical cancellation can suppress predicted entries, and floating-point rounding affects their values.[ref] In the three-triangle graph, deleting first instead connects every pair in and adds exactly . The graph was already a chordal graph; the extra fill-in comes from the ordering.
One further reward is optimal graph coloring. Process a perfect elimination ordering backwards and give each vertex the smallest positive color absent from its already colored graph neighbours. Those graph neighbours form a clique, so this greedy algorithm uses at most the clique number colors; any clique of that size requires at least that many. In the three-triangle graph, coloring gives colors , so both the chromatic number and the clique number are three. Every maximal clique also occurs among : take its earliest vertex and use maximality. The same ordering therefore supports graph coloring, maximal clique extraction and sparse computation.
Historically, Donald J. Rose, Robert E. Tarjan and George S. Lueker's 1976 paper connected graph elimination to symmetric sparse matrices and gave a search-based algorithm for finding a perfect elimination ordering when one exists. Its abstract distinguishes a minimal elimination ordering from a minimum one: removing avoidable fill-in does not by itself minimize the total number of added edges.[ref]
Let be a continuously differentiable planar vector field with an isolated equilibrium point , and let the twice continuously differentiable first integral satisfy and . If the Hessian matrix is positive or negative definite, then is a centre equilibrium.
For a positive-definite matrix, sufficiently short rays from have strictly increasing with radial derivative bounded below by a positive constant times distance. Every sufficiently small positive level difference therefore meets each ray exactly once, and the implicit function theorem makes these intersections a simple closed curve. These regular level sets shrink to ; use in the negative-definite case. The vector field is tangent and nonzero on each such compact curve. Its speed is bounded away from zero, so a traversal takes finite time and each curve is a periodic orbit. An arbitrary strict local extremum without these regularity and nondegeneracy conditions does not by itself supply this argument.
Positive definiteness 2026-10-14
The strict positivity of a quadratic form on every nonzero vector. A real symmetric matrix has positive definiteness exactly when its associated quadratic form does, making it a positive-definite matrix. A Hermitian form is positive definite when its value on is real and strictly positive for every nonzero vector.
Think of a positive-definite quadratic form as an energy cost for a displacement: every direction costs something, and zero cost identifies the origin. For example, the real symmetric matrix
is a positive-definite matrix because the two squares can vanish together only at . The mixed term couples the coordinates, but cannot overwhelm their positive contributions: and . The graph is a bowl, and its positive level sets are ellipses with axes along the eigenvectors, rather than along the original coordinates.
Figure 1.
Positive quadratic energy bowl and elliptical level curves
. Details.
The real and complex settings require different symmetry assumptions. For a real symmetric matrix use with ; for a complex Hermitian matrix use with , where is the conjugate transpose. The latter expression is real, so strict positivity is meaningful. A complex quadratic form such as has no such positivity: it vanishes at and takes negative real values at . A Hermitian form uses complex conjugation, which changes this example to .
For a real matrix without a symmetry hypothesis, its quadratic form depends only on its symmetric part of a matrix:
Positive eigenvalues of alone do not establish positive definiteness of this quadratic form. For example, has both eigenvalues equal to , yet . The relevant test is positivity of the symmetric part of a matrix, not the spectrum of an arbitrary matrix.[ref]
Positive definiteness of a Gram matrix Created 2026-10-18 Updated 2026-10-25
For real vectors in a Euclidean inner product space, their Gram matrix satisfies the displayed identity by expanding the squared norm. Thus every Gram matrix is a positive semidefinite matrix, and it is a positive-definite matrix exactly when the vector family is linearly independent. The complex version replaces transposes by conjugate transposes and uses .
On a rectangular grid with zero Dirichlet boundary conditions, the nine-point Poisson equation matrix has diagonal , axial off-diagonal entries , and diagonal-neighbor entries . Its quadratic form is the sum of squared differences over internal links, weighted by or , plus the weighted squares of values linked to the fixed zero boundary. The connected axial grid forces a zero quadratic form to have all entries zero. This proves positive-definite matrix in every ordering. The Jacobi method converges because its nonnegative iteration matrix has row sums at most one, with a strict deficit at boundary-adjacent vertices; a hypothetical unit-modulus eigenvector would propagate its maximum modulus to such a deficit row, which is impossible.
Vary the coupling in the opening example. The eigenvectors and form a fixed orthonormal eigenbasis, with eigenvalues and . Writing a vector as gives
For , both directions cost energy and is a positive-definite matrix. At , the quadratic form is : the entire line spanned by has zero energy, and is a singular positive semidefinite matrix. At , the flat line is instead spanned by . For , the quadratic form is an indefinite quadratic form; one direction lowers the energy without bound as its displacement grows. At , for instance, while .
Figure 1.
Eigenvalues and directional energies across the positivity threshold
. Details.
The geometric transition is precise. For , is an ellipse. At , it consists of the two parallel lines , extending freely in the zero-energy direction. For , it is a hyperbola. The boundary case retains nonnegative energy but loses both the bounded positive level sets and the unique zero-energy vector.
Let be a symmetric positive-definite matrix, , and . Then
is the unique solution of minimizing the quadratic form under the affine optimization constraint . The minimum value is .
The denominator is positive because is a positive-definite matrix. The Lagrange multiplier equations give the displayed candidate and verify the constraint. For a global proof, any feasible perturbation satisfies . Hence
This is positive for every nonzero . The result also handles several independent quadratic blocks by taking to be their block diagonal matrix and concatenating their variables.