In mathematics, an elementary matrix is a matrix which differs from the identity matrix by one single elementary row operation. The elementary matrices generate the general linear group when is a field. Left multiplication (pre-multiplication) by an elementary matrix represents elementary row operations, while right multiplication (post-multiplication) represents elementary column operations.
Elementary row operations are used in Gaussian elimination to reduce a matrix to row echelon form. They are also used in Gauss–Jordan elimination to further reduce the matrix to reduced row echelon form.
There are three types of elementary matrices, which correspond to three types of row operations (respectively, column operations):
Ri\leftrightarrowRj
kRi → Ri, wherek ≠ 0
Ri+kRj → Ri,wherei ≠ j
If is an elementary matrix, as described below, to apply the elementary row operation to a matrix, one multiplies by the elementary matrix on the left, . The elementary matrix for any row operation is obtained by executing the operation on the identity matrix. This fact can be understood as an instance of the Yoneda lemma applied to the category of matrices.
See also: Permutation matrix. The first type of row operation on a matrix switches all matrix elements on row with their counterparts on a different row . The corresponding elementary matrix is obtained by swapping row and row of the identity matrix.
Ti,j=\begin{bmatrix} 1&&&&&&\\ &\ddots&&&&&\\ &&0&&1&&\\ &&&\ddots&&&\\ &&1&&0&&\\ &&&&&\ddots&\\ &&&&&&1 \end{bmatrix}
So is the matrix produced by exchanging row and row of .
Coefficient wise, the matrix is defined by :
[Ti,j]k,l= \begin{cases} 0&k ≠ i,k ≠ j,k ≠ l\\ 1&k ≠ i,k ≠ j,k=l\ 0&k=i,l ≠ j\\ 1&k=i,l=j\\ 0&k=j,l ≠ i\\ 1&k=j,l=i\\ \end{cases}
-1 | |
T | |
i,j |
=Ti,j.
\det(Ti,j)=-1.
\det(Ti,jA)=-\det(A).
Ti,j=Di(-1)Li,j(-1)Lj,i(1)Li,j(-1).
The next type of row operation on a matrix multiplies all elements on row by where is a non-zero scalar (usually a real number). The corresponding elementary matrix is a diagonal matrix, with diagonal entries 1 everywhere except in the th position, where it is .
Di(m)=\begin{bmatrix} 1&&&&&&\\ &\ddots&&&&&\\ &&1&&&&\\ &&&m&&&\\ &&&&1&&\\ &&&&&\ddots&\\ &&&&&&1 \end{bmatrix}
So is the matrix produced from by multiplying row by .
Coefficient wise, the matrix is defined by :
[Di(m)]k,l=\begin{cases}0&k ≠ l\\ 1&k=l,k ≠ i\\ m&k=l,k=i \end{cases}
-1 | |
D | |
i(m) |
=Di\left(\tfrac1m\right).
\det(Di(m))=m.
\det(Di(m)A)=m\det(A).
The final type of row operation on a matrix adds row multiplied by a scalar to row . The corresponding elementary matrix is the identity matrix but with an in the position.
Lij(m)=\begin{bmatrix} 1&&&&&&\\ &\ddots&&&&&\\ &&1&&&&\\ &&&\ddots&&&\\ &&m&&1&&\\ &&&&&\ddots&\\ &&&&&&1 \end{bmatrix}
So is the matrix produced from by adding times row to row . And is the matrix produced from by adding times column to column .
Coefficient wise, the matrix is defined by :
[Li,j(m)]k,l=\begin{cases} 0&k ≠ l,k ≠ i,l ≠ j\\ 1&k=l\\ m&k=i,l=j \end{cases}
Lij(m)-1=Lij(-m).
\det(Lij(m))=1.
\det(Lij(m)A)=\det(A).