Elementary Matrices

Elementary Matrices
An elementary matrix is a square matrix that is equivalent to the identity matrix after one elementary row operation.
Idea: take the identity matrix and perform one ERO on it. The result is an elementary matrix.
Examples
E1=[0110]⟶ perform R1↔R2 on I
E2=[5001]⟶ perform R1 → 5R1 on I
E3=[1701]⟶ perform R2 → R2+7R1 on I
Elementary Matrices and Matrix Multiplication
When a matrix A is left multiplied by an elementary matrix E, the result is identical to performing the row operation that created E on A.
Think of elementary matrices as "encoding" the row operation that created them.
Examples
Let A=[102030].
Let E1=[0110] (R1↔R2 on I). Find E1A.
E1A=[0110][102030]=[010203]
The row operation that created E1 (swapping rows) is performed on A.
Let E2=[5001] (5R1 on I). Find E2A.
E2A=[5001][102030]=[50100150]
Let E3=[1701] (R2+7R1 on I). Find E3A.
E3A=[1701][102030]=[17214321]
Elementary Matrices and the Matrix Inverse Algorithm
Elementary matrices are the reason the matrix inverse algorithm works.
We can "encode" the sequence of row operations that changes A into I as a product of elementary matrices.
Arow operationsI⟹A−1(Ek⋯E3E2E1)A=I
So applying the same sequence of operations to I gives:
A−1(Ek⋯E3E2E1)I = A−1I = A−1
Inverse of Elementary Matrices
- Every elementary matrix E is invertible; the "opposite" ERO reduces E to I.
- The inverse of an elementary matrix is an elementary matrix.
Using these facts along with the sequence that produces A−1=Ek⋯E3E2E1, we can conclude:
A⟹A⟹A=(A−1)−1=(Ek⋯E3E2E1)−1=E1−1E2−1E3−1⋯Ek−1

Example: Elementary Matrices
Find an elementary matrix E such that A=EB, given:
A=2−114−1−16−13 and B=2−134−116−15
Think: what row operation can we perform on B to turn it into A?
Notice that rows 1 and 2 don't change; only row 3 is different.
⟹ The row operation must be performed on row 3.
Therefore, the rows were not swapped, and we can see that the entries in row 3 were not multiplied by a constant.
We can try R3 → R3−R1, but this does not work out for the second and third entries of the row.
The only other operation that could have been performed is: R3 → R3+2R2.
Let's perform this operation on I to create the elementary matrix:
100010001R3+2R2⟶E=100012001

Example: Elementary Matrices and Inverses
Let M=[021−8].
M can be reduced to I by performing the following EROs (in this order):
- R1↔R2
- R1 → 21R1
- R1 → R1+4R2
Using these row operations, find the elementary matrices E1,E2,E3 and their inverses such that M=E1−1E2−1E3−1.
I=[1001]R1↔R2⟶E1=[0110]
I=[1001]21R1⟶E2=21001
I=[1001]R1+4R2⟶E3=[1041]
So (E3E2E1)M=I⟹⟹⟹M−1=E3E2E1M=(M−1)−1=(E3E2E1)−1M=E1−1E2−1E3−1
Finding Inverses of Elementary Matrices
We can find the inverse of an elementary matrix by performing the opposite operation on I:
E1 simply swapped rows, so swapping them again "undoes" the operation:
I=[1001]R1↔R2⟶E1−1=[0110]
E2 multiplied Row 1 by 21, so we can undo this by multiplying Row 1 by 2:
I=[1001]2R1⟶E2−1=[2001]
E3 added 4 times Row 2 to Row 1, so we can undo this by subtracting 4 times Row 2 from Row 1:
I=[1001]R1−4R2⟶E3−1=[10−41]
∴ M = E1−1E2−1E3−1 = [0110][2001][10−41]
Exercise: check this yourself!