3.7 Row operations

3.7.1 How we solve linear systems

If you are given a system of linear equations in variables x,y,z and asked to solve them, what you probably do is to manipulate the equations by adding multiples of one equation to another until you have “eliminated” some of the variables and you can read off the solutions. We are going to try to formalise this method of solving linear equations.

Because we want to use matrix methods, let’s solve an example system and keep track of what our equation manipulation does to the corresponding augmented matrix.

Consider the linear system

3x+4y =6
x+2y =5.

The corresponding matrix equation is A𝐱=𝐛 where

A=(3412),𝐛=(65),𝐱=(xy).

The augmented matrix is (346125).

To solve the system, we first eliminate x from first equation by subtracting 3 times the second equation from the first. The equations become

2y =9
x+2y =5

The augmented matrix (209125) of this new system is obtained by adding 3 times the second row of the old augmented matrix to the first row.

Next we get the coefficient of y in the first equation to 1 by multiplying the first equation by 1/2. The equations become

y =9/2
x+2y =5

The augmented matrix (019/2125) of this new system is obtained by multiplying every entry in the first row of the old augmented matrix by 1/2.

Next we eliminate y from the second equation by subtracting 2 times the first equation from the second. The equations become

y =9/2
x =4

The augmented matrix (019/2104) of this new system is obtained by adding 2 times the first row to the second row.

Lastly, if we wanted the first equation to tell us the value of the first variable and the second equation to tell us about the second variable, we could swap the order of the two equations, corresponding to swapping the rows of the augmented matrix so that it becomes (104019/2).

3.7.2 Row operations

The manipulations we do to systems of linear equations correspond to doing row operations to the augmented matrices.

Definition 3.7.1.

A row operation is one of the following things we can do to a matrix.

  1. 1.

    Add λ times row i to row j (for ji, λ any number), written rjrj+λri.

  2. 2.

    Multiply row i by λ, where λ0, written riλri.

  3. 3.

    Swap rows i and j, written rirj.

3.7.3 Row operations are invertible

For each row operation r there is another row operation s such that doing r then s, or doing s then r, gets you back to the matrix you started with. Here is a table of the three types of row operations and their inverses.

row operation inverse
rjrj+λri (add λ times ri to rj) rjrjλri (add λ times ri to rj)
riλri (multiply ri by λ0) riλ1ri (multiply ri by λ1)
rirj (swap ri and rj) rirj (swap ri and rj)