You are on page 1of 10

Systems of Linear Equations

A system of linear equations is a collection of two or more linear equations, each containing one
or more variables.
The following is a system of three equations containing three variables.
x + y – z = –1
4x – 3y + 2z = 16
2x – 2y – 3z = 5
Using a matrix notation we can write this system in the simplified form
1 1 −1 −1
 
4 −3 2 16  .
2 −2 −3 5 
 
This is called the augmented matrix of the system.
In writing the augmented matrix, notice that the variables, being understood, are omitted and the
equal signs are replaced by a vertical line. So that the first row of the augmented matrix is
interpreted as x + y – z = –1, the second row as 4x – 3y + 2z = 16
and the third row as 2x – 2y – 3z = 5.
Ex. Write the augmented matrix of each system.
(a) 3x – 4y = –6 (b) 2x – y + z = 0
2x – 3y = –5 x+ z–1=0
x + 2y – 8 = 0

Row operations
There are three basic row operations that can be performed on an augmented matrix in order to
solve the corresponding system of equations. These are:
1. Interchange any two rows.
2. Replace a row by a constant non-zero multiple of that row.
3. Replace a row by the sum of that row and a constant non-zero multiple of another
row.
These row operations generate equivalent systems which have the same solutions as the original
system.
Ex. Solve the system
x + 2y + 3z = 19
2x + 4y + 5z = 34
3x + 5y + 6z = 42

Sol. The corresponding augmented matrix is


1 2 3 19 
 
2 4 5 34 
3 5 6 42 
 
We are going to perform a series of row operations so as to get 1’s on the main diagonal
and 0’s in the cells below these 1’s.
1 2 3 19 
 
0 0 −1 − 4  R2 = R2 − 2 R1
0 −1 − 3 −15 
  R3 = R3 − 3R1
1 2 3 19 
 
 0 − 1 − 3 − 15  R2 ↔ R3
0 0 −1 − 4 
 

1 2 3 19 
 
0 1 3 15  R2 = −R2
0 1 4
 0  R3 = −R3
This final augmented matrix is said to be in row echelon form. The last row states that z = 4.
We can now determine the value of y by back-substitution with z = 4. Since row 2 represents
the equation y + 3z = 15, we get y = 3. Finally, x is determined using back-substitution again
with y = 3 and z = 4. Since row 1 represents x + 2y + 3z = 19, we get x = 1.
The solution set is {(1, 3, 4)}. That is x = 1, y = 3, z = 4, and can be easily checked in the
original equations.

Reduced row echelon form


To avoid having to use back-substitution, we can continue performing row operations in order
to get 1’s on the main diagonal and zeros in all other cells, in other words the identity matrix.
Thus
 1 2 0 7  R1 = R1 − 3R3
 
 0 1 0 3  R2 = R2 − 3R3
 0 0 1 4
 

 1 0 0 1  R1 = R1 − 2 R2
 
 0 1 0 3
 0 0 1 4
 
This final augmented matrix is said to be in reduced row echelon form. Note the identity
matrix.
The solution is easily seen to be x = 1, y = 3, z = 4, as before.
The process of writing a matrix in reduced row echelon form is called Gauss-Jordan elimination.
The previous system has exactly one solution. However, there are systems that have infinitely
many solutions. These are called dependent systems. There are also systems that have no
solutions. These are said to be inconsistent.
Ex. Solve the following systems.
(a) 6x – y – z = 4 (b) x+ y+ z=6
–12x + 2y +2z = –8 2x – y – z = 3
5x + y – z = 3 x + 2y + 2z = 0
Matrix Algebra
Equality
Two matrices are defined to be equal if they are of the same order and their corresponding
elements are equal.
Consider the matrices
2 1 y 1 2 1 0
A= 
 , B =  , C =  
3 x

3
 5

3
 4 0

If A = B, then x = 5 and y = 2. Conversely, if x = 5 and y = 2, then A = B.
Since B and C have different sizes, there is no value of y for which B = C.

Addition and Subtraction


