Given a positive-definite matrix , the preconditioned proximal point map is
It is firmly nonexpansive in the weighted inner product whenever is monotone.
Let be a real symmetric positive-definite matrix, and let be a unit eigenvector with eigenvalue . The rank-one matrix update changes only the eigenvalue along , to . Symmetry makes the orthogonal complement invariant, and there because .
In detail, write with . Then
Consequently is a positive-definite matrix for , singular for , and has exactly one negative eigenvalue for . In dimension at least two the last case is indefinite. In dimension one it is negative definite instead: there is no nonzero orthogonal-complement direction. The distinction matters when classifying a stationary point of a quadratic form.
Reaction-diffusion finite element matrix Created 2026-10-05 Updated 2026-10-31
For with homogeneous Dirichlet boundary conditions, the conforming piecewise-linear hat functions on a uniform grid give a diffusion stiffness matrix and a mass matrix . Their nonzero entries are , , , and , with symmetric counterparts. The sum is a positive-definite matrix because its coefficient quadratic form is . For forcing , the load at is .
Ridge regression Created 2026-09-24 Updated 2026-10-14
Ridge regression fits a linear regression model while penalizing the size of its slope regression coefficients. For a fixed design matrix containing the slope predictors, observed responses , and an unpenalized regression intercept , the objective is
Here is the all-ones vector, and is the squared Euclidean norm of the slopes alone. The first term is the residual sum of squares; the second implements regularization. No random-error assumption is needed to define this fit. The convention is a summed squared-error loss: writing the objective as gives the same fit when .[ref]
For an exact example, reuse the constructed pairs from linear regression. Their sample means are and , and the centered cross-products are and . Thus
The ordinary least squares line has slope and residual sum of squares . At , ridge regression has slope , regression intercept , and residual sum of squares ; at these become , , and . Every line passes through : the penalty reduces the slope while retaining the response sample mean.
Figure 1.
Exact synthetic ridge fits flatten around the sample mean as training RSS increases
. Details.
The computational benefit is visible after predictor centering. Write for the design matrix with each column's sample mean subtracted, and . The unpenalized intercept in ridge regression gives , and the closed-form ridge regression estimator solves
For any nonzero vector and , . This positive-definite matrix is therefore invertible even when lacks full column rank, including repeated columns or . The unique penalized slopes resolve the ambiguity of rank-deficient ordinary least squares; they do not supply evidence about slope directions absent from the data. This makes ridge regression useful for multicollinearity.[ref]
Predictor centering and scaling serve different purposes. Centering handles the free regression intercept. Scaling determines what counts as a large slope: replacing by changes its coefficient to for the same predictions, changing its contribution to an unweighted penalty. A common convention forms standard scores using each nonconstant predictor's sample standard deviation , then penalizes slopes in those coordinates. Since , this is the weighted penalty in the original units. Constant columns have and must be removed before this scaling. Scaling is a modelling choice; equal penalties in original units and in standardized units define different fits.[ref]
The singular value decomposition explains the shrinkage. If is the compact decomposition using the positive singular values , with columns of , then
The principal-component shrinkage by ridge regression factors are between and : directions with small singular values are damped most. As , the fitted values approach ; the vanishing-penalty ridge limit recovers the ordinary least squares fitted vector as , even if the slope estimates at zero penalty are nonunique. The covariance and bias of a ridge regression estimator describes the resulting bias-variance tradeoff. A penalty can reduce variance of an estimator while introducing bias of an estimator; the unbounded directional risk of fixed ridge shrinkage rules out a uniform improvement for a fixed positive penalty over all possible signals.[ref]
For a second exact construction, choose a centered orthonormal set of three vectors,
and set and . The squared singular values are and . At , the fitted coordinates along are , retaining and of their ordinary least squares values . At they become , retaining and . The unfittable component contributes to every residual sum of squares, giving total values , , and at penalties . These are constructed fits, not measured prediction results.
Figure 2.
Exact synthetic ridge shrinkage retains the strong singular direction longer than the weak one
. Details.
The penalty is a hyperparameter, so fitting slopes at a fixed value and selecting that value are separate tasks. Use a validation set or K-fold cross-validation to compare candidate penalties by held-out squared-error loss. In each split, compute predictor sample means and scales from that split's training data, apply the same transformation to its validation set, and refit the slopes; using held-out information in preprocessing introduces data leakage. Minimum training residual sum of squares cannot select useful shrinkage: ordinary least squares already attains the smallest possible value.[ref] After model selection, refit on all training data with the selected penalty. A separate test set or nested cross-validation assesses the entire selection procedure; a low selected validation score alone is no performance guarantee.[ref]
Let be a real symmetric matrix with a positive-definite matrix. Its quadratic form satisfies the completing the square identity
For each fixed vector , the unique minimizing vector is , so the minimized value is . Also, is a positive-definite matrix exactly when is a positive-definite matrix, under the stated assumption on .[ref]
An original scalar example is
Here , , , and the Schur complement is . Holding would give , but letting relax to reduces the quadratic form to . At the respective values are and . Eliminating a variable therefore changes the effective cost of the retained variable.
Figure 1.
A Schur complement measures the quadratic form left after another variable relaxes
. Original contours of and the two resulting costs. The minimizing line picks the least value at each fixed ; the plotted profiles are exact model values, not experimental measurements. Details.
Second-derivative test Created 2026-09-28 Updated 2026-10-14
Let have continuous second partial derivatives near an interior critical point of an open subset of , with . The Hessian matrix gives the following sufficient conditions:
A positive semidefinite or negative semidefinite Hessian matrix with a zero eigenvalue does not settle the classification. The higher-order test for separated extrema gives two quartic examples with exactly the same zero Hessian. These conditions apply to an interior critical point; a boundary optimum or a constrained optimization problem requires attention to the allowed directions. [ref]
The proof outline is the Taylor expansion
For a positive-definite matrix, the smallest eigenvalue supplies a positive bound proportional to , which dominates the remainder for small enough . Negate the function for the local maximum case. For opposite-sign eigenvalues, choose the two corresponding eigenvectors: the leading terms have opposite signs along their lines.
There are also necessary conditions. At an interior local minimum, the Hessian matrix is positive semidefinite; at an interior local maximum, it is negative semidefinite. Restriction to each straight line reduces this to the one-variable second derivative condition. Since the Laplacian is the trace of the Hessian, it is nonnegative at such a local minimum and nonpositive at such a local maximum. The sign of the Laplacian alone is insufficient: has negative Laplacian but a saddle point of a scalar function at the origin.
Stiffness matrix 2026-10-05
The stiffness matrix represents a variational bilinear form in a finite element basis. A symmetric coercive bilinear form gives a positive-definite matrix. Local support of the piecewise-linear hat functions produces a sparse matrix, allowing efficient numerical solution.
Strict ellipticity 2026-10-25
For a real symmetric matrix field , strict ellipticity means that is a positive-definite matrix at every point. Continuity makes its smallest eigenvalue positive uniformly on each compact subset of the domain. A uniform positive lower bound on the entire domain is the stronger uniform ellipticity condition. Some conventions include a finite uniform upper bound in the latter term, while others state coefficient boundedness separately.
A real symmetric matrix whose quadratic form is positive at every nonzero vector in the nonnegative orthant. By compactness of the nonnegative unit sphere, this is equivalent to a positive uniform lower bound on that orthant. It need not be a positive-definite matrix.
Strictly diagonally dominant matrix Created 2026-09-24 Updated 2026-10-03
A matrix is strictly diagonally dominant when every diagonal-dominance inequality is strict. A real symmetric strictly diagonally dominant matrix with positive diagonal is positive definite by the Gershgorin circle theorem.
Sylvester's criterion Created 2026-09-24 Updated 2026-10-18
A Hermitian matrix is a positive-definite matrix exactly when its leading principal minors
are all positive. The leading principal minor uses the first rows and the first columns in the same ordering. For the two-by-two Cholesky decomposition example, and , so the criterion proves positive definiteness without calculating eigenvalues.
The successive pivot elements before taking square roots are , with . Here they are and . In general, a leading triangular matrix factor has determinant equal to the product of its diagonal entries, so
Conversely, positive leading principal minors make each successive Schur complement pivot element positive, allowing the Cholesky decomposition to be constructed. The identity then proves positive definiteness; for complex matrices, replace the transposes by conjugate transposes. This gives a short inductive proof of the criterion.
For , the first minor is positive but . The second Cholesky radicand would be , and directly gives . Thus positive diagonal entries are insufficient. Replacing “positive” by “nonnegative” in just the leading-minor test is also insufficient for positive semidefiniteness: has leading minors , but its quadratic form is negative on .
Symmetry and positivity of a rigid-body resistance matrix Created 2026-10-05 Updated 2026-10-06
Here are forces and torques exerted by the body on the fluid, or the external force and torque needed to maintain its motion. The Lorentz reciprocal theorem for Stokes flow makes the six-dimensional hydrodynamic resistance matrix symmetric. The power identity makes it a positive-definite matrix for a body moving in otherwise stationary unbounded fluid.
For a real symmetric matrix , completing the square gives, when ,
Thus is a positive-definite matrix exactly when and . For necessity, test first, then ; for sufficiency, the displayed two positive squares give the result. These are the first two leading principal minors in Sylvester's criterion. A positive determinant alone is insufficient: has determinant but is a negative-definite matrix.
The eigenvalues provide an equivalent test under the same real-symmetric hypothesis:
The spectral theorem for real symmetric matrices supplies coordinates in an orthonormal basis in which . More generally, a complex Hermitian matrix has an orthonormal eigenbasis and , so it is a Hermitian positive-definite matrix exactly when every eigenvalue is positive. This is a short proof outline: test the eigenvectors for necessity, and sum the positive squared absolute values for sufficiency.[ref]
For a real positive semidefinite matrix, the condition is instead for all vectors, equivalent here to , , and . If , the same completing the square proves this; if , nonnegativity forces and leaves with . Merely replacing the strict inequalities on the leading principal minors by nonstrict ones fails: has both leading principal minors zero yet gives . An indefinite quadratic form takes both positive and negative values; its real symmetric matrix has eigenvalues of both signs.
Let be a real positive-definite matrix and minimize the displayed quadratic function over all of . Its gradient is , so its only stationary point solves the linear system . The matrix is an invertible matrix, making this solution exist and be unique. Completing the square around that solution proves the stronger global statement:
The quadratic function is strictly convex, and its level sets above the minimum are translated ellipsoids. Positivity therefore turns solving a linear system into locating the bottom of a bowl.[ref]
For the opening matrix , take and . Then , , and . Every displacement raises the value by ; along the unit eigenvectors and the increases are respectively and for displacement or .
For a singular positive semidefinite matrix, a solution of is still a global minimizer, but adding any kernel vector gives another. If is outside the image of a linear map defined by , some kernel vector has , and is unbounded below. For an indefinite quadratic form, a negative eigenvalue gives a direction along which the quadratic term tends to regardless of . Thus a stationary point alone does not establish a minimum. The same energy-difference identity extends to the quadratic variational principle for a symmetric positive operator, with additional existence hypotheses in infinite dimension.
Universal kriging Created 2026-10-05 Updated 2026-10-18
Universal kriging allows an unknown regression drift:
The design matrix has full column rank, its entries and are known, and the regression coefficients are unknown. For example, rows and target row allow a linear spatial trend. Requiring to have zero bias for every gives . With known positive-definite matrix observation covariance matrix , the minimizing weights solve
where is a vector of Lagrange multipliers. Equivalently, the generalized least squares estimate and prediction are
The first term is the estimated trend alone; the second predicts the correlated regression residuals. With , the error variance is
The last, nonnegative term accounts for estimating the specified drift coefficients. Merely inserting a fitted drift into simple kriging and keeping its known-mean error variance would omit this term. For a Gaussian random field, the same expressions arise by integrating over drift coefficients in a diffuse prior distribution limit; this is an additional inferential interpretation, not an assumption required by the linear optimization.[ref]