MIT18.06学习笔记 - Lecture 2: Elimination with Matrices

时间:2024-03-23 13:58:36

这个系列文章是我重温Gilbert老爷子的线性代数在线课程的学习笔记。
Course Name:MIT 18.06 Linear Algebra
Text Book: Introduction to Linear Algebra
章节内容: 2.2-2.3


课程提纲
1. Elimination and Back-Substitution
2. Elimination Matrix E and Permutation Matrix P
3. The Augmented Matrix

课程重点
Gaussian elimination (also known as row reduction) is an algorithm for solving systems of linear equations. It is usually understood as a sequence of operations performed on the corresponding matrix of coefficients. This method can also be used to find the rank of a matrix, to calculate the determinant of a matrix, and to calculate the inverse of an invertible square matrix.

MIT18.06学习笔记 - Lecture 2: Elimination with Matrices
MIT18.06学习笔记 - Lecture 2: Elimination with Matrices


Elimination and Back-Substitution

The systematic way to solve linear equations: elimination, 所有软件如matlab的求解矩阵的方法。
Elimination produces an upper triangular system,and use back substitution to solve it:
MIT18.06学习笔记 - Lecture 2: Elimination with Matrices
The word “entry” for a matrix corresponds to “component” for a vector. General rule: aij=A(i,j) is in row i, column j.
To perform Gaussian Elimination (row reduction) on a matrix, one uses a sequence of elementary row operations to modify the matrix until the lower left-hand corner of the matrix is filled with zeros, as much as possible. There are three types of elementary row operations:

  • Swapping two rows,
  • Multiplying a row by a nonzero number,
  • Adding a multiple of one row to another row.

MIT18.06学习笔记 - Lecture 2: Elimination with Matrices
The pivots are on the diagonal of the triangle after elimination.
MIT18.06学习笔记 - Lecture 2: Elimination with Matrices
Failure, breakdown of elimination: For n equations we do not get n pivots.
Elimination leads to an equation 00 (no solution) and 0=0 (many solutions).
Success comes with n pivots. But we may have to exchange the n equations.

Elimination Matrix E and Permutation Matrix P

The Matrix Eij for One Elimination Step
Multiplication by elimination matrix E21 subtracts 2b1 from b2 and Rows 1 and 3 stay same:
MIT18.06学习笔记 - Lecture 2: Elimination with Matrices
The identity matrix has 1’s on the diagonal and otherwise 0’s. Then Ib=b for all b. The elimination matrix Eij that subtracts a multiple l of row j from row i has the extra nonzero entry l in the i, j position (still diagonal 1’s).

The Matrix Pij for a Row Exchange
Multiplying by permutation matrix P23 exchanges rows 2 and 3 of any matrix:
MIT18.06学习笔记 - Lecture 2: Elimination with Matrices
MIT18.06学习笔记 - Lecture 2: Elimination with Matrices

Two Elimination Steps
MIT18.06学习笔记 - Lecture 2: Elimination with Matrices

The Augmented Matrix

Elimination does the same row operations to A and b, we can include b as an extra column and follow it through elimination:
MIT18.06学习笔记 - Lecture 2: Elimination with Matrices