Choose a fixed time increment , let , and approximate by . The Backward Euler method evaluates the transport term at the new time:Rearrange to the linear systemAlthough is a singular matrix, is an invertible matrix for every . In each row, its diagonal entry is and the sum of the absolute values of its off-diagonal entries is ; hence it is a strictly diagonally dominant matrix. Its Gershgorin discs have centre and radius , excluding zero. In particular, the zero eigenvalue of becomes an eigenvalue of .
- Form once. Compute a Pivoted LU decomposition , storing the permutation matrix , the unit lower triangular matrix , and the upper triangular matrix .
- Set .
- At each step form . Solve by forward substitution, then solve by back substitution.
- Advance and repeat until the desired final time. Choose the fixed increment so the final time is an integer multiple of , or refactor if a shorter final step is used.
Both triangular solves use the factors of . The LU factorization of the singular transport matrix from part (a) is not a solver for this new linear system. No matrix inverse needs to be formed. Since and are fixed, the same LU factorization serves every step; only the right-hand side changes. A varying would give without changing these factors.
As a check, multiplying the update by givesexactly reproducing the inventory balance at the sampled times, apart from roundoff error. The Backward Euler method has temporal global error for smooth solutions, so its A-stability does not remove the need to select for accuracy.
Pivot element Created 2026-10-14 Updated 2026-10-18
A pivot element is the current diagonal entry used to eliminate entries below it in Gaussian elimination, after any row interchange. At step it is , where is the current reduced matrix. Computing elimination multipliers requires this entry to be nonzero. A zero pivot element can reflect an unsuitable row order even for an invertible matrix, as Pivoted LU decomposition illustrates.
Quadratic lower bound for a nonsymmetric matrix Created 2026-10-18 Updated 2026-10-25
Let be a real square matrix and suppose for every real vector , with . The Cauchy-Schwarz inequality gives , hence for all . In particular the kernel is zero, so is an invertible matrix. Applying the bound to gives the operator norm estimate in the Euclidean norm.
Symmetry of is unnecessary: for its symmetric part of a matrix . Thus the hypothesis is exactly a positive lower bound on that symmetric matrix, even when the antisymmetric part is nonzero.
Rank-one update singularity criterion 2026-10-14
For an invertible matrix , the rank-one matrix update is a singular matrix exactly when . This follows directly from the matrix determinant lemma. At that value, and the nonzero vector satisfiesEvery vector in the kernel is a multiple of , since implies . The matrix rank therefore drops by exactly one.
For with and , the update becomes a singular matrix at , and . At , this direction is compressed by a factor and the inverse amplifies it by a factor 100. The actual spectral norm of the matrix inverse, which maximizes amplification over every direction, is about .
An inverse grows large as the rank-one update approaches its singular denominator
. Here and uses the same example vectors. The left panel shows and its lower bound , obtained from the direction . The right panel shows the condition number . Both are computed from singular values; the missing point has no matrix inverse. Details.The exact formula can expose a large condition number in the updated linear system even when the original one had a small condition number. It does not guarantee numerical stability merely because its evaluation uses fewer arithmetic operations. The denominator condition certifies existence; the condition number and floating-point behavior address different questions about using the resulting answer.
Rational canonical form of an inverse 2026-10-31
Let an invertible matrix have monic invariant factors of a linear operator of degrees . Their constant coefficients are nonzero, since their product is the characteristic polynomial and . On a cyclic block, implies , so , where is monic of degree . The vector remains cyclic for : multiplying by the invertible map gives the reversed original cyclic basis. Thus this polynomial is the minimal polynomial of the inverse block.
Normalized reciprocation preserves divisibility because when both constant coefficients are nonzero. Consequently the rational canonical form of is the direct sum of the companion matrices . The normalization by is essential to make each reciprocal polynomial monic.
For row reduction with a parameterized right-hand side at , the nonzero reduced equations areColumn 3 has no pivot element, so is a free variable in a linear system. Taking gives every solution:There is no further restriction on . Independent substitution into the original linear system givesConversely, the two reduced equations force exactly these coordinate formulas, so no solutions have been omitted. The same computation with zero right-hand side gives the kernel . Its dimension is one. The rank-nullity theorem appears here as : two pivot columns and one freely chosen coordinate account for the three unknowns.[ref]
The Rank Theorem. Interactive Linear Algebra by Dan Margalit and others; §2.9, Rank Theorem and preceding pivot-column/free-variable count
One free variable in a linear system traces an affine solution space of a linear equation parallel to its kernel
. Details. In general a consistent linear system has solution set . Subtracting from proves this description in both directions. The particular solution places the affine subspace, and the kernel supplies its directions.[ref]
Solution Sets. Interactive Linear Algebra by Dan Margalit and others; §2.4.2, Key Observation and its proof: translate homogeneous solutions by any particular solution
Over the real numbers this example is an entire line; over the rational numbers the same formula uses rational . A free variable in a linear system over a finite field instead has only finitely many choices.The pivot columns identify a different object: the original column space. Here they selectwhich form its basis, while . The corresponding reduced columns are and ; their linear span is a different plane. For example, every original output satisfies , but does not. Since is an invertible matrix, column linear relations survive even though the output vectors move. This is why choosing original columns at the reduced pivot positions works.
Reduced column echelon form 2026-10-25
The reduced column echelon form of a matrix is defined by taking its transpose, forming the reduced row echelon form, and transposing back:It is obtained from by elementary column operations. Its nonzero columns precede its zero columns, the topmost nonzero entry of each nonzero column is , these leading entries move strictly downward as the column number increases, and each leading entry is the only nonzero entry in its row.
Every elementary column operation preserves the column space, because it and its inverse express each new column as a linear combination of the old columns. Thus the nonzero columns of the reduced form give a basis of the original column space. In contrast, elementary row operations preserve the row space. There is no general identity : the definition requires reducing , not .
For an invertible matrix of size , both reduced forms are . A singular example showing the distinction is
The linear-system residual is computable without knowing . The forward error is the actual difference from the desired solution. For an invertible matrix,Keeping fixed, the approximate vector exactly solves with . Thus, for , is the relative backward error when only the right-hand side may change. For a vector norm and its induced operator norm,A small relative linear-system residual ensures a small relative forward error when the condition number is moderate; an ill-conditioned matrix can amplify it. The bound follows directly from and .[ref]
2.8 Conditioning of linear systems. Fundamentals of Numerical Computation by Tobin A. Driscoll and others; §2.8.1, Theorem 2.8.1, equation (2.8.6), right-hand-side perturbation bound applied with Δb = −r
For the Jacobi iteration for a three-variable tridiagonal system, the first linear-system residual is , while the first forward error is . In the Euclidean norm, the relative forward error is and the relative linear-system residual is . Its spectral condition number of a positive-definite matrix is , so the bound is about . The bound is a guarantee, not an equality. In floating-point arithmetic, recompute the linear-system residual from the current vector when checking termination; a small update alone need not certify a small forward error.
Row-equivalent matrices 2026-10-18
Two matrices of the same size over the same field are row-equivalent matrices if a sequence of elementary row operations transforms one into the other.[ref]
Row Reduction. Interactive Linear Algebra by Dan Margalit and others; §1.2.1, definition of row equivalence
Every operation is reversible, so they have the same row space and the same column linear relations. Writing the entire sequence as multiplication by an invertible matrix gives andThus the kernel is preserved. For a nonzero right-hand side, perform every operation on the whole augmented matrix : changing the coefficients while keeping fixed generally changes the solutions. The column space instead transforms to , which need not equal . Row rank Created 2026-10-14 Updated 2026-10-18
The row rank of a matrix is the dimension of the vector space spanned by its rows. Elementary row operations preserve this row space; multiplication on the right by an invertible matrix preserves all linear relations among the rows.
To see why row rank equals column rank, write a reduced row echelon form as , where is a product of elementary matrices and is an invertible matrix. Reversibility of the row operations gives equal row spaces for and . Also if and only if , so the columns have exactly the same linear relations. If has nonzero rows, its pivot columns are the first standard basis vectors of and span its column space. Its nonzero rows are linearly independent, since their matrix entries in the pivot positions form an identity matrix. Both dimensions therefore equal , and both counts transfer back to .
Same eigenvalues do not imply similarity 2026-10-14
Consider the diagonal matrix and a Jordan blockBoth have characteristic polynomial , trace , determinant , and eigenvalue with algebraic multiplicity two. But is the whole plane, whereas vanishes only when . Their eigenspaces have different dimensions, so eigenvectors under similarity rules out matrix similarity. There is an even shorter proof: for every invertible matrix .
The missing information is how the linear operator acts beyond its eigenvectors. Here , while but . Their minimal polynomials are respectively and . Over a field where the characteristic polynomial splits, the full sizes of the Jordan blocks, encoded by the Jordan normal form, determine the matrix similarity class.
Schur complement Created 2026-09-24 Updated 2026-10-14
For a block matrix with an invertible matrix, the Schur complement of in is . It is the effective coefficient matrix for the remaining variables after block elimination. The definition requires invertibility of , but not of or . Its size is that of , even when and are rectangular matrices.
In the original example under block matrix inverse, becomes because changing the remaining variable also changes the two variables solved through . This is what makes a Schur complement more informative than simply deleting rows and columns. It retains their mediated effect, and its matrix inverse is the corresponding block of when the block matrix inverse exists.
The same elimination appears when minimizing a quadratic form. The Schur complement as a minimized quadratic form gives a geometric example; the Schur complement determinant identity gives an exact test for an invertible matrix.
Schur complement determinant identity 2026-10-14
When is an invertible matrix, the factorization in block elimination has outer triangular factors with determinant one. Hence , without a symmetry assumption. For the original example under block matrix inverse, this gives . An invertible block therefore reduces the question of whether the full matrix is an invertible matrix to the smaller Schur complement; a singular makes a singular matrix.
Sherman–Morrison formula Created 2026-09-24 Updated 2026-10-14
The Sherman–Morrison formula computes the matrix inverse after a rank-one matrix update. If is an invertible matrix and , thenThe inverse correction is itself an outer product, divided by the scalar . The matrix determinant lemma shows that the nonzero-denominator condition is exactly the condition that the updated matrix remains an invertible matrix.
For , , and , we have . Thus the computed inverse isMultiplication in either order gives the identity matrix. The result reuses the original inverse and the same correction vectors, rather than solving independently for all four inverse entries.
Often only the solution of an updated linear system is needed. If and , thenprovided . The two solves use the same LU decomposition of . This expresses the computational benefit without requiring an explicitly stored matrix inverse. Strang's Lecture 14, transcript pp. 9–10 explains this reuse of the original factorization.
To see why the inverse correction works, first consider and put . The rank-one matrix satisfies . Expandingalso works in the reverse order. The general case follows by factoring out and replacing by . A matrix identity has reduced to cancellation of scalar coefficients.
Historically, Jack Sherman and Winifred J. Morrison studied updating an inverse when a single matrix entry changes in their [ref]
https://doi.org/10.1214/aoms/1177729893. 1950 paper, Adjustment of an Inverse Matrix Corresponding to a Change in One Element of a Given Matrix
. Such an entry change is the special rank-one matrix update , with standard basis vectors . The reference and the earlier 1949 abstract on row or column changes are recorded in Henderson and Searle, On Deriving the Inverse of a Sum of Matrices (1981), references 40–41. This distinguishes the specific original setting from the more general formula used here. Similarity transformation Created 2026-09-24 Updated 2026-10-14
A similarity transformation replaces a square matrix by a similar matrix. With the change-of-basis matrix convention , it sends to : reconstruct the input in old coordinates, apply , then extract the output's new coordinates. These three operations explain the order of the factors.
The equivalent formula uses as the conversion from old to new coordinates, reversing the role assigned to above. For the opening example's numerical , this opposite conversion gives . If the old basis is , the new basis vectors in that convention are the columns of , namely and . Both formulas are similarity transformations; the direction of the coordinate conversion decides which one describes a specified basis.
An especially useful form is the intertwining operator equationIt says that applying before reconstruction by gives the same physical output as reconstructing first and applying . Given an invertible matrix , multiplying this equation by proves matrix similarity. Without invertibility, the equation alone does not prove matrix similarity.
Let be an invertible matrix and a real square matrix of the same odd order. If the displayed identity holds, multiply it on the left by to obtain . Taking determinants givesThus . Since is real, the first factor is positive, forcing to be a singular matrix. Both odd dimension and reality matter: an invertible real antisymmetric matrix exists in even dimension, while over the complex numbers a squared determinant can equal .
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:
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]
https://math.mit.edu/~gs/linearalgebra/ila5/SVD_Slides.pdf. Verma, slides 7–8: singular values and maximum stretching
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]
https://www.cs.cornell.edu/courses/cs322/2007sp/notes/condition.pdf. Marschner, Condition numbers, §2: inverse amplification and singular values
Smith normal form supplies a kernel basis 2026-10-25
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.
Solution of a linear system 2026-10-18
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 .



