4 Linear algebra

4.16 Matrix nullspace basis

We are ready to prove that the fundamental solutions of A𝐱=𝟎 are a basis for N(A). To set up the notation, suppose A is a m×n matrix, R is a RREF matrix obtained by doing row operations to A, the number of columns of R with a leading entry is r and the number of columns with no leading entry is k, so r+k=n. Let the numbers of the columns with no leading entry be

j1<j2<<jk

and the numbers of the columns that do have a leading entry be

i1<i2<ir

so that the numbers j1,,jk,i1,,ir contain all of the numbers 1,,n exactly once. The variable corresponding to a column with no leading entry is called a free parameter because its value can be chosen freely. There are k fundamental solutions to A𝐱=𝟎, with the jth fundamental solution defined to be the one where the jth free parameter is 1 and all the other free parameters are 0.

Theorem 4.16.1.

The fundamental solutions to A𝐱=𝟎 are a basis of the nullspace N(A).

Before we do the proof, let’s work an example to illustrate how it will go. Free parameters and their coefficients will be coloured red. Take

R=(012030001400000)

so that we have m=3 and n=5. The columns with no leading entry are 1, 3, and 5 so k=3, j1=1,j2=3,j3=5, and variables x1, x3, and x5 are the free parameters. The columns with leading entries are 2 and 4, so r=2 and i1=2,i2=4. The equations corresponding to R𝐱=𝟎 are

x2+2x3+3x5 =0
x4+4x5 =0

(missing off the final one, since it just says 0=0). These equations show that once values for the free parameters are known, the other variables x2 and x4 are completely determined by those values — we have x2=2x33x5 and x4=4x5.

The three fundamental solutions are

𝐬1=(10000),𝐬2=(02100),𝐬3=(03041).

These are linearly independent, because if

a1𝐬1+a2𝐬2+a3𝐬3=𝟎

then row 1 of this equation shows that a1=0, row 3 shows that a2=0, and row 5 shows that a3=0. To show that the fundamental solutions span, suppose 𝐬=(s1s5) is any vector such that R𝐬=𝟎. We claim that 𝐬 is equal to s1𝐬1+s3𝐬2+s5𝐬3. Certainly these two vectors have the same entries in rows 1, 3, and 5, since the entries in these rows are s1,s3, and s5. What about the entries in rows 2 and 4, that is, the values of x2 and x4? As above, these entries are completely determined by the values of the free parameters. The free parameters are the same for both vectors, so the values of x2 and x4 are the same as well. We have shown that any solution 𝐬 is in the span of the fundamental solutions, so we are done.

Proof.

Theorem 3.9.1 shows that N(A)=N(R), so we will show that the fundamental solutions are a basis of N(R).

First we show that the fundamental solutions 𝐬1,,𝐬k are linearly independent. Suppose that

jaj𝐬j=𝟎. (4.6)

The first fundamental solution corresponds to the variable for column j1, so 𝐬1 has a 1 in row j1 and all the other fundamental solutions have a 0 there. Thus the entry in row j1 on the left hand side of (4.6) is a1, so a1=0. Similarly all the other coefficients are zero.

Now let 𝐬 be any solution of A𝐱=𝟎 and let the entry of 𝐬 in row i be si. We are going to show that

𝐬=i=1ksji𝐬i.

The left hand side and right hand side of this claimed equation are solutions to R𝐱=𝟎 with the same free parameter values sj1,,sjk. We just have to show that the values of the other variables are the same. But the values of the variables that aren’t free parameters are uniquely determined by the values of the free parameters, because by the RREF property, for 1ar the only equation containing xia is the one coming from row a of R which has the form

xi1+=0

where the only other variables occurring with nonzero coefficient are free parameters. Since 𝐬 and i=1ksji𝐬i are solutions to R𝐱=𝟎 with the same free parameter values sj1,,sjk, they are equal.