Row operations first appeared as procedural moves on a matrix. We swapped rows, scaled a row by a nonzero number, and added a multiple of one row to another. Those moves are already legitimate for solving systems, because they preserve solution sets.
There is a second, more structural way to read the same moves: each elementary row operation is the same as left-multiplication by a special square matrix. This matters because it converts a sequence of row operations into an ordinary matrix equation. Later, this is exactly the bridge between row reduction, invertibility, rank, determinants, and basis arguments.
The idea: do the row operation to the identity first
Suppose a row operation is meant to act on matrices with p rows. Start
with the identity matrix , apply the same row operation to , and call
the result .
Definition
Row-operation matrix
The row-operation matrix associated with a row operation on
p-row matrices is the matrix obtained by applying to
.
Equivalently,
The reason this definition is useful is the following theorem.
Theorem
Row operations are left multiplication
Let be any matrix with p rows. If denotes the result of applying
the row operation to , then
So applying a row operation to is the same as multiplying on the left by the row-operation matrix obtained from the same operation on .
The multiplication must be on the left. Row operations change rows by mixing rows. Left multiplication forms new rows of as linear combinations of old rows of . Right multiplication would instead mix columns.
Three basic examples
The three allowed row operations give three corresponding types of row-operation matrices.
Worked example
Row addition
For matrices with three rows, consider
Apply this operation to :
Therefore, for every matrix with three rows,
is the matrix obtained from by replacing row 2 with row .
Worked example
Row scaling
For
the row-operation matrix is
The nonzero condition in row scaling is visible here: if the scaling factor
were 0, the resulting matrix would have a zero row and could not be reversed.
Worked example
Row swap
For
we get
Multiplying by this matrix on the left swaps the first and third rows of any compatible matrix.
A sequence of row operations becomes one matrix product
The real payoff is not just representing one row operation. A whole sequence of row operations becomes one product of row-operation matrices.
Theorem
A sequence of row operations as a product
Suppose
Then
The order in this formula is important. The first row operation appears closest to , because it is applied first:
Worked example
Two row operations combined
Let
Apply
The corresponding row-operation matrices are
After both operations, the result is
Instead of multiplying directly, you can also obtain this combined matrix by applying the same two row operations to in the same order.
Reading a longer row-operation product
In assignment-style questions, the row operations are often given as a long chain. The goal is not to multiply many matrices blindly. The goal is to keep three objects separate:
- the matrices being transformed;
- the row-operation matrices ;
- the single combined left multiplier .
Here is a typical four-row example. Suppose
If
then
The corresponding row-operation matrices are
Their product is
The efficient way to obtain is to apply the six operations to , not to expand all six factors by hand. The matrix records the total effect of the chain on rows:
This equation is also a good check on the order. If the first operation were placed on the far left, the product would describe a different chain.
Quick check
In the six-step chain above, suppose is the row-operation matrix product for the reverse chain from back to . What equation should and satisfy?
Think of as undoing the total effect of .
Solution
Answer
Reverse row operations and inverses
Every elementary row operation has a reverse operation:
- the reverse of is ;
- the reverse of , with , is
R_i \leftarrow (1/c)R_i; - the reverse of a row swap is the same row swap.
This gives a clean matrix statement.
Theorem
Row-operation matrices are invertible
Every row-operation matrix is invertible. Its inverse is the row-operation matrix corresponding to the reverse row operation.
For example, if
performs , then
performs .
This is the algebraic reason row operations are reversible, and it explains why row reduction is so closely connected to invertible matrices.
Why this viewpoint matters later
If is row-equivalent to , then there is a finite sequence of row operations taking to . Therefore there is a product of row-operation matrices such that
Because each row-operation matrix is invertible, the product is invertible. So row equivalence can be discussed either procedurally, by listing row operations, or algebraically, by writing an equation with an invertible matrix on the left.
This is useful in several later arguments:
- a square matrix row-equivalent to is a product of row-operation matrices;
- row operations preserve homogeneous solution information because they amount to multiplying by invertible matrices;
- determinant rules for row operations can be expressed through elementary matrices;
- rank and basis arguments can use row reduction without pretending the original columns themselves have not changed.
Common mistakes
Common mistake
Do not multiply on the wrong side
Row operations are represented by left multiplication. Right multiplication would combine columns, not rows.
Common mistake
Do not reverse the product order
If is applied before , then the combined matrix is , not .
Common mistake
Do not use a zero row scaling
The scaling operation requires a nonzero scalar. Scaling a row by 0 cannot be
reversed and does not produce an invertible row-operation matrix.
Quick checks
Quick check
For matrices with three rows, what row operation is represented by ?
Ask which row of changed.
Solution
Answer
Quick check
What is the inverse row operation for ?
Undo the added multiple.
Solution
Answer
Exercises
Quick check
Write the row-operation matrix for on matrices with three rows.
Apply the swap to .
Solution
Guided solution
Quick check
Suppose is obtained from by first doing , then . Write as a product involving .
Name the two row-operation matrices in the order they act.
Solution
Guided solution
Quick check
Let . Suppose is obtained from a five-row matrix by the chain , then , then , then , then . Write the single matrix such that .
Apply the same operations to , remembering that later operations use the current rows, not the original rows.
Solution
Guided solution
Quick check
For the matrix in the previous exercise, suppose . Write the matrix such that .
Reverse the row operations in reverse order.
Solution
Guided solution
Related notes
This page builds on 2.2 Augmented matrices and row operations and 3.1 Matrix multiplication and identity matrices. It prepares the algebraic row-reduction viewpoint used in 5.1 Invertible matrices and 7.2 Row operations, products, and invertibility.