You are on page 1of 12

MATHEMATICS FOR ENGINEERS

BASIC MATRIX THEORY


TUTORIAL 2
This is the second of two tutorials on matrix theory. On
completion you should be able to do the following.

Explain the general method for solving


simultaneous equations.

Calculate determinants.

Calculate minors and cofactors.

Define and form the adjoint matrix.

Define and form the inverse matrix.

Define the augmented matrix.

Use all the above to solve simultaneous


equations.

1. INTRODUCTION
In tutorial 1 on matrices you were introduced to some of the basic terms and
operations that we can do with them. In this tutorial we shall look at more advanced
ideas and how they are used to solve simultaneous equations.

D.J. Dunn

2. OUTLINE TO A SOLUTION of SIMULTANEOUS EQUATIONS WITH A MATRIX


An important use of matrix theory is the solution of problems with more than two unknown
variables and because the method is based on strict rules, it is suitable for use in computer
programmes. Consider how three simultaneous equations are presented as a vector. The Matrix A is
called the COEFFICIENT MATRIX and it is formed from an array of numbers made from the
coefficients a11 a12 The column vector b is made from the coefficients b1, b2 and the column
Vector X is made up from the variables x, y and z.
The column vector b is the product of matrix A and X.
a11x + a12y + a13z = b1
a21x + a22y + a23z = b2
a31x + a32y + a33z = b3
We write this as A X = b
Suppose that we had a matrix B such that AB = I (The unit matrix). We could then state :
ABX = I X = B b

X=Bb

This gives a numerical solution for X. The problem is finding the matrix B such that AB = I. This is
a matrix called the inverse matrix and we must understand the following work in order to find it.
3. DETERMINANTS
The determinant of a matrix is a single number that results from performing a specific operation on
the array. It will be used later to solve simultaneous equations. The determinant of a matrix A is
denoted as det A or A. The rule for finding the determinant can only be applied to a square
matrix and the following is an explanation of it. For a single element array the determinant is the
element. A = [a11] A= a 11
For a 2 x 2 array the determinant is found as follows.A= (a11 a22) - (a12 a21)
WORKED EXAMPLE No.1
Calculate A
SOLUTION
A= (2)(-2) (3)(4) = -4 - 12 = -16
WORKED EXAMPLE No.2
Find the determinant of a 2 x 2 unit matrix.
SOLUTION
A= (1)(1) (0)(0) = 1

D.J. Dunn

An important point to remember is that the determinant of all unit matrices is 1.


For larger square arrays, the rule for finding the determinant is more complicated and it is crucial to
understand the following work in order to do it.
4. MINORS AND COFACTORS
If we cross out one row and one column of a matrix and find the determinant of the remaining array,
we have the minor. The minor is designated M and the subscript is the number of the row and
column eliminated.

The cofactor is numerically the same as the minor but changes sign for
every position in the row or column and the change in sign is indicated by
the pattern shown. This is designated with a letter corresponding to the
elements so in this case the minor would be A32 and from the sign pattern
we find A32 = M32.
Consider how we find the determinant of the following 3 x 3 matrix.

STEP 1
Put a line through row 1 and column 1 leaving the elements shown.
Find the determinant of the 2 x 2 array enclosed in the square. This is called
the MINOR of a11 and designated M11.
The COFACTOR is A11 = M11
STEP 2
Put a line through row 1 and column 2 leaving the elements shown. Form
these into a 2 x 2 array and find the determinant. The result is the Minor
M12. The COFACTOR is A12 = - M12
STEP 3
Put a line through row 1 and column 3 leaving the elements shown. Form
these into a 2 x 2 array and find the determinant. The result is the Minor M13.
The COFACTOR is A13 = M13
The determinant of the whole array is now found from :
A= a11 A11 + a12 A12 + a13 A13
For larger arrays the method is the same but the process is repeated until we are left with a 2 x 2
array. The cofactors take on the sign as indicated by the element position shown.
D.J. Dunn

WORKED EXAMPLE No.3

Find the determinant of A


SOLUTION

a11 = 2 A11 = -13

a12 = -2 A12 = -1

a12 = 4

A13 = -1

A= a11 A11 + a12 A12 + a13 A13 = (2) (-13) + (-2)(-1) + (4)(-1) = -20

SELF ASSESSMENT EXERCISE No.1


Find the determinant of the following 3 x 3 matrices.

Answers A= 4

D.J. Dunn

B= -38

C= -11

5. ADJOINT MATRIX
Another concept used in matrix methods is the Adjoint or Adjugate matrix. This has very useful
properties in the solution of problems. This is a matrix formed from all the cofactors of the original
matrix and then transposed. We designate this with adj
If we had 3 x 3 matrix designated A, the Adjoint is given as:

WORKED EXAMPLE No.4


Find the adjoint of the 3 x 3 matrix shown.

Go on to find the product of A and adj A


SOLUTION
First find all the cofactors. Remember to use the pattern for the sign changes.

Now make a new matrix and transpose it to find the Adjoint.

Now multiply A by adj A

D.J. Dunn

An important point to emerge here is that A adj A always produces a square matrix with all
elements zero except the leading diagonal which has all the same elements.
Recall that:

If a matrix is multiplied by a constant, all the elements are multiplied by a constant.

A unit matrix is one with all elements zero except the leading diagonal in which the
elements are 1.

The determinant of the unit matrix is 1.

It follows that the product of a constant (A) with the unit matrix is as shown.

The determinant of a matrix with all the leading elements A and all other elements zero, is A. Hence
if a unit matrix is multiplied by det A, the elements of the leading diagonal will all be det A
It also follows that A adj A = det A x the unit matrix. i.e.

