2. Elimination with Matrices.
Watch on YouTube →
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
0:00
Elimination as the Standard Method for Solving Ax = b
- 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.
3:00
First Pivot: Eliminate x from the Second Equation
- 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.
6:30
Second Pivot and the Upper-Triangular Matrix U
- 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.
10:30
Zero Pivots, Row Exchanges, and Elimination Failure
- 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.
14:30
Augmented Matrix and Back Substitution
- 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.
19:00
Matrix Products as Combinations of Columns and Rows
- 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.
24:30
Elementary Matrices Encode Elimination Steps
- 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.
33:00
Associativity, Permutation Matrices, and Operation Order
- 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.
43:00
Undoing an Elimination Step with an Inverse Matrix
- 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.
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.