Finding a Matrix’s Null Space


Finding a Matrix’s Null Space

Hope
Let’s connect a few ideas about matrices: null spaces, solutions to equations, and one-to-one transformations. Start with the homogeneous equation, A x equals the zero vector. The null space of A is simply the set of all vectors x that satisfy it.

Corey
And to find that set, we row-reduce the augmented matrix with A on the left and a zero vector on the right. Row operations put A into reduced row-echelon form, and the right side remains zero because the same operations are applied to it.

Hope
Then we solve the resulting system. Any free variables give us parameters, so the solutions can be written as linear combinations of certain vectors. In other words, the null space is the span of those vectors. It always contains the zero vector, since A times zero is zero.

Corey
Now compare that with the inhomogeneous equation A x equals b, where b might not be zero. We row-reduce an augmented matrix with b on the right. The row operations also change that right-hand side, so we may end up with some transformed vector, which we can call b-prime.

Hope
If the system is consistent, its solutions have a useful form: one particular solution plus any solution to the homogeneous equation. We can write that as x equals x-particular plus a vector in the null space of A. The particular solution gives us one starting point; the null-space vectors describe how we can move from it and still satisfy A x equals b.

Corey
Let’s verify the claim. If x-particular solves A x equals b, and h is in the null space, then A h equals zero. So A times the sum x-particular plus h is A x-particular plus A h, which is b plus zero. The sum is indeed a solution.

Hope
And we can prove that every solution has this form. Suppose x is any solution to A x equals b, and choose a particular solution x-particular. Subtract them and apply A: A times the quantity x minus x-particular equals b minus b, which is zero.

Corey
That means x minus x-particular belongs to the null space. So x equals x-particular plus a null-space vector. Together, the two directions show that the entire solution set, whenever solutions exist, is exactly one particular solution plus the null space.

Hope
Why does that matter for one-to-one transformations? Suppose a linear transformation is represented by A, so it sends an input x to A x. Being one-to-one means no two different inputs map to the same output. Equivalently, for each output b, there can be at most one solution of A x equals b. Some b values may have no solution at all; that does not violate one-to-one.

Corey
If there is a solution, though, all solutions are x-particular plus a null-space vector. For there to be only one solution, the null space must contain no choice of a nonzero vector to add. Since it always contains zero, that condition is that the null space contains only the zero vector. That’s called a trivial null space.

Hope
Now translate that into a statement about the columns of A. Call them a-one through a-n. The equation A x equals zero can be written as x-one times a-one, plus x-two times a-two, continuing through x-n times a-n, equals the zero vector. The x-values here are scalars.

Corey
A trivial null space means the only scalars that make that combination equal zero are all zero. And that is exactly the definition of linear independence for the columns of A. So A represents a one-to-one transformation precisely when its columns are linearly independent.

Hope
The columns already span the column space, by definition. If they are also linearly independent, they form a basis for that space. Since there are n columns, that basis has n vectors, so the dimension of the column space—the rank of A—is n.

Corey
And the reasoning works backward too. If the rank is n, then all n columns are linearly independent. That means the only solution of A x equals zero is the zero vector, so the null space is trivial, and the transformation is one-to-one.

Hope
So for a matrix with n columns, the key equivalence is: the transformation x maps to A x is one-to-one if and only if the null space of A is trivial, if and only if the columns of A are linearly independent, if and only if the rank of A equals n.

Ask anything
We've read this whole study set, so questions about it get the best answers.