Elementary row operations are the basic moves used to transform a matrix without changing the solution set of the linear system it represents. They are the computational foundation of Gaussian elimination, Gauss-Jordan elimination, row echelon form, reduced row echelon form, rank, and invertibility. The three operations are row interchange, row scaling by a nonzero scalar, and row replacement by adding a multiple of one row to another.
8.1 Rows as Equations
In an augmented matrix, each row represents one equation.
For example, the system
is represented by
The first row represents
The second row represents
A row operation is therefore an operation on equations. It rewrites the system in a different form while preserving the same solution set.
8.2 The Three Elementary Row Operations
There are exactly three elementary row operations.
| Operation | Notation | Description |
|---|---|---|
| Row interchange | Swap two rows | |
| Row scaling | Multiply a row by a nonzero scalar | |
| Row replacement | Add a multiple of one row to another |
These operations are reversible. Because they are reversible, they preserve the information contained in the system.
8.3 Row Interchange
Row interchange swaps two rows.
For example,
after becomes
The order of equations has changed, but the set of solutions has not changed. A vector satisfies both equations before the swap exactly when it satisfies both equations after the swap.
Row interchange is often used to move a nonzero entry into a pivot position.
8.4 Row Scaling
Row scaling multiplies every entry in one row by the same nonzero scalar.
For example,
after becomes
The first equation
has been replaced by
These equations have the same solution set. Multiplying an equation by a nonzero scalar does not change which values satisfy it.
The scalar must be nonzero. Multiplying a row by would erase the equation and may change the solution set.
8.5 Row Replacement
Row replacement adds a multiple of one row to another row.
For example,
after becomes
The second equation
has been replaced by
Simplifying gives
The new second equation is a consequence of the old two equations. Conversely, because the operation can be reversed by
no information has been lost.
Row replacement is the main operation used to create zeros below and above pivots.
8.6 Why Row Operations Preserve Solutions
Each elementary row operation replaces a system by an equivalent system.
For row interchange, only the order of equations changes.
For row scaling, an equation is multiplied by a nonzero scalar. A scalar multiple of an equation has the same solutions as the original equation.
For row replacement, one equation is replaced by itself plus a multiple of another equation. If a vector satisfies both original equations, then it also satisfies the new equation. Since the operation is reversible, every solution of the new system is also a solution of the old system.
Thus elementary row operations preserve the solution set of an augmented matrix.
8.7 Row Equivalent Matrices
Two matrices are row equivalent if one can be transformed into the other by a finite sequence of elementary row operations. Row equivalence is the relation generated by the three elementary row operations.
For example,
is row equivalent to
because the second matrix is obtained by the operation
Row equivalent augmented matrices represent equivalent systems. They have the same solution set.
8.8 Elementary Row Operations on Coefficient Matrices
Row operations can also be applied to coefficient matrices without the right-hand side.
For example,
after becomes
When row operations are applied to a coefficient matrix alone, they no longer directly represent a full system unless the right-hand side is also transformed. However, they still reveal structural information about the matrix, such as rank, pivot columns, row space, and invertibility.
8.9 Pivot Positions
A pivot position is a location used as the leading entry for eliminating other entries in the same column.
For example, in
the entry in the first row and first column may be used as the first pivot.
To eliminate the entries below it, use row replacement:
This gives
The first pivot has produced zeros below itself.
8.10 Creating a Leading One
In many algorithms, pivots are scaled to become .
For example,
after becomes
The leading entry of the first row is now . This is convenient because it makes later elimination easier.
In reduced row echelon form, every leading entry must be . In ordinary row echelon form, this normalization is useful but not required.
8.11 Eliminating Entries Below a Pivot
Suppose the pivot is the entry in the first row and first column. To eliminate an entry below it, replace row by
This makes the first entry of row equal to zero.
Indeed, the new first entry is
This is the basic elimination step.
For example,
has pivot . To eliminate the below it, use
Then
8.12 Eliminating Entries Above a Pivot
Gauss-Jordan elimination also eliminates entries above pivots.
For example,
has a pivot in the second row and second column. To eliminate the above it, use
This gives
The solution is then read directly:
8.13 Row Operations and Echelon Form
Elementary row operations are used to put a matrix into row echelon form. A row echelon matrix has zero rows below nonzero rows, leading entries moving to the right as one moves downward, and zeros below each leading entry.
For example,
is in row echelon form.
The zeros below pivots give a triangular structure. In an augmented matrix, this structure allows the system to be solved by back substitution.
8.14 Row Operations and Reduced Row Echelon Form
Reduced row echelon form imposes stricter conditions. The leading entry in every nonzero row is , and each leading is the only nonzero entry in its column.
For example,
is in reduced row echelon form.
In this form, pivot variables and free variables can be read directly. No back substitution is needed.
8.15 Example: Reduction to Echelon Form
Consider the augmented matrix
Use the first row as the first pivot row.
First eliminate the entry below the pivot in row :
Then eliminate the entry below the pivot in row :
This gives
Now use the second row as the next pivot row. Eliminate the entry below it:
Then
This matrix is in echelon form.
8.16 Solving from Echelon Form
The echelon form
represents
From the last equation,
From the second equation,
so
From the first equation,
Thus
so
The solution is
8.17 Example: Reduction to Reduced Echelon Form
Continue from
Scale the third row:
Then
Eliminate the entry above the pivot in column :
This gives
Eliminate the entry above the pivot in column :
Then
The solution is read directly.
8.18 Row Operations and Invertibility
For a square matrix , row operations can test invertibility.
An matrix is invertible if and only if it can be row reduced to the identity matrix . Equivalently, has a pivot in every column. Row equivalence to the identity is one standard criterion for invertibility.
For example,
Apply
Then
Scale row :
Then
Eliminate above the second pivot:
Then
Thus is invertible.
8.19 Elementary Matrices
Each elementary row operation can be performed by multiplying on the left by an elementary matrix.
An elementary matrix is obtained by applying one elementary row operation to an identity matrix.
For example, the operation
on a matrix is represented by
Then
is the matrix obtained from by applying the same row operation.
For instance, if
then
This is exactly the result of replacing row by row minus three times row .
8.20 Reversibility
Every elementary row operation has an inverse operation.
| Operation | Inverse |
|---|---|
This reversibility is the reason row operations preserve equivalence. It also explains why elementary matrices are invertible.
8.21 Row Operations and Rank
Row operations preserve rank. They do not change the number of pivots in a matrix.
When a matrix is reduced to echelon form, its rank is the number of nonzero rows in that echelon form. Equivalently, it is the number of pivot positions.
For example,
can be row reduced:
gives
Swap rows and :
There are two nonzero rows. The rank is .
8.22 Common Mistakes
The most common errors in row operations are mechanical.
| Error | Correction |
|---|---|
| Scaling by zero | Row scaling requires a nonzero scalar |
| Changing only part of a row | Apply the operation to every entry in the row |
| Changing the right-hand side incorrectly | Row operations apply to the whole augmented row |
| Replacing both rows at once using old and new values inconsistently | Perform one row replacement at a time |
| Swapping columns instead of rows | Column operations change a different structure |
| Forgetting reversibility | Each row operation must have an inverse |
Careful notation prevents most errors.
8.23 Notation for Row Reduction
A sequence of row operations is often written using arrows:
For longer reductions, operations may be listed at the side. The important point is that each step must be an elementary row operation.
8.24 Summary
Elementary row operations are the permitted moves for row reduction.
They are:
| Operation | Formula |
|---|---|
| Row interchange | |
| Row scaling | |
| Row replacement |
They preserve solution sets of augmented systems because each operation is reversible. They produce row equivalent matrices. They are used to create echelon form, reduced row echelon form, pivots, and zeros in controlled positions.
Elementary row operations are therefore the practical mechanism behind solving linear systems and the theoretical mechanism behind rank, row equivalence, and invertibility.