Part 2: Solving Linear Equations : is
2.1 Inverse Matrices and Solutions
If is a square invertible matrix, there exists such that:
The solution to is then:
2x2 Inverse Formula:
Here is the determinant. If the determinant is zero, the matrix is singular (not invertible).
Conditions for Invertibility (all equivalent):
- Independent rows and independent columns
- Nonzero determinant
- No zero pivots during elimination
- implies
- Full rank ()
Inverse of a Product:
Note the reverse order: the inverse of a product is the product of inverses in reverse order.
2.2 Triangular Matrix and Back Substitution for
An upper triangular matrix has zeros below the diagonal:
Back Substitution solves starting from the last equation:
In general, for :
The pivots must all be nonzero. A zero pivot means the system is singular (no unique solution).
2.3 Elimination: Square Matrix to Triangular
Gaussian elimination transforms into an upper triangular matrix by subtracting multiples of rows from rows below.
The augmented matrix is carried to simultaneously.
Step-by-step for a 3x3 example:
- Use row 1 (the pivot row) to eliminate the first entries of rows 2 and 3.
- Use row 2 to eliminate the second entry of row 3.
- The result is , an upper triangular matrix.
The multiplier is:
Row Row Row
Pivots must be nonzero. If a pivot is zero, we attempt a row exchange. If all eligible rows have zero in the pivot position, the matrix is singular.
2.4 Row Exchanges for Nonzero Pivots: Permutation
A permutation matrix has the rows of the identity matrix in any order. There are permutation matrices of size .
Properties:
- (permutation matrices are orthogonal)
- Multiplying reorders the rows of
- times a column vector reorders its entries
Example: The permutation that swaps rows 1 and 3:
When a zero pivot is encountered during elimination, we exchange the current row with a lower row that has a nonzero entry in the pivot column. This means , where encodes all the row swaps performed.
2.5 Elimination with No Row Exchanges: Why is ?
When no row exchanges are needed, elimination factors into:
- is lower triangular with 1's on the diagonal
- is upper triangular (the result of elimination)
Where do and come from?
Each elimination step subtracts (pivot row ) from row . This is equivalent to multiplying on the left by an elementary elimination matrix . The product of all gives :
Then .
The entries of below the diagonal are the multipliers themselves. The diagonal entries of are 1's.
Column-Row Multiplication View: can also be seen as accumulating rank-one updates. Each step removes a rank-one matrix: (column of ) (row of ).
2.6 Transposes / Symmetric Matrices / Dot Products
Transpose: The transpose has entries . Rows become columns and vice versa.
Transpose Rules:
Symmetric Matrices: . For any matrix , the products and are always symmetric:
Dot Product as : The dot product . This notation appears throughout linear algebra in applications involving work (), income (), and heat ().
Factorization for Symmetric : When is symmetric and elimination proceeds without row exchanges, we can write:
where is diagonal containing the pivots from , and is lower triangular with 1's on the diagonal. This is a refinement of that exploits symmetry, reducing storage and computation by roughly half.