Home page for accesible maths 4 Linear transformations

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

4.E Systems of linear equations

One of the main uses of linear algebra is to assist in finding the solutions to systems of linear equations. Recall that a system of linear equations is a collection of equations of the form:

  1. a11x1++a1nxn=b1

  2. am1x1++amnxn=bm

Here aij,biF are considered fixed, and the symbols xi are viewed as variables for which we would like to find solutions. So if we define the matrix A:=[aij], and the vectors X:=[x1xn]T, B:=[b1bm]T, then the system of equations is equivalent to the following matrix equation:

AX=B.

In MATH105 a lot of effort went into solving various systems of equations like this, in particular using the “augmented matrix method”. We will use the symbol [A|B] to refer to such an augmented matrix. Is consists of concatenating the matrix A with the column vector B. Using the concept of rank we can summarize the various situations:

Theorem 4.28.

Let A,X,B be defined as above, a system of m equations in n variables.

  • If rankArank[A|B], then the system has no solutions.

  • If rankA=rank[A|B], then the system has solutions, and in particular:

    • If rankA=n then there is a unique solution.

    • If rankA<n then there are infinitely many solutions.

If we assumed A is an invertible n×n matrix, then it is clear how to find the unique solution: AX=B implies X=A-1AX=A-1B.

But in general, the number of equations might not match the number of variables. So, if rankA=rank[A|B]=n, we can perform row operations on [A|B] until [A|B] has n non-zero rows. There is no harm in discarding the zero rows of [A|B], since they correspond to the equation 0=0. The resulting truncated A will be an invertible n×n matrix, and we can use its inverse to find the unique solution, as above.

Example 4.29.

How many solutions does the following system of linear equations have:

  1. x+y=0

  2. x-y+z=1

  3. 2x-y-z=1

Solution: Perform row operations on the augmented matrix:

[A|B]=[11001-1112-1-11][1-11101-3-10051].

Therefore, rankA=rank[A|B]=3, and so there is a unique solution.

To find this solution (which we weren’t asked to do), one multiplies the matrix equation AX=B on the left by A-1:

X=A-1B=15[2113-1-113-2][011]=[2/5-2/51/5].

It is also easy to check that (x,y,z)=(2/5,-2/5,1/5) satisfies the above equations.

Exercise 4.30:

Consider the following system of linear equations:

  1. x+y+z=1

  2. ax+ay+z=2-a

  3. ax+2y+z=2

Here a is treated as a fixed number, and x,y,z are treated as variables.

  1. i.

    Write this system as a matrix equation AX=B.

  2. ii.

    For which values of a is A invertible?

  3. iii.

    For all values of a, calculate rankA and rank[A|B].

  4. iv.

    For each a with infinitely many solutions, describe the solution set.

[End of Exercise]

A key connection that you are expected to make, that links this section with the previous ones is the following fact: Using notation as above, the system of linear equations AX=B has a solution if and only if B is in the image of A.