Simple Row Operations
Simple Row Operations
That’s where row operations come in. Once we have a linear system
represented as a matrix or an augmented matrix, we can use row
operations to manipulate and simplify the matrix. Eventually, we’ll be able
to get the matrix into a form where the solution to the system just reveals
itself in the matrix.
3. How to add one row to (or subtract one row from) another
You can switch any two rows in a matrix without changing the value of the
matrix. In this matrix, we’ll switch rows 1 and 2, which we write as R1 ↔ R2.
[1 −6 | 0] [3 2 | 7]
3 2 | 7 1 −6 | 0
→
32
Keep in mind that you can also make multiple row switches. For instance,
in this 3 × 3 matrix, you could first switch the second row with the third row,
R2 ↔ R3,
7 3 4 7 3 4
1 6 1 → 2 2 3
2 2 3 1 6 1
and then switch the first row with the second row, R1 ↔ R2.
7 3 4 2 2 3
2 2 3 → 7 3 4
1 6 1 1 6 1
Realize that it’s okay to switch rows in a matrix, since a matrix just
represents a linear system. It’s no different than rewriting the system
3x + 2y = 7
x − 6y = 0
as
x − 6y = 0
3x + 2y = 7
Example
33
2 3 −1 | 11
1 7 4 | 6
0 −1 −8 | −3
2 3 −1 | 11
0 −1 −8 | −3
1 7 4 | 6
You can multiply any row in a matrix by any non-zero constant without
changing the value of the matrix. We often call this value a scalar because
it “scales” the values in the row. For instance, if we multiply through the
first row of this matrix by 2, we don’t actually change the value of the
matrix.
[1 −6 | 0] [ 1 0 ] [1 −6 | 0 ]
3 2 | 7 2⋅3 2⋅2 | 2⋅7 6 4 | 14
→ →
−6 |
How can it be true that multiplying a row by a constant doesn’t change the
value of the matrix? Aren’t the entires in the matrix now different?
34
Remember that a row in a matrix represents a linear equation. For
instance, the matrix
[1 −6 | 0 ]
6 4 | 14
6x + 4y = 14
x − 6y = 0
So in the same way, we can divide the 2 back out of the matrix, undoing
the operation from before,
[1 −6 | 0 ] [ 1 [1 −6 | 0]
1 1 1
]
6 4 | 14 ⋅6 ⋅4 | ⋅ 14 3 2 | 7
→ 2 2 2 →
−6 | 0
Keep in mind that you’re not limited to multiplying only one row of a
matrix by a non-zero constant. You can multiply as many rows as you like
by a constant, and the constants don’t even have to be the same.
For example, we can multiply the first row of the matrix by 2 (which we
write as 2R1 → R1), and multiply the second row of the matrix by 3 (which
we write as 3R2 → R2),
35
[1 −6 | 0] [3 ⋅ 1 3 ⋅ −6 | 3 ⋅ 0] [3 −18 | 0 ]
3 2 | 7 2⋅3 2⋅2 | 2⋅7 6 4 | 14
→ →
and we still won’t have changed the value of the matrix, since those
constants could be divided right back out again.
Example
2 3 −1 | 11
1 7 4 | 6
0 −1 −8 | −3
6 9 −3 | 33
1 7 4 | 6
0 −1 −8 | −3
6 9 −3 | 33
1 7 4 | 6
0 −2 −16 | −6
36
0 −2 −16 | −6
1 7 4 | 6
6 9 −3 | 33
It’s also acceptable to add one row to another. Keep in mind though that
this doesn’t consolidate two rows into one. Instead, we replace a row with
the sum of itself and another row. For instance, in this matrix,
[1 −6 | 0]
3 2 | 7
we could replace the first row with the sum of the first and second rows,
R1 + R2 → R1. When we perform that operation, we’re replacing the entries
in row 1, but row 2 stays the same.
[ 1 0 ] [1 −6 | 0]
3+1 2−6 | 7+0 4 −4 | 7
→
−6 |
Of course, you can also replace a row with the difference of itself and
another row. But subtracting a row from another is the same as adding the
row, multiplied by −1, so because we know we can add rows, it’s logical
that we can also subtract rows.
Example
37
Write the new matrix after R1 + 4R3 → R1.
2 3 −1 | 11
1 7 4 | 6
0 −1 −8 | −3
[0 −1 −8 | −3]
So 4R3 would be
[0 −4 −32 | −12]
[2 −1 −33 | −1]
The matrix after R1 + 4R3 → R1, which is replacing row 1 with this row we just
found, is
2 −1 −33 | −1
1 7 4 | 6
0 −1 −8 | −3
38
39