Every matrix A comes with two subspaces attached. One collects the inputs that A sends to zero, and the other collects every output A can produce. These two subspaces, the null space and the column space, answer the two basic questions about Ax=b: are solutions unique, and do solutions exist?
The null space
Definition
Null space
The null space of an m×n matrix A is the set of all solutions of the homogeneous equation Ax=0:
NulA={x∈Rn:Ax=0}.
NulA is a subspace of Rn, where n is the number of columns of A. The check uses only the linearity of matrix multiplication: A0=0; if Au=0 and Av=0 then A(u+v)=Au+Av=0; and A(cu)=cAu=0.
Deciding whether a particular vector is in NulA is easy: multiply. For example, with
A=[12311−3],u=2−11,
you get Au=(2−3+1,4−1−3)=(0,0), so u is in NulA.
The definition of NulA is implicit: it gives a test that vectors must pass, not a list of the vectors. To make it explicit, solve Ax=0 and write the solution in parametric vector form. The vectors that multiply the free variables span NulA.
Worked example: A spanning set for a null space
Find a spanning set for NulA, where
A=123246011−110.
Row reduce A (the augmented column of zeros never changes, so leave it off). R2−2R1 and R3−3R1 give rows (0,0,1,3) and (0,0,1,3); then R3−R2 clears the last row:
100200010−130.
The pivots are in columns 1 and 3, so x2 and x4 are free. Reading the rows:
Two features of this method matter later. The spanning set it produces is automatically linearly independent, because each vector has a 1 in the position of its own free variable and 0 in the positions of the other free variables. And the number of vectors equals the number of free variables. If Ax=0 has only the trivial solution, then NulA={0}.
The column space
Definition
Column space
The column space of an m×n matrix A=[a1⋯an] is the set of all linear combinations of its columns:
ColA=Span{a1,…,an}={Ax:x∈Rn}.
As a span, ColA is automatically a subspace, and it lives in Rm, where m is the number of rows. The second description says b is in ColA exactly when Ax=b is consistent. In particular, ColA=Rm exactly when Ax=b has a solution for every b, which happens when A has a pivot in every row.
The column space is the opposite of the null space: it is defined explicitly (you can write down its vectors instantly) but testing membership takes work (you must row reduce [A∣b]).
Worked example: Is b in the column space?
Let A=123257. For which h is b=(1,h,5) in ColA?
You need c1,c2 with c1+2c2=1, 2c1+5c2=h and 3c1+7c2=5. The first and third equations involve no h. Subtracting 3 times the first from the third gives c2=2, and then c1=1−4=−3. The middle equation must also hold:
h=2(−3)+5(2)=4.
So b is in ColA only when h=4.
Comparing the two
For an m×n matrix A:
NulA
ColA
Lives in
Rn
Rm
Description
implicit: Ax=0
explicit: span of the columns
Membership test
compute Av
row reduce [A∣v]
Finding a spanning set
solve Ax=0
read off the columns
Trivial case
{0} iff columns are independent
Rm iff a pivot in every row
Common mistake
Keep track of where each subspace lives. For a 3×5 matrix, null space vectors have 5 entries and column space vectors have 3. A vector can be in one only if it has the right size, so a quick size check catches many errors.
Kernel and range
The same ideas apply to any linear transformation T:V→W between vector spaces. The kernel of T is the set of u in V with T(u)=0, and the range of T is the set of all outputs T(u). The kernel is a subspace of V and the range is a subspace of W. When T(x)=Ax, the kernel is NulA and the range is ColA.
Worked example: The kernel of a transformation
Let T:R3→R2 be T(x,y,z)=(x−y,y−z). Find the kernel.
T(x,y,z)=0 means x=y and y=z. So the kernel is all vectors (t,t,t), the line Span{(1,1,1)}. The range is all of R2, since any (a,b) equals T(a+b,b,0).
Tip
A nonzero vector in NulA is a dependence relation among the columns of A: if Ax=0, then x1a1+⋯+xnan=0. In the first example, (−2,1,0,0) says column 2 is twice column 1.
Practice
Practice 1
A is a 4×6 matrix. ColA is a subspace of Rk. What is k?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 2
A is a 5×7 matrix. NulA is a subspace of Rk. What is k?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 3
Let A=[3114−25] and v=(1,−2,1). Is v in NulA?
Practice 4
Let A=[1001−23]. NulA is spanned by a single vector of the form (a,b,1). Find it.
Enter a point like (2, -3)
Practice 5
Let A=12−1−2−4248−4. The standard method (solving Ax=0 in parametric vector form) produces a spanning set for NulA. How many vectors are in it?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 6
Let A=102013. For what value of h is b=(2,1,h) in ColA?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 7
Let T:R3→R2 be T(x,y,z)=(x+z,y−2z). The kernel of T is a line spanned by a vector whose third entry is 1. Find that vector.
Enter a point like (2, -3)
Practice 8
A is a 3×3 matrix and NulA={0}. Which statement must be true?