How to find an elementary elimination matrix
When we row-reduce a matrix, each step changes one or two of its rows. We can write each step as a matrix multiplication. Let’s build the matrices for two operations and see how they fit together.
Do the row operation to the identity matrix
Start with . To multiply the first row of a three-row matrix by , multiply the first row of by . This gives .
In , the first row of takes times the first row of . The next two rows of pick out the second and third rows of .
Build a second matrix for the next row operation
To replace row 2 with row 2 plus five times row 1, start from a fresh identity matrix. Its second row becomes .
Multiply in the order the operations are applied
Applying first and then gives . Group the first two matrices to get . The combined matrix does both steps at once.
For a longer sequence, each new elementary matrix goes on the left.