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. a11⁢x1+⋯+a1⁢n⁢xn=b1

  2. ⋮

  3. am⁢1⁢x1+⋯+am⁢n⁢xn=bm

Here ai⁢j,bi∈F 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:=[ai⁢j], and the vectors X:=[x1⋯xn]T, B:=[b1⋯bm]T, then the system of equations is equivalent to the following matrix equation:

A⁢X=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 rank⁡A≠rank⁡[A|B], then the system has no solutions.

  • •

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

    • –

      If rank⁡A=n then there is a unique solution.

    • –

      If rank⁡A<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: A⁢X=B implies X=A-1⁢A⁢X=A-1⁢B.

But in general, the number of equations might not match the number of variables. So, if rank⁡A=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. 2⁢x-y-z=1

Solution: Perform row operations on the augmented matrix:

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

Therefore, rank⁡A=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 A⁢X=B on the left by A-1:

X=A-1⁢B=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. a⁢x+a⁢y+z=2-a

  3. a⁢x+2⁢y+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 A⁢X=B.

  2. ii.

    For which values of a∈ℝ is A invertible?

  3. iii.

    For all values of a∈ℝ, calculate rank⁡A 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 A⁢X=B has a solution if and only if B is in the image of A.