Revision
Revision
Contents
1 Elementary Matrices 2
2 LU Decomposition 3
3 Vector Spaces 4
4 Column Space 5
5 Null Space 6
7 Dimension 9
9 Rank-Nullity Theorem 11
10 Subspaces 11
13 Affine Spaces 15
1
1 Elementary Matrices
Definition. An elementary matrix is obtained by applying a single elementary row operation
to the identity matrix. Multiplying an elementary matrix E on the left of a matrix A performs
the corresponding row operation on A.
3. Type III (Row Addition): Eij (k) adds k times row j to row i
Key Properties
• Every elementary matrix is invertible
2
Example: Complex operation using multiple elementary matrices
2 LU Decomposition
Definition. For a square matrix A, an LU decomposition is a factorization A = LU where L
is lower-triangular (often with unit diagonal) and U is upper-triangular.
Existence Conditions
• LU exists if all leading principal minors are nonzero
3
Example: Larger matrix LU decomposition
1 2 3
For A = 2 5 8:
1 3 4
Solution
Step 1: Eliminate below a11 = 1
Final result:
1 0 0 1 2 3
L = 2 1 0 , U = 0 1 2
1 1 1 0 0 −1
3 Vector Spaces
Definition. A set V with operations addition (+) and scalar multiplication (·) is a vector space
over field F if it satisfies these axioms:
2. Associativity: (u + v) + w = u + (v + w)
4
3. Commutativity: u + v = v + u
Let P2 = {a0 + a1 x + a2 x2 : a0 , a1 , a2 ∈ R}
Closure under addition: (a0 + a1 x + a2 x2 ) + (b0 + b1 x + b2 x2 ) = (a0 + b0 ) + (a1 +
b1 )x + (a2 + b2 )x2 ∈ P2
Closure under scalar multiplication: c(a0 + a1 x + a2 x2 ) = ca0 + ca1 x + ca2 x2 ∈ P2
Zero element: 0(x) = 0 + 0x + 0x2
4 Column Space
Definition. The column space Col(A) is the span of the columns of matrix A. Equivalently,
Col(A) = {b : Ax = b is consistent}.
Key Properties
• Col(A) is a subspace of Rm when A is m × n
• dim(Col(A)) = rank(A)
5
• Pivot columns of A form a basis for Col(A)
Don’t confuse the columns of the original matrix with the columns of the row-reduced
form! The pivot columns of the original matrix form the basis for Col(A).
5 Null Space
Definition. The null space Nul(A) = {x ∈ Rn : Ax = 0} is the set of all solutions to the
homogeneous system Ax = 0.
Key Properties
• Nul(A) is always a subspace of Rn when A is m × n
6
• Basis vectors correspond to free variables in the solution
7
Example: Standard bases
1 0 0
• R :
3 0 , 1 , 0
0 0 1
• P2 : {1, x, x2 }
1 0 0 1 0 0 0 0
• M2×2 : , , ,
0 0 0 0 1 0 0 1
Are vectors v1 = (1, 2, 1), v2 = (2, 1, 3), v3 = (1, −1, 2) linearly independent?
Set up: c1 v1 + c2 v2 + c3 v3 = 0
1 2 1 c1 0
2 1 −1 c2 = 0
1 3 2 c3 0
1 2 1 1 2 1
Row reduce to find if only trivial solution exists: 2 1 −1 → 0 −3 −3 →
1 3 2 0 1 1
1 2 1
0 1 1
0 0 0
Since we get a zero row, the vectors are linearly dependent. We can express v3 =
v1 + v2 (verify this!).
Find a basis for span{(1, 2, 0, 1), (0, 1, 1, 0), (1, 3, 1, 1), (2, 5, 1, 2)}.
Create matrix with these as columns and row reduce:
1 0 1 2 1 0 1 2
2 1 3 5 0 1 1 1
0 1 1 1 → 0 0 0 0
1 0 1 2 0 0 0 0
8
7 Dimension
Definition. The dimension of a vector space V is the number of vectors in any basis of V . We
write dim(V ).
Important Theorems
• All bases of a vector space have the same number of elements
• dim(Rn ) = n
• dim(Mm×n ) = mn
9
Methods to Find Rank
1. Count pivot positions in row echelon form
Properties of rank:
• rank(AT ) = rank(A)
System
Ax= b is consistent
if and only if rank(A) = rank([A|b]).
1 2 x 3
For = :
2 4 y 6
1 2 3
rank(A) = 1 and rank([A|b]) = rank = 1 Since ranks are equal, the system
2 4 6
is consistent.
10
Example: Rank and invertibility
For n × n matrix A:
• A is invertible rank(A) = n
• A is invertible nullity(A) = 0
• A is invertible det(A) ̸= 0
1 2 3
Test: A = 0 1 2 (upper triangular) rank(A) = 3 = n, so A is invertible. det(A) =
0 0 1
1 · 1 · 1 = 1 ̸= 0
9 Rank-Nullity Theorem
Fundamental Theorem. For any m × n matrix A:
rank(A) + nullity(A) = n
This connects the dimension of the column space with the dimension of the null space.
System Ax = 0 where A is m × n:
10 Subspaces
Definition. A subset W ⊆ V is a subspace if:
1. 0 ∈ W (contains zero vector)
11
3. v ∈ W, c ∈ F ⇒ cv ∈ W (closed under scalar multiplication)
• All of R3
Is W = {(x, y, z) ∈ R3 : x + 2y − z = 0} a subspace?
Zero test: (0, 0, 0) satisfies 0 + 2(0) − 0 = 0 Addition: If (x1 , y1 , z1 ), (x2 , y2 , z2 ) ∈ W ,
then: (x1 +x2 )+2(y1 +y2 )−(z1 +z2 ) = (x1 +2y1 −z1 )+(x2 +2y2 −z2 ) = 0+0 = 0 Scalar
multiplication: If (x, y, z) ∈ W and c ∈ R: c(x + 2y − z) = cx + 2cy − cz = c(0) = 0
Therefore, W is a subspace.
3. W = {(x, y, z) ∈ R3 : |x| + |y| + |z| ≤ 1} (unit ball) Not a subspace: not closed
under scalar multiplication (try c = 2)
Let U = span{(1, 0, 0), (0, 1, 0)} and V = span{(1, 1, 0), (0, 0, 1)}
Intersection: U ∩ V = {(x, y, z) : z = 0 and (x, y, z) ∈ V } Solving: (x, y, 0) =
a(1, 1, 0) + b(0, 0, 1) gives b = 0, so (x, y, 0) = a(1, 1, 0) Therefore: U ∩ V =
span{(1, 1, 0)} with dim(U ∩ V ) = 1
Sum: U + V = {u + v : u ∈ U, v ∈ V } Since any vector in R3 can be written as
(a, b, 0) + (c, c, d) = (a + c, b + c, d) We can solve for any (x, y, z): a = x − y, b = 0,
c = y, d = z Therefore: U + V = R3 with dim(U + V ) = 3
Verification of dimension formula: dim(U ) + dim(V ) = 2 + 2 = 4 dim(U ∩ V ) +
dim(U + V ) = 1 + 3 = 4
12
2. Row reduce to reduced row echelon form (RREF)
All variables are basic (3 pivots for 3 variables). Unique solution: (x, y, z) = (−1, 2, 0).
Pivots in columns 1 and 3. Basic variables: x, z. Free variable: y = t. From the RREF:
- z = 1 (from row 2) -x +
2t + =6⇒
3(1) x = 3 − 2t (from row 1)
x 3 −2
General solution: y = 0 + t 1
z 1 0
3
This represents a line in R .
13
Example: Parametric solutions with multiple free variables
x1
1 2 0 3 4 x2
5
Solve: 0 0 1 2 1 x 3
= −1
0 0 0 0 0 x4 0
x5
From RREF: - Row 1: x1 + 2x2 + 3x4 = 5 - Row 2: x3 + 2x4 = −1
Basic variables: x1 , x3 . Free variables: x2 = s, x4 = t, x5 = u.
Solving: - x3 = −1 − 2t - x1 = 5 − 2s − 3t
General solution:
x1 5 −2 −3 0
x2 0 1 0 0
x3 = −1 + s 0 + t −2 + u 0
x4 0 0 1 0
x5 0 0 0 1
14
Example: Parametric description of solution sets
When checking consistency, always row reduce the augmented matrix [A|b], not just
the coefficient matrix A. The appearance of a pivot in the last column indicates incon-
sistency.
13 Affine Spaces
Definition. An affine space (or affine set) is a translation of a linear subspace:
v0 + W = {v0 + w : w ∈ W }
where v0 is a fixed vector and W is a subspace.
This is the affine space (2, 0) + span{(−1, 1)}. - Point: (2, 0) (particular solution) -
Direction: span{(−1, 1)} (null space of coefficient matrix)
v0 + c1 w1 + c2 w2 + · · · + ck wk
t1 v1 + t2 v2 + · · · + tk vk where t1 + t2 + · · · + tk = 1
15
Note: Connection to linear algebra
{xp + n : n ∈ Nul(A)}
16
15 Advanced Topics and Applications
Example: Matrix equations AX = B
1 2 5 6
Solve X=
3 4 7 8
This is equivalent to solving two systems:
AX1 = 7)T and AX
(5, 2 = (6, 8)
T
4 −2 −2 1
Solution: X = A−1 B where A−1 = −2 1
=
−3 1 3/2 −1/2
−2 1 5 6 −3 −4
X= =
3/2 −1/2 7 8 1/2 1
For overdetermined system Ax = b (more equations than unknowns), the least squares
solution satisfies:
AT Ax = AT b
Example: Fit line y = mx + c through points (0, 1), (1, 2), (2, 2):
0 1 1
A = 1 1 , b = 2
2 1 2
Normal equations: AT Ax = AT b
T 5 3 T 6
A A= , A b=
3 3 5
Common Dimensions
• dim(Rn ) = n
• dim(Pn ) = n + 1
• dim(Mm×n ) = mn
n(n+1)
• dim(symmetric n × n matrices) = 2
17
Problem-Solving Checklist
1. Always check dimensions and compatibility
Study Tips: Practice with varied examples, visualize in low dimensions, and always verify
theoretical results with concrete computations. Master the connections between algebraic and
geometric viewpoints!
18