Consider the linear map represented by the rectangular matrix
To compute its kernel, solve the homogeneous linear system , . Taking gives , , so
Thus represents a null direction of a linear map: decreasing the first input by two, increasing the second by one, and decreasing the third by one changes neither output. Solving the homogeneous linear system is the concrete computation behind a kernel; the column space instead decides which outputs are attainable.[ref]
Now prescribe the nonzero output . The linear system becomes , . Again take :
Direct substitution gives , and . Conversely, the two linear equations force exactly this form, so no solutions have been omitted. This fiber is an affine subspace of dimension one in the three-dimensional input vector space. It is parallel to the kernel, but does not pass through the origin. For instance, and both give , while their difference gives zero. Adding and gives output , which is another way to see that this nonzero-output fiber is not a vector subspace.
Figure 1.
Three-dimensional inputs along one null direction give the same two-dimensional output
. The blue straight line is the kernel in the actual three-dimensional input vector space. The orange solution straight line is its translation by . Three marked inputs map to the single orange output in the two-dimensional output vector space; the blue kernel maps to zero. Finite plotted segments represent infinite straight lines. Details.
The first and third columns of are and , a basis of the output vector space. Hence has matrix rank two and reaches every output. The rank-nullity theorem predicts nullity before we solve any linear system. It provides a useful completeness check: one nonzero kernel vector already forms a basis here, so a second independent null direction of a linear map would signal a calculation error. In general, matrix rank for an matrix leaves independent kernel directions, rather than .[ref]
Row and column spaces 2026-10-14
The row space of a matrix is the span of its rows, and its column space is the span of its columns. Both have dimension equal to the matrix rank, though they lie in different ambient coordinate spaces for a rectangular matrix.
A two-way analysis of variance with the full interaction and one observation in each observed factor cell has one independently varying fitted cell mean per observation. A cell-indicator design matrix has full row matrix rank, even when some combinations are missing, so the model is a saturated statistical model. Its residual sum of squares is zero and its residual degrees of freedom are zero. Missing combinations make some coefficients nonidentifiable; they do not restore a pure-error estimate. Standard errors and an ordinary residual-based F-test for interactions therefore cannot be recovered merely by fitting this larger model.
Separability of a tensor 2026-10-14
In a two-factor tensor product over a field, a pure tensor is also called a separable or decomposable tensor: it can be expressed as one product . Every tensor is a finite sum of pure tensors, but a sum need not itself be a pure tensor.[ref]
For finite-dimensional vector spaces, the tensor-product coefficient matrix gives a decisive test: a nonzero tensor is a pure tensor exactly when its matrix rank is one. Indeed, every column of is a scalar multiple of . Conversely, if all columns of a nonzero matrix are multiples of one nonzero column , collect their multipliers in to obtain . The zero tensor is also a pure tensor, for example , but its matrix rank is zero.
In , the tensor
is nonseparable: its matrix rank is two and its determinant is one, whereas . Directly, trying requires and . The first two equations force all four scalars nonzero, contradicting the others. In contrast, products sharing a factor do combine: . Thus being written as two summands alone does not establish nonseparability.
Simon's algorithm Created 2026-09-28 Updated 2026-10-25
Simon's algorithm prepares hidden-subgroup coset states, applies the quantum Fourier transform over , and samples vectors satisfying over . Repeated samples and Gaussian elimination recover with oracle queries and polynomial computation.
To solve Simon's problem, prepare a uniform quantum superposition, evaluate the function coherently into a second quantum register, and perform Simon Fourier sampling on the first. Each run produces a uniform binary string with over the two-element field. Once the observed rows have matrix rank , Gaussian elimination recovers as the unique nonzero element of their kernel. The random spanning of a binary vector space bounds the required number of runs.
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.
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.
Subadditivity of matrix rank Created 2026-10-05 Updated 2026-10-06
The image of the linear map is contained in the sum of the images of and . Since the dimension of a vector space of this sum is at most the sum of their dimensions, matrix rank is subadditive. Iteration shows that a sum of matrices of matrix rank at most one has matrix rank at most , over any field.
System of linear equations Created 2026-10-03 Updated 2026-10-18
A system of linear equations imposes several linear equations on the same unknowns. In the compact form , the matrix contains their coefficients, the vector contains the unknowns, and the vector contains the required outputs. Over the real numbers, the following examples exhibit the three possible outcomes: one solution, infinitely many solutions, or no solution.
For and , adding the two linear equations gives , hence and . Each linear equation describes a line in the plane; the two lines meet only at . Substitution checks both requirements: and . The two measurements together determine both unknowns.
Keeping only leaves a whole line of solutions:
For instance, gives . The direction belongs to the kernel of the linear map : its two contributions cancel. Moving in that direction changes the unknowns without changing their measured sum. The solution line is an affine space, translated away from the origin.
For and , the second linear equation instead demands . The parallel lines never meet. In the augmented matrix, subtracting twice the first row from the second is an elementary row operation that exposes the contradiction:
The last row says . A zero row of coefficients is harmless only when its appended entry is also zero.
Figure 1.
Three linear systems: a unique intersection, a solution line, and incompatible parallel lines
. Details.
The column viewpoint unifies these pictures. If are the columns of , then : a linear combination of those columns. A linear system is consistent precisely when lies in the column space, the image of a linear map represented by . Once one solution is known, every solution is with , since . Conversely, subtracting any two solutions gives an element of the kernel. Thus the kernel measures freedom, while the image of a linear map decides existence. A consistent linear system has a unique solution exactly when its kernel is .[ref]
Counting linear equations alone does not tell us how much information is present. If the second requirement were , it would repeat , so the two linear equations would still leave the same solution line. The matrix rank counts independent requirements. For a consistent linear system with unknowns and matrix rank , the rank-nullity theorem gives as the dimension of the kernel. This is the number of independent directions in which a solution can move. In the single-measurement example, one measured combination leaves one direction of freedom; in the sum-and-difference example, neither unknown can change without changing an output.
Tangent plane Created 2026-10-14 Updated 2026-10-31
For an embedded regular surface and , the affine tangent plane is
It is a set of points through , whereas the tangent space is a vector space of displacements with zero vector. Some texts also call that two-dimensional tangent space the tangent plane; here the translation by distinguishes the two uses. For a regular parametric surface with ,
where the partial derivatives are evaluated at . Regularity means that these tangent vectors are linearly independent, equivalently . Their cross product is a normal vector. [ref]
For an implicit regular surface , require a smooth function with . Then
Differentiating proves that every surface velocity lies in the displayed kernel of a linear map; the implicit function theorem gives a local graph with two independent coordinates, proving equality. The gradient is the normal vector with respect to the ambient dot product. [ref]
For the sphere , , and the affine tangent plane has equation . At the unit sphere's north pole , compare the plane with the displacement tangent space . The regular parametric surface , for , gives and , confirming the same answer.
This analytical illustration shows a unit sphere and a vertical cross-section. The smooth curves and give the two displayed tangent vectors at . The straight point for any nonzero is outside the sphere when , since . A tangent plane therefore captures first-order motion, not an exact patch of the regular surface.
The same idea makes local approximation useful. For the graph of a function with a smooth function, the affine tangent plane is . [ref] With continuous second partial derivatives, the vertical error is in Big O notation. On the unit sphere near its north pole, : the tangent plane loses quadratic bending while preserving all first-order velocities.
A failed regularity test needs interpretation. Replacing the sphere equation by makes everywhere on the same perfectly regular sphere, so this defining smooth function cannot recover its tangent plane. Similarly, the usual spherical parametric surface loses matrix rank at the poles, while the graph parametrization above remains regular there. A vanishing gradient or degenerate parametrization invalidates that calculation; it alone does not prove that the underlying geometry has no tangent plane.
Trivial kernel Created 2026-09-28 Updated 2026-10-14
A linear map has a trivial kernel when : the zero vector is the only input producing the zero output. The kernel is a singleton set, not the empty set, because every linear map sends zero to zero. Equivalently, its nullity is zero and is injective. This holds even without a finite-dimensional hypothesis; see Linear Algebra Done Right by Sheldon Axler (4th edition).
The reason this zero-output test controls all outputs is linearity:
With a trivial kernel, equal outputs force equal inputs. Therefore every equation has at most one solution. Existence is a separate question: must belong to the image of a linear map. In the fiber description under nullity, is just the single point .
For example, the linear map , , has trivial kernel and full column rank:
The output comes from exactly , while is unreachable. Conversely, , , is surjective and has full row rank, but its kernel is : every output comes from the solution straight line .
For an matrix, a trivial kernel is equivalent to matrix rank and linear independence of its columns. It can therefore occur only if . If , the rank-nullity theorem also forces surjectivity, giving an invertible matrix; if , the example shows why unique recovery of reachable inputs does not imply that every output is reachable. Finally, a trivial kernel guarantees exact uniqueness without guaranteeing numerical stability: the singular matrix example has trivial kernel for every , even as its condition number grows without bound when approaches zero.
Two-factor tensor rank 2026-10-14
The two-factor tensor rank is the smallest number of pure tensors whose sum equals , with zero allowed as the empty sum. For two finite-dimensional vector spaces over the same field, it equals the matrix rank of the tensor-product coefficient matrix. A sum of outer products has column space contained in the span of their first factors, so its matrix rank is at most . Conversely, choose a basis for the column space, express each column in that basis, and collect the coefficients into row vectors . This yields , hence a sum of pure tensors.
The pure tensor therefore has two-factor tensor rank one, whereas has two-factor tensor rank two. Both have two factors: the number of factors and the minimum number of product summands are different counts. Over the real numbers, the singular value decomposition supplies a useful decomposition , with one nonzero term per matrix rank. The two-factor rank equality does not extend to three or more factors by merely choosing one matrix layout.