In the last example, the determinant of matrix A is clearly -3 and this could be verified by finding
det A by the usual method.
6. INVERSE MATRIX
We are on the last stage now and next we will be able to solve simultaneous equations. Suppose we
had two matrices A and B such that the product is the unit matrix, i.e.
AB = I and it follows that BA = I
Matrix B is the inverse of matrix A so we denote it A1 and replace B with this, so AA1 = I
We have already used the relationship A adj A =A I
So equating we have

A adj A =A AA1
adj A =A A1

The important result is

A1= (adj A)/A

D.J. Dunn

WORKED EXAMPLE No.5


Find the inverse of A given

SOLUTION
First find all the cofactors.

Next find the adjoint of A

Next find the determinant of A

A=(1)(2) + (1)(0) + (1)(2) = 4

Now find the inverse of A

A1= (adj A)/A

D.J. Dunn

7. SOLVING SIMULTANEOUS EQUATIONS


You will find more useful examples on this at http://tutorial.math.lamar.edu/AllBrowsers/1314/AugmentedMatrix.asp

Consider the three equations x 2y + 3z = 7


2x y + z = 4
-3x + 2y - 2z = -10
A solution exists if we can manipulate all the coefficients to the form
1x + 0y + 0z = a
0x + 1y + 0z = b
0x + 0y + 1z = c
The matrix form would be as shown. It would follow that
x = a, y = b and z = c
AUGMENTED MATRIX
If we write the matrix in this form it is called an augmented matrix. This
makes it easier for us to manipulate the figures and turn the coefficient
matrix into a unit matrix. Remember that we can do the following to the
simultaneous equations without changing the validity.
1) We can swap the order of the equations as written down without materially changing anything.
2) We can multiply any equation by a constant and the equality is maintained.
3) We can form new equations by adding a multiple of any one to another.
In the augmented matrix this means we can perform the same operations on the rows (not forgetting
that it apples to the fourth column as well). The symbol means 'swap' and means 'becomes'.
WORKED EXAMPLE No.6
Solve 3x - y = 14 and x + 3y = 1
SOLUTION
Write the augmented matrix
This method requires that we have a 1 as the first element. This can be done in this case by
swapping the rows.

Next we need to make the element below the 1 into a zero. This is achieved by multiplying row
1 by -3 and adding it to row 2 to form a new row 2. This is within the rules explained above.

Now we must make the last element into 1 by dividing the second row by -11

Now the last operation is to make the 3 into a 0 and this can be done by multiplying row 2 by -3
and adding it to row 1.

The solution is x = 4, y = -1

D.J. Dunn

WORKED EXAMPLE No.7


Solve 3x + y - 2z = 2
x - 2y + z = 3
2x y - 3z = 3
SOLUTION
Write the augmented matrix and manipulate
3

1 2
2

22
1 3

1 3 3

1 2

1 3
22

1 3 3

1 2
0

1 2
0

1 2 1 3
R1 R 2
3 1 22

2 1 3 3
R 2 3R1 R 2
R3 2 R1 R3

1 2

1 3

57

53

1 3 1
1 2
1 3
R 2 R2
5 7 7
0 1 5 / 7 1

53
0 3
5 3
1 2
1
3
R 3 3R2 R3
0 1
5 / 7 1
5 / 7 1

0 0 20 / 7 0
5 3
1

1 2
1 3 R 2 + 5 R3 R2 1 2 0 3
7
0 1 0 1
0 1 5 / 7 1
R1 R3 R1
0 0 1 0
0 0
1 0

1 0 01
1 2 0 3
R1 + 2 R2 R1
0 1 0 1
0 1 0 1

0 0 1 0
0 0 1 0

hence x = 1, y = -1 and z = 0

This method requires a bit of intuition so a method that uses strict rules is covered next.

D.J. Dunn

SOLVING WITH INVERSE MATRICES


We started the tutorial by saying if a matrix B existed such that AB = I then the numerical solution
for X is X = B b
The matrix B is the inverse of A so we have X = A1 b
The next worked example uses the same material as the last worked example.
WORKED EXAMPLE No.8
Solve the x, y and z given the three simultaneous equations.
x+y+z=8
x y z = -4
x+yz=6
SOLUTION
Create the following matrix.

Find the inverse of A using the method outlined earlier.

Now solve X = A1 b

Remember the multiplication rule and note we divide the result by 4


Row1 x column 1 = {(2)(8) + (2)(-4) + (0)(6)} = {16 - 8} = 2
Row2 x column 1 = {(0)(8) + (-2)(-4) + (2)(6)} = {20} = 5
Row3 x column 1 = {(2)(8) + (0)(-4) + (-2)(6)} = {20} = 1
The solution is x = 2, y = 5 and z = 1

These values may be substituted back into the original equations to check them out.

D.J. Dunn

10

SELF ASSESSMENT EXERCISE No.2


Solve the following simultaneous equations
1.

x+y+z=1
xyz=1
x + y z = -3

2.

x - 2y - 2z = 16
2x + 3y = 5
5x + 2y 2z = 36

3.

x + 2y + 3z = 1
2x + 3y z = -3
x + 4y 2z = -8

4.

2x 3y = -9
2x + 3y = 15

5.

5x 2y = 28
3x + 2y = 4
Answers are on the next page.

D.J. Dunn

11

ANSWERS to SAE 2
1. x = 1, y = -2 z = 2

2. x = 10 y = -5 z = 2

3. x = 2 y = -2 z = 1

4. x = 1.5

y=4

5. x = 4

y = -4

D.J. Dunn

12

You might also like