這個系列文章是我重溫Gilbert老爺子的線性代數在線課程的學習筆記。
Course Name:MIT 18.06 Linear Algebra
Text Book: Introduction to Linear Algebra
章節內容: 2.4-2.5
課程提綱
1. Matrix Multiplication (5 ways)
2. The laws for Matrix Operations
3. Inverse Matrices
4. Gauss-Jordan Elimination
課程重點
Row echelon form resulting from Gaussian elimination: an upper triangular matrix .
Reduced row echelon form computed by Gauss–Jordan elimination: all of the leading coefficients (the leftmost nonzero entry in each row) are 1, and every column containing a leading coefficient has zeros elsewhere, it is unique and independent of the sequence of row operations used. For example, the third and fourth matrices are the ones in row echelon form, and the final matrix is the unique reduced row echelon form:
Matrix Multiplication (5 ways)
1. Entry view, the entry in row and column of is (row of ) (column of ):
2. Column view, columns of are combinations of columns of A:
3. Row view, rows of are combinations of rows of B:
4. Outer product view, adds up columns times rows, important special case of block view:
Compare it with the usual rows times columns. Row 1 of times column 1 of gave the (1,1) entry in . Now column 1 of times row 1 of gives a full matrix - not just a single number:
5. Block view, matrix can be cut into blocks, if the cuts between columns of match the cuts between rows of , block multiplication of is allowed:
Block matrix can do elimination on a whole (block) column of :
This is the ordinary elimination, a column at a time - written in blocks. That final block is called the .
The laws for Matrix Operations
Inverse matrix is and .
Inverse Matrices
The matrix is invertible if there exists a matrix such that and . Six notes about :
Note 1: The inverse exists if and only if elimination products pivots (row exchanges are allowed).
Note 2: Suppose and also , then , according to
Note 3: If is invertible, the one and only solution to is
Note 4: Suppose there is a nonzero vector such that , then cannot have an inverse.
Note 5: A 2 by 2 matrix is invertible if and only if is not zero:
This number is the determinant of . A matrix is invertible if its determinant is not zero, but the test for pivot is usually decided before the determinant appears.
Note 6: A diagonal matrix has an inverse provided no diagonal entries are zeros:
The Inverse of a product comes in reverse order:
For square matrices, an inverse on one side is automatically an inverse on the other side. If then automatically , where .
Gauss-Jordan Elimination
Th Gauss-Jordan method computes using block matrix :
Here is an example, first part is doing Gaussian elimination to get (upper triangular) in the first three columns, which is in Row Echelon Form:
Second part is to produce zeros above the pivots: Gauss would finish by back substitution but Jordan continue with elimination to the Reduced Echelon Form (after the last step):
The last step is to divide each row by its pivot, the first half of the result matrix is , because is invertible and the second half is :