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 I3. To multiply the first row of a three-row matrix by -1, multiply the first row of I3 by -1. This gives E1.

E1=[-100010001]

In E1A, the first row of E1 takes -1 times the first row of A. The next two rows of E1 pick out the second and third rows of A.

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 (5,1,0).

E2=[100510001]

Multiply in the order the operations are applied

Applying E1 first and then E2 gives E2(E1A). Group the first two matrices to get (E2E1)A. The combined matrix does both steps at once.

E2E1=[-100-510001]

For a longer sequence, each new elementary matrix goes on the left.