Section03 Elimination Using Matrices
The Matrix Form of One Elimination Step
elimination (elementary) matrix
- The elementary matrix or elimination matrix has the extra nonzero entry in the position. The subtracts a multiple of row from row , for example:
- The purpose of is to produce a zero in the position of the matrix.
Matrix Multiplication
- Associative law is true
- Commutative law is false
Matrix multiplication
represented by code
Julia
A = randn(3,3); B = randn(3,3); println(hcat((fill(A, size(B,2)) .* [eachcol(B)...])...)); println(A * B);Matlab
A = randn(3); B = rand(3,3); for i = 1:size(B,2) if i == 1 C = A * B(:,i) else C = [C A * B(:,i)] end end
The Matrix for a Row Exchange
- Permutation matrix
- : exchange the row with row .
- example
- is the identity matrix with row and reversed.
- When this Permutation Matrix multiplies with a matrix, it exchanges the row and of the matrix be multiplied.
The Augmented Matrix
- Key Idea: Elimination does the same row operations to and . We can include as extra column and follow it through elimination.
Properties from Exercise
the determinant of Matrix is equal to the determinant of Matrix which has been eliminated.
- example of 2-dimension matrix
- more general
2
- The meaning of
- The meaning of
-
- proof
Pascal's Matrix