If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Matrix row operations

Learn how to perform the matrix elementary row operations. These operations will allow us to solve complicated linear systems with (relatively) little hassle!

Matrix row operations

The following table summarizes the three elementary matrix row operations.
Matrix row operationExample
Switch any two rows[253346][346253]  (Interchange row 1 and row 2.)
Multiply a row by a nonzero constant[253346][323533346] (Row 1 becomes 3 times itself.)
Add one row to another[253346][2533+24+56+3]  (Row 2 becomes the sum of rows 2 and 1.)
Matrix row operations can be used to solve systems of equations, but before we look at why, let's practice these skills.

Switch any two rows

Example

Perform the row operation R1R2 on the following matrix.
[483245712]

Solution

R1R2 means to interchange row 1 and row 2.
So the matrix [483245712] becomes [245483712].
Sometimes you will see the following notation used to indicate this change.
[483245712]R1R2[245483712]
Notice how row 1 replaces row 2 and row 2 replaces row 1. The third row is not changed.
Problem 1
Perform the row operation R2R3 on the following matrix.
[7296411312]

Multiply a row by a nonzero constant

Example

Perform the row operation 3R2R2 on the following matrix.
[661230459]

Solution

3R2R2 means to replace the 2nd row with 3 times itself.
[661230459] becomes [661323330459]=[661690459]
To indicate this matrix row operation, we often see the following:
[661230459]3R2R2[661690459]
Notice here three times the second row replaces the second row. The other rows remain the same.
Problem 3
Perform the row operation 2R1R1 on the following matrix.
[26517480]

Add one row to another

Example

Perform the row operation R1+R2R2 on the following matrix.
[234081]

Solution

R1+R2R2 means to replace the 2nd row with the sum of the 1st and 2nd rows.
[234081] becomes [2342+03+84+1]=[2342115]
To indicate this matrix row operation, we can write the following:
[234081]R1+R2R2[2342115]
Notice how the sum of row 1 and 2 replaces row 2. The other row remains the same.
Problem 5
Perform the row operation R1+R3R3 on the following matrix.
[162350721]

Challenge problem
Perform the row operation R1+2R3R1 on the following matrix.
[573214886]

Systems of equations and matrix row operations

Recall that in an augmented matrix, each row represents one equation in the system and each column represents a variable or the constant terms.
For example, the system on the left corresponds to the augmented matrix on the right.
SystemMatrix
1x+3y=52x+5y=6[135256]
When working with augmented matrices, we can perform any of the matrix row operations to create a new augmented matrix that produces an equivalent system of equations. Let's take a look at why.

Switching any two rows

Equivalent SystemsAugmented matrix
1x+3y=52x+5y=6[135256]
2x+5y=61x+3y=5[256135]
The two systems in the above table are equivalent, because the order of the equations doesn't matter. This means that when using an augmented matrix to solve a system, we can interchange any two rows.

Multiply a row by a nonzero constant

We can multiply both sides of an equation by the same nonzero constant to obtain an equivalent equation.
In solving systems of equations, we often do this to eliminate a variable. Because the two equations are equivalent, we see that the two systems are also equivalent.
Equivalent SystemsAugmented matrix
1x+3y=52x+5y=6[135256]
2x+(6)y=102x+()5y=6[2610256]
This means that when using an augmented matrix to solve a system, we can multiply any row by a nonzero constant.

Add one row to another

We know that we can add two equal quantities to both sides of an equation to obtain an equivalent equation.
So if A=B and C=D, then A+C=B+D.
We do this often when solving systems of equations. For example, in this system 2x6y=102x+5y=6, we can add the equations to obtain y=4.
Pairing this new equation with either original equation creates an equivalent system of equations.
Equivalent SystemsAugmented matrix
2x6y=102x+5y=6[2610256]
2x+(6)y=100x+(1)y=4[2610014]
So when using an augmented matrix to solve a system, we can add one row to another.
Concluding challenge problem
A sequence of row operations is performed on the matrix [2210233]. The table below describes the result of each step in the sequence.
Arrange the row operations according to each step.
Original matrix: [2210233]
1

Notice that the original matrix corresponds to 2x+2y=102x3y=3, while the final matrix corresponds to x=18y=13 which simply gives the solution.
The system was solved entirely by using augmented matrices and row operations!

Want to join the conversation?