Computed three-by-three LU decomposition 2026-10-14
Here is an original example of Gaussian elimination that can be checked entirely with integers. Start withThe first pivot element is . The elimination multipliers are and . Apply the elementary row operations and to obtainNow the second pivot element is , and . The elementary row operation givesImportantly, comes from the current reduced matrix, not the original entry . To reconstruct from , its second row is twice the first row of plus the second; its third row is minus the first row of plus three times the second plus the third. These are exactly the coefficients in the lower triangular matrix .
Gaussian elimination turns a three-by-three matrix into an upper triangular matrix, while elimination multipliers are stored in a lower triangular matrix
. Details. The unpivoted calculation here illustrates the structure of LU decomposition; applying partial pivoting to this particular would choose a different first row and different factors. Both procedures can represent the same linear system when their permutation matrices are handled consistently.
Elementary column operation 2026-10-14
An elementary column operation interchanges two columns of a matrix, scales one by a nonzero scalar, or adds a multiple of another column. It is an elementary row operation on the transpose. Hence it has the same three effects on the determinant: changing sign, multiplying by the scale factor, or leaving the determinant unchanged.
Elementary matrix 2026-10-14
An elementary matrix is obtained by applying one elementary row operation to the identity matrix. Multiplying by it on the left performs the same row operation on . Such a matrix is invertible: reverse a row swap, reverse a nonzero row scaling by its reciprocal, or reverse adding a multiple of another row by adding its negative. Right multiplication gives an elementary column operation. In particular these operations preserve matrix rank.
Elementary row operation 2026-10-14
An elementary row operation interchanges two rows of a matrix, multiplies one row by a nonzero scalar, or adds a scalar multiple of another row to it. These invertible operations are used in Gaussian elimination. For a square matrix, interchange changes the sign of its determinant, multiplication scales its determinant by the same scalar, and adding another row leaves its determinant unchanged, by multilinearity and alternation.
Elimination multiplier 2026-10-14
For , an elimination multiplier is the scalar used in the elementary row operation . This creates a zero below the pivot element. The remaining entries change by for . Storing these elimination multipliers gives the subdiagonal entries of in LU decomposition; later row interchanges must also reorder the already stored coefficients.
Past exam of the mathematics course of the University of Cambridge 2008 ib Paper 1 9E Solution Created 2026-09-24 Updated 2026-10-14
The row rank of is the dimension of the span of its rows in ; its column rank is the dimension of the span of its columns in . Elementary row operations replace rows by invertible linear combinations, so preserve their span. They also preserve every column relation: if and only if for an invertible elementary matrix . Reduce to row echelon form , with nonzero rows. These rows are independent because their leading entries occur in distinct, successively later columns. The pivot columns are independent by their triangular pivot submatrix, while every column lies in the -dimensional coordinate space supported on the nonzero rows. Thus both ranks of , and hence both ranks of , equal . Row rank equals column rank.
Elementary column operations replace columns by invertible linear combinations and preserve their span. Equivalently, right multiplication by an invertible elementary matrix preserves row relations, since if and only if . Therefore either elementary row operations or elementary column operations preserve the matrix rank, and any finite sequence gives .
For the block matrices, put . The explicit invertible multiplicationsfollow by first subtracting times the lower block row from the upper one and then subtracting the first block column times from the second. Changing the sign of the upper block row gives . These operations preserve matrix rank, proving that the two specified block matrices have equal rank. Their off-diagonal form gives , since the two image components occupy independent coordinate blocks.
Choose independent columns of and independent columns of . Select the corresponding columns from the first block column of and from the second. In a linear relation among these selected columns, the upper coordinate block forces every coefficient of the first selection to vanish; the lower block then forces every coefficient of the second to vanish. Consequently . Combining this with the equality of block ranks proves the Frobenius rank inequality:
Row echelon form 2026-10-14
A matrix is in row echelon form if zero rows follow all nonzero rows, each nonzero row has a first nonzero entry (pivot) to the right of the pivot in the preceding row, and entries below each pivot vanish. Elementary row operations bring every matrix to this form: choose a nonzero entry in the earliest nonzero column, swap its row to the top, eliminate entries below it, and continue on the remaining submatrix. The nonzero rows are independent by their successively positioned pivots; the pivot columns are independent and span the column space. Thus the number of pivots equals both row rank and column rank.
Row rank 2026-10-14
The row rank of a matrix is the dimension of the vector space spanned by its rows. Elementary row operations preserve this space; multiplication on the right by an invertible matrix preserves all linear relations among the rows. In row echelon form the nonzero rows are linearly independent, so the row rank is the number of pivots. The pivot columns are also linearly independent and span the column space, proving equality with the column rank.
System of linear equations Created 2026-10-03 Updated 2026-10-14
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.
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.
Tridiagonal elimination recurrences 2026-10-14
Let . Store the tridiagonal matrix by its diagonal , lower diagonal , and upper diagonal . The linear system iswith the nonexistent endpoint terms omitted. Initialize and . For , compute the elimination multiplier, modified pivot element, and modified right-hand side:These recurrence relations apply the elementary row operation after the preceding row has already been reduced. The transformed linear system is an upper bidiagonal matrix:Thus back substitution is especially short:For , only remains. Check each pivot element before its first division, including before back substitution.
Tridiagonal elimination preserves the narrow band: only one row and one diagonal coefficient change per step
. Details. Equivalently, this constructs an LU decomposition with unit lower bidiagonal matrix , whose lower diagonal is , and upper bidiagonal matrix , whose diagonal is and upper diagonal is . The sweep is forward substitution in . There is no fill-in outside these bands when no rows are interchanged. LAPACK's
DGTSV source uses these same coefficient and right-hand-side updates in its branch without row interchange.[ref]

