No history yet

Row Operation Matrices

The Algebra of Row Operations

So far, we've treated row operations—scaling, swapping, and adding—as manual steps you perform on a matrix. But in linear algebra, we can translate these actions into the language of matrix multiplication. Instead of just doing an operation to a matrix, we can multiply it by a special matrix to achieve the exact same result.

These special matrices are called elementary matrices. The trick is simple: to create an elementary matrix that performs a specific row operation, you just perform that same operation on an identity matrix. The result is a new matrix that acts like a machine, built to execute that single task.

An elementary matrix is just an identity matrix that has undergone a single elementary row operation.

Building the Toolkit

There are three types of elementary matrices, one for each row operation. Let's see how to build each one.

Row Scaling

To create a matrix that scales a row by a constant cc, we take an identity matrix and multiply the corresponding row by cc. For example, to scale the second row of a 3x3 matrix by cc, we start with the 3x3 identity matrix:

I=(100010001)I = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix}

Then, we multiply its second row by cc to get our elementary matrix, which we'll call EscaleE_{scale}.

Escale=(1000c0001)E_{scale} = \begin{pmatrix} 1 & 0 & 0 \\ 0 & c & 0 \\ 0 & 0 & 1 \end{pmatrix}

Multiplying any 3x3 matrix AA by EscaleE_{scale} on the left will scale the second row of AA by cc.

Row Swapping

To swap two rows, we swap the corresponding rows in an identity matrix. These are often called because they permute, or reorder, the rows. To swap rows 1 and 3 of a 3x3 matrix, we create EswapE_{swap} by swapping the first and third rows of the identity matrix.

Eswap=(001010100)E_{swap} = \begin{pmatrix} 0 & 0 & 1 \\ 0 & 1 & 0 \\ 1 & 0 & 0 \end{pmatrix}

Row Addition

This is the workhorse of . To create a matrix that adds a multiple of one row to another, we perform that operation on the identity matrix. For instance, to create a matrix that adds kk times row 1 to row 3, we start with II and add kk times its first row to its third row.

Eadd=(100010k01)E_{add} = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ k & 0 & 1 \end{pmatrix}

Order Matters

You might have noticed we always say "multiply on the left." This is critical. Multiplying a matrix AA by an elementary matrix EE on the left (EAEA) performs the operation on the rows of AA.

What happens if you multiply on the right (AEAE)? It performs the equivalent column operation. For example, if EE is a row-swapping matrix, AEAE will swap the columns of AA instead of the rows.

This framework turns the procedural steps of row reduction into a sequence of matrix multiplications. It's a powerful idea that allows us to analyze and automate the process of solving linear systems in a more abstract, algebraic way.