3 Matrices

3.11 Solving RREF systems

Suppose we start with a linear system with matrix form A𝐱=𝐛 then put the augmented matrix (A𝐛) into RREF. Suppose the resulting matrix in RREF is (A𝐛). The whole point of RREF was that the solutions of A𝐱=𝐛 are the same as those of A𝐱=𝐛 but it should be “easy” to find the solutions of A𝐱=𝐛. How do we actually find those solutions?

Example 3.11.1.

Here is an augmented matrix in RREF

(10200014000001000001)

If the variables are called x,y,z,w then the corresponding equations are

x+2z =0
y+4z =0
w =0
0 =1

The last equation is impossible, so there are no solutions to this linear system.

Example 3.11.2.

Here is the same augmented matrix with a different final column.

(10202014030001400000)

In this case, if the variables are x,y,z,w, the equations are

x+2z =2
y+4z =3
w =4
0 =0

The solutions are x=22z,y=34z,w=4. The last 0=0 equation doesn’t tell us anything so it can be ignored. We can write the solutions in vector form as

(xyzw) =(22z34zz4)
=(2304)+z(2410)

In general:

  • If the last column of the augmented matrix has a leading entry (like in example 1), there are no solutions. Otherwise,

  • variables corresponding to a column with no leading entry (like z in example 2) can be chosen freely, and

  • the other variables are uniquely determined in terms of these free parameters.

The variables whose column has no leading entry are called free parameters.

3.11.1 Fundamental solutions

Recall that homogeneous system of linear equations is one whose matrix form is A𝐱=𝟎. This section is about a set of solutions to such a system called the fundamental solutions. These are the ones you get by putting the system into RREF and then choosing one free parameter to be 1 and the rest to be 0.

Let R𝐱=𝟎 be a homogeneous linear system where the m×n matrix R is in RREF. Suppose that there are leading entries in rows 1 up to r of R, where rm and rn. Let the leading entry in row i occur in column ci, so c1<c2<<cr, and note that because of part 3 of the RREF definition Definition 3.9.2, column ci of R has a 1 in position i and zeroes elsewhere. Let the columns of R with no leading entry be d1<<dk, so that k+r=n.

Here is an example. Suppose that

R=(012030001400000)

In this case m=3,n=5, and r=2 as only rows 1 and 2 contain leading entries. The leading entries are in columns 2 and 4, so c1=2,c2=4. Columns 1, 3, and 5 don’t contain leading entries, so k=3 and d1=1,d2=3,d3=5. If the variables in this linear system are x,y,z,u,v then x, z, and v are free parameters as their columns have no leading entry.

There are therefore three fundamental solutions, obtained by setting one free variable to 1 and the rest to 0 (and then working out the values of the other variables y and u by substituting into the equations).

By substituting into the equations R𝐱=𝟎, which are

y+2z+3v =0
u+4v =0,

you can check that the fundamental solution corresponding to x=1,z=v=0 is

(10000)T,

the fundamental solution in which z=1,x=v=0

(02100)T

and the fundamental solution corresponding to v=1,x=z=0 is

(03041)T

It’s possible to write down a general expression for the fundamental solutions of a system R𝐱=𝟎: with the notation above, for each 1jk the jth fundamental solution 𝐬j to R𝐱=𝟎 is

𝐬j=𝐞dji=1rri,dj𝐞ci

where R=(rij) and 𝐞j denotes, as usual, the jth standard basis vector. We won’t use this expression in MATH0005 so I won’t prove it here.

The reason we are interested in fundamental solutions is that they have an important property: any solution to R𝐱=𝟎 can be written uniquely as a linear combination of the fundamental solutions. This property is expressed by saying that the fundamental solutions form a basis of the space of solutions of R𝐱=𝟎: we will look at bases for the solution space the final chapter of MATH0005.

Corollary 3.11.1.

If A is m×n and n>m then the matrix equation A𝐱=𝟎 has a nonzero solution.

In terms of systems of linear equations, this says that homogeneous linear system with more variables than equations has a nonzero solution.

Proof.

When we do row operations to A to get a RREF matrix, that RREF matrix has at most one leading entry per row. It must therefore contain a column with no leading entry, and so there is a fundamental solution which is not the zero vector as one of its entries is 1. ∎

The number r of leading entries in the RREF form of a m×n matrix A is called the rank of A, and the number k of columns with no leading entry is its nullity. The fact that r+k=n is called the rank-nullity theorem, which we will return to in a more general context in the final chapter of MATH0005 on linear algebra.