The three elementary row operations on an augmented matrix

Row operations let us replace a linear system with an easier system that has the same solutions. Each operation changes how the equations are written. We’ll look at the three allowed operations and what each one does to an augmented matrix.

Swap two rows

The notation R1↔R2 means exchange the entire first and second rows. For the system 3x+2y=7 and x-6y=0, start with

[32|71-6|0]

After the swap, the matrix is

[1-6|032|7]

The equations appear in a different order, so their common solutions stay the same.

Multiply a row by a nonzero scalar

Using the original matrix again, 2R1→R1 doubles every entry of row 1, including its constant.

[64|141-6|0]

The first equation becomes 6x+4y=14. Dividing by 2 recovers the original equation, which is why the solution set is preserved. The scalar must be nonzero so the operation can be reversed.

Add a multiple of one row to another

In the original matrix, R1+R2→R1 replaces only row 1. Adding corresponding entries gives

[4-4|71-6|0]

Row 2 stays unchanged. Subtracting that row from the new row 1 reverses the operation.

Work with a larger augmented matrix

[23-1|11174|60-1-8|-3]

Apply R1+4R3→R1. Four times row 3 is (0,-4,-32,-12), so the replacement first row is (2,-1,-33,-1).

[2-1-33|-1174|60-1-8|-3]

Apply combined changes one operation at a time

From the original larger matrix, multiply row 1 by 3 and row 3 by 2, then swap those two rows. The final rows are (0,-2,-16,-6), (1,7,4,6), and (6,9,-3,33). Separating the scaling and swap makes the destination of each row clear.