2. Elimination with Matrices.
Overview
Elimination solves the system Ax = b by using row operations to turn the coefficient matrix A into an upper-triangular matrix U, then recovering the variables by back substitution. The worked system has pivots 1, 2, and 5, produces the solution (x, y, z) = (2, 1, -2), and introduces elimination matrices, permutation matrices, matrix multiplication order, and inverse operations.
Key takeaways
- For the example matrix, elimination produces pivots 1, 2, and 5 and upper-triangular U; back substitution then yields (x, y, z) = (2, 1, -2).
- A zero pivot does not automatically mean failure: exchanging with a lower row works when a nonzero candidate exists, while a zero pivot with no usable row below indicates singularity.
- The augmented matrix keeps the right-hand side synchronized with coefficient elimination, transforming b = [2, 12, 2] into c = [2, 6, -10].
- Elementary matrices encode row operations through left multiplication, and the full elimination is U = E₃₂E₂₁A.
- Matrix products are associative but not commutative, so elimination matrices can be regrouped but cannot be reordered.
- The inverse of a row-subtraction operation adds back exactly what was subtracted, such as reversing row 2 - 3·row 1 with row 2 + 3·row 1.
Chapters
- The lecture uses elimination rather than determinants to solve a three-equation, three-unknown system.
- Elimination is described as the method used by software such as MATLAB to solve linear systems efficiently.
- The process seeks pivots and can reveal whether a matrix presents a problem during elimination.
- The example system has coefficient matrix A = [[1, 2, 1], [3, 8, 1], [0, 4, 1]] and right-hand side b = [2, 12, 2].
- The first pivot is A₁₁ = 1; subtracting 3 times row 1 from row 2 eliminates the 3 in position (2,1).
- The updated second row becomes [0, 2, -2], and the same operation changes its right-hand side from 12 to 6.
- The next elimination target is position (3,1), which is already zero, so its multiplier is 0.
- The second pivot is 2; subtracting 2 times row 2 from row 3 eliminates the 4 in position (3,2).
- The resulting upper-triangular matrix U has diagonal pivots 1, 2, and 5, whose product is 10, the determinant for this example.
- A zero in a pivot position can often be fixed by exchanging rows, provided a nonzero entry exists below it.
- If the original second-row coefficient 8 were changed to 6, the second pivot would become zero, but a row exchange with the third row could recover.
- Changing the final coefficient 1 to -4 makes the last pivot zero with no nonzero entry below it, indicating that the matrix is singular and elimination cannot produce three pivots.
- Appending b to A forms an augmented matrix, so each row operation updates the right-hand side along with the coefficients.
- After elimination, the transformed right-hand side is c = [2, 6, -10], giving Ux = c.
- Solving from the bottom upward gives z = -2, y = 1, and x = 2.
- Multiplying a matrix by a column vector forms a linear combination of the matrix columns, weighted by the vector entries.
- Multiplying a row vector such as [1, 2, 7] by a matrix forms a linear combination of its rows.
- Left multiplication is the relevant viewpoint for elimination because elimination changes rows.
- The operation row 2 ← row 2 - 3·row 1 is represented by E₂₁ = [[1, 0, 0], [-3, 1, 0], [0, 0, 1]].
- The operation row 3 ← row 3 - 2·row 2 is represented by E₃₂ = [[1, 0, 0], [0, 1, 0], [0, -2, 1]].
- Applying the matrices in sequence gives U = E₃₂E₂₁A, with the right-hand side transformed by the same row operations.
- Associativity allows E₃₂(E₂₁A) to be regrouped as (E₃₂E₂₁)A, so the elimination steps can be combined into one matrix.
- A permutation matrix exchanges rows; for a 2-by-2 example, [[0, 1], [1, 0]] swaps the two rows.
- Row operations use multiplication on the left, while column operations use multiplication on the right.
- Matrix multiplication is not commutative: the elimination matrices must remain in their original order even though parentheses can move.
- The inverse of E₂₁ reverses row 2 ← row 2 - 3·row 1 by applying row 2 ← row 2 + 3·row 1.
- For E₂₁ = [[1, 0, 0], [-3, 1, 0], [0, 0, 1]], the inverse is [[1, 0, 0], [3, 1, 0], [0, 0, 1]].
- The inverse operation restores the original row and is denoted E₂₁⁻¹, setting up the study of matrix inverses.
Transcript excerpt
0:00 2 times this equation, Okay. This is it. The second lecture in linear algebra, and I've put below my main topics for today. I put right there a system of equations that's going to be our example to work with. But what are we going to do with it? We're going to solve it. And the method of solution will not be determinants. Determinants are something that will come later. The method we'll use is called elimination. And it's the way every software package solves equations.
0:58 And elimination, well, if it succeeds, it gets the answer. And normally it does succeed. If the matrix A that's coming into that system is a good matrix, and I think this one is, then elimination will work. We'll get the answer in an efficient way. But why don't we, as long as we're sort of seeing how elimination works -- it's always good to ask how could it fail? So at the same time, we'll see how elimination decides whether the matrix is a good one or has problems. Then to complete the answer, there's an obvious step of back substitution. In fact, the idea of elimination is -- you would have thought of it, right?
1:47 I mean Gauss thought of it before we did, but only because he was born earlier. It's a natural idea... and died earlier, too. Okay, and you've seen the idea. But now, the part that I want to show you is elimination expressed in matrix language, because the whole course -- all the key ideas get expressed as matrix operations, not as words. And one of the operations, of course, that we'll meet is how do we multiply matrices and why? Okay, so there's a system of equations. Three equations and three unknowns.
2:38 And there's the matrix, the three by three matrix --
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, MIT OpenCourseWare.