Two matrices of the same order can be added or subtracted by adding or subtracting their
corresponding elements. The result is a matrix of the same order.
Consider the matrices
7
3 9 2 6 1 1 − 5 3  2 1  0 0 
A= 
 
 , B= 
 
 ,C=   
 , D=  
 ,0= 0 0 
0
5 1  4 −3 5  8 5 7 5 3   
9 9 10 
Then A+B=  4 2 6   = B + A. This is the commutative law for matrix addition.
 
10 4 13 
Also A + (B + C) = 
12 7 13   = (A + B) + C. The associative law for matrix addition.
 
Determine A – B and B – C. We can find no results for A ± D, nor B ± D. These are undefined
since D has a size different from that of A and of B.
Note that D + 0 = D = 0 + D.

Scalar multiplication
Let A be any matrix and k some constant, or scalar. Then the product kA is the matrix obtained
by multiplying each element of A by k. The matrix kA is said to be a scalar multiple of A.
−14 6 −18 
For example, if A = 
 ,
 0 −10 2 
 − 28 12 −36  1 7 −3 9 
then 2A =  
 and – A = 
0 .
 0 − 20 4  2  5 −1

Matrix multiplication
Given two matrices A and B, we can form the product AB, provided that A is of order m × r and
B is of order r × n. A is then said to be conformable to B for multiplication and the product AB is
a matrix of order m × n.
In the product AB, A is called the first matrix, or first factor, and B the second matrix, or second
factor.
To calculate the entry in row i and column j of the product AB, single out row i from the matrix
A and column j from the matrix B. Multiply the corresponding entries from the row and the
column together and then sum the resulting products.
It is important to note that scalar multiplication is not the same as matrix multiplication.
1 4 1 2 1 0 2 4 3
Ex. Consider the matrices A = 
 , B =  , I =   and C =  .
2 3

2
 6

0
 1

4
 5 1

(a) Find the following: (i) AB, BA, BC (ii) A(BC), (AB)C (iii) A 2 (iv) AI and
IA
(b) Is it possible to find CA?
1 4  1 2  9 26 
Sol. (a) (i) AB = 
  =  
2 3 
 2 6 
 8 22 

1 2  1 4  5 10 
BA = 
  =  .
2 6 
 2 3 
 14 26 

Note that AB ≠ BA. That is, matrix multiplication is not commutative.

1 2  2 4 3  10 14 5
BC = 
    = 
2 6  4 5 1  28 38 12 
   

1 4  10 14 5  122 166 53 
(ii) A(BC) = 
2 3   
=  

  28 38 12  104 142 46 
9 26  2 4 3  122 166 53 
(AB)C = 
8 22   
 = 
 

  4 5 1  104 142 46 

Note that A(BC) = (AB)C.


In general this is true for any three matrices A, B and C where the products
AB and BC are defined. This is the associative law for matrix
multiplication.

1 4  1 4  9 16 
(iii) A2 = 
  =  .
2 3 
 2 3 
 8 17 

Note that to find A 2 , we multiply A by A. Do not make the common
mistake of squaring each entry in A.

1 4  1 0  1 4
(iv) AI = 
   =  = A
2 3 
 0 1 2
 3

1 0  1 4  1 4
IA = 
  =  = A
0 1 
 2 3 
 2 3

Note why the matrix I is called an identity matrix.

(b) Since C is of order 2 × 3 and A is of order 2 × 2, the product CA is undefined.


That is, C is not conformable to A for multiplication. However, A is
conformable to C for multiplication.

Properties of Matrix Arithmetic


In the following rules we assume that the sizes of the matrices are such that the indicated
operations can be performed. Also m and n are constants.
1. A+B=B+A Commutative law for addition
2. A + (B + C) = (A + B) + C Associative law for addition
3. A(BC) = (AB)C Associative law for multiplication
4. A(B ± C) = AB ± AC Left distributive law
5. (B ± C)A = BA ± CA Right distributive law
6. IA = AI = A Where I is an identity matrix
7. A + 0 = 0 +A = A Where 0 is a zero matrix
8. m(A ± B) = mA ± mB 9. (m ± n)A = mA ± nA
10. m(nA) = mnA 11. m(AB) = (mA)B = A(mB)

