MIT 18.065 Lecture 1 & 2
MIT 18.065 — Lecture 1 & 2
§Lecture 1 — Introduction to Linear Algebra
§1. What does a matrix do?
-
Matrix = linear transformation: It transforms vectors into new vectors via a linear combination of its columns.
-
Matrix (A) acting on vector (x):
-
Key takeaway: A matrix is a machine for combining vectors in a particular way.
§2. Column Space (Range of the Matrix)
-
The column space of a matrix (A) is the set of all vectors that can be formed by linear combinations of its columns:
-
The dimension of the column space is the rank of the matrix.
§3. Rank
-
Rank of a matrix is the number of linearly independent columns.
-
Rank of (A) determines the dimension of the column space:
-
If rank is full, the matrix maps all input vectors to a full-dimensional output space.
§4. Null Space
-
The null space of a matrix (A) is the set of vectors (x) for which (A x = 0).
-
The null space describes the dependencies among columns.
§5. Rank–Nullity Theorem
- The sum of the rank and the nullity of a matrix is equal to the number of columns:
§6. CR Factorization
-
CR decomposition of a matrix (
): -
(C) contains the linearly independent columns, and (R) contains the coefficients for the linear combinations.
-
is the row-reducd echelon form of matrix .
§Lecture 2 — Rank-One Matrices and Outer Products
§1. Outer Product
-
Outer product of vectors (a \in \mathbb{R}^m) and (b \in \mathbb{R}^p):
-
The entry at position ((i,j)) of the matrix is:
-
Outer products generate rank-1 matrices.
§2. Rank-One Matrices
-
Rank-One Matrix: If (a \neq 0) and (b \neq 0), then the rank of (a b^T) is 1.
-
This is because every column of (a b^T) is a multiple of the vector (a).
§3. Matrix Multiplication as Sum of Rank-One Matrices
-
A matrix multiplication can be viewed as a sum of outer products:
-
This is the basic idea of matrix multiplication: breaking down matrices into rank-1 pieces.
§Key Takeaways:
- Matrices = Linear combinations of columns.
- Rank describes the dimension of the space a matrix can map to.
- Null space shows the dependencies among columns.
- Outer products are the building blocks of matrices.
- Matrix multiplication = sum of rank-1 outer products.