Canonical form of a quadric Created 2026-10-25 Updated 2026-10-31
The equation of a quadric surface after orthogonal diagonalization of its symmetric matrix and appropriate translation. The spectral theorem for real symmetric matrices removes mixed quadratic terms, and completing squares removes linear terms in directions with nonzero eigenvalues. Linear terms in zero-eigenvalue directions can remain and generate elliptic paraboloids or hyperbolic paraboloids. The signs, zero coefficients and constant distinguish ordinary surfaces, degenerate conics in plane sections, and empty real loci.
Conic type discriminant Created 2026-10-18 Updated 2026-10-25
For a second-degree equation , the number is the discriminant of a binary quadratic form associated with its quadratic part. For a nonempty, nondegenerate real conic section, a negative value gives an ellipse, zero a parabola, and a positive value a hyperbola. It is invariant under a rotation of orthonormal coordinates.[ref]
A short explanation uses the symmetric matrix
An orthogonal matrix changes this matrix to , whose determinant equals . The spectral theorem for real symmetric matrices then removes the mixed term. Equal-sign, opposite-sign and one-zero eigenvalues give the three types after the remaining linear terms and offsets are considered.
The qualification matters. The equations , and describe a point, a repeated straight line, and two crossing straight lines, respectively. Their quadratic discriminants have the signs expected of ellipse, parabola and hyperbola types, but all three are degenerate conics. Also, has an empty set of real solutions despite its negative quadratic discriminant.
Diffusion on a graph 2026-10-14
The continuous-time diffusion model on a finite undirected graph uses the Graph Laplacian in the ordinary differential equation
Across each edge, the higher value sends an amount proportional to the difference to the lower value. The two contributions cancel in the sum over vertices, giving conservation of mass:
If the entries represent masses, start with nonnegative entries; signed entries can instead describe deviations from a common level. For the three-vertex path graph, the initial vector is an eigenvector with eigenvalue one, so the exact solution is
More generally, an eigenvector with eigenvalue decays by . The spectral theorem for real symmetric matrices supplies an orthonormal basis of these eigenvectors, and the kernel of a graph Laplacian identifies the surviving terms. On a nonempty connected graph,
The limiting value is the original arithmetic mean. On a disconnected graph, each connected component of a graph converges to its own original arithmetic mean. The same matrix therefore measures neighbour disagreement, detects disconnected regions and governs relaxation toward agreement.
For a real positive-definite matrix in finite dimension, write by the spectral theorem for real symmetric matrices. In the coordinates in an orthonormal basis , the positive level set becomes
This is an ellipsoid, with semi-major and semi-minor axes in two dimensions forming an ellipse; each semi-axis has length and direction given by the corresponding eigenvector. In the opening example, the shorter semi-axis is along , while the longer is along . A stiffer direction, meaning a larger eigenvalue, reaches the same energy at a smaller displacement. The ratio of longest to shortest semi-axis is , the square root of the spectral condition number of a positive-definite matrix.[ref]
Strict positivity matters because gives
Hence a fixed positive level set cannot extend arbitrarily far. The Cholesky decomposition gives another view: , so the ellipsoid is the inverse image of a sphere under an invertible linear map. A singular positive semidefinite matrix has a nonzero kernel; adding a kernel vector preserves its quadratic form, so any nonempty positive level set is unbounded. These statements concern finite dimension; the positive definite symmetric operator entry explains why strict positivity alone need not give a uniform lower bound on an infinite-dimensional Hilbert space.
Fantope Created 2026-10-05 Updated 2026-10-06
For an integer , the fantope is the convex hull of rank- orthogonal projection matrices in . Equivalently, it consists of real symmetric matrices with eigenvalues in and matrix trace . To prove the equivalence, apply the spectral theorem for real symmetric matrices and express the eigenvalue vector as a convex combination of the zero-one extreme points of the capped simplex. The sum of the largest eigenvalues is its support function.
Fixed-step gradient descent on a positive-definite quadratic Created 2026-10-18 Updated 2026-10-25
Consider the original two-dimensional example
The Hessian matrix is , a symmetric matrix and positive-definite matrix. Its eigenvectors are the coordinate directions, its eigenvalues are and , and its Euclidean norm condition number is . The unique global minimum is , so the error equals . The linear map , with the identity matrix, gives
For , the two coordinate error multipliers are and . Consequently , , and the second coordinate changes sign at every step while both shrink. The Euclidean norm of the error contracts by each step. The objective gap, which we call the quadratic energy, contracts by its square:
The level sets of are ellipses. Oscillation across their narrow direction is compatible with strictly decreasing energy.
Figure 1.
Original gradient descent iterates on : step size contracts both directions, whereas expands the second
. Details.
For , the coordinate error multipliers become and , giving . The first coordinate still tends to zero, but the second alternates and grows. Direct substitution gives
Thus a larger positive step size can turn a strictly convex function into a divergent iteration. Energy and error are different quantities: coordinate errors carry signed multipliers, while each coordinate's contribution to energy carries the squared multiplier.
Figure 2.
Exact constructed quadratic-energy histories from : step sizes and converge, while diverges
. Details.
For the general quadratic form with linear term
the error obeys the same linear map . The spectral theorem for real symmetric matrices supplies an orthonormal basis of eigenvectors with positive eigenvalues . Writing gives the exact solution and energy identity
Therefore convergence from every initial vector is equivalent to
At , a nonzero error component along a largest-eigenvalue eigenvector flips sign without shrinking. Above that threshold it grows. A particular start can still converge if it has zero components in every unstable direction; the interval is the condition for all starts. If , then and . These bounds follow by summing the squared components in the orthonormal basis.
For a real matrix , let . It is positive semidefinite, and the spectral theorem for real symmetric matrices gives . If , rescaling any longer vector to unit length decreases its image norm, so minimizers lie on the unit sphere. Lagrange multipliers applied to with give . Thus the minimizers are exactly the unit vectors in the least eigenspace.
If , the minimum is zero and the full argmin consists of all with . Indeed, because . Restricting the minimizers to the sphere would omit longer kernel vectors in this case. For a ball constraint , the argmin is always intersected with the ball.
Nearest points to the origin on a positive-definite ellipsoid Created 2026-10-14 Updated 2026-10-25
For a positive-definite symmetric matrix , the ellipsoid has nearest points to the origin exactly at , where ranges over unit vectors in the largest-eigenvalue eigenspace. Indeed, the spectral theorem for real symmetric matrices gives , with equality precisely in that eigenspace. A simple largest eigenvalue gives two opposite nearest points; multiplicity gives a scaled -sphere of nearest points.
The restriction of a positive definite form to each is positive definite. By the spectral theorem for real symmetric matrices, choose an orthogonal matrix such that .
Each , since a basis vector is nonzero. Taking determinants in part (i) gives
because an orthogonal matrix has determinant . Consequently
These determinants are the leading principal minors in Sylvester's criterion.
Work for an arbitrary realization of the sequence, and set . In the Loewner order,
By the spectral theorem for real symmetric matrices, every eigenvalue of is at least . The matrix inverse therefore has eigenvalues at most , and
For , put . Since and , we have . The matrix determinant lemma now gives
Taking logarithms and using a telescoping sum,
This elliptical potential bound holds for every realization and every , without a probabilistic exceptional event. The condition is what ensures .
The unbroken group is the stabilizer subgroup of the vacuum expectation value. For a nonzero vector vacuum expectation value, an orthogonal transformation puts . A special orthogonal transformation fixing it has the block form with . Consequently
The zero vacuum expectation value leaves the entire special orthogonal group unbroken.
For a real symmetric tensor write its vacuum expectation value as a real symmetric matrix . The transformation is . The spectral theorem for real symmetric matrices gives an orthonormal basis in which
Because is equivalent to , an unbroken transformation preserves each eigenspace. The complete unbroken group is therefore
Its identity component is . This symmetric tensor vacuum stabilizer shows why the representation alone does not determine a unique breaking pattern:
For example a rank-one tensor preserves embedded by . Its continuous unbroken group is , but it also allows reversal of the distinguished axis. Restricting to a traceless symmetric tensor imposes and otherwise leaves the same classification.
The command centres the log measurements and performs principal component analysis of their covariance matrix. With cor=F, it does not first standardize the variables to variance one. For a unit principal component loading vector , the score has sample variance . By the spectral theorem for real symmetric matrices, expand in an orthonormal eigenbasis; that variance is a weighted average of the eigenvalues. Its maximum is the largest eigenvalue, reached at the corresponding eigenvector. Repeating subject to orthogonality to previous directions gives the other principal components.
The software uses the divisor- sample covariance matrix for its component standard deviations, whereas var used divisor . Diagonalizing the displayed matrix gives approximately
Taking square roots of the latter gives , agreeing with the output to the rounding of the displayed sample covariance matrix. The normalization changes these numerical standard deviations but leaves the eigenvectors and proportions of explained variance of a principal component unchanged.
The first principal component explains about of the total log-variable variance, the second another , and the last about . Keeping two preserves about . An original scree plot displays the sharp drop after the first component:
Figure 1.
Principal-component variances and cumulative explained variance for the log-tree measurements
. Details.
Consequently the centered cloud is very elongated along one direction: a one-dimensional approximation represents almost all of its squared variation. From the displayed covariance matrix, a unit first eigenvector, with its arbitrary sign chosen positive, is approximately
Its principal component score is therefore . All coefficients have the same sign, so this direction describes overall tree size, with log volume dominating the unstandardized variation. The summary alone supplies proportions, not the loading directions; the displayed sample covariance matrix supplies the latter. This is a geometric approximation, not evidence of an exact deterministic relation or independent original variables.
One further use is principal component analysis on a correlation matrix, obtained with cor=T, which equalizes marginal variances and answers a different scaling-sensitive question. Another is principal component regression: fit a response to selected principal component scores rather than highly correlated original predictors, choosing the number using prediction assessment. The fitted transformation also projects new measurements into the same low-dimensional coordinates, provided the training centering and scaling are retained.
For a real matrix with positive determinant, the polar decomposition of an invertible real matrix gives unique factorizations
where and are the right stretch tensor and left stretch tensor, respectively. Positivity here means positive definiteness, not merely nonnegative entries.
To prove existence, is symmetric and for every nonzero , because is invertible. The spectral theorem for real symmetric matrices supplies an orthogonal matrix and positive eigenvalues such that . Define using the principal square root of a positive semidefinite matrix construction:
Then , so is orthogonal. Also ; an orthogonal matrix has determinant plus or minus one, hence . Set . It is symmetric positive definite, , and .
For uniqueness, any second factorization with the same properties gives . Since commutes with its square, it preserves every eigenspace of . On a -eigenspace its own positive eigenvalues must square to , so it equals times the identity there. Thus , then , and finally is fixed too. This proves both uniqueness and the polar decomposition in continuum mechanics, with the same proper rotation in its left and right forms.
Use the curvature sign convention implicit in part (c): the Jacobi field equation is , so the operator in a positively curved normal direction has positive eigenvalue. With the alternative convention used for the catalog's Jacobi curvature operator, the paper's tensor is , and its operator is . This fixes the sign throughout Q1.
Let . Pair interchange for the Riemann curvature tensor gives
Thus is self-adjoint with respect to the Riemannian metric. The curvature sign does not affect this conclusion. The spectral theorem for real symmetric matrices therefore supplies the real orthonormal eigenbasis used in part (b). Also , so the tangent direction is a zero-eigenvalue direction.
Put . The update is
Under , all three weights are nonnegative and sum to one. With the imposed zero Dirichlet boundary conditions, this is a convex combination including any boundary values. Thus the monotone half-grid diffusion update gives
Differences of two computed solutions obey the same estimate, proving numerical stability in the discrete maximum norm, uniformly in .
There is also an L2 norm proof. The diffusion matrix is symmetric and satisfies
Since , every eigenvalue lies in . Hence the eigenvalues of lie in under the same step restriction, and the spectral theorem for real symmetric matrices gives an L2 norm contraction. These stability estimates are valid for the printed recurrence, although they cannot repair its inconsistency with the printed advection equation.
At a fixed material point, freeze the incremental elastic moduli at their local values and fix a unit propagation direction . For an arbitrary nonzero polarization , the rank-one matrix annihilates the added quadratic minor null Lagrangian, since
The assumed positivity therefore gives
Thus the acoustic tensor is positive-definite; this is strong ellipticity in elasticity. Major symmetry also makes it a real symmetric matrix. By the spectral theorem for real symmetric matrices, it has three real positive eigenvalues and an orthonormal basis of real polarizations . Therefore
Each polarization gives a real plane wave profile through the equation of part (a), in either sign of the propagation speed. Repeated eigenvalues still admit three independent polarizations; the claim is not that the three speeds must be distinct. For an inhomogeneous base deformation these are local, frozen-coefficient wave modes, rather than exact plane waves throughout the entire body.
By the spectral theorem for real symmetric matrices, choose an orthonormal eigenbasis with . If , then
Thus every point of the ellipsoid has distance at least from the origin. Equality holds precisely when
Both coefficients are strictly positive, so . The surface equation then gives . Therefore
Exactly two points attain the minimum. The strict ordering makes the largest-eigenvalue eigenspace one-dimensional; this is the equality case in nearest points to the origin on a positive-definite ellipsoid.
For the polar decomposition of an invertible real matrix, start with . For nonzero , , since makes invertible. The spectral theorem for real symmetric matrices gives an orthonormal basis with and . Define
Then is a positive-definite symmetric matrix, , and
because . Thus is an orthogonal matrix with positive determinant. Set ; it too is a positive-definite symmetric matrix, and . Moreover . This proves
The positive square root is unique: any positive symmetric square root of commutes with , preserves its eigenspaces and has the positive scalar square root on each of them. Hence , then and , are unique. These are the right stretch tensor, rotation and left stretch tensor of the polar decomposition in continuum mechanics.
A standard spectral strain measure is
Take , and , with strictly increasing; the customary stronger condition gives a regular one-to-one parameterization of all positive principal stretches. The zero condition makes a rigid rotation strain free, monotonicity distinguishes extension from contraction and prevents nonunit stretch from being strain free, and the derivative normalization gives the ordinary infinitesimal strain. Indeed, for ,
Under a superposed spatial rotation , and hence remain unchanged, giving material frame indifference. Choosing satisfies all these conditions and gives the Biot strain tensor
The meaning of work-conjugate stress and strain here is that a symmetric material tensor satisfies
for every admissible rate, with both powers measured per reference volume. To keep the nominal-stress index convention explicit, write , so and the power is . Differentiating gives , where is skew. Conservation of angular momentum gives symmetry of , or equivalently of . Therefore
The first term vanishes because a symmetric tensor has zero contraction with a skew tensor. Since , the symmetric Biot stress is
If the nominal stress is instead stored spatial-index first as , the same answer is . The symmetrization is essential: need not itself be symmetric.
Principal component analysis replaces the original coordinates by orthogonal linear combinations, ordered so that the first few retain as much variance as possible. It gives a lower-dimensional summary for visualization or compression and reveals the main directions of variation. A direction of large variance need not be the direction most useful for classification.
Write . For a unit vector , the centered score has variance
Maximizing this Rayleigh quotient with a Lagrange multiplier gives
Thus a maximizing direction must be an eigenvector of the covariance matrix. To identify the maximum, use the spectral theorem for real symmetric matrices to choose an orthonormal basis of eigenvectors , with eigenvalues . Writing gives
Equality is attained at . Consequently the first population principal component is
For each subsequent principal component, maximize the same variance over unit coefficient vectors orthogonal to all the previously chosen ones. Restricting the expansion above to the remaining eigenvectors gives , then , and so on. Thus
The principal components are uncorrelated; they need not be independent unless additional distributional assumptions, such as joint Gaussianity, hold. Their total variance is . Signs of eigenvectors are arbitrary, and a repeated eigenvalue permits any orthonormal basis in its eigenspace. In sample principal component calculations, replace by the sample mean and by the sample covariance matrix.
Two real symmetric bilinear forms are congruent if an invertible linear map takes one to the other; in matrices, for some invertible . The spectral theorem for real symmetric matrices gives an orthogonal eigenbasis. Rescaling each basis vector with nonzero eigenvalue then reduces any such form to
Sylvester's law of inertia asserts that is independent of the congruence reduction. To prove it, is the greatest dimension of a subspace on which the form is positive definite: the positive coordinate subspace attains it, whereas any subspace of dimension greater than meets the nonpositive coordinate subspace of dimension and therefore cannot be positive definite. Applying the same argument to the negative of the form determines . Then is determined too.
The rank of a quadratic form is , and its signature of a quadratic form is under the signed-difference convention. They determine and hence the congruence class. Counting all pairs with gives
For , exactly two classes have every level set bounded: the positive-definite and negative-definite classes. Their nonempty nonzero levels are ellipsoids, and their zero level is the origin. A degenerate form has an entire null line in its zero level. An indefinite nondegenerate form also has a nonzero isotropic vector, for example the sum of one positive and one negative normalized basis vector, whose scalar multiples make the zero level unbounded.
For the displayed three-dimensional form,
Its leading principal minors are , all positive. Sylvester's criterion makes it positive definite, so the surface is a bounded ellipsoid. Directly, its quadratic expression is
which also proves positivity and boundedness of the unit level.