Transpose of a matrix
If A is any m × n matrix, then the transpose of A, denoted by AT , is defined to be the n ×m
matrix that results from interchanging the rows and columns of A. The rows of A then become
the columns of AT and the columns of A become the rows of AT .
1 4 1 2 
For example, if A = 
 
 , then AT = 
4 3 
 . What is the transpose of A ?
T
2 3  
2 4 
2 4 3  
If B = 
 
 , then B = 4 5  . What is the transpose of B T ?
T
4 5 1 3 1 
 
a b p q
Ex. Given that A = 
  and B =
d

r  , show that
s
( AB ) T = B T AT .
c   

Determinants
The determinant of a square matrix is a real number associated with the matrix.
a b
For the 2 × 2 matrix 
  , the determinant is defined to be the real number ad – bc.
c d

a b
We write c d
= ad – bc.
Note carefully the difference between a determinant and a matrix: the symbol for the
determinant is a pair of vertical lines similar to the absolute value symbol, while a matrix is
enclosed in brackets.
Given a matrix A, we usually denote the determinant of A by the symbols A or det A.

Ex. Find the determinant of each matrix.


1 3 3 −2 2 4
(a) A = 
  (b) B =   (c) C =  
2 5


2 1 


6 12 

3 −5  1 0
(d) D = 
  (e) I =  
6 −10 


0 1

Singular Matrices
Let A be a square matrix.
Suppose that there is a matrix B of the same size such that AB = BA = I, then A is said to be
invertible and B is called the inverse of A. If there is no such matrix B, then A is said to be a
singular matrix. A non-singular matrix is therefore an invertible matrix.
Clearly if AB = BA = I, then A and B are inverses of each other.
In general if A is invertible, we denote its inverse by the symbol A −1 .
Thus A A −1 = I and A −1 A = I.
1
NB. A −1 ≠ .
A
In general, if the determinant of a square matrix is zero, then that matrix is singular and therefore
has no inverse. In the examples above, A and B are invertible or non-singular, whereas C and D
are singular.

The Inverse of a non-singular 2 × 2 matrix (Method 1)


a b
Let A = 
 .
c d

The adjoint of A, denoted by the symbols adj(A), or Aadj , is defined as the matrix
d −b 
adj(A) = 
 .
− c a 
Notice that the entries in the main diagonal are interchanged and the other two entries are
multiplied by –1.
We now define the inverse of A in terms of the determinant, A and the adjoint, adj(A).
1  d −b 1
A −1 = ad − bc  − c a  . Symbolically, A −1 = A adj(A).
 
This is a general definition and holds for any square matrix of order n. For n ≥ 3, however,
finding A and adj(A) involves more work.
Note that if A = 0, then A −1 is undefined. That is, A is singular.

Ex. Find the inverse of each matrix.


1 1 2 −5  3 5
(a) A= 
5 
6 (b) B= 
 3 
 (c) C= 
 
2
  −1  1 
1 1
Sol.(a) A = 
5 
 6

 6 −1
⇒ A = 6 – 5 = 1. Also adj(A) = 
−5 
 1 

1  6 −1
Hence A −1 = A adj(A) = 
− 5 .
1 
 
Check A −1 A = I and A A −1 = I.
Ex. Consider the following matrices.
1 2 3 2
A= 
  and B =  .
1 3

2
 2

Find (a) AB (b) A −1 (c) B −1 (d) ( AB ) −1 (e) B −1 A −1
T −1 −1 T
(f) ( A ) (g) ( A )
In general, if A and B are invertible matrices, then
−1 T −1 −1 T
(i) ( AB ) = B −1 A −1 (ii) ( A ) = ( A )

The inverse of a non-singular matrix (Method 2)


Another method of finding the inverse of an n × n non-singular matrix is as follows:
Step 1 Form the augmented matrix A I n .
Step 2 Transform the matrix A I n into reduced row echelon form.
Step 3 The reduced row echelon form of A I n will contain the identity matrix I n on the left of
the vertical bar. The n × n matrix on the right of the bar is A −1 .
−1
Thus, if A is non-singular, then the augmented matrix A I n is transformed into I n A .

1 1
Ex. Let A = 
5 
6
 
Consider the augmented matrix
1 11 0
AI =

 which we now transform into
 reduced row echelon form.
5 6 0 1 
1 1 1 0 1 1 1 0
 →   R2 = R2 − 5R1
5   
 6 0 1 0 1 −5 1 
1 0 6 −1
→ 0 1 −5 1  R1 = R1 − R2
 
 6 −1
Thus A −1 = 
− 5  , as before.
1 
 

1 2 3
 
Ex. Given that A = 2 4 5  , find A −1 using the method just described.
3 5 6
 

 1 − 3 2
 
= − 3 3 − 1 .
Sol. A −1

 2 − 1 0
 

Solving a system using an inverse matrix


Consider the pair of simultaneous equations
ax + by = p
cx + dy = q.
a b
Let the matrix of coefficients be A, that is, A = 
c d
 . Let the matrix of unknowns be X.
 
x p
That is, X = 
y
. Let the matrix of constants be H, that is, H = 
q 
.
   
In matrix form the system above can be written as
AX = H … (1)
Pre-multiplying both sides of (1) by A −1 , assuming that A is invertible, we get
A −1 (AX) = A −1 H … (2)
⇒ −1
(A A)X = A H … −1
(3) Note the associative law for multiplication.
⇒ IX = A H −1
… (4)
⇒ −
X = A H. 1
Recall IX =X
This method also works for any n × n system of equations, provided that A, the matrix of
coefficients, is invertible.

Ex. Solve the following systems of equations using an inverse matrix.


(a) x+y=2 (b) 4x – 3y = –3 (c) x+y=2
5x + 6y = 9 2x – 5y = 9 2x – y = 1

(d) x + 2y + 3z = 19 (e) x+ y+z=9 (f) 3x + 3y + z = 8


2x + 4y + 5z = 34 3x + 2y – z = 8 x + 2y + z = 5
3x + 5y + 6z = 42 3x + y + 2z =1 2x – y + z = 4

1 2 3
1 1  
Sol (a) Let A = 
5 .
6 (d) Let A = 2 4 5 .
  3 5 6
 
 6 −1
From before, A −1 = 
−5 .
1  From before, A −1 =
 

 1 − 3 2
 
 − 3 3 − 1
 2 − 1 0
 
Now X = A −1 H Now X = A −1 H
Form Plain cake Marble cake Carrot cake Total
2 p 2m 3c 19
4 2p 4m 5c 34
6 3p 5m 6c 42

 1 − 3 2
  19  1 
= − 3 3 − 1

 6 −1 2   3     
=
−5 
1   = 
 . 34  = 3 
  9  −1 42  4 
   
 2 − 1 0
 
That is, x = 3 and y = –1. That is, x = 1, y = 3, z = 4.
Check in the original equations: Check in the original equations:
3 + (–1) = 2; 1 + 6 + 12 = 19; 2 + 12 + 20 = 34;
5(3) + 6(–1) = 9. 3 + 15 + 24 = 42.
Practical applications

1. The table below gives the number of cakes sold by three classes to raise funds for
their school.

(a) Express this information in the form of a matrix equation AX = B,


where A is a square matrix of order 3 and both X and B are column matrices
p
 
with X = m  .
c 
 
[2]

(b) Find A . [4]


 1 − 3 2
 
= − 3 3 − 1 .
(c) Verify that A −1

 2 − 1 0
 
[3]
(d) Find X. [5]

(e) Plain cakes were sold at $20.00 each, marble cakes at $30.00 each and
carrot cakes at $40.00 each.

(i) Express this information as a column matrix C. [1]

(ii) Determine the 3×3 matrix F such that the product FC gives the
amount of funds raised by each class. [3]

(iii) Determine the 3×3 diagonal matrix M such that the product MC
gives the amount of money generated by each type of cake. [2]

You might also like