Column space and null space
Describe the column space C(A) and the null space N(A) of a matrix, and use them to decide whether Ax = b is solvable and whether its solution is unique.
It opens on
Both columns of [[1, 2], [2, 4]] point along one line. Which right sides b can Ax = b reach, and when it can be solved, is the answer the only one?
Why it matters
Every linear system, regression and data-fitting problem asks two questions, can b be reached and by how many x, and the column space and null space answer them without solving anything.
Good to know first
- Vector spaces: a subspace contains 0 and is closed under sums and multiples
- Ax = x₁a₁ + x₂a₂ is a combination of the columns
- solving Ax = 0 by elimination
Step by step
The column space and solvability
Define C(A) as the set of all Ax and use it to decide when Ax = b can be solved.
For A = [[1, 2], [2, 4]], Ax = x₁(1, 2) + x₂(2, 4) = (x₁ + 2x₂)(1, 2), so every output is a multiple of (1, 2).
A common mix-up
Ax = b can always be solved if the matrix is square.
In fact: A = [[1, 2], [2, 4]] is square and C(A) is only a line.
The null space and all solutions
Define N(A) as the solutions of Ax = 0 and describe every solution of Ax = b as one solution plus a vector of N(A).
For A = [[1, 2], [2, 4]], both equations say x + 2y = 0, since the second row is twice the first, so x = −2y.
A common mix-up
N(A) is the set of solutions of Ax = b.
In fact: That is a shifted copy; only the solutions of Ax = 0 form N(A), through the origin.
A 3 × 2 matrix in space
Find C(A) as a plane in ℝ³ for a 3 × 2 matrix with independent columns, test points against it, and read N(A) = {0} as uniqueness.
Let A be the 3 × 2 matrix with columns a₁ = (1, 1, 0) and a₂ = (0, 1, 1); then Ax = (x₁, x₁ + x₂, x₂).
A common mix-up
A matrix with more rows than columns always has Ax = b solvable.
In fact: C(A) is only a plane in ℝ³, so most b are unreachable.
Try it
For A = [[1, 3], [2, 6]], is b = (2, 5) in C(A)?Answer
No; outputs are multiples of (1, 2) and (2, 5) is not
Hint: Compare the two entries
Find N(A) for A = [[1, 3], [2, 6]].Answer
All multiples of (3, −1)
Hint: x + 3y = 0
Is b = (2, 3, 1) in C(A) for the A above?Answer
Yes: x₁ = 2, x₂ = 1 gives (2, 3, 1); 2 − 3 + 1 = 0
Hint: Read x from the first and third entries
Can Ax = (3, 6) be solved, and can Ax = (3, 5)?Answer
(3, 6) yes, it is 3(1, 2); (3, 5) no, it is not a multiple of (1, 2).
Check that An = 0.Answer
(2 − 2, 4 − 4) = (0, 0).
