Singular matrix Created 2026-09-29 Updated 2026-10-18
An square matrix over a field, with , is singular when it has no matrix inverse. Geometrically, its linear map loses at least one input direction: some nonzero vector satisfies , so . Over the real numbers, the following family makes that loss visible:
Figure 1.
Compression by becomes collapse only at
. The square retains two-dimensional extent for and , but maps to a segment at . The orange points come from three inputs with the same first coordinate and different second coordinates. They coincide only at . This is exact illustrative geometry, not measured data. Details.
For this diagonal matrix, . Whenever , the input can be recovered as and the kernel is . At , the kernel becomes : the entire second coordinate is forgotten. Consequently has no solution if , and has the solution straight line , , if . A singular matrix therefore need not make a particular linear system inconsistent; it prevents unique recovery when that linear system is consistent.
For an square matrix, all these tests describe the same failure:
Here is the field of scalars. Equivalently, the columns are linearly dependent, the linear map is neither injective nor surjective, and some outputs cannot be reached. See the invertible matrix equivalences and Strang's MIT 18.06SC lecture summary, Multiplication and inverse matrices, p. 2. Over an infinite field, every consistent linear system for a singular matrix has infinitely many solutions; over a finite field with elements and nullity , it has exactly solutions. This follows by adding each kernel vector to one solution.
The square hypothesis is essential. For an matrix, injectivity means matrix rank (full column rank), whereas surjectivity means matrix rank (full row rank). A rectangular matrix can satisfy one condition without the other; its kernel and image of a linear map give the useful tests without calling it a singular matrix.
Exact singularity also differs from sensitivity. For , is an invertible matrix, but its smallest singular value is and its condition number in Euclidean norm is . A change changes the recovered input by : with and , an output change of causes an input change of . These are exact toy values, not measurements. The condition number quantifies this sensitivity before a direction is lost; see Steve Marschner, Condition numbers, §2. A small determinant alone is not a reliable sensitivity test: has determinant yet condition number one for every nonzero real , since both singular values shrink equally.
Singular value Created 2026-09-24 Updated 2026-10-14
The singular values of a matrix measure stretching of Euclidean norm. They are the nonnegative square roots of the eigenvalues of , counting the diagonal slots of the singular value decomposition; when , has additional zero eigenvalues. Nonnegativity follows from , so is a positive semidefinite matrix. For the preceding matrix,
Both have eigenvalues , giving singular values . In particular,
Here the operator norm uses Euclidean norm: no unit vector stretches more than fivefold. Zero singular values identify lost directions; the number of positive singular values equals the matrix rank. This summarizes both amplification and information loss with nonnegative numbers.[ref]
Small positive singular values also explain sensitivity in an inverse problem. For a square invertible matrix, the matrix inverse sends to : a weak forward response becomes strong inverse amplification. The condition number for Euclidean norm is , equal to in our example. To see a larger effect, keep the same right singular vectors but change the second singular value to :
The output perturbation has Euclidean norm , but the recovered input changes by . Its hundredfold amplification follows from the direction of the perturbation, not just its size. The condition number is now ; it measures the disparity between the strongest and weakest responses.[ref]
Singular value decomposition Created 2026-09-24 Updated 2026-10-14
The singular value decomposition separates any matrix into input directions, stretching factors, and output directions. Every complex matrix admits
Here are unitary matrices, is the conjugate transpose, and is a rectangular diagonal matrix. Its diagonal entries are the singular values, ordered . We use the conventional letters: contains the right singular vectors , while contains the left singular vectors . Writing instead merely swaps these two matrix names; it requires swapping their roles consistently. For real matrices, choose orthogonal matrices and replace the conjugate transpose with the transpose.[ref]
Reading from right to left, expresses the input in an orthonormal basis, stretches or annihilates those coordinates, and assembles the output in another orthonormal basis. Unlike matrix similarity, the input and output bases can differ, and even have different sizes. A matrix has full factors of sizes , , and . If its matrix rank is , one can retain only the active columns, giving sizes , , and for ; the full additionally describes an unused output direction.
For a fully computed nonsymmetric example, take
Multiplication gives . The right singular vectors are and ; their images are and . Thus, parametrizing the unit circle by gives . Its image is the ellipse . The two singular values are its semiaxis lengths, and the left singular vectors point along its axes. The singular value decomposition finds precisely the perpendicular input directions whose images stay perpendicular.
Figure 1.
The unit circle becomes an ellipse: and
. Details.
For compression, write the matrix as a sum of outer products and retain the largest terms:
where is the matrix rank. Among all matrices of matrix rank at most , minimizes the Frobenius norm error; this is the Eckart-Young-Mirsky theorem. The operator norm error is for . These statements concern specified norms, rather than guaranteeing that discarded details are visually or scientifically unimportant.[ref]
Consider an brightness matrix , with
and , . The broad bright patch and alternating checkerboard have orthogonal row and column directions: . Their singular values are and . This low-rank approximation keeps the first outer product, giving , with Frobenius norm error and relative error . For example, becomes , and becomes : every entry changes by in magnitude. The discarded pattern is small but entirely lost.
Figure 2.
An matrix, its rank-one approximation, and the discarded checkerboard
. Details.
For this illustrative image compression, storing one normalized left singular vector, one normalized right singular vector, and one singular value requires scalars instead of . This counts scalars at equal precision, before storage overhead. In general, scalars beat only for sufficiently small , and small error requires a small discarded sum of squared singular values. The usefulness comes from measuring the tradeoff before throwing information away.[ref]
For equally sized matrices, corresponding ordered singular values differ by at most the spectral norm of the perturbation. Indeed, let be a best approximation of matrix rank at most . The Eckart-Young-Mirsky theorem and the triangle inequality give . Interchanging proves the bound.
Every real square matrix decomposes as , where is its symmetric part and is a skew-symmetric matrix. For a real column vector , equals its transpose , hence vanishes. Thus a real quadratic form depends only on .
sl2 matrix commutator example Created 2026-10-14 Updated 2026-10-20
Over a field , the trace-zero matrices form the special linear Lie algebra . The matrix trace of a commutator is zero, so this is a Lie subalgebra of the general linear Lie algebra. A basis is
In fact , uniquely. The individual products are
Subtracting in the stated order gives
For characteristic different from two, this is the standard sl2 triple; see Etingof, Section 11.4. The products remain valid in characteristic two, but there is central and , so the familiar characteristic zero structure changes.
The following table gives all nine basis brackets. Each entry is ; the diagonal vanishes by alternation, and exchanging row and column reverses the sign.
Bilinearity now computes any commutator, for example
The three structure constants of a Lie algebra relations encode all of this multiplication. They also show why the sl2 triple is useful in Lie algebra representations: the actions of and move between eigenvalues of the action of in steps of two.
For a nonzero matrix , the operator norm induced by the Euclidean norm satisfies , where is its smallest positive singular value. The singular value decomposition makes the danger visible: a small nonzero stretch becomes a large amplification of errors when inverted.
For instance, when ,
A data perturbation changes the reconstructed input by . At , however, the pseudoinverse is : exactly zero and merely small are different cases. Thus the pseudoinverse need not be continuous across a change of matrix rank. With uncertain data, truncated singular value decomposition or Tikhonov regularization can trade exact inversion of weak directions for stability; the cutoff or penalty adds a modelling choice.
Let be an -by- matrix over a principal ideal domain . Choose Smith normal form with exactly nonzero diagonal entries. Since and are invertible matrices, is equivalent to . The integral domain property forces the first coordinates of to vanish, so are a basis of a module for the kernel. These vectors form part of a basis of a module of , which is stronger than merely finding a nonzero vector in the kernel over the fraction field.
A solution of a linear system is a vector whose image under the coefficient matrix is . Its solution set can be empty or have one or many elements; an invertible matrix gives the unique solution .
Spatial locality 2026-10-13
Spatial locality is the tendency to access nearby locations in computer memory within a short interval. A sequential scan of a contiguous array has spatial locality even when each element is read only once. A memory cache can exploit spatial locality by fetching a whole cache line on a cache miss: later reads of neighbouring elements become cache hits. Proximity is in the address layout, so visually adjacent entries in a table need not be adjacent bytes.
Consider a array of 32-bit integers, each occupying four eight-bit bytes, stored contiguously in row-major order. Use toy physical addresses starting at zero, aligned to a 16-byte cache line boundary. For row and column , with , the address and cache block number are
Here is the floor function. Each row occupies exactly one cache line: row zero begins at addresses , row one at , and so on. Row-major order describes this storage layout; traversal can follow rows or columns without moving the elements.
Figure 1.
Two traversal paths through the same row-major array, coloured by physical cache line
. Details.
Read all sixteen elements and compute their integer sum, keeping the accumulator outside the modelled memory cache. Only the sixteen array reads count as memory references. The toy fully associative cache starts empty, holds exactly one 16-byte cache line, fetches the requested cache block on every cache miss, and uses LRU replacement. No cache block is fetched ahead of a request, and no writeback costs are counted because the modelled accesses are reads.
Figure 2.
All sixteen memory references and their cache hits or cache misses with capacity one cache line
. Details.
Every element is read once in both traversals. The row traversal exploits spatial locality between distinct elements and temporal locality of their shared cache block. The column traversal returns to each cache block after three other distinct cache blocks, too late for the one-line memory cache. Increase the fully associative cache to four cache lines and both traversals give four compulsory misses and twelve cache hits: no loaded cache block needs eviction. The difference therefore depends on capacity as well as access order and layout.
This makes spatial locality useful and beautiful: the same logical operation on the same elements can use a fetched cache line much more fully simply by changing traversal order. The toy counts do not predict a universal speed ratio on real hardware. Actual cache line sizes, capacities, placement rules, fetching ahead of requests and overlapping work affect runtime; measure a concrete implementation with statistical program profiling. Ulrich Drepper's November 2007 authored paper explains cache line transfers and gives array and matrix access examples connecting layout, temporal locality and spatial locality. Its hardware measurements are historical examples, rather than specifications for every present-day CPU. [ref]
// Destination: computer-science.bigb
Spectral abscissa Created 2026-10-06 Updated 2026-10-14
The spectral abscissa is the largest real part of a matrix's eigenvalues. It describes asymptotic exponential rates of its matrix exponential, but a non-normal matrix can also have transient amplification. It is generally distinct from the Euclidean logarithmic norm, which gives an immediate Euclidean energy-growth bound.
Spectral graph theory 2026-10-14
Spectral graph theory studies graphs through eigenvalues and eigenvectors of associated matrices, including the adjacency matrix and Laplacian matrix. A graph eigenvalue usually refers to the adjacency-matrix spectrum unless another matrix is specified.
Spectral matrix functional calculus Created 2026-10-06 Updated 2026-10-14
For a Hermitian matrix with unitary diagonalization , define for a function on its finite spectrum. This acts on eigenvalues, unlike an entrywise matrix function . For example, the spectral square of a matrix is its ordinary matrix product with itself, whereas its entrywise square is a Hadamard power.
For a finite-dimensional Hermitian matrix , its spectral projection is the orthogonal projection onto the eigenspace for . In an orthonormal eigenbasis, the displayed sum is over every basis vector with that eigenvalue. The projection is independent of the choice of basis within a repeated eigenspace. For distinct eigenvalues ,
This is the spectral decomposition grouped by distinct eigenvalues: decompose a vector into orthogonal pieces, then scale each piece. For the matrix ,
Thus and : the two pieces add back to . Squaring the matrix simply squares each scalar, , and similarly the matrix exponential is . Spectral projections of a self-adjoint matrix turn repeated matrix calculations into scalar calculations on fixed vector subspaces.
In the ordered angular momentum eigenstate basis , with positive raising coefficients,
To derive them, restricts to its two adjacent superdiagonal entries. Write these real entries as . Since , the relation reads , forcing . Adding and subtracting the ladder operators gives the displayed matrices. Direct multiplication verifies the angular momentum commutation relations and .
Let be the interpolating cardinal basis and set . Linearity gives , and this Gram matrix is a positive semidefinite matrix. Its null space consists precisely of vectors , by the null-space statement for the second derivative roughness penalty. Thus its rank is , including the zero matrix when .
A pendulum bob and a horizontally moving support of equal mass , with support spring spring constant , have the quadratic potential energy . With , , the normal mode eigenvectors can be normalized to , where . The lower mode is in phase and the upper mode in opposite phase. The positive eigenvalues of the symmetric stiffness-per-mass matrix give the displayed squared angular frequencies.
Square matrix Created 2026-10-06 Updated 2026-10-14
Square-root splitting of a defective double eigenvalue Created 2026-10-06 Updated 2026-10-31
The model matrix has a defective double eigenvalue when . Its characteristic polynomial is , giving the displayed roots. For fixed nonzero the small root is and the other is . These expansions cease to be ordered at , the distinguished limit in which both roots split on a square-root scale. This is the generic leading behavior when a perturbation closes a two-dimensional Jordan block through a nonzero lower-left entry; it need not occur for a perturbation that leaves that entry zero.
Square-zero criterion for a two-by-two matrix Created 2026-10-14 Updated 2026-10-18
For a real or complex two-by-two matrix , the Cayley-Hamilton theorem reads . Hence exactly when . Conversely, if for any positive integer , every eigenvalue is zero and the same identity gives . Thus a nonzero nilpotent matrix of this size has nilpotency index two.