Professional Documents
Culture Documents
BLOCK 4
4.1 Introduction
De Moivre's theorem is one of the most important results in the theory of complex
numbers. It can be used to find powers of complex numbers, and to prove trigono-
metrical identities. In this block we introduce and illustrate the use of the theorem. In
Block 5 we show how the theorem can be used to solve equations. To understand this
block it is essential that you are aware that a complex number can be written in polar
formasz = r(cos(J + j sinO)ormorecompactlyasz = rLO.
We state and use the theorem here. The proof is left as an exercise (see question 4
in the exercises). The theorem involves raising the complex number cos 0 + j sin 0
to the power n.
We can use De Moivre's theorem to obtain powers of a complex number very easily.
Consider the following example.
Example4.3
If z = r(cos 8 + j sin 0) write down expressions for (a) i2 and (b) Z:, and use
De Moivre's theorem to write your results in an alternative form.
Solution
If we use the abbreviated form r L 8 the previous example can be written much more
concisely:
ti = r' Ln(J
for example
i2 = ,:i. L28, i3 = ~ L38, and so on
Example4.4
1T • _5
(a) If z = 3L4 wnte down z-.
(b) Express your answer in the form r(cos 8 +j sin 0) and its cartesian form.
m 498 Block 4 De Moivre's theorem
Solution
5 5
3 L(5 x :) = 243L ;
5 5 5
(b) 243L ; = 243( cos : + j sin : ) = -171.8 - 171.Sj
Example4.5
If z = 7 ( cos 4TT' + J. sm
. TT')
4 find z_2.
Solution
Using De Moivre's theorem with n = 2 we can write
l 2
= 1 ( cos : + j sin : )2
= 49 cos ( 42Tr + J. sm. 42Tr)
= 49( cos ; + j sin ; )
= 49j
•
smcecos 1T' = o and.1T'
sm2 = 1.
2
Example4.6
(a) Express z = 2 + 5j in polar form.
(b) Hence find (2 + 5j)12, leaving your answer in polar form.
Solution
(a) Themodulusof2 + 5j is Y22 + 5 2 = V29. Thenumberliesinthefirstquad-
rant of an Argand diagram and so its argument 0 is given by 0 = tan-1 ~ = 1.190.
Thus z = 2 + 5j = v'29Ll.190.
Solution
Withn = -1 we have
z-1 = (cos 0+ j sin 0)-1
= cos(-0) + j sin(-0)
= cos 8 - j sin 0
The last line follows since cos 0 is an even function and sin 0 is an odd function.
1
Thus - = cos 0 - j sin 0.
z
Exercises
'Tr 6.
1 If z = 4L 6 find z m polar form. (b) By raising the exponential form to the
power n, and using one of the laws of
indices, deduce De Moivre's theorem.
2 Express z = 2 + 2j in polar form and hence
find z8, leaving your answer in polar form. 5 Use De Moivre's theorem to show that if
Deduce that (2 + 2j)8 = 4096. z = cos 0 + j sin 0 then
(a) i' = cos nO + j sin nO
3 Express z = -3 + 2j in polar form and hence (b) z-n = cos nO - j sin nO
find z6, converting your answer into cartesian Deduce that
form.
1
4 Consider the complex number
i' + i' = 2 cos n6
z = cos 0 + j sin 0. and
(a) Write down the exponential form of this 1
number. i' - - = 2j sin nO
i'
Solutions to exercises
Example4.8
Use De Moivre's theorem to prove that
(a) sin 29 = 2 sin 9 cos 9
(b) cos 20 = cos2 9 - sin2 9
Solution
(a) Using De Moivre's theorem with n = 2 we obtain
(cos 0 +j sin 0)2 = cos 21J +j sin 'UJ
Expanding the left-hand side we can write
cos2 fJ + 2j sin fJ cos 8 - sin2 fJ = cos 'UJ +j sin 'UJ
Equating the imaginary parts on both sides gives the required expression for
sin 20:
sin 2() = 2 sin 8 cos 8
(b) Equate the real parts in part (a) to obtain an identity for cos 20:
Example4.9
Express sin 39 as powers of sin 8.
Solution
Consider De Moivre's theorem with n = 3:
(cos 8 + j sin 8)3 = cos 38 + j sin 38
Expand the expression on the left-hand side:
Compare this result with the right-hand side and equate the imaginary parts:
Finally, noting that cos 2 8 = 1 - sin2 (}, you should verify that
Example 4.10
If z = cos (J + j sin (J use the previous Key point to write down expressions for
Example 4.11
Show that cos2 () = ~cos 28 + ~.
Solution
1
Starting with 2 cos () = z + - and squaring both sides we obtain
z
=z2+2+1-
z2
= ( z2 + ~) + 2 by rearranging
m 502 Block 4 De Moivre's theorem
1
Butz?+ - = 2 cos 2(J and so
z2
4 cos2 8 = 2 cos 2(J + 2
from which
as required.
Example 4.12
1
By squaring the result 2j sin 8 = z - - prove the identity sin2 (J = 4- 4cos 20.
z
Solution
1
Consider 2j sin 0 = z- -.
z
Squaring the left-hand side gives -4 sin2 0. Now square the right-hand side.
1
z:.-2+-
z:.
Rearrange this and express it in terms of cos 20 using the previous Key point.
z:.-2+-=
1
z2
( z2 + ~) - 2 = 2 cos 28 - 2
Finally we have
-4 sin2 8 = 2 cos 20 - 2
Exercises
1 Show that cos 40 = 8 cos4 0 - 8 cos2 O + 1 3 Use your answers from questions 1 and 2 to
deduce that
2 Show that
tan 40 = 4 tan 0 - 4 tan3 0
sin 40 = 4 cos3 0 sin 0 - 4 cos 0 sin3 0
1 - 6 tan2 0 + tan4 0
Solutions to exercises
5.1 Introduction
Example5.1
Solve the equation i3 + 5z = 0.
Solution
This is a polynomial equation of degree 3. We seek three solutions. The equation can
be factorised:
i3 + 5z = z(z2 + 5) = o
so that one solution is z = 0, and others can be obtained by solving z2 +5 = 0.
From z2 + 5 = 0 we have
z2 = -5
z = ±v'=S
= ±Vsj
Example5.2
Solve the equation z2 + 2z + 2 = 0.
Solution
This is simply a quadratic equation. Apply the formula
-b ±Vb2 - 4ac
z=------
2a
5.2 Solving equations 505 m
-2 ± v'4 - 4(1)(2)
=
2
-2 ±v'=4
2
z= -1 ± j
4 4
Thus in polar form we can write 4 as 4LO, 4L2?T, 4L4'1T, and so on. We can
generalise this as 4 L 2k'IT where k = 0, 1, 2, . ... In the examples that follow you
should bear this in mind when converting complex numbers to polar form.
Example 5.3
Express the number z = 2 + j in polar form, and include the general form for the
argument.
Solution
The complex number z = 2 +j is shown in Figure 5 .2. Its modulus is
lzl = v'2 + 1 = v'5. Its argument is tan-1 &= 0.464. However, adding on
2 2
Figure 5.2
1 z= 2 +j
Example5.4
Solve the equation t - 4 = 0.
Solution
This is a polynomial equation of degree 3. We look for three solutions. Note that this
equation can be written as z3 = 4. We shall show that by working in polar form it is
straightforward to obtain the solutions. You should also note that the equation is
equivalent to z = 4 l/3 so we are finding the cube roots of 4.
As z is a complex number, we can write it in polar form as z = r L (). When we
have succeeded in finding r and 8, we shall know z and will have solved the problem.
Consider, first, the left-hand side of
t = 4
4= 4L2k7T, k = 0, 1, 2, . . .
r3 L30 = 4L2k7T
Equating moduli on both sides gives r3 = 4 so that r = 4 113, the real cube root of 4
since r is real.
Equating arguments,
2k7T
30 = 2k7T so that() = - -, k = 0, 1, 2, . •.
3
41/3 L47T =
3
Example 5.5
Solve the equation z3 +2 = 0.
Solution
Note that this equation can be written z3 = -2. Again we work in polar form.
Consider, first, the left-hand side of
z3 = -2
If z = rL8 then z3 = r3 L38.
Now express the right-hand side in polar form. The complex number z = -2 is
shown in Figure 5.4 to help you do this.
Figure 5.4
The complex
number z = -2.
z= -2
m 508 Block 5 Solving equations and finding roots of complex numbers
7f 2k7r
(J = 3 + -3-, k = 0, 1, 2, ...
Figure 5.5
Example 5.6
Solve the equation z6 - 2z3 - 8 = 0.
Solution
By careful inspection note that this equation can be factorised as
z6 - 2z3 - 8 = (z3 - 4)(z3 + 2)
=O
(If you cannot spot this directly, try making a substitution, w = z3, and obtain a quad-
ratic equation in w.) Thus z3 - 4 = 0 or z3 + 2 = 0. We have already solved each
of these separately in Examples 5.4 and 5.5. Thus the six solutions are those
obtained in these examples.
Example 5.7
Solve the equation i2 = 2 +j .
Solution
In general the unknown z will be a complex number and so z = r L (). Then
i2 = r2 L20. Now consider the right-hand side of the given equation, 2 + j. This
has been expressed in polar form in Example 5.3. Therefore
20 = 0.464 + 2hr
from which
0.464 + 2k7r
() = 2
= 0.232 + k1r, k = 0, 1, 2, .. .
The two solutions we seek are obtained by letting k = 0 and then k = 1. Increasing
k further will reproduce solutions already found.
When k = 0, () = 0.232.
When k = 1, () = 0.232 + 1T.
m 510 Block 5 Solving equations and finding roots of complex numbers
Figure 5.6
The two solutions
ofi' = 2 + j.
The techniques used in the previous examples can be used to find roots of com-
plex numbers. Suppose we wanted to find the cube roots of j, that is j 113• Writing
z = j 1/ 3 and cubing both sides we obtain
z3 = j
So finding the cube roots of j is equivalent to solving the equation z3 = j . This can be
done using the technique of Examples 5.4, 5.5 or 5.7.
Exercises
1 Solve the equation -z? + 3z - 4 = 0. 3 Solve the following equations converting your
solutions to cartesian form:
2 Solve each of the following equations leaving (a) z3 = -1 (b) z3 = 1 (c) z3 - 6j = 0
your answers in polar form:
(a) i? = 1 + j (b) i? = 1 - j
(c) z3 = -2 + 3j
Solutions to exercises
1 Find the three cube roots of-8. 5 Solve the equation z4 + 25 = 0 showing each
solution on an Argand diagram.
2 Find the three cube roots of 8.
6 Find the cube roots of v3 + j.
(-3 + j)4
3 Find the cube roots of z = •
7 Find the cube roots of v3 - j.
(2 - j)2
Solutions to exercises
1 -2, 1 ± vJj 5
\/IO
z= - \/IO .
- ± --J z =
\/IO ± -v'iO
--- -J
.
2 2 ' 2 2
2 2,-l±vJj 6 z = 1.241 + 0.219j, z = -0.431 - l.184j,
6.1 Introduction
Resistor
Consider a circuit containing a resistor of resistance R. Let vR(t) be the voltage across
the resistor. The current, i(t), through the resistor is in phase with this voltage. This
means that both the voltage and current are zero at the same time and peak at the
same time. This fact is illustrated in the graphs of i(t) and vR(t) in Figure 6.1.
Figure 6.1
In a circuit
containing a
resistor, R, the
current and voltage
are in phase.
T --~
OJ
6.2 Phase relationships in LCR circuits 513 m
The current is related to the voltage by Ohm's law, which states that vR = Ri. For
example, if i(t) = I sin wt, then vR = IR sin wt.
Inductor
Consider a circuit containing an inductor having inductance L. Experiment shows
that the voltage across the inductor, vLo leads the current by a phase of ~· If
i(t) = I sin wt, then it can be shown that
Tiris means that the voltage peaks earlier than the current, as illustrated in Figure 6.2.
Figure 6.2
In a circuit
containing an
inductor, the
voltage leads the
current by a phase
of1.
Capacitor
In a circuit containing a capacitor having capacitance C, experiment shows that the
voltage across the capacitor, Ve, lags behind the current by a phase of ~. It can be
shown that if i(t) = I sin wt, then
Tiris means that the voltage peaks after the current, as illustrated in Figure 6.3.
6.3 Phasors
Consider the waveform in Figure 6.4(a), which might represent a voltage, V1 sin wt, in an
2
a.c. circuit The time it takes to complete one cycle, that is the period, is 71".
w
Figure 6.4
Points on a B ...... B
- - .....
,,~"'
waveform and
equivalent points ,' '
I
on a rotating arm.
c. :A,B
'' ,
\
\ ''
\ \
\ , ,'
(a) (b)
1
1 radian in - seconds
(J)
• . 271"
27r radians m - seconds
w
2
So it completes a full revolution in T = 71" seconds. The time it takes to complete a
(J)
revolution is the same as the time it takes for one cycle of the waveform to be com-
pleted in Figure 6.4(a). There is an obvious correspondence between points on the
sine wave and positions of the arm. Points A, B, C, D and E illustrate this. For any
value oft on the waveform, the angle of the arm is wt. Such a rotating arm is called a
phasor.
If we have a second waveform, such as V2 sin(wt + ~), which leads the first by
a phase of I,
then its rotating arm will lead that of V1 sin wt by ~, as shown in
Figure 6.5.
'
,
' \
, ,
I
,,
\
\
\
6.3 Phasors 515 m
Similarly, if we have a third waveform, such as V3 sin(CJJt - ~ ), which lags behind
the first by a phase of I, then its rotating arm will lag that of V1 sin CJJt by ~ as shown
in Figure 6.6.
Figure 6.6
Phasor 3 lags
phasor 1 by~· '
''
'' /
,' I
' I
I \
I
I '-
\
Because these phasors have a length and an angle measured from the positive
direction of the x axis they can be represented by complex nwnbers. We think of the
phasor diagram as an Argand diagram. We write a typical phasor in polar form as
V = V Lc/J, where the~ is used to distinguish the complex quantity, with magnitude
V and phase cp, from the peak value V. Alternatively we can write V in cartesian form
by stating its real and imaginary parts.
In Block 2 we showed that when a complex nwnber is multiplied by j this has the
effect of rotating that number anticlockwise by on an Argand diagram. I
So, if we want to represent a phase lead of ~ we multiply the corresponding
phasorby j.
Similarly, dividing a complex number by j has the effect of rotating that number
clockwise by ~ on an Argand diagram. So, if we want to represent a phase lag of ~
we divide the corresponding phasor by j.
Note that
t = (f). (=~)
= -j
1
= -j
VL = jCJJLJ and that across a capacitor will be Ve= - - I . Notice the way that
(J)c
multiplication by j achieves the required phase differences for the inductor and
capacitor.
In general we write
\[w~
for a resistor
for an inductor
V= TzwhereZ =
for a capacitor
CJJC
The quantity Z is called the complex impedance.
m 516 Block 6 Phasors
{~~
for a resistor
for an inductor
V= JZwhereZ =
for a capacitor
wC
Z = R + jwL - _l__
wC
The voltage phasor is
v= Tz
ro..J J
row roJ
Figure 6.7
AseriesLCR
circuit
v
------< - t-----~
v
~-----i - >------~
Z=R-_l_
we
= 12 - j
6.2832 x 106 x 10-10
= 12 - 1591.55j
(e) Since the current is the same through each component, we have
VR =IR
= 12/
= 4.5477 x 10-7 + 6.0316 x 10-5j
and
""'
Ve= j I
-- "'
we
= 8.000 X 10-3 - 6.0316 x 10-5j
w=~
reactance, (c) the phase of the voltage relative
to the current.
2 The admittance is the reciprocal of the (c) Deduce that this minimum value is R.
impedance. Find the admittance of the
component in question 1. 4 A capacitor and resistor are placed in parallel.
Show that the complex impedance of this
3 The impedance of an LCR circuit is combination is given by
1 1
- = - + jwC
Z=R+j(wL- ~c) Z R
Find an expression for Z.
(a) Find lzl.
Solutions to exercises
'TT R
1 (a) 12 (b) -12 (c) - 4 Z=
4 1 + jwCR
2 0.0417 + 0.0417j
3 (a)~R2 + ( wL - ~cY
1 Find the modulus and argument of (a) -j, 6 Sketch an Argand diagram and upon it mark
(b) -3, (c) 1 + j, (d) cos(} + j sin 0. the poles of the rational function
4 Find the modulus and argument of -1 + j. 8 Express (cos 6 + j sin 6)9 in the form
cos n8 + j sin n6.
5 Express 2 + 3j in exponential form. Write
down its complex conjugate. 9 Use De Moivre's theorem to show that
cos 38 = 4 cos3 0 - 3 cos 0.
End of chapter exercises 519 m
10 Solve the equation i2 = 4j expressing your 19 Find the real and imaginary parts of
solutions in cartesian form and using surds.
1
11 Find~. 1 + jw
12 Find the fifth roots of j. 1
20 Find the modulus and argument of .
1 +Jw
13 Solve the equation z 4
+ 1 = JVJ.
. d 1 1
14 Showthat 21 Fm l . + ..
+Jw 2 +Jw
32 sin60 = 10 - 15 cos 20
+ 6cos40 - cos60 22 Electrical Engineering. The impedance, Z, of
a component is given by Z = 7 + 5j. The
15 Letz1 = r 1(cos 61 + j sin 61)and let admittance, Y, is given by
z2 = r 2 ( cos 62 + j sin 62)
1
Use trigonometrical identities to prove that Y= -
z
Find Yin cartesian form.
and
23 Electrical Engineering. A resistor of
71 resistance, R, and an inductor of inductance,
zi = [cos(01 - Oi) + j sin(01 - Oi)] L, are connected in series. If R = 9 and
Z2 T2
L = 2j find
16 The hyperbolic functions cosh x and sinh x are (a) the total impedance, Z
defined as (b) the admittance.
~ + e-x -X
~ - e-x 24 Electrical Engineering. A resistor of
coshx = , sinh x = resistance, R, and an inductor of inductance,
2 2 L, are connected in parallel. If R = 9 and
L = 2j find
Use these definitions and Euler's relations to
(a) the total impedance, Z
prove (a) coshjx = cosx, (b) sinhjx = j sinx,
(b) the admittance.
(c) cos jx = cosh x, (d) sinjx = j sinh x .
Solutions to exercises
1 (a) 1, - '1T
2 (b) 3, '1T (c) ...v2,
"'
4'1T (d) 1, 0 17 ln(Vs) + j:
21 1. 1
3 9 + 19j, ii - 13-1 19 real part =
1 + w2
10 z = ± v2c1 + j) 7 - 5j
22
74
11 gl/6 L( ~ + 2 :'TT). k = 0, 1, 2 9 - 2j
23 (a) 9 + 2j (b)
85
12 lL(.!!_10 + 2 5k'TT), k = 0, 1, 2, 3, 4
36 + 162j 1 j
24 ( ) (b)- - -
a 85 9 2
13 2 114 L(: + k;). k = 0, 1, 2, 3
Introduction to matrices
BLOCK 1
1.1 Introduction
(~ -6
1 9)2' (a {3)
8'
'Y
(3 -7 A6-A
4)
are all matrices. Note that the plural of matrix is matrices.
We often denote a matrix by a capital letter, for example
A=(~ -1
B = (~
0
1
-1
4 ~)
The size of a matrix is given by the number of rows and the number of columns. The
matrix A has three rows and two columns and so is described as a 3 X 2 matrix. We
say thatA is a 'three by two matrix'. Matrix B has two rows and four columns and so
is a 2 X 4 matrix. Notice that the number of rows is always stated first. An n X m
matrix has n rows and m columns.
The individual numbers or expressions in a matrix are called the elements and are
usually denoted by a small letter. For example, for A, the element in row 1, column 2
is denoted by a 12, the element in row 3, column 1 is denoted by a 3 1' and so on. So
Example 1.1
Given
(~
0 4
c =
1 z
state (a) c13, (b) c2i. (c) c22·
Solution
(a) c 13 is the element in row 1, column 3, and so c13 = 4.
(b) c 21 is the element in row 2, column 1, and so c 21 = A.
(c) c22 is the element in row 2, column 2, and so c22 = 1.
m 524 Block 1 Introduction to matrices
Figure 1.1
A simple digital
representation
of 'IT.
1 1 1
1 0 1
1 0 1
Note that we have divided the image into a number of areas, or fields, in this case 15
of them. We have then assigned a number to each field: 1 if the field is to be shaded,
and 0 otherwise.
Images such as black and white photographs can be 'digitised' in the same way.
The image is divided into m X n fields, where in practice m and n are large integers.
Each field is assigned a number that represents the intensity of the image in that area.
Often a 64--point grey scale is used so that a range of grey levels can be represented
ranging from white at one extreme to black at the other. A digital image is then rep-
resented by an m X n matrix, B say, whose elements are numbers in the range 1--64.
In image processing the matrix Bis often referred to as b[m, n].
Exercises
Solution to exercises
1 (a) 3 X 2 (b) 2, a, ,8 2 nm
1.2 Some special matrices 525 m
1.2 Some special matrices
There are a number of matrices that you will use frequently and which have special
names. These are now described.
A square matrix has the same number of columns as rows. Both D and E are
square matrices where
E=(~ ~)
-1
D = (! ~). ,\
-1 y
The main diagonal of a square matrix is the diagonal running from 'top left' to 'bot-
tom right'. The main diagonal of D contains the elements 3 and 2. In general, if A is
an n X n matrix, the main diagonal contains the elements a 11 , a 22, a 33 , ••• , ann.
An identity matrix is a square matrix with ones on the main diagonal and zeros
everywhere else. Identity matrices are usually denoted by /, with a subscript to
denote its size. The 2 X 2 identity matrix is / 2 where
/2 = (~ ~)
the 3 X 3 identity matrix is / 3 where
0
1
0
and so on.
The transpose of a matrix is obtained by writing rows as columns. The transpose
of A is denoted AT. For example, if
~)
1 -3
A=(: 2 3
then the transpose of A, AT, is given by
6 9
1 2
AT
-3 3
0 7
•
Example 1.3
Given
B~G ~)
-2
1
5
state the transpose of B.
m 526 Block 1 Introduction to matrices
Solution
The transpose is
Exercises
Solutions to exercises
Matrices of the same size may be added to and subtracted from one another. To do
this, the corresponding elements are added or subtracted.
Example 1.4
Given
A=(~
1
-2
-1)
4 ' B=
(210 6
-3
1)
6 ' c= (-13 ~)
find, if possible,
(a) A + B (b) B - C (c) B - A (d)A +C
Solution
(a) A+ B = (~
1
-2
-1)
4
+ ( 2
10
6
-3 !)
(3+2 1 + 6 -1+1)
= 0 + 10 -2 - 3 4+6
= (:o -5
7
1°0)
1.3 Addition and subtraction of matrices 527 m
(b) B is a 2 X 3 matrix; C is a 2 X 2 matrix. Since B and C have different sizes
then B - C cannot be calculated.
2
~) - (~ ~1)
6 1
(c) B-A=( 10 -3 -2
(2 - 3 6- 1 1 - (-1))
- 10 - 0 -3 - (-2) 6- 4
(~~ ~)
5
= -1
(d) A and C have different sizes and so A + C is not defined.
Example 1.5
1
rrc-C2 DMtlv-0
calculate
(a) C + D (b) CT + DT (c) (C + D)T
Solution
(a) C +D = ( 7 2)
~2
(-1
! 0)
~ + ~
(b) cT + vT = (7
2 -12 43) +
(C + D)T =
Key point The transpose of the sum of two matrices is the same as the sum of the individual
matrices transposed:
m 528 Block 1 Introduction to matrices
Exercises
1 Given find
(a) R + s (b) s - R (c) R + RT
R = (: ~). S = ( ~3 ~4) (d) (R - S)T (e) (ST)T
Solutions to exercises
Any matrix can be multiplied by a number. To do this, each element of the matrix is
multiplied by the number.
Example 1.6
If
find 1
2
(a) 2A (b) A (c) -A
Solution
(a) 2A = 2 (~ -2
1 ~1)
= (2 x 3 2x 1 2 X (-l))
2XO 2 x (-2) 2 X4
(~ ~2)
2
= -4
(b) 1
2A = 2
1 (3
0
1 ~1)
-2
= (1~5 -1
0.5
-~.5)
1.4 Multiplication of a matrix by a number 529 m
(c) -A= (-l)A
= (-1) (~ ~1)
1
-2
(~3 ~4)
-1
= 2
•
Example 1.7
If
A=(~ ~1) ~)
1 6
-2 and B = (:0 -3
find
1 1
(a) 2A + 3B (b)A - 2B (c)2A + 2B
Solution
(a) 2A + 3B = (~ 2
-4
-2) + ( 6
8 30
18
-9 :s)
(12 20
=
30 -13 ;6)
(b) A - 2B = (~ 1
-2
~1)- (~
12
-6 1~)
(-1 -11 -3)
=
-20 4 -8
(c) -A
1
2
1 1
+ - B = - (A + B) =
2 2
(2~5 3.5
-2.5 ~)
Example 1.8
Given
Solution
GD
~ kG
(b) AAT
D
=
c: ~)
9k
4k 6k
Hence
3k 2k)
(kA)T = k 9k
(
4k 6k
Key point
The software packages Maple and Matlab, in common with many similar packages,
are designed to compute not just with single numbers but with entire sequences of
numbers at the same time. Data can be entered in the form of multi-dimensional
objects called arrays. Matrices are a particular form of array and so Maple and Mat-
lab are well suited to performing matrix calculations.
In Maple a matrix can be entered in a variety of ways and you should consult the
on-line help for full details. For example, the matrices C and D from Example 1.5
can be entered, row by row, as
> C:= Matrix([[7,2], [-2,1], [4,3]]);
1.5 Using software for matrix calculations 531 m
> local D:
> D:= Matrix( [ [-1,0], [3,4], [9,1]]);
-1
D:= [ !
Thereafter the operations of addition, subtraction and scalar multiplication can be
performed in an intuitive way: C + D, C- D, k * C (note the* needed for scalar mul-
tiplication). The multiplication of matrices will be considered in the next block.
Numerous additional operations are available by loading further packages. For
example, the package LinearAlgebra is loaded using the command
with(LinearAlgebra);
and contains the function Transpose ( ) for finding the transpose of a matrix. You
should experiment with the package to which you have access. The creation of
matrix D serves to illustrate a further point: in computer software some symbols are
'reserved' so that they can be used by the software itself. This is the case with the
symbol 'D' which is reserved for a differentiation command (see Chapter 20). To
overcome this limitation and still use the symbol 'D' it is here declared as a 'local'
variable.
In Matlab the matrices C and D can be created as follows:
>> c = [7 2; -2 l; 4 3]
>> D = [-1 O; 3 4; 9 1]
Then, as with Maple, addition, subtraction and scalar multiplication can be per-
formed. The multiplication of matrices will be considered in the next block. Note the
different ways in which matrices are created in Maple and Matlab. This serves to
illustrate that reference to the on-line help regarding specific syntax is essential.
Exercises
1 Given 3 Given
A = (~ ~2). B = ( ~2 ~1) -2
find
A=(! 2
5 B= ( ~
(a) 3A (b) 2B (c) 4A + 3B (d) B - 2A
(e) 2AT (f) (2A)T
calculate
(a) A+ BT (b)B - 2AT
2 Given
state
(a) A - 212 (b) A - A/2 where Ais a constant.
m 532 Block 1 Introduction to matrices
Solutions to exercises
(c) (2~ 1
10) (d) ( ~8 -3)
10 3 (a) ( ~1
2
9
10) (b)
-2
C4 -5)
~4 ~6
11
~1). C=
Calculate A +
cD ~
2BT.
6 Calculate 21 C. 15 If
7 State AT.
8 State cT.
state
9 Calculate A + 2C. (a) T - 21
(b) T - AI where A is a constant.
10 Calculate 3 C - 4A.
Solutions to exercises
4 (~~ ~5)
1 3 x 2
2 2X3
10 0
3 0,3,4
1.5 Using software for matrix calculations 533 m
5
U2
-6)
-8
-12
11
G!J
6
(~l n 12
(~5
~)
2
-7 -~9)
7 (; 9 ~)
-1
13
14
u17
3
11
7
3
(a) m X n (b) n X m
8 (-1 0
!)
~J
3 4
15 (a) (-1
' 0I
9
G:J
7 3
10 C'9 5)
-36 16
(b) c-A
~1
3
1
2 - ,\
~J
-5 18
Multiplication of matrices
BLOCK 2
2.1 Introduction
Let A and B be two matrices. Then under certain conditions the product AB can be
found. The way in which such a product is calculated is explained in the next
section; for this section we focus on the conditions needed for the product to exist.
To decide whether the product AB exists we look at the size of each matrix.
Suppose A is an n X m matrix and B is a p X q matrix. For the product AB to exist
it must be that m = p: that is, the number of columns in A must be the same as the
number of rows in B.
Key point For the product AB to exist, the number of columns of A must equal the number of rows
ofB.
When m = p the product AB can be calculated. The result is another matrix whose
size is n X q.
Key point A B = C
~~~
n X m p X q n X q
~
m=p
If the number of colwnns in A differs from the number of rows in B then the product
AB cannot be found. We say AB does not exist.
2.2 Conditions needed for two matrices to be multiplied together 535 m
The product AB is distinct from the product BA. For example, if A is a 3 X 2
matrix and B is a 2 X 4 matrix then the nwnber of columns in A equals the number
of rows in B, that is 2, and so AB can be found. It is a 3 X 4 matrix:
A B = C
'--v--' '--v--' '--v--'
3X2 2X4 3X4
However, let us now consider BA. The number of columns in B is four; the number
of rows of A is three and so the product BA cannot be found. Hence the order of the
product is crucial, and we say that matrix multiplication is, in general, not commu-
tative. In the product AB we say A premultiplies B. Alternatively we can say that B
postmultiplies A.
Products involving three or more matrices are possible. If P, Q and R are three
matrices then to calculate PQR we first calculate PQ, and then postmultiply the
result by R, that is PQR. is treated as (PQ)R. Alternatively we can calculate QR and
premultiply the result by P, that is we may treat PQR as P(QR). The final result in
both cases is the same. This means that matrix multiplication is associative.
Finally we note that the product AA is written as A2, AAA is written as A3, and
soon.
Exercises
Solutions to exercises
1 (a) cannot be found (b) 3 X 3 (c) cannot be 3 (a) cannot be found (b) 3 X 3 (c) 3 X 3
found (d) 2 X 3 (e) cannot be found (d) 2 x 2
(t) 3 x 3 (g) 2 x 2
4 A must be a square matrix for A2 to exist
2 (a) 2 X 3 (b) 3 X 3 (c) 3 X 2 (d) 3 X 3
(e) 2 x 3
m 536 Block 2 Multiplication of matrices
Section 2.2 stated the conditions needed for a product of matrices to exist. In this
section we look at how the product is actually calculated. The method is illustrated in
Example 2.1.
Example 2.1
Given
A=(~
1
2 -~) and B = (
-6
~
calculate the product AB.
Solution
We note that A is a 2 X 3 matrix, B is a 3 X 2 matrix and so the product AB exists.
The result is a 2 X 2 matrix, say C.
AB = C = (cu
C21
C12)
C22
To find c 11 , that is the element in row 1, column 1, we use row 1 from A and column
1 from B. The elements in this row and column are multiplied and added thus:
AB=(~ -~) ~6 ~
1 1 -1)
2 (
= (~~9 13 )
-13
Example 2.1 illustrates the following important point regarding matrix multiplication.
Key point If AB = C then the element cii is found from row i of A and columnj of B.
Example2.2
Given
3
2
calculate AB.
Solution
Note that A has two columns, B has two rows and so the product AB can be found.
The result is a 2 X 3 matrix, C.
AB=(~
3
2
= C= (en
C21
Now
Cu = 9(4) - 1(1)
= 35
C12 = 9(3) - 1(2) = 25
C13 = 9(2) - 1(-1)
= 19
2(4) + 3(1) = 11
(~
3
2 -1
2) - (3511 25
12
m 538 Block 2 Multiplication of matrices
~)
0
1
0
and so on. If no subscript is given then the size of the identity matrix is taken as that
for which any stated product exists.
• Example 2.3
Given
calculate
A= (3 -;)
10
(a)Af (b) IA
Solution
Since A has two columns the required identity matrix is 12 :
3
(a) AI= ( 10 - 2) ( 1
7 0 ~)
=
Key point When a square matrix is post- or premultiplied by an identity matrix of the appropriate
size the matrix is unchanged.
AI=IA=A
Example 2.4
Given
findxandy.
2.3 How to multiply two matrices 539 m
Solution
Multiplying out the matrices on the left-hand side of the equation yields
4x - y )
( 6x + Sy
Hence
4x - y = -13
6x +Sy= 13
•
Example2.5
Given
A - (~I n
find
(a) AT
(b) AAT
(c) ATA
Solution
(a) Recall that AT denotes the transpose of A.
(~ ~)
-1
AT=
3
~) AAT -cl 2) (1 ~ 2
-1
3 ~)
s
=
G !) 10
1
(c) ATA = (~ -1
3 ~)c1 n
=
(~ 1~)
m 540 Block 2 Multiplication of matrices
The computing packages Maple and Matlab have built-in commands for matrix mul-
tiplication. For full details you should refer to the on-line help.
Example2.6
Using software, repeat the calculations in Example 2.2.
Solution
Maple
The matrices A and B are loaded as follows:
> A:=Matrix ([[9,-1], [2,3]]);
> B:=Matrix ([[4,3,2], [1,2,-1]]);
In Maple, the command for the 'usual' matrix multiplication is a dot ·. Thus
> A·B;
yields
35 25
[ 11 12
Note, however, that other types of multiplication are possible. 'Element-by-element'
multiplication is performed on matrices of the same size using the command * - as in
> E:=Matrix([[2, 4], [-1, 9]]);
yielding
12]
-9
Matlab
This example further highlights the differences between packages and the care that must
be taken regarding correct syntax. In Matlab the command for matrix multiplication is *.
>> A= [9 -1; 2 3]
A =
9 -1
2 3
>> B = [4 3 2; 1 2 -1]
B =
4 3 2
1 2 -1
>> A*B
ans =
35 25 19
11 12 1
2.3 How to multiply two matrices 541 m
Exercises
A=(3 ~).
-1 B = (~
4
7
1 AB
2 A2 6 BCA
3 BC 7 ABC
4 CA
Solutions to exercises
1 (~ 1910 -2
-1) 5 ( 10
-1
-s1)
2 (~s ~) 6 (4580 :)
3
(~ -3)
-8
7 (66
34
-17)
-13
-1
IS)
4
C7-3
13
n 8
u4 2
6
54
-6
1 State the size of each of the following products. 4 Calculate all the products in question 1 that
If a product does not exist then state this. exist.
(a) AB (b) BA (c) CD (d) DC (e) DB
(f) BD (g) A 2 (h) c2 5 Calculate all the products in question 2 that
exist.
2 State the size of each of the following products.
If a product does not exist then state this. 6 Calculate all the products in question 3 that
(a)AAT (b)DTB (c)DTc (d)ADT exist.
(e) (ADT)T
A=(~ -1)-2
0
2
' B = (2 1), c= (3 1 -1), D = (~ -2)
0 '
::)
10 If
c
ai2
a21
(! ~) (;) = (:4)
A= tzi1
b,,)
c
11 Given b12
Solutions to exercises
1 (a) 1 x 1 (b) 3 x 3 (c) 2 x 3 (d) does not 7 (a) 2 x 1 (b) 1 x 2 (c) does not exist
exist (e) 2 X 1 (f) does not exist (g) does not (d) 1 x 2 (e) 3 x 1
exist (h) 2 X 2
8 (a) 2 x 2 (b) 3 x 3 (c) 1 x 2 (d) 1 x 1
2 (a) 1 X 1 (b) does not exist (c) 3 X 2 (e) does not exist
(d) 1 x 2 (e) 2 x 1
-9
63) 10 x = 2,y = 3
4 (a) (16) (b)
(18
~ -2
0
14
0 11 x = 5,y = -3
(e) (~~) 14
Ill
k= l k- 1
102 117) (c) (bli bu .. . bmi) (d) (ail ap. .. . aim)
6 (a) (315) (b) ( 87
7 -80 -109 -138 Ill
(d) (3159 32
67
33)
75 (e) (-72 171)
(AB)T and BTAT are identical. Since this is
true for all values of i and j then the two
87 102 117 matrices are equal.
Determinants
BLOCK 3
3.1 Introduction
We have seen how to add and subtract matrices in Block 1. Block 2 dealt with the
multiplication of one matrix by another. Division of one matrix by another is not
defined. However, for some matrices it is possible to calculate an inverse matrix. In
some ways, use of the inverse matrix takes the place of division. To calculate an
inverse matrix requires knowledge of determinants, and it is this topic that is
addressed first. All square matrices possess a determinant. We begin with the sim-
plest square matrices: 2 X 2 matrices.
A=(: ~)
Then the determinant of A is ad - be. The determinant of A is denoted by
det(A), ~I or I: :I
When you have evaluated the determinant of a matrix you will see that the result is
no longer a matrix, but a single number or expression.
Key point If
A=(: ~)
then det(A) = ad - be. Det(A) may also be written as
3.2 Determinant of a 2 x 2 matrix 545 m
Example3.1
Given
(b)
Hence
3(1)-(-1)6=9
Examplel.2
If A is a 2 X 2 matrix show that det(A) = det(AT).
Solution
Let
A=(: ~)
Then !Al
= ad - be.
Now
and so
ad- be
Hence IAI = IATI: that is, the determinant of a matrix and the determinant of its
transpose are the same.
Example3.3
Calculate the determinant of
m 546 Block 3 Determinants
Solution
4(3) - 2(6) = 0
IA - s1I = o
where I is the identity matrix.
Given the state matrix is
IA - s1I = o
Given
A=(3 -2)
S -1 and I=
(1 ~)
O
then we have
A - sl = (
3
-1
-2)
5
_s(l0 0)1 (3 -1- s -2 ) =
5-s
So
IA - sll =
=
13 -=-1 s 5:
(3 - s)(5 - s) - 2
sI
=s2 -8s+13
s = 2.268, 5.732
3.2 Determinant of a 2 x 2 matrix 547 m
A system where s < 0, or the Re (s) < 0 in the case of complex poles, is said to be
stable. Ifs > 0, or Re(s) > 0, then the system is unstable. Hence the system in
Example 3.4 is unstable.
Exercises
10) F=(~ ~)
(a) ( ~3 ~) (b) ( ~3 -5
singular?
(c) (; !) (d) (3 ; ,\ 1~ ,\) 5 Find values of ,\ for
(~ :) (a)
(-4-5 ~) (b) ( ~1 ~2)
to be singular.
Solutions to exercises
If we choose an element of A, say aij, and cross out its row and column, that is the
ith row and the jth column, we are left with a 2 X 2 matrix. The determinant of this
2 X 2 matrix is called the minor of aii·
Example3.5
Given
-1
A=G -5
4
If we choose an element of A, say aij, and cross out its row and column, that is the
ith row and the jth column, we are left with a 2 X 2 matrix. The determinant of this
2 X 2 matrix is called the minor of aii·
Example3.5
Given
-1
A=G -5
4
au
A= lli1
(
~1
• Example 3.7
IA
Calculate I where
A~G n
-1
-5
4
Solution
We have au = 3, a12 = -1 and a 13 = 6. The cofactors of these elements are
required. The cofactor of 3 is -43 as found in Example 3.6.
The minor of -1 is I~ ~I = 63
-
The place sign of -1 is
Example3.8
The matrix A is defined in Example 3.5 as
-1
-5
4
Evaluate det(A) by
(a) expanding along the third row
(b) expanding along the second column.
Solution
(a) By expanding along the third row we have
I=~ ~I = 28
The minor of a 32 is
I! ~I = -
48
The cofactor is 48
The minor of a33 is
I! -11 -5
= -6
The minor of a 12 is I~ ~I = 63
I~ ~I = 21
The cofactor is 48
Hence
IAI = c-1)(-63) + <-5)(21) + 4(48)
= 150
Exercises
(b)u~
1 The matrix His defined by 3
-2 11
J?)
H-G -1
8 i3)
8
(~I
6
Evaluate IHI by expanding
(a) along the first row
(b) along the third row
(c)
11
9
21 ID
(c) along the second column.
-6
2 The matrix K is defined by (d) G 6 9 )
-6
c
18 -21
~4)
9
~ 11
Calculate
K=
IKJ.
0 -6
(e) G
3
3
1
!)
3 Calculate the determinant of each of the 4 Find det(B) by expanding along the second
following matrices: column, where
(a)
cD
~3
6
9
3
B-(12 -3
0
-1
0
~7)
19
3.5 Determinant of a 4 x 4 matrix 553 m
Solutions to exercises
1 -330 in each case 3 (a) 15 (b) 643 (c) 0 (d) 0 (e) -100
2 -1122 4 -28
(~
+
+
+
+
Expanding along the first row of a 4 X 4 matrix, A, for example, would give
IA.I = au X (its cofactor) + a12 X (its cofactor)
+ a13 X (its cofactor) + a 14 X (its cofactor)
Example3.9
Find IA.I by expanding along the first row where
-2 4
2 0
1 1
2 -2
Solution
We have au = 3, a 12 = -2, a 13 = 4, a14 = 1. The cofactors of these elements are
found by deleting the appropriate rows and colwnns.
The minor of a 11 is
2 0 3
1 1 -1 = -6
2 -2 5
The cofactor is -6.
m 554 Block 3 Determinants
The minor of a 12 is
6 0 3
9 1 -1 = -48
4 -2 5
6 2 3
9 1 -1 = -14
4 2 5
6 2 0
9 1 1 = 20
4 2 -2
•
Example 3.10
Calculate where ITI
T~c
2 1
Solution
-1
4
7
11
-2
0
-2
0 n
Expansion along the third column is efficient as it contains two zeros. The cofactors
of these zero elements need not be calculated. We have t 13 = 1 and t 33 = -2.
~2)
1 Calculate the determinant of each of the 3 5
following matrices by expanding along an -1 6
appropriate row or column.
4 9 11
3
0 -2 1)
-2 0
2 Calculate
-6
IA I where
3 5
1 7 4
3 0 2
~)
17 6
f3 14
17
0 1'
6
0 0
6
-3
Solutions to exercises
There are a number of properties of detenninants that can be used to simplify their
evaluation. Some of these properties are given now.
Property 1
Key point Suppose A is an n X n matrix and k a scalar. Suppose the matrix B is obtained by
multiplying a single row or column of A by k. Then
det(B) = k det(A)
If the matrix A is multiplied by k, that is every element in the matrix is multiplied by k,
then we obtain
det{kA) = k!1 det(A)
m 556 Block 3 Determinants
lW Example3.11
~ Suppose
A - (~2 ~)
Obtain B from A by multiplying the second column of A by 4.
(a) Write down B.
(b) Find det(B).
(c) Find det(A).
(d) Verify that det(B) = 4 det(A) as in Property 1.
Solution
(a) B =
(~2 28)
12
(c) !Al = 29
(d) It follows that det(B) = 4 det(A).
• Example 3.12
Suppose
A=(~ ~7)
(a) Write down 5A.
(b) Find det(A).
(c) Find det(5A).
(d) Verify Property l, that is det(5A) = 52 det(A).
Solution
(a) 5A =
(1~ 15 )
-35
Example 3.13
Find det(B) given
-2
-15
4
3.6 Properties of determinants 557 m
and given that the determinant of
-1
A-G -5
4
is 150.
Solution
By careful inspection of B note that it is obtained from A by multiplying the first row
by 2 and the second row by 3. Hence
det(B) = 2 X 3 X det(A) = 6 X 150 = 900
Property 2
Key point If B is obtained from A by interchanging two rows or two columns then
det(B) = -det(A)
In other words, interchanging two rows or two columns changes the sign of the
determinant. Carrying out two interchanges introduces two sign changes and hence
leaves the determinant unchanged.
Example 3.14
Given
-1
A-G -5
4
and IAI = 150, find the determinant of each of the following matrices.
(•) G D~)G
4
-5
-1
-5
4
-1 D cs (c) ~1
9
3
0 D
Solution
(a) By interchanging the first row and second row of IAI we obtain
0 4 7
9 -5 2 = -150
3 -1 6
(b) Interchanging the first row and second row of the determinant in (a) we obtain
9 -5 2
0 4 7 = 150
3 -1 6
m 558 Block 3 Determinants
(c) We begin with IA.I. Interchanging the first column and second column we obtain
-1 3 6
-5 9 2 = -150
4 0 7
-5 9 2
-1 3 6 = 150
4 0 7
Property 3
Key point Adding or subtracting a multiple of one row (or column) to another row (or column)
leaves the determinant unchanged.
Example 3.15
Evaluate
3 -1 6
9 -5 2
0 4 7
Solution
We use Property 3 repeatedly to simplify the determinant.
3 -1 6 3 -1 6
9 -5 2 = 0 -2 -16 (subtracting 3 X first row from second row)
0 4 7 0 4 7
3 0 6
= 0 -2 -16 (adding 1of first column to second column)
0 4 7
3 0 0
0 -2 -16 (subtracting 2 X first column from third column)
0 4 7
3 0 0
= 0 -2 -16 (adding 2 X second row to third row)
0 0 -25
Key point If A and B are two square matrices such that AB exists then
det(AB) = det(A) det(B)
Example 3.16
Given
~~). !ARI =
-3
AB= (
-1
-33 + 13 = -20
Property 5
Key point If two rows or two columns of a matrix are equal, the determinant of the matrix is zero.
Example 3.17
Find the determinant of the matrix
A~(;
-5
-5
2
Solution
Note that the first two rows are the same. It is easy to check that IAI = 0.
Exercises
~) andH = (!1 :)
5 3 3 4
(a)
-6 G= (-3
24 36 7 2
30 59 -2 1
Solutions to exercises
~~
~ Computer and calculator exercises
Many computer algebra packages will calculate the determinant of a matrix. For example, in Maple, with the
LinearAlgebra package loaded, with (LinearAlgebra}, the command Determinant (A)
will find IAI. The Matlab function de t ( ) does likewise. Use the software to which you have access to do the
following exercises.
(a)(~ ~2)
4 11
(b) 4 7 5 -1 0
1 7
-11 11 3 6 7
4 5
-1 6 9 4 3
2 1
Solutions to exercises
(c) (7 -,\
3
2)
2- A
7 If
(d) (-1 - ,\ 1 )
A= (~ !) andB = 3A
6 4-,\
(a) find IAI, (b) find IBI,
(e) (4 -1-,\ 7 -2,\) (c) verify det(B) = 32 det(A).
~ ~6) (b) (:
(a) 1
1 2
3
3
2 (b)
17
,\
1
0
-23
6
6 -1 1
-2 3 1 0 0 ,\ - 1
17 -19
10
H=(~ -2 1) -3
-1
0
5
9
(e) 18 21 31)
30
(
14 20 32 calculate (a) the minor of-2,
(b) the cofactor of 0.
6 Calculate the determinant of
12 Calculate the values of ..\ for which the matrix
~3 r t Il
A is singular given
(a) (
A= (5 -..\ -1 )
6 -2- ..\
m 562 Block 3 Determinants
A=(~ ~) ( -5 2)
19 -36
4 1 A= -11 -2
2 1
-21 Find the system poles and hence determine
17 32
whether the system is stable or unstable.
A= cl 7
-15
3
8
1
-!)
-:5
Solutions to exercises
2 (a) J..2 - 4J.. - 5 (b) J..2 - 2J.. - 3 9 (a) 7 (b) 0 (c) 2xy + 2xy = 4xy
(c) J..2 - 9J.. + 8 (d) J..2 - 3>.. - 10
(e) J..2 - llJ.. + 30 10 (a) 14 (b) J..(1 - J..)
4.1 Introduction
This block examines the idea of an inverse matrix. Division of one matrix by another
is not defined: use of an inverse matrix is the nearest equivalent of 'matrix division'.
4.2 Definition
Key point Multiplying a square matrix A by its inverse A - 1, if this exists, yields the identity
matrix/.
Example4.1
GivenA = (~ :)
show that
is the inverse of A.
Solution
We calculate AB and BA.
m 564 Block 4 The inverse of a matrix
= (~ ~)
=I
~4) (~ ;)
3
BA= (
-2
= (~ ~)
=I
The term 'inverse' can only be applied to square matrices. It is meaningless to talk
about the inverse of a 2 X 3 or 3 X 7 matrix, for example. However, even though a
matrix is square this is no guarantee that its inverse matrix exists. If the determinant
of A is 0, that is A is singular, then A does not have an inverse. If the determinant is
non-zero, then the inverse can be found.
Suppose A is a 2 X 2 matrix and IAI -:I:- 0. Then the inverse of A can be found. If
A = (: ~)
then recall !Al = ad - be. Now A- 1 is given by
A-1 -
- !Al
__!__( d -ab)
-c
Key point If
A=(: ~)
then
(a) (3 4) (-1
2 6 (b) 1 ~) (c) (~ ~) (d) ( !6 -6)12
Solution
(a) Here a = 3, b = 4, c = 2, d = 6 and !Al = 10. Then
~4)
-0.4)
0.3
-4)
-1
A-1 = (~ ~)
Hence the identity matrix is its own inverse.
(d) Here IAI = 0. Hence the matrix is singular and does not have an inverse.
Example4.3
Find the inverse of
B = (! -2)
-2
Solution
Here the values of a, b, c and dare given by 3, -2, 4, -2
The determinant of B is found.
2
m 566 Block 4 The inverse of a matrix
Exercises
1 State the condition under which a square 2 Find the inverse of the following matrices. If
matrix does not have an inverse. an inverse does not exist, state this.
Solutions to exercises
~1)
1
2
4 -2
Solution
We find the transpose, AT, by interchanging rows and columns.
~
2
adj(A) = ( -6
18 -11
A-1 = adj(A)
IAI
= 9
1(°:8 2
-6
-11
~1)
• Example4.5
Find the inverse of
H-G
-2
6
-4 D
Solution
The transpose, HT, is found.
adj(H) =
( ~~5 1~ ~6)
-54 10 42
m 568 Block 4 The inverse of a matrix
IHI= 156
Finally
1 _ adj (H)
Ir - IHI
_1_(~~5 ~6)
6
= 17
156 -54 10 42
Exercises
-1 7) (1
0 1 (b) -1 3
2
-2 6 1 12
Solutions to exercises
1 (a) 115 ( :
-2 8
17
-1
-~1)
-2
(b) no inverse (c) 7~ (
-25
2;
-3
21
-2
-;o
12 )
1 Many computer algebra packages will calculate the inverse of a square matrix. For example, in
Maple, with the LinearAlgebra package loaded, with(LinearAlgebra), the command
Matrixinverse (A) will findA-l when this exists. If the matrix A is singular, so no inverse exists,
this will be indicated. The Matlab function inv {A} does likewise. Use a package to which you have
access to find the inverse of each of the following matrices.
(a)(~ ~)
3 -2 6 1 0 3 2
-1 0 1 4 -1 2 -3
5 -3 (d) 0 1 -6 6 5
1 2 0 3 2 1 -1
5 1 -5 3 4
~) (13
10 9
0 1
-6 2 0 3 9
2
2
-1
3 !) (e)
5
7
1
3
6
4
-1
-2
4
3
(~I ~)
2 4 6 5 5 5 1
-1 5 3 -2 -1 3 4
(c)
7 2
14 8 6
4.4 Finding the inverse of a matrix - the general case 569 m
Solutions to exercises
-55 27 38
1 51 -30 -22
1 (a) 91 -25
( 4 9
54 -5 -34
(b) __!__(
44
;2
0
8
86
-4
2
5
-12
-2)
-93
12
-44 -200 16 204
(~1 !) (~ ;)
is the inverse of has no inverse.
(~ ~~)
3 Calculate, if possible, the inverse of each of
the following matrices:
(~ ~) -5) (~
is the inverse of
(-52 -1)
(c) -6 (d)
3
-20) (0.4 2)
4
(f)
0.9 3 state the values of x and y.
(-~~5 -1.5)
10 Calculate the inverse of each of the following
(g) matrices:
-1
1 4
4 Find the inverse of (a) 5 6
(
2 0
-3 -1
givenx #- 0. (c) ( : 7
0
5 A is a square matrix. State a condition that
ensures A does not have an inverse.
(c) ( 4 -2)
-3 1.5
has no inverse.
(a) (~
9 If
(c) (~ b2 c
be) (d) (~
4
4.4 Finding the inverse of a matrix - the general case 571 m
Solutions to exercises
3
The determinant of the matrix is zero: hence
no inverse exists.
5~0(-Fs4
-90 44 94
45 -41
1 (-1 2) 1 (6 -5)
(c) 3 2 -1 (d) 15 3 -5 (d) -15 1
29 )
41
-122 225 23 -197
1 (-30 20)
(e) no inverse (f) 6
9 -4 -105 177
1( 2
(g)5 -4 ~3)
1
(e) 933
(42
-15
207
193
-51
-41
6
81 )
-140
66
-120 -11 -17 124
4
~(~1 ~1)
11 (a) f-6 c9
31
21
-35 -5)
11
5 !Al= o -39 35 -3
6 1( 0
(a) 30 -5 6) (b) _!_( 10
3 38 -6 ~2) (b) 23IC JJ 9
-4
-3
-4
12
1~ (~ ~3) -33)
(c) no inverse (d)
(c)
6~6 cw62
84
-18 72
~)
-46 72 15
1 (42
(e) -10
(d) no inverse
7 1( 3
(a) 3 -2
(c) no inverse
-6)
5
1 (-1
(b)6 -3 ~6) 1
(e)--
312
CM
-42
87
36
18
-15
%)
-4
-66
8 -1,4
9 x = 1,y = 2
12 1 ( 5
(a) 2A -A
-3) (b)-1 (
A 2x2 -xx2 ~x)
(a)_!_ 13
4
~) (c) no filv=e (d) 1~ ( : D
10
82
C6 12 -8
5 -19
14
4
(b)
c
4~ 1~
-6
3
0
-16)
-13
14
Computer graphics
BLOCK 5
5.1 Introduction
(~ ~)
represents the line joining the points (~) and ( ~). Similarly a triangle is defined
by three points. Figure 5.1 illustrates a triangle.
The triangle can be 'stored' as a 2 X 3 matrix, T, where
T= (~ 5
6
5.2 Representation of points using matrices 573 m
Figure 5.1 Y.
A triangle is 5, 6)
defined by three 6
points. 5
4
3
2
1
0 6 x
-1
-2
Example 5.1
Write matrices that represent the quadrilaterals shown in Figure 5.2(a). (b).
Figure 5.2 Y. Y.
5 (0, 0) (3, 0)
-10 1 2 3 4
-1
Solution
Each quadrilateral is defined by four points.
(a) The quadrilateral can be stored as
Q= (
3
-1 3
4 -2
6 -2)
-2
Note that other matrices would also be suitable, for example
(! 6
-2
-1
3
-2)
-2
and (-2-2
3
4
-1
3 -62)
(~
3 5 -3)
(b) A possible matrix is
0 -3 -5
m 574 Block 5 Computer graphics
The matrix T premultiplies the point X. Let the result of this calculation be X*.
!) (;)
1X = ( :
-(:: :)
=X*
We can think of the point (;) as having been transformed into the point
ax+
( ex+ dy
by)
by the matrix T.
ExampleS.2
Solution
We calculate
~
1
The point ( ) is transformed to ( : ).
3
5.4 Transformation of lines 575 m
Exercises
1 The point ( ~4 ) is transformed by the matrix 2 The point ( ~1) is transformed by the matrix
Find the position of the transformed point. Find the position of the transformed point.
Solutions to exercises
Consider a straight line and a transformation matrix, T, whose elements are constants.
If Tis applied to every point on the straight line the transformed points form a new
straight line; in other words, the transformation of a straight line is another straight
line provided the elements of T are constant. Thus to find the transformation of a
straight line we need only find the transformation of the end-points of the line and
then join these. This is illustrated in Figure 5.3.
Figure5.3 y y
The transformation
of a straight line is Transformation
another straight matrix
line.
Example 5.3
A straight line joins the points ( ~3 ) and ( ~). It is transformed by the matrix
Solution
The end-points ( ! 3
) and(~) are transformed.
~) (~) = (~)
5.5 Scaling
T= (~ ~)
The points (~). (~). (~) and (~) are transformed by T to (~). (~). (~)
and ( ~) respectively. This is illustrated in Figure 5.4.
Figure 5.4 Y. y
An example of
horizontal scaling.
(0, 1) (1, 1) (0, 1) (4, 1)
0 (1, 0) x 0 (4, 0) x
Clearly T has the effect of increasing the horizontal lengths by a factor of 4; the
vertical lengths remain unchanged.
5.5 Scaling 577 m
In general, scaling is brought about by a diagonal matrix. The first row determines
the horizontal scaling; the second row determines the vertical scaling. The matrix
scales the horizontal lengths by a factor of a and the vertical lengths by a factor of f3.
For horizontal expansion a must be greater than 1; for horizontal compression
we require a to be less than 1. Similar comments apply to vertical expansion and
compression.
Example 5.4
The zoom facilities of a graphing package expand both horizontal and vertical
lengths by a factor of 2.5. Determine the transformation matrix to do this.
Solution
A diagonal matrix is needed for scaling. Since both horizontal and vertical lengths
are scaled by a factor of 2.5 the required matrix is
(
20.5 0)
2.5
Exercises
1 Write down the transformation matrix that (c) scales horizontal distances by a factor of
(a) scales horizontal distances by a factor of 4 0.7 and vertical distances by a factor of 1.2
and leaves vertical distances unchanged (d) leaves horizontal distances unchanged and
(b) scales horizontal distances by a factor of 3 trebles vertical distances.
and vertical distances by a factor of 7
Solutions to exercises
1 (a)(~ ~) (b) (~ ~)
m 578 Block 5 Computer graphics
5.6 Rotation
line from the origin to the point (;) being rotated through an angle (J. We say the
point (;) has been rotated about the origin to the new position (;:).
Figure 5.5 Y.
The point (;) is (x*,y*)
rotated anticlock-
wise through an
angle 0 to c:).
Key point The transformation matrix, T, that rotates a point anticlockwise about the origin by an
angle () is given by
T = (cos() -sin())
sin() cos()
Example5.5
The point ( ~) is rotated anticlockwise about the origin through 40°. Calculate the
position of the new point.
Solution
The transformation matrix is
T = (cos40° -sin40°)
sin 40° cos 40°
-2.3246)
= ( 5.8818
5.6 Rotation 579 m
Example 5.6
A triangle is defined by the matrix
(~ ~)
2
5
It is rotated clockwise about the origin through 120°. Determine the resulting triangle.
Solution
Clockwise angles are considered to be negative and so the transformation matrix, T, is
T = (cos(-120°) -sin(-120°))
sin(-120°) cos(-120°)
-0.5 0.866)
- ( -0.866 -0.5
Example 5.7
The line joining ( ~1) and ( ~) is rotated through 90° anticlockwise about the
origin. Determine the new line.
Solution
The transformation matrix, T, is
T=
(~1 ~)
m 580 Block 5 Computer graphics
Exercises
Solutions to exercises
5.7 Reflection
We now consider transformation matrices that effect reflection in the x axis, y axis,
the line y = x and the line y = -x.
Consider the coordinates of A and A*. If the coordinates of A are, say, (~). then the
coordinates of A* will be (3, -2). Clearly, on reflection the x coordinate remains
5.7 Reflection 581 m
unchanged and the y coordinate changes sign. The transformation matrix to effect
this is
Figure 5.6 Y.
The line AB is
reflected in the x
axis to produce
A*B*.
0 x
Figure 5.7 Y.
The line AB is
reflected in the
y axis to produce
A'B'.
0 x
~)
-1
T= ( 0
m 582 Block 5 Computer graphics
~)
-1
T= (
0
Figure5.8 Y.
AB is reflected in
the line y = x to
produce AB.
0
x
Figure 5.8 illustrates reflection about the line y = x. In effect, the x and y coordinates
are interchanged. The required transformation matrix is
T= (~ ~)
T = (~ ~)
0 x
All\.
\
\
\
\ A
•B
Example 5.8
The point A(~) is reflected in they axis and then the resulting point is reflected in
the line y = -x. Calculate the coordinates of the final point.
Solution
Reflection in the y axis is effected by the matrix
(~1 ~)
Hence when A(~) is reflected in they axis the resulting point is given by
Reflection in y = -x is effected by
Exercises
1 The point (~) is reflected in the line y = -x. 3 The point (:) is reflected in the x axis. The
State the coordinates of the resulting point. resulting point is then reflected in the line
y = -x. State the coordinates of the final
Solutions to exercises
5.8 Shearing
Figure 5.10 y y
An x direction
shear.
x x
Figure 5.11 y y
A y direction
shear.
x x
T = (! ~)
(a) Determine the coordinates of the vertices of the figure after shearing.
(b) Sketch both figures.
Solution
(a) The unit square can be represented by
(~ ~)
0 1
1 0
Shearing produces
(~ ~) (~
0
1
1
0 ~) = (~
0
1
1
3 !)
The resulting figure has vertices at ( ~). ( ~). ( !) !).
and (
(b) See Figure 5.12(a), (b).
Figure 5.12 Y.
(a) The original
4
unit square;
(b) the figure after Y. 3
shearing. 2
1 1
0 1 x 0 1 x
(a) (b)
Exercises
Solutions to exercises
5.9 Translation
Figure 5.13 y
AB is translated to
A*B*.
..,
A* (4, 7)
/,
/ \
// '>B* (5, 5)
/ /
/ I
\>/
I /
B (2, 1)
0 x
m
5.9 Translation 587 m
The purpose of the extra '1' is to increase the order of the transformation matrix
from 2 X 2 to 3 X 3. We now introduce a translation matrix, T, where
T=G 1
0
'·)
ty
1
Applying T to
x=G)
we have
0
1X=G 1
0 i)G)
=(; ~)
+
+
1
Example 5.10
Determine the translation matrix for the translation depicted in Figure 5.13 above.
Solution
Here tx = 3 and ty = 4 and so
T=
m 588 Block 5 Computer graphics
Example 5.11
The translation matrix
0
1
0
Then
Exercises
1 A point is translated from ( ~) to (:). State 3 State the effect of the translation matrix
G ~)
0 3 Translation of 4 units in the x direction and
1 1 3 units in the negative y direction.
0
G ~)
0
-n
0 4 1
2 1 0
G 0
(; :)
and coordinates (;). The matrix is extended to become
T=G ~ D
and homogeneous coordinates
(n
are used. Note that
(: :)(;) = ( :
+
+ Z)
m 590 Block 5 Computer graphics
and
Transforming a point using the extended matrix and homogeneous coordinates has
exactly the same effect as using the 2 X 2 matrix on the coordinates (;). However,
all transformation matrices are now 3 X 3 and so composite transformations, in the
form of matrix products, can be calculated.
Example 5.12
The point ( ~) is reflected in the line y = x and then rotated anticlockwise about the
origin by 70°.
(a) Calculate the composite transformation matrix.
(b) Calculate the final position of the point.
Solution
(a) Reflection about the line y = xis represented by Trer where
(cos 70'
~)(! ~)
-sin 70° 1
0
Trot Trer = sin;o cos 70° 0
0 0
~)
cos 70°
csin70' 0
= cos;o sin 70°
0
(b) The homogeneous coordinates of the point are
(:)
5.10 Composite transformations 591 m
The transformed point is then
-sin 70° cos 70° 0)(4) (-4 sin 70° +cos 70°)
( cos 70° sin 70° ~ ~ = 4 cos 70° + sin 70°
0 0 1
-3.417)
= 2.308
(
1
Example 5.13
Determine a transformation matrix that rotates a point 30° anticlockwise about the
point(~).
Solution
The rotation matrices so far encountered have all represented rotation about the
origin. Hence to represent rotation about ( ~) we require three transformations
(Figure 5.14):
Figure 5.14 Y.
Rotation about
G) requires
~·
(x, y)
Ttrans =
0.8660 -0.5
Trot= 0.5 0.8660
(
0 0
TmTmT--G
0
1
I) (°'80.5600
2
-0.5
0.8660
0 1 0 0
=
c-8~
0.5
-0.5
0.8660
1.1~)
-0.232
0 0 1
Exercises
1 Determine a matrix that shears vertically by 2 Determine a matrix that rotates a figure anti-
a factor of 2 and then rotates anticlockwise
about the origin by 30°. clockwise through 40° about the point ( ~).
Solutions to exercises
x
(-3, -0.75),----r----~(4, -1)
(a) (b)
(2, 0) x
(c)
Figure 5.15
2 Draw the figures represented by each of the 5 The zoom facility of a computer graphics
following matrices: package has the following options:
(a) double horizontal lengths only
(a) (~ -11) (b) (~ 3
4 ~) (b) double vertical lengths only
(c) double both horizontal and vertical lengths
~)
2 -4 (d) halve both horizontal and vertical lengths.
(c) (-1
3 Write down the transformation matrix for each
4 1
option.
3 ~) and ( ~2) is
~1)
The line joining (
6 The point ( is rotated anticlockwise
transformed by the matrix
about the origin through 70°. Calculate the
Describe the transformed line. 7 The point ( ~2) is rotated clockwise about
~ 1), ( ~) and
the origin through 40°. By applying a suitable
4 The triangle with vertices at ( rotation matrix, determine the coordinates of
(~ _12)
8 A triangle defined by
(~ ~), ( ~) and
2
-61) 14 The triangle with vertices at (
7
( ~) is sheared by
is rotated clockwise about the origin through
(~ ~)
90°. Calculate the matrix that defines the
transformed triangle.
9 Show that for any transformation matrix, R, Sketch the resulting triangle.
that represents a rotation
15 State a matrix that will translate a figure 4
RT = R-1 units in the x direction and 5 units in the y
direction.
That is, the transpose of a rotation matrix is
equal to its inverse.
16 A line joins ( ~2 ) and (~).It is translated
10 A rotation matrix, R, represents an
anticlockwise rotation about the origin through using the translation matrix
an angle 0.
G ~!)
(a) State the rotation matrix, S, that represents
0
a clockwise rotation through an angle 8. 1
(b) Calculate Ir 1• (Hint: see question 9.) 0
(c) What do you conclude from (a) and (b)? Describe the translated line.
~) and ( ~ ).
2
11 A line joins ( 17 Determine a single transformation matrix that
will first reflect a figure in the y axis and then
(a) The line is reflected about y = x. Describe translate it 2 units in the x direction and -3
the resulting line. units in the y direction.
(b) The line found in (a) is then reflected in
the x axis. Describe the resulting line. 18 Determine a single transformation matrix that
will first scale a figure by a factor of 2 in the
12 Determine a matrix that increases horizontal horizontal and 0.5 in the vertical, and then
lengths by a factor of 5, leaving vertical rotate it clockwise about the origin through 90°.
lengths unchanged.
Solutions to exercises
1 (a) ( ~1 3
2
_12)
2 See Figure 5.16.
(a)
Y.
(-~.~5
-2 2
(b) 4 2 -41)
(~ ~)
3 3 2
(c) (2, 0) x
2 1 0
End of chapter exercises 595 m
(b)
10 (a) ( co~
-smO
6 sin (J)
cos (J
Y.
: /.5•6)
2
(1, 2)
(b) ( co~ (J
-smO
sin (J)
cos (J
n
Figura 5.16
3
1
The transformed line joins ( : ) and ( ~4 ). 15 G!
4 The transformed triangle has vertices at
16 The line joins ( ! 3
) and(:).
( =~).(~)and ( ~~). 17 ( ~l ! ~)
(a)(~ ~) (~ ~)
n
5 (b)
~)
7
-2
A=(~ -2)
-3
and B = (-29 ~)
m 596 Block 5 Computer graphics
B = (=: ~
B
A=(~
1
2
calculate (a) 4A, (b) -B, (c) B - 2A, (d) 4•
(e) A + 3B, (f) aA
constants.
+ f3B where a and f3 are
B =
9
( ~
~
-6)
3 Give an example of (a) a 2 X 4, (b) a 4 X 2
matrix. calculate (a) AT, (b) BT, (c) A + BT,
(d) AT + B, (e) 2A, {f) {2A)T, (g) 2(AT).
4 Calculate the number of elements in (a) a 3 X 4,
(b) a 7 X 2, (c) a3 X n, (d) anm X nmatrix. 12 Given
(~). (~
5 Calculate the determinant of each of the 3
following matrices: A= B = - ) and
1
c=
(a) (! ~) (b) ( ~1 ~)
(-2 3)
13 Given
(e) (! ~) (t) (; ~)
6 Find the inverse of each of the following
matrices:
A= (1 3 -2), B = ( ~ ~)
-1 0
:) (b) (~
-34) -1
1 ~)
~) (d) ~ ( ~7 -32)
-3
(c) ( 0 calculate, if possible, (a) B + C, (b) B + CT,
(c) AB, (d) BA, (e) ACT, (f) (AC)T, (g) BC,
7 Calculate the determinant of each of the (h) CB.
following matrices:
2
14 The straight line joining ( ~6 ) and ( ~4) is
1 rotated 50° anticlockwise about the origin.
-1 Determine the transformed line.
-2
1
-1) (2
0 (d) 1
15 The point ( : ) is reflected in the line y = x
3
and then the resulting point is rotated 30°
2 -1 2 anticlockwise about the origin. Determine the
coordinates of the final point.
8 Calculate the inverse of each of the matrices in
question 5.
16 A unit square has vertices at ( ~). ( ~). ( ~)
9 Calculate the inverse of each of the matrices in
question 7. and ( ~). It is subject to a shear, and this results
End of chapter exercises 597 m
in a figure with vertices at ( ~). ( ~). (!) c= (~
and ( !).Determine a transformation that
-7
effects this shear. 0
-8
17 The transformation matrix
4
0 1
1 0
0
(b) Show that if A is a 2 X 2 or 3 X 3
is applied to the line joining ( ~) and ( ! 1). skew-symmetric matrix then its diagonal
elements must all be zero.
Determine the transformed line.
22 (a) A non-singular matrix A is said to be
18 The point ( ~1
) is rotated 90° anticlockwise orthogonal if its transpose is equal to its
inverse: that is, AT = A- 1. Given that
about the origin and then translated 2 units in
the x direction and 3 units in they direction.
Calculate
A=(cosO
-sin 8
sin 8)
cos (J
(a) the composite transformation matrix
(b) the coordinates of the transformed point. is an orthogonal matrix, write down its
inverse, and check your answer by
19 The leading diagonal of a square matrix, A, is evaluating AA-1•
the diagonal running from the top left to the (b) Show that
bottom right. The sum of the elements on the
leading diagonal is called the trace of A.
(a) Find the trace of
A=(~ -23)
(b) Find the trace of
is an orthogonal matrix.
1
7 23 If
0
(c) For an arbitrary 2 X 2 and 3 X 3 matrix
A, show that trace(A) = trace(AT).
(a) write down the matrix sl - A, wheres is a
20 Evaluate constant and I is the 2 X 2 identity matrix
(b) find (s/ - A)-1.
1 4 2 1
3 0 1 9 24 Control Engineering. The state matrix of an
0 -1 engineering system is given by
1 1
2 1 0 1 -2
A= (
21 (a) A square matrixA is said to be symmetric 16
if A = AT, and skew symmetric if
Calculate the values of the system poles.
A = -AT. State which, if any, of the
Determine whether the system is stable or
following matrices are symmetric and
unstable.
which are skew symmetric.
m 598 Block 5 Computer graphics
Solutions to exercises
1 -2
1) (-5 -5)
(b)
-4 3 (c) (~ ~) (d) (~ ~)
(c) ( ~3 -6)
-9
(e) ( 1
-1
(e) (4.5-1 1.5) (f) (-28
0.5 10
-16)
-10
(a)~ ~
-1
9 ( -1
-1 3
-5 0
(c) ( -2 -7 6
-2
(d) (-0.25 0.5 6
-1 0.25
7
~)
(c) - 1 ( -4
1
4
-1)
-~1
0
7 16 -5 12
~( ~ ~)
(f) ( 2a - f3 a + 2/3 3a + 4/3) -3
-a - 4/3 4a + f3 3/3 (d) 2
-3 2
~)
3
4 (a) 12 (b) 14 (c) 3n (d) mn 1
6 (a) 26
1(-65 4) 1( 3 1 (b) 26 -2
4
3
1(-1 5)
3 2 (-3
(~
(c) 0 3 (d)13 4 2
(e)
4
7 (a) 2 (b) 10 (c) -16 (d) 5
-0.5) (b)!(-1
1.5 7 2 ~)
End of chapter exercises 599 m
12 (a) not possible (b) (~) (c) ( =~ :) 17 The transformed line joins the points ( )
4
( 7 ) 1.5
and -0.5 .
(d) -3 (e) not possible (f) (4 9)
~)
-2 20 70
(f) not possible (g) (1213 2
21 D is skew symmetric, E is symmetric and C is
-1 1 neither.
. . . (-5.3888) ( 3.7070 )
14 LlneJOlilS -3.3107 to -1.8051 . 23 (a) (; -1 )
s+2
(s + 2
~)
15 (-3.5981) 1
0.2321 (b) ;. + 2s + 3 -3
3±v'=i5 .
(! ~)
24 Poles are s = . System 1s unstable.
16 2
Cramer's rule
BLOCK 1
1.1 Introduction
a1x + hiY = ki
aix + b'lY = ki
Here a1 , bl> k1 , az, b2 and ki are known constants and we wish to find the values of x
andy.
Cramer's rule is a method of obtaining the solution of equations like these as the
ratio of two determinants.
x= y=
I~ ~I
I: I::
Note that the denominator is the same in each case. The denominator is simply the
determinant made up of the coefficients of x and y. If the denominator is zero then
Cramer's rule cannot be applied. In such a case, either a unique solution to the
system does not exist or there is no solution.
Note how the numerator of each fraction is formed. To form the numerator for the
x fraction we replace the column of as in
I:
by a colwnn of ks. Similarly the numerator for the y fraction is formed by replacing
the colwnn of bs by a column of ks.
604 Block 1 Cramer's rule
2 1
=-=2 i2=---=-=l
I~ ~ I
1 ' 1
Cramer's rule may be extended to systems of linear equations with more than two
unknowns. Consider the following linear system with three unknowns, x, y and z.
aix + hIY + C1Z = ki
Q.iX + hzY + CzZ = 'kz
a,x + b3Y + C3Z = k3
Key point ki bi Ct ai ki Ct ai bi ki
kz b2 C2 a2 kz C2 az b2 kz
~ b3 C3 a3 ~ C3 a3 b3 ~
x= y= z=
ai bi Ct ' ai bi Ct ' ai bi Ct
a2 bz C2 ai b2 C2 az b2 Cz
a3 b3 C3 ~ b3 C3 a3 b3 C3
Note again that, in all three cases, the denominators are the same. The numerators
are formed by replacing a column of as, bs or cs by a column of ks.
Vt + 2Vz + V3 = 2
2v1 - Vz - 2v3 = 5
2v1 + 2v2 + 3v3 = 7
2 2 1
5 -1 -2 '-39
7 2 3
V1 = =
1 2 1 -13
2 -1 -2
2 2 3
=3
1 2 1
2 5 -2
2 7 3
-13
13
=-=-1
-13
1 2 2
2 -1 5
2 2 7
-13
-13
=-=1
-13
The voltages are v1 = 3, v2 = -1 and v3 = 1.
Cramer's rule can be extended to four and more unknowns in an obvious way, but the
determinants become too large to make this a sensible approach. Gaussian elimina-
tion, described in Block 3, is a practical alternative.
Exercises
Solutions to exercises
1 (a) x = 3, y = 4 2 (a) x = 2, y = 1, z = 1
(b) 81 = 2, 82 = -3 (b) a = -1, /3 = 0, 'Y = 3
(c) i 1 = 3.5, i2 = 2.3 (c) i 1 = 1.5, ii = 1.5, i 3 = 2
(d) V1 = 3.1, V2 = 2.7 (d) V1 = 2.3, V2 = 0.6, V3 = 1.9
(e) a = -1.6, /3 = -0.7 (e) 81 = 4.3, 8 2 = 1.7, 83 = -1.5
1 Electrical Engineering. Voltages v1 and v2 in 3 Explain why Cramer's rule cannot be applied
a circuit are related by the system of equations to the following system of equations:
3v 1 + 2v2 = 6 3x - 2y = 10
-4v1 + 10v2 = -27 y - I.5x = -5
Calculate v1 and v2 using Cramer's rule.
4 Mechanical Engineering. The magnitudes of
forces f and g in a mechanical system are
2 Electrical Engineering. The currents ii. i 2 and connected by the equations
i3 of a circuit are related by
3f + 5g - 16.1 = 0
2i1 + i2 - i3 = 8 2/- g - 3.8 = 0
i1 - i2 + i3 = -5
3i1 + 2i2 = 9 Use Cramer's rule to determine the magnitudes
offandg.
Use Cramer's rule to evaluate the three
currents.
Solutions to exercises
4 f= 2.7,g = 1.6
3 The matrix
2
(_:.5 -1 )
2.1 Introduction
Block 1 dealt with Cramer's rule for solving a system of linear equations. The solu-
tions were given in terms of determinants. lbis block shows how an inverse matrix
can be used to solve a system of linear simultaneous equations. You will need to be
familiar with the techniques for finding the inverses of 2 X 2 and 3 X 3 matrices as
described in Chapter 12, Block 4.
(~ ~) (;)
is equivalent to
7x + 2y)
( 3x + y
Example2.1
Write the following system of equations in the standard matrix form AX = B.
2x+y-z=4
x - y + 3z = -2
2x + 2y - 3z = 9
Solution
The elements of A are the coefficients of x, y and z. Hence
~1)
1
-1
2 -3
and
1
-1
2
Example2.2
Express the following system in the form AX = B.
-x + 3y + 4z = 7
y - 4x = 7
y + 3x - z = -9
Solution
The equations are rewritten so that the variables x, y and z appear in the same order.
-x + 3y + 4z = 7
-4x + y +Oz= 7
3x + y - z = -9
Then
( =~ : ~)
3 1 -1
CJ
2.3 Solving equations using the inverse matrix method 609 m
In matrix form the equations are
Exercises
Solutions to exercises
Multiplying a matrix by the identity matrix has no effect and so IX = X. So the left-
hand side of equation (1) simplifies to
A-1 AX=IX
=X
and so, from (1),
Example 2.3
Solve
7x + 2y = 12
3x+y=5
using the inverse matrix method.
Solution
Writing the equations in matrix form, AX = B, gives
Here
A = (;
We calculate A- 1•
Hence
We have
that is x = 2, y = -1.
2.3 Solving equations using the inverse matrix method 611 m
Example 2.4 Electrical Engineering - Circuit currents
The currents i 1 and i 2 in a circuit are connected by the equations
2i1 + i2 = 8.6
3i1 - i2 = 9.4
Use the inverse matrix method to find the values of i 1 and i 2•
Solution
We have AX = B where
So
X = A- 1 B
= (~ ~2)(8.6)
- -- 9.4
5 5
= 3.6)
( 1.4
Solution
The equations are written in matrix form:
(=! ~ ~ )(7z)
3 f3
1 -1
= ( ; )
-9
Writing
-~J
-1 3
A= ( ~4 1
1
612 Block 2 Using the inverse matrix to solve simultaneous equations
we then calculate A- 1 as
__!_(~
-7
A-1 = 11 4 )
16
39 7 -10 -11
Hence
!~JUJ
-7
11
-10
Exercises
1 Solve the following systems of linear solve the following system of equations:
equations using the inverse matrix method: 2x-y-z=7
(a) 3x -y = 4 x + 2y - 2z = 13
x + 2y = 13 2x + 3y + z = 9
(b) 2a - ,B = -11
ka+,8=1 4 Given that the inverse of
(c) v1 - 2v2 = -3.5 -1
3v1 + 5v2 = 17
(d) 2 i1 + i2 = 3.5
-ii + 2i2 = 3.5
(e) p - 2q = -0.7
3
-1 -:)
is
2p - q = -1.1
11 2
2 State conditions under which the inverse
matrix method will fail to find a set of
~ ( -19 -2
solutions. -13 -2
solve the system of linear equations
3 Given that the inverse of
4x + 3y - z = 3
3x - y + 4z = 10
x - y + 2y = 4
(~5
-2
2r1 - r 2 + r 3 = 0.8
__!_ 4
22 T1 - 2r2 - 73 = -2.3
-1 -8
Use the inverse matrix method to calculate ri.
T2 and T3.
2.3 Solving equations using the inverse matrix method 613 m
Solutions to exercises
1 (a) x = 3, y = 5 3 x = 3, y = 2, z = -3
(b) a = -4, {3 = 3
(C) Vi = 1.5, V2 = 2.5 4 x = O,y = 2,z = 3
(d) ii = 0.7, i2 = 2.1
(e) p = -0.5, q = 0.1 5 ri = 0.6, r2 = 1.1, r 3 = 0.7
Solutions to exercises
1 (a) x = 3, y = 9, z = -4
(b) a = -1, {3 = 1.5, 'Y = 6
(c) ii = 1, i 2 = 2, i 3 = 3, i 4 = 4
1 Use the inverse matrix method to solve 3 Given that the inverse of
(a) 4x - 3y = 6
!)
-1
-2x + y = -4
(b) a+ 2{3 = 2
3a - 4{3 = -9
is
u3 1
1
Solutions to exercises
1 (a) x = 3, y = 2 3 (a) x = 2, y = 2, z = 1
(b) a = -1, {3 = 1.5 (b) x = 0, y = 1, z = -2
(c) x = -1, y = 1, z = 4
2 The matrix
has no inverse.
Gaussian elimination
BLOCK 3
3.1 Introduction
(~
3 16)
-1 -2
Solution
The augmented matrix is
-1 2
1 0
2 -1
616 Block 3 Gaussian elimination
Exercises
(c) 1x - y - z = 3
1 Write the augmented matrix for each of the
following systems of equations: 3x + 2y + z = 4
(a) 2x - y = 8
5x + 2y + 3z = 20
x + 2y = 14 (d) x - y + z = 2
5x+y+2z=1
(b) 3x + 2y = 4
4x - 2y - z = -1
5x + 2y = 0
(b) x - bi
+ 3z = 1
3x + 2y + z = -5
5x + 2z = -8
Solutions to exercises
~)
1 1
2 (a) G -2
3
4
2
(e) ( 1
2 -7
0
~)(i ~5)
3
2
2 1
0 2 -8
3.3 Types of solutions to systems of linear equations 617 m
3.3 Types of solutions to systems of linear equations
When a system of linear equations is solved, there are three possible outcomes.
These three possible outcomes were studied in Block 4 of Chapter 7. In this section we
revisit these three possibilities and note the form of the augmented matrix in each case.
Case 1
For example, consider the system
x+ 3y = 7
Ox+y=2
This system has a unique solution, x = 1, y = 2. The corresponding augmented
matrix is
(~ ~)
3
1
Case 2
Consider the system
x + 3y = 7
Ox+Oy=O
There is really only one equation here because the second states that 0 = 0. There are
an infinite number of solutions of the first equation. For example, x = 7 and y = O;
x = 10 and y = -1. In general, whatever the value of y, the equation is satisfied if
x = 7 - 3y. We write this as follows: letting y = t, say, then x = 7 - 3t. This is
true for any value of t we choose, so t is called a free variable. The corresponding
augmented matrix is
(~ ~)
3
0
Case 3
Finally consider the system
x + 3y = 7
Ox+Oy=2
618 Block 3 Gaussian elimination
The second equation seems to state that 0 = 2. This is nonsense. There are no
solutions and the augmented matrix is
(~ ~)
3
0
(~
-4 13)
1 -3
x - 4(-3) = 13
x + 12 = 13
x = 1
In Example 3.2 the value of y was found and substituted back into the remaining
equation so that x could be found. This technique is known as back substitution.
Example3.3
A system has augmented matrix
(~
3
0
(~ ~)
3
0
Solution
The second row of the matrix is equivalent to the equation
Ox+Oy=O
This equation is satisfied for any value of x and y. The first row is equivalent to
x + 3y = 17
This has an infinite number of solutions: x = 17 - 3t, y = t.
• Example3.5
A system has augmented matrix
~)
2 -3
G 1
0
-4
1 -1
Solution
From the third row, the equation is
Ox + Oy + lz = -1
that is
z = -1
From the second row, the corresponding equation is
y - 4z = 7
Substituting in z = -1 the equation can be solved for y.
y - 4(-1) = 7
y+4=7
y = 3
The equation corresponding to the first row is
lx + 2y - 3z = 11
By substituting in the values already obtained for y and z, we can detennine x.
x= 2
The system has a unique solution: x= 2, y = 3, z = -1.
620 Block 3 Gaussian elimination
Exercises
-2 -1
1 Solve the systems whose augmented matrices
are
2
(e)G 1
0
3
1 D
(a) (~ 1
~8) 3 4
(~ -2 ~) <n G 1 -2
(b)
0 0 0 D
(~ 1 ~) (~ 2;)
5 3 6
(c) (g)
0 1
(~ ~)
5
(d)
0
Solutions to exercises
1 Any rows that consist entirely of zeros are the last rows of the matrix.
2 For a row that is not all zeros, the first non-zero element is a one. We call this
a leading 1.
3 As you move down the rows of the matrix, the leading ls move progressively to
the right.
Example3.6
Determine which of the following matrices are in row-echelon form:
(a) (~ ~ ~)
3.4 Row-echelon form of an augmented matrix 621 m
(!
1
n
3
(b) 4 -1
0 0
(~ ~)
0 1
(c)
0 0
6 9
(d) G 1
0
-3
1 D
Solution
(a) This is in row-echelon form. Note that the leading 1 in the second row is further
to the right than the leading 1 in the first row.
(b) This is not in row-echelon form since the leading 1 in the first row is further to
the right than the leading 1 in the second row.
(c) This is in row-echelon form.
(d) This is in row-echelon form.
Exercises
-1 3
1
2
Explain what is meant by row-echelon form.
~1)
0 0
(a) (~
4
1
3
-3 :) (e) G 0
1
1
0
(~ ~)
-1
(b) 1
2 5
(c) G 0
0
3
1 D
Solutions to exercises
Given any augmented matrix we would like to be able to transform it into row-
echelon form as the solution of the system can then easily be found. The way we
effect this transformation is by using elementary row operations.
We define three elementary operations that we can apply to the equations of the
system.
Key point The elementary operations that change a system but leave the solution unaltered are as
follows:
1 Change the order of the equations.
2 Multiply or divide an equation by a non-zero constant.
3 Add, or subtract, a multiple of one equation to, or from, another equation.
When applied to a system, elementary row operations may change the equations but
the solution to the resulting system remains unchanged. We apply elementary row
operations to a simple system to illustrate this.
Consider the system of linear equations
2x + 5y = 12 (1)
x+y=3 (2)
x+y=3
2x +Sy= 12
12x + 30y = 72
x y 3
-+-=-
5 5 5
You can check that this system still has solution x = 1, y = 2.
Finally, to illustrate the third elementary operation, we add 3 times equation (1) to
equation (2). The system becomes
2x +Sy= 12
7x + 16y = 39
(~
5
1
(b) (i) The rows are interchanged. The augmented matrix becomes
(~ ~ :2)
(ii) We now use the augmented matrix in (b) (i). Subtracting 2 X the first row
from the second row results in
(~ !)
1
3
(iii) We now use the augmented matrix in (b) (ii). Dividing the second row
by 3 gives
(~ ~)
1
1
(c) Note that the matrix is now in row-echelon form. From the second row we see
that y = 2. From the first row we have
lx + ly = 3
Substituting y = 2 into this equation we obtain x = l. Thus the solution to the
original system is x = l, y = 2.
Example3.8
Use Gaussian elimination to solve
3x-y=l
2x + 3y = 19
Solution
The augmented matrix is
(~
-1
3
We now apply a series of elementary row operations to transform the augmented
matrix into row-echelon form.
Subtract the second row from the first row.
(~
-4 -18)
3 19
Subtract 2 X the first row from the second row.
(~
-4 -18)
11 55
Divide the second row by 11.
(~
-4
-!8)
1
The matrix is now in row-echelon form. From the second row we see that y = 5. The
first row corresponds to the equation
lx - 4y = -18
Substituting y = 5 into this equation allows x to be found.
2
The solution to the system is x = 2, y = 5.
Example3.9
Use Gaussian elimination to solve
2x+y+2z=8
x - 3y + 3z = -4
4x + 2y - z = 1
Solution
The augmented matrix is
1 2
-3 3
2 -1
We apply a series of elementary row operations to transform the matrix into row-
echelon form.
3.5 Elementary row operations 625 m
Interchange the first row and second row.
-3 3
1 2
2 -1
Subtract 2 X the first row from the second row, subtract 4 X the first row from the
third row. This produces
-3 3
-4)
Subtract 2 X the second row from the third row to get
G 7
14
-4
-13
16
17
-3 3
-4)
Divide the second row by 7, divide the third row by-5.
G 7
0
-4
-5
16
-15
1 -3 3 -4
4 16
0 1
7 7
0 0 1 3
The matrix is now in row-echelon form. From the third row we see that
z= 3
The second row is equivalent to the equation
4 16
ly - -z = -
7 7
Substituting z = 3 and solving for y yields
y= 4
The first row is equivalent to the equation
1x - 3y + 3z = -4
Substituting in the values for y and z and solving for x yields
x= -1
The solution to the system is x = -1, y = 4, z= 3.
Exercises
1 Use Gaussian elimination to solve the systems 2 Use Gaussian elimination to solve the systems
of linear equations given in question 1 of of linear equations given in question 2 of
Section 3.2. Section 3.2.
626 Block 3 Gaussian elimination
Solutions to exercises
t
1 (a) x = 6, y = 4 (b) x = -2, y = 5 3 x = 4- 2'y = t
(c) x = l,y = -3 (d)x = 1.5,y = -2.5
(e) x = 4, y = 9.5 4 no solution
2 (a) x = 3, y = -2, z = 3 13 - 4t 17 - t
(b) x = -2, y = 0, z = 1 5 x = 5 'y = 10 'z = t
(c) x = 1, y = -3, z = 7
1 1
(d) x = 2• y = 2• z = 2
(e) x = -3,y = -2,z = -1
(~ ~4)
1 State the augmented matrix of each of the 3 1 0
following systems of equations: 0 1 0
(a) 3a - {3 = 4 (c) 0 0 1 -1
2{3 + 3'Y = -7
0 0 0 0
a-f3+'Y=ll
(b) a+ b = 3 3 Use Gaussian elimination to solve each of the
2a-b=O following systems of equations:
5a + 3b = 11 (a) x - 2y = -15
y + 2x = 15
2 Determine which of the following matrices are
in echelon form: (b) 3x + 4y = 14
-2x + y = -24
(a) G 1
0
0
1
0
0
0
1
0 D
4 Use Gaussian elimination to solve
2x - y + z = -2
x + 2y + 3z = -1
2x + 2y - z = 8
~)G
0 1 0
1
0
4
0
3
0 D
3.5 Elementary row operations 62.7 m
5 Use Gaussian elimination to solve 8 Use Gaussian elimination to solve
2x+y=10 2x + y - z = -3
x + 0.5y = 5 3x + 2y + z = 6
x+y+2z=8
6 Use Gaussian elimination to solve
3x + y = -3 9 Use Gaussian elimination to solve
4x + 11y = -4 2x + y - z = -3
3x + 2y + z = 6
7 Use Gaussian elimination to solve x+y+2z=9
2x - 3y = 12
6x-9y=24
Solutions to exercises
~1)
-1 0 4 x = 1, y = 2, z = -2
1 (a) G 2
-1
3
1 11 5 x=5--y=t
t
2'
~)G !~)
1
-1 6 x=-1,y=O
3
7 no solution
2 (a) echelon form (b) echelon form
(c) echelon form 8 no solution
4.1 Introduction
In this block we consider the meaning and calculation of eigenvalues and eigenvectors.
Although such calculations may at first sight appear abstract, eigenvalues have
important applications in the area of vibration analysis. Familiarity with the evalu-
ation of determinants and the solution of simultaneous equations by Gaussian elimi-
nation is essential.
Before we can discuss eigenvalues some preliminary results about determinants are
required. These are now developed.
Consider the simultaneous equations
ax+by=O
cx+dy=O
5x - 3y = 0
lOx - 2y = 0
Case 2:
5x - 3y = 0
lOx - 6y = 0
Solving Case 1, for example, by Gaussian elimination leads to x = 0, y = 0 as the
only possible solution. Thus the only solution is the trivial solution.
Looking at Case 2 we see that the second equation is simply twice the first equation.
This means that the second equation can be deduced from the first equation. In
essence, there is only one equation to work with. So we consider the solution of
5x - 3y =0
4.2 Trivial and non-trivial solutions 629 m
Rearranging we have
5
y = -x
3
As long as they value is ~ of the x value the equation is satisfied. Hence, for example,
x = l, y = ~; x = 2, y = 13°; x = -5, y = - 2J5 are all solutions. In general, the
solutions have the form x = t, y = ~t for any value of t. Thus there are an infinite
number of non-trivial solutions.
We now return to the system
ax+by=O
ex+dy=O
As seen, depending upon the values of a, b, e and d the system has either only the
trivial solution or an infinity of non-trivial solutions. For there to be an infinity of
solutions the second equation must be a multiple of the first. When this is the case
then e is a multiple of a and dis the same multiple of b: that is,
e = aa, d =ab for some value of a
In this case, consider the quantity ad - be:
ad - be = a(ab) - b(aa)
= aab - aab
=O
Hence the condition for non-trivial solutions to exist is that ad - be = 0. Writing
the system in matrix form gives
(: :)(;) = (~)
or
AX= 0
where
A = (: : ). X = (;) and 0= ( ~)
We note that ad - be is the determinant of A, so non-trivial solutions exist when the
determinant of A is zero, that is when A is a singular matrix.
In summary
This Key point holds true for a square matrix of any size.
630 Block 4 Eigenvalues and eigenvectors
Example4.1
Decide which system has non-trivial solutions.
(a) 4x - y = 0 (b) x + 2y = 0
2x - 3y = 0 3x + 6y = 0
Solution
(a) We write the system as
A=(~ -1)
-3
Then
det(A) = 4(-3) - (-1)(2) = -10
Since the determinant of A is non-zero the system has only the trivial solution.
(b) We write the system as
(! !)(;) = (~)
Then
A=(! !)
and !Al = 6 - 6 = 0. Since the determinant of A is zero the system has
non-trivial solutions.
Example4.2
Determine which system has non-trivial solutions.
(a) 3x - y + z = 0
x + 2y + 2z = 0
4x + y + 3z = 0
(b) 3x - y +z= 0
x + 2y + 2z = 0
5x - y + 3z = 0
Solution
(a) Wehave
AX= 0
where
-1
2
1
4.2 Trivial and non-trivial solutions 631 m
Evaluate the determinant of A:
!Al= 0
Since IAI = 0 the system has non-trivial solutions.
(b) Here
~)
-1
A=G 2
-1
!Al= 6
Since IAI oF 0 the system has only the trivial solution.
Exercises
1 Explain what is meant by the trivial solution of 3 Determine which of the following systems
a system of linear equations and what is meant have non-trivial solutions:
by a non-trivial solution. (a) x + 2y - z = 0
3x+y+2z=O
2 Determine which of the following systems x+y=O
have non-trivial solutions: (b) 2x - 3y - 2z = 0
(a) x - 2y = O 3x + y - 3z = 0
3x - 6y = 0 x - 7y - z = 0
(b) 3x + y = 0 (c) x + 2y + 3z = 0
9x + 2y = 0 4x - 3y - z = 0
(c) 4x - 3y = 0 6x + y + 3z = 0
-4x + 3y = 0 (d) x + 3z = 0
(d) 6x - 2y = 0 x-y=O
2x - ~y = 0 y+2z=O
(e) Y = 2x
x = 3y
Solutions to exercises
2 (a), (c) and (d) have non-trivial solutions. 3 (a) and (b) have non-trivial solutions.
632 Block 4 Eigenvalues and eigenvectors
4.3 Eigenvalues
2x+y=.Ax
3x + 4y= A.y
where A is some unknown constant. Clearly these equations have the trivial solution
x = 0, y = 0. The equations may be written in matrix form as
AX= AX
We now seek values of ,\ so that the system has non-trivial solutions. Although it is
tempting to write (A - A)X = 0 this would be incorrect since A - A is not defined;
A is a matrix and A is a constant. Hence to progress we need to write the right-hand
side in a slightly different way. To help us do this we use the 2 X 2 identity matrix, I.
AX= AIX
AX-AIX=O
(A - Al)X = 0
Note that the expression (A - >J) is defined since both A and )J are square matrices
of the same size.
We have seen in Section 4.2 that for AX= 0 to have non-trivial solutions then
!Al = 0. Hence for
(A-AI)X=O
IA - ,vj = 0
4.3 Eigenvalues 633 m
Now
A - AI=(~ ~)
= (~ ~)
= (2;). 4~ )J
So the condition IA - Ml = 0 gives
1
4 - ).
I- 0
It follows that
(2 - A)(4 - A) - 3 = 0
A2 - 6). + 5 = 0
(A - l)(A - 5) = 0
so that
A=lorS
These are the values of A that cause the system AX= AX to have non-trivial
solutions. They are called eigenvalues.
The equation
IA-Ml=O
which when written out explicitly is the quadratic equation in A, is called the
characteristic equation.
Example4.3
Find values of A for which
x + 4y =Ax
2x + 3y = ).y
has non-trivial solutions.
Solution
We write the system as
AX= AX
where
A = (~ ~). X = (~)
To have non-trivial solutions we require
IA-Ml=O
634 Block 4 Eigenvalues and eigenvectors
Now
A- M = (~ ~)
= (~ ~)
Hence
IA - ,vj = (1 - i\)(3 - A) - 8
= i\2 - 4A - 5
A2 - 4,\ - 5 = 0
(i\ + l)(A - 5) = 0
which yields
A= -1 or A= 5
The given system has non-trivial solutions when A = -1 and A = 5. These are the
eigenvalues.
IA-Ail=O
Solutions of this equation are the eigenvalues of A. These are the values of ,\ for which
AX = AX has non-trivial solutions.
Example4.4
Determine the characteristic equation and eigenvalues. i\, in the system
Solution
In this example the equations have been written in matrix form with
4.3 Eigenvalues 635 m
The characteristic equation is given by
IA - Ml= 0
l(!l !)-A(~ ~)l=O
3- A 1 I
1
-1 5- A = O
(3 - A)(5 - A) + 1= 0
2
A - 8A + 16 = 0
The characteristic equation is A2 - 8A + 16 = 0. Solving the characteristic
equation gives
A2 - SA+ 16
= 0
(A - 4)(A - 4) = 0
A= 4 (twice)
There is one repeated eigenvalue: A = 4.
Example4.5
Find the eigenvalues A in the system
Solution
We form the characteristic equation, IA - AIJ = 0. Now
A-AI= 4 - .A 1 )
( 3 2-A
Then
IA-Ml= A2 - 6A +5
Solving the characteristic equation A2 - 6.A +5 = 0 gives
A= 1, 5
There are two eigenvalues, A = 1 and A = 5.
The process of finding the characteristic equation and eigenvalues of a matrix has
been illustrated using 2 X 2 matrices. This same process can be applied to a square
matrix of any size.
Example4.6
Find (a) the characteristic equation and (b) the eigenvalues of A where
2
-1
2
636 Block 4 Eigenvalues and eigenvectors
Solution
(a) We need to calculate IA - Aii. Now
1- A 2
A - AI= ~1 -1 - A
(
2
and
1- A 2 0
-1 -1 - A 1 = (1 - A) -1 - A 1 I- 2 1-1 1 I
1 2 -2 - A 3 -2 - A
3 2 -2-A
Exercises
1 Calculate (i) the characteristic equation and 2 Calculate (i) the characteristic equation and
(ii) the eigenvalues of the system AX = liX (ii) the eigenvalues of the following 3 x 3
where A is given by matrices:
(a)(~ 6) (-3 ~)
~3
-1
(c) (~
1
-2)
4
(b)
(d) (14
-4
~1)
(a) ( -2
-1 n
4.4 Eigenvectors 637 m
~)G
0
1
2
;1) (d) ( ~2
6
3
-3 ;)
~1 ~!) ~
1 -2
(c) ( 1
3
(e) (
16
-4
-4 n
Solutions to exercises
4.4 Eigenvectors
and determined the values of>. for which non-trivial solutions exist. These values of
A. are called eigenvalues of the system or, more simply, eigenvalues of A. For each
eigenvalue there is a non-trivial solution of the system. This solution is called an
eigenvector.
Example4.7
Find the eigenvectors of
AX= AX
where
Solution
We seek solutions of AX = AX that may be written as
(A->J)X=O
638 Block 4 Eigenvalues and eigenvectors
(A - .Al)X = 0
(A-I)X=O
~) - (~ ~)](;) = (~)
(~ !)(;) = (~)
Written as individual equations we have
3x +y = 0
3x +y = 0
Clearly there is only one equation, which is repeated. As long as y = - 3x the equa-
tion is satisfied. Thus there are an infinite number of solutions such as x = 1,
y = -3; x = -5, y = 15; and so on. Generally we write
x = t,y = -3t
Note that the eigenvector has been determined to within an arbitrary scalar, t. Thus
there is an infinity of solutions corresponding to .A = 1.
We now consider A = 5 and seek solutions of the system equation
(A - .Al)X = 0
-x + y = 0
3x - 3y = 0
We note that the second equation is simply a multiple of the first so that in essence
there is only one equation. Solving -x + y = 0 gives y = x for any x. So we write
x = t, y = t. Hence the eigenvector corresponding to A = 5 is
X= {!)
4.4 Eigenvectors 639 m
Again the eigenvector has been determined to within an arbitrary scaling constant.
Sometimes the arbitrary scaling constants are not written down; it is understood
that they are there. In such a case we say the eigenvectors of the system are
Example4.8
Determine the eigenvectors of
Solution
In Example 4.4 we found that there is only one eigenvalue, ,\ = 4. We seek the solu-
tion of (A - )J) X = 0. Write down the equations that result from letting A = 4,
firstly in matrix form and then as a single equation.
-x +y = 0
x = t,y = t
X= {~)
Example4.9
Determine the eigenvectors of
(~I
2
-1
2
The eigenvalues were found in Example 4.6.
Solution
From Example 4.6 the eigenvalues are A = -2, -1, 1. We consider each eigenvalue
in turn.
A= -2
2
-1
2
640 Block 4 Eigenvalues and eigenvectors
2
-1
2
We note that the first and last rows are identical. So we have
3x+2y=O
-x + y + z = 0
Solving these equations gives
x = t, y = -~t, z = ~t
2
1
3
x = t
2
5
2
A= -1
We have
2
-1
2
Thus we have
2x + 2y = 0
-x + z = 0
3x + 2y - z = 0
We note that the third equation can be derived from the first two equations: the first
equation minus the second produces the third. If you cannot spot this, the equations
should be solved by Gaussian elimination. In effect we have only two equations:
2x+ 2y = 0
-x + z = 0
Solving these gives x = t, y = -t, z = t. The eigenvector is
4.4 Eigenvectors 641 m
A =1
We have
(~I -~Jo-m
2
-2
2
Thus we have
2y = 0
-x - 2y + z = 0
3x + 2y - 3z = 0
From the first equation, y = O; putting y = 0 into the other equations yields
-x + z = 0
3x - 3z = 0
Here the second equation can be derived from the first by multiplying the first by -3.
Solving, we have x = t, z = t. So the eigenvector is
x-{~)
Eigenvalues and eigenvectors are important in the analysis of vibrating systems and
consequently have a wide variety of applications in, for example, the aerospace and
motor industries. In Example 4.10 below we see how eigenvalues are related to the
possible angular frequencies of vibration. Further, the eigenvectors describe the pos-
sible patterns or modes of vibration.
Many computer algebra packages will calculate eigenvalues and eigenvectors of a
square matrix A. For example, in Maple, with the LinearAlgebra package
loaded, with (LinearAlgebra), the command Eigenvalues (A) will return
a vector containing the eigenvalues of A. The command Eigenvectors (A) will
return a vector containing the eigenvalues and also a matrix containing the corre-
sponding eigenvectors.
The Matlab instruction [V, D] = eig (A) returns two matrices V and D. The
columns of V are the eigenvectors of A. The matrix Dis diagonal with the eigenval-
ues of A on the diagonal.
Figure 4.1 shows two masses, m 1 and mi. suspended from a fixed point and cou-
pled with two springs having spring constants k1 and /ci. The diagram on the left
shows the masses at rest in their equilibrium positions. The diagram on the right
depicts an instant in which the masses are in motion. The displacements x 1(t) and
x2(t) are measured from the equilibrium positions in the directions indicated.
Figure4.1
1\vo masses
coupled with
springs, in static
equilibrium (left)
and in motion
----- ----
(right).
~r
!
mr.i :::J
Masses at:~~----- -:1-
!
in equilibrium
Applying Newton's second law of motion to each of the two masses in turn
leads to the following differential equations (see Chapters 20 and 22) that govern
their behaviour:
.
or more concisely as AX = B where A =
(-(k1 + "2)/m1
ktilmi
5.
2
1
dx )
and B ~ Using knowledge of the solution of differential equations it can
(
4.4 Eigenvectors 643 m
be shown that the angular frequencies, w, with which the system can oscillate are
found from w2 = - .A where .A is an eigenvalue of A. The corresponding eigenvectors
are related to the possible modes of vibration.
Given that k1 = 12, ~ = 8 and m1 = ~ = 1, as indicated in Figure 4.1, we can
calculate the eigenvalues and eigenvectors using software as follows:
Mapk
> with(LinearAlgebra):
A:=Matrix( [ [-20, 8], [8, -8]]);
Eigenvectors(A);
showing that there are two eigenvalues A1 = -24 and A2 = -4 with corresponding
eigenvectors (
2
~)and 0)
respectively.
Matlab
Using the Matlab commands given above we find
» A = [-20 8; 8 -8]
A = -20 8
8 -8
D = -24 0
0 -4
You should compare the output here with that from Maple above and be able to explain
why the eigenvectors are apparently different
From these results we can deduce that the system can oscillate at angular frequencies
w = V-A = 2v'6 and 2.
644 Block 4 Eigenvalues and eigenvectors
Exercises
1 Calculate the eigenvectors of the matrices 2 Calculate the eigenvectors of the matrices
given in question 1 of the previous section. given in question 2 of the previous section.
Solutions to exercises
2
(a) { D.{}). {D (e)Gj}{:}{!)
~) {-5.~981} { 0.0~81 } 3)
2.7321 -0.7321
f
-3
(~3 -24)
(~2-4
A= -1
H= 4
(a) Determine the characteristic equation of A.
(b) Determine the eigenvalues of A. 3
(c) Determine the eigenvectors of A.
(d) Form a new matrix M whose columns are (a) Find the eigenvalues of H.
the two eigenvectors of A. Mis called a (b) Determine the eigenvectors of H.
modal matrix. (c) Form a new matrix M whose columns are
(e) Show that A1 1AM is a diagonal matrix, D, the three eigenvectors of H. Mis called a
with the eigenvalues of A on its leading modal matrix.
diagonal. D is called the spectral matrix (d) Show that A11HM is a diagonal matrix, D,
corresponding to the modal matrix M. with the eigenvalues of Hon its leading
diagonal. D is called the spectral matrix
4 (a) Show that the matrix corresponding to the modal matrix M.
A= (~2 ~)
has only one eigenvalue and determine it.
(b) Calculate the eigenvector of A.
Solutions to exercises
3 (a) A2 + A- 6 = 0 5 (a) A= 2, 3, 4
(b) A= -3, 2
5.1 Introduction
So far we have met a number of techniques used for solving systems of linear
equations - Cramer's rule (Block 1), the inverse matrix method (Block 2) and
Gaussian elimination (Block 3) are three such methods.
We now examine two techniques that provide approximate solutions to linear sys-
tems. In these, an initial guess of the solution is repeatedly improved, generating a
sequence of approximate solutions. With repeated application of the method, under
certain conditions, the approximate solutions approach the exact solution. Such
methods are known as iterative methods. The two iterative methods we look at are
Jacobi's method and the Gauss-Seidel method.
Example5.1
Solve
3x-2y=9
x + 4y = -11
Solution
We rewrite the equations so that x and y are the subjects. This yields
2
x=3y+3 (1)
x 11
y = ---- (2)
4 4
We now guess a solution. In practice an educated guess may be possible if realistic
estimates of x and y are known. Suppose we guess x = 0, y = -4. To show this is
our initial guess and not the exact solution we write Xo = 0, y0 = -4.
We improve our initial guess by substituting Xo = 0, Yo = -4 into the right-hand
side of equations (1) and (2). The values of x and y so obtained are labelled x1 and y 1•
5.2 Jacobi's method 647 m
Hence
2
X1 = 3Yo + 3
2
= 3(-4) +3
= 0.3333
Xo 11
YI= - - - -
4 4
0 11
= ----
4 4
= -2.7500
At this stage we have made one application, or iteration, of Jacobi's method. To
obtain the next approximate solution, x 2, y2, we substitute x 1 and y 1 into the right-
hand side of equations (1) and (2). This produces
2
X2 = 3Y1 +3
2
= 3 (-2.7500) + 3
= 1.1667
X1 11
Y2= - - - -
4 4
(0.3333) 11
=
4 4
= -2.8333
At this stage two iterations have been performed. We perform another iteration to
obtain x3 and y3.
2
x3=3y2+3
= 32 (-2.8333) + 3
= 1.1111
X2 11
Y3 = - - - -
4 4
(1.1667) 11
4 4
= -3.0417
Similarly
2
X4 = -y3 +3
3
2
= 3 (-3.0417) + 3
= 0.9722
648 Block 5 Iterative techniques
X3 11
Y4 = -4-4
(1.1111) 11
=
4 4
= -3.0278
Table5.1
Iteration no. (n) Xn Yn
0 0.0000 -4.0000
1 0.3333 -2.7500
2 1.1667 -2.8333
3 1.1111 -3.0417
4 0.9722 -3.0278
5 0.9815 -2.9931
6 1.0046 -2.9954
7 1.0031 -3.0012
8 0.9992 -3.0008
9 0.9995 -2.9998
10 1.0001 -2.9999
11 1.0001 -3.0000
12 1.0000 -3.0000
Example5.2
Find an approximate solution to
4x + y = 12
-2x + 5y = 16
using Jacobi's method. Perform five iterations and take Xo = 0, y0 = 3 as your
initial guess.
Solution
The equations are rearranged to make x and y the subjects.
x = -0.25y +3
y= 0.4x + 3.2
Y2 =
If the iterations are continued then Xn approaches 2 and Yn approaches 4, the exact
solution.
Clearly, this sort of approach is simple to program, and iterative techniques are best
implemented on a computer. When writing a program a test is incorporated so that
after each iteration a check for convergence is made by comparing successive esti-
mates. The method may not converge, and, even if it does, convergence may be very
slow. Other methods with improved rates of convergence are available such as the
Gauss-Seidel method, which is covered in Section 5.3.
Exercises
Solutions to exercises
0 -4.0000 -2.0000
1 -5.3333 -3.4286
2 -5.8095 -3.8095
3 -5.9365 -3.9456
4 -5.9819 -3.9819
5 -5.9940 -3.9948
The Gauss-Seidel method is vecy similar to Jacobi's method. The difference comes
in the calculation of the y values. When calculating the y values the most recent x
value is used. Example 5.3 illustrates this.
Example5.3
Use the Gauss-Seidel method to find an approximate solution to the system given in
Example 5.1. Perform five iterations and take Xo = 0, Yo = -4.
Solution
We arrange the equations so that x and y are the subjects:
2
x=? + 3
x
y = -4-2.75
5.3 Gauss-Seidel method 651 m
We make an initial guess, say x 0 = 0, Yo = -4. Now we calculate x 1•
2
X1 =-yo+ 3
3
2
= -(-4) +3
3
= 0.3333
X1
Yi= - 4 - 2.75
= (0.3333) - 2 75
4 .
= -2.8333
This completes the first iteration. We are now ready to calculate x2 and y2 •
2
X2 = 3Y1 +3
= ~(-2.8333) + 3
= 1.1111
X2
Y2 = -4-2.75
= (l.llll) - 2 75
4 .
= -3.0278
2
X3 = 3Y2 +3
2
= 3(-3.0278) + 3
= 0.9815
X3
4 - 2.75
y3 = - -
(0.9815)
= 4 - 2.75
= -2.9954
Table5.2
Iteration no. (n) Xn Yn
0 0.0000 -4.0000
1 0.3333 -2.8333
2 1.1111 -3.0278
3 0.9815 -2.9954
4 1.0031 -3.0008
5 0.9995 -2.9999
6 1.0001 -3.0000
Note that the Gauss-Seidel method converges more rapidly than Jacobi's method
(see Table 5.1). 1bis is because the Gauss-Seidel method uses the most recent value
of x in the calculation of they values.
Example5.4
Use the Gauss-Seidel method to find an approximate solution of
4x + 3y = 0.5
x - 2y = -9.5
Solution
The equations are rearranged to make x and y the subjects.
x= -0.15y + 0.125
y= 0.5x + 4.75
The initial guess is x0 = 0, Yo = 0. So
X1 = -0.75yo + 0.125
= 0.125
Exercises
Solutions ta exercises
0 -4.0000 -2.0000
1 -5.3333 -3.8095
2 -5.9365 -3.9819
3 -5.9940 -3.9983
4 -5.9994 -3.9998
5 -5.9999 -4.0000
654 Block 5 Iterative techniques
Solutions to exercises
6.1 Introduction
In this block we consider electrical networks comprising known resistors and known
voltage sources. We wish to determine the current in various parts of the network.
The network can be modelled by a set of simultaneous equations, which may be
solved by matrix methods. In order to formulate the simultaneous equations we
introduce the idea of a mesh current and a branch current.
Figure 6.1 A B
An electrical Ri
network with mesh
,,~
currents marked.
F R2 c
R3
,,~
E + E2 - D
A mesh is a loop that does not contain any smaller loops. Figure 6.1 contains two
meshes: ABCF and CDEF. Note, for example, that ABCDEF is not a mesh.
We introduce mesh currents, Ii and / 2, as shown in Figure 6.1. Mesh currents are
usually denoted as running clockwise although in reality they may run anticlockwise.
Upon calculation this would be denoted by the current being negative.
The net current in a particular branch is called the branch current. The branch
currents are found by combining the mesh currents. For example, the current from C
to F is / 1 - 12.
656 Block 6 Electrical networks
The aim of analysing the network is to determine the mesh currents, / 1 and / 2 .
Once these are known the branch currents can easily be found.
Extensive use is made of Kirchhoff's voltage law, which states that the algebraic
sum of voltages around a mesh is zero: that is, the sum of the voltage drops equals
the sum of the voltage rises.
Solution
(a) Kirchhoff's voltage law states that the algebraic sum of voltages around a mesh
is zero: that is, the sum of the voltage drops equals the sum of the voltage rises.
Recall that the voltage drop, V volts, across a resistor of resistance R ohms
carrying I amps is given by V =IR.
Consider the mesh ABCF. Starting at A and working clockwise around the
mesh we equate voltage drops to voltage rises.
(1)
Consider now the mesh CDEF. Applying Kirchhoff's voltage law we obtain
Figure 6.2 A - Ei + Ri
B
Electrical network
for Example 6.2.
1,~
D
E Rz c
1,~ 1,~
+
Ez R3 R4
H
Rs G F
Solution
We use Kirchhoff's voltage law. Recall that the voltage drop, V, across a resistor of
resistance R ohms carrying a current I amps is given by V = IR.
Consider the mesh ABCDE. For clarity this is shown in Figure 6.3.
Figure 6.3
Ei +
A B
MeshABCDE. Ri
1,~
D
E Rz c
r,2 r,3
Starting from A and working clockwise around the mesh we apply Kirchhoff's
voltage law, equating the voltage rises to the voltage drops. We obtain
This is rewritten as
(3)
Figure 6.4
MeshEDGH. 110
D
E R2
+
E2
1,~ R3 ('
Rs
H G
Starting at E and working clockwise we equate the voltage drops and the voltage
rises to obtain
(/2 - l1)R2 + (/2 - l3)R3 + l2Rs = E2
which is then rewritten as
-I1R 2 + [i(R2 + R 3 + R 5) - /~3 = E 2 (4)
Finally we look at mesh DCFG, as shown in Figure 6.5.
Figure 6.5
MeshDCFG.
D
--~--------<C
G F
-5
8
-1
The system may be solved using one of the methods explained in this chapter. We
find
Ii = 3.0189, /2 = 3.8302, /3 = 0.5472
Figure 6.6 A
R1
B - Ei
+ c
Electrical network
for Example 6.3.
l,~ l,~ Rz
D 14 R3 F
E
1,0 Rs
1,0
+ E3
- + E4 -
G H I
Solution
(a) We apply Kirchhoff's voltage law to each of the meshes.
Mesh 1 (ABED)
We equate voltage drops to voltage rises.
which is written as
660 Block 6 Electrical networks
Mesh 2 (BCFE)
which is written as
(7)
Mesh3 (DEHG)
which is written as
(8)
Mesh 4 (EFIH)
which is written as
(9)
Equations (6), (7), (8) and (9) are written in matrix form as
Ri + &, 0 -&. 0 11 E1
0 R1 + R3 0 -R3 12 Ei - E1
-R4 0 R4 +Rs -Rs /3 E3
0 -R3 -Rs R3 +Rs /4 E4
10 0 -7 0 11 10
0 5 0 -1 12 -4
-7 0 11 -4 /3 5
0 -1 -4 5 /4 5
h- /4 = 5.6024 - 5.5437
= 0.0587
6.2 Mesh and branch currents 661 m
Exercises
l,~ 1-----1y
Figure 6.7
y
l,~
R1
11
:J- +
Ei
l,~ -~
E2
+ 13
~
R1 R2
R3 y
l,~ 1,~
Figure 6.8 +
E2
y
(a) Formulate a matrix equation for the mesh x R3
currents fi, 12 and /3.
l,~ 14~
(b) Given E 1 = 4, E 2 = 5, R 1 = 3, R2 = 1, +
R3 = 2 and R4 = 6, find fi, 12 and h· E3 Rs
(c) Calculate the current in the branch XY.
(b) Calculate the mesh currents given E 1 = 5, (a) Formulate a matrix equation for the mesh
E2 = 2,E3 = l0,R1 = 6,R2 = 7, currents Ii. 12 , 13 and 14•
R3 = 10, 14 = 1 and R 5 = 6. (b) Given E1 = 5, E2 = 5, E3 = 6, E4 = 12,
(c) Calculate the current in the branch XY. R1 = l,R2 = 4,R3 = 2,14 = l,R5 = 7
and R 6 = 9, find the mesh currents.
5 Figure 6.11 shows a circuit with four meshes. (c) Calculate the current in the branch XY.
E1 + x - E,, +
Ri
Ii~ R2
r,~ R3
- E3
+ - E4
+
y
Figure 6.11
Solutions to exercises
5 71
(b) 11 = 3• 12 = 30
4 (a)
c ~
R2 + R3 0
0
-R3
R4
0 R3
-R3
r'l
~Rs ~:
h
5
= c;,~i
-E3
E3
x
1 Figure 6.12 shows an electric circuit with
mesh currents Ii and 12 marked.
(a) Determine a matrix equation for Ii
and/2.
(b) Solve for Ii and 12 given E 1 = 12, R1 = 3
andR2 = 4.
(c) Calculate the current in branch XY.
x
y
Figure 6.13
l1:J
1---~x~----'+--lEi I----~
x t--------iY
y
Figure 6.14
Figure 6.15
4 Figure 6.15 shows an electric circuit with
mesh currents fi, /2, 13 and14 marked.
(a) Determine a matrix equation for Ii. I 2, I3
and/4 .
(b) Solve for Ii. Ji, 13 and 14 given E 1 = 6,
E2 = 12,E3 = 6,E4 = l0,R1 = 3,
R2 = 5,R3 = 4,R4 = 5 andR5 = 1.
(c) Calculate the current in branch XY.
Solutions to exercises
1 (a) (Ri
0
0 )(Ii)
R2 12
= (!1 )
Ei
(b) Ii = 4, /2 = -3
(c) Ii - 12 = 7
2 (a) (Ri + R2
-R2
-R2 )
R2 + R3
(Ii)
12
4
= (E2 ~1 E)
(b) Ii = 1.65,12 = -0.15
(c) Ii - 12 = 1.8
x
Ii~ ,,~
- + x - + y
Ei E2
R3
I,~ R4
'·~ Rs
(~
(a) 2x - y = 5 -1 4
x+y=l 2 -1
(b) 2x - y = s -2 3
-x + 3y = 0
(c) x + 3y = 1 0 4
2x - Sy= -9
solve the following systems of equations:
7 Solve the following simultaneous equations (a) 3w - x + 4y + 6z = 19
using Cramer's rule: w+2x-y+2z= 11
2w - 2x + 3y - 2z = -11
(a) ii + 2i2 - i 3 = 7
5w + 4y + z = 2
ii + i2 + 2i3 = 7
(b) 2a - 2{3 + 3-y - 28 = 11
2ii - i3 = 3
a + 2f3 - 'Y + 28 = -2
(b) 3a - b + c = 4
5a + 4-y + 8 = 15
a - 2b + 3c = 2 3a - f3 + 4'}' + 68 = 1
a+ b - Sc= 4
(c) a + 2f3 + 'Y = 1
11 State which of the following matrices are in
2a + 3f3 + 2-y = 2
echelon form:
a+ 4/3 - '}' = -3
2f3
1
a+ = 0.5 (c)
0
G~
9 Solve the following simultaneous equations 1
using the inverse matrix method: 0
(a) x + y - z = -1 (d)
4
2x-y+2z=S
2x + 3y - z = -3 2 0
(b) 2Ii + 12 - /3 = 10 0 1
4/i + 312 + 2/3 = 18
3/i - 312 + 4/3 = 0.5 12 Use Gaussian elimination to solve the following
(c) r+ s - t = 0.5 systems of equations:
-2r - s + 2t = -0 .2 (a) 3ii - 2i2 = 13
r-4s-2t = -5 2ii - 5i2 = 16
21 ( ~6 -66 -63 42 2
9 7 -7 2x - 1y = -11
End of chapter exercises 667 m
13 Use Gaussian elimination to solve the 18 The matrix, A, is defined by
following sets of equations:
(a) 2x - y - z = 3
5x + 1y + 3z = 10
A= ( 3
-1 _75)
-3x - y + 4z = -17
(a) Calculate the characteristic equation of A.
(b) 2a - f3 + 'Y = 11 (b) Calculate the eigenvalues of A.
a (c) Calculate the eigenvectors of A.
2 + f3 + 2y = 6
3{3 - 1y = -37 19 (a) Show that the matrix
(c) ii + 2i2 - 3i3 = 2
-3ii + 2i2 + i3 = 10
2i1 - 3i3 = -9
(! -11)
4x - y = -9.4
3x + 5y = 7.9
Take x0 = -1, y0 = 1.5 and perform five
iterations.
B=
c 5
-5
-1
2
5
Solutions ta exercises
3 (a) (Ri + R2
-R2
-R2 )(Ii) (Ei)
R2 + R3 12 = E2
R1 0 0 15 n Xn Yn
0 R2 0
5 (a) 0 0 R3 + 14 0 -2 2
( l -3.25 2.6875
0 0 -14 2 -2.9063 2.4297
3 -3.0352 2.5264
~ (~:)
4 -2.9868 2.4901
5 -3.0049 2.5037
8 (a) x = 5, y = 3 17 n Xn Yn
(b) r 1 = 6.5, r2 = 3.5
0 -1 1.5
(c) a = -0.5, f3 = 2
1 -1.975 2.765
2 -1.6588 2.5753
9 (a) x = 2, y = -2, z = 1 -1.7062
3 2.6037
(b) Ii= 3.5,/2 = 2,/3 = -1 4 -1.6991 2.5994
(c) r = 1.2, s = 0.8, t = 1.5 -1.7001
5 2.6001
10 (a) w = 2, x = -1, y = -3, z = 4
(b) a = 1, f3 = 2, y = 3, li = -2 18 (a) >..2 + 2>.. - 8 = 0
(b) -4, 2
11 (a), (b), (c) and (e) are in echelon form.
-0.7071) ( 0.9899 )
12 (a) i 1 = 3, i 2 = -2 (c) ( 0.7071 ' -0.1414
(b) a = 4, f3 = 12
(c) x = -2, y = 1 19 (a) >.. = 3
1.1 Introduction
Figure 1.1
Applying the force
in a different
direction will
achieve a different
effect
In order to specify the force completely we must state the direction in which the
force acts. For example, we might state
Clearly this would achieve a different effect from applying the force horizontally to
the right. The direction in which the force acts is crucial.
Special methods have been developed for handling vectors in calculations, giving
rise to subjects known as vector algebra, vector geometry and vector calculus. Quan-
tities that are vectors must be manipulated according to certain rules, which are
described in this and subsequent blocks.
672 Block 1 Basic concepts of vectors
Key point Vectors are quantities that are specified by giving both their magnitudes and directions,
and which are manipulated according to particular, and well-defined, rules.
There are many engineering applications in which vector and scalar quantities play
an important role. For example, speed, mass, work, voltage, energy are all scalars,
whereas force, acceleration, velocity, electromagnetic field strength are all vectors.
Furthermore, when computer software is written to control the position of a robot,
the position is described by vectors.
Sometimes confusion can arise because words used in general conversation
have specific technical meanings when used in engineering calculations. An ex-
ample of this ambiguity is the use of the words 'speed' and 'velocity'. In everyday
conversation these words have the same meaning and can be used interchangeably.
However, in engineering and science they are not the same. Speed is a scalar quan-
tity described by giving a single number in appropriate units. So we can make
statements such as
On the other hand velocity is a vector quantity and must be specified by giving a
direction as well. So, for example, we can state
'the velocity of the aircraft is 200 metres per second due north'
In engineering calculations, the words 'speed' and 'velocity' should not be used
interchangeably. Similar problems arise from use of the words 'mass' and 'weight'.
In engineering and science these are different. Mass is a scalar that describes the
amount of substance in an object. The unit of mass is the kilogram. Weight is a vec-
tor, the direction of which is vertically downwards. Weight arises through the action
of gravity. The unit of weight is the newton.
Displacement and distance are related quantities that can cause confusion.
Whereas distance is a scalar, displacement is 'directed distance': that is, distance
together with a specified direction. So, referring to Figure 1.2, if an object is moved
from point A to point B, we can state that the distance moved is 10 metres, but the
displacement is 10 metres in the direction from A to B.
Figure 1.2
Displacement
means directed
-----
I
I
I
---
I
1---------------->
I
D
distance.
A B
lOm
You will meet many other quantities in the course of your studies, and it will be
helpful to know which are vectors and which are scalars. Some common quantities
and their type are listed in Table 1.1. The common units in which these are measured
are also shown.
1.2 The mathematical description of vector quantities 673 m
Table 1.1
Some common Quantity Type SI unit
scalar and vector
Distance Scalar metre,m
quantities.
Area Scalar metres squared, m2
Mass Scalar kilogram, kg
Temperature Scalar kelvin, K
Pressure Scalar pascal, Pa
Work Scalar joule, J
Energy Scalar joule, J
Displacement Vector metre,m
Force Vector newton,N
Velocity Vector metres per second, m s - l
Acceleration Vector metres per second per
second, m s-2
Exercises
Solutions to exercises
1 (a), (b), (c), (t), (g) are scalars; (d), (e) and
(h) are vectors.
For example, Figure 1.3 shows a vector that might represent a velocity of
3 m s- 1 north-west. Note that the arrow on the vector indicates the direction
required.
Figure 1.3
A vector quantity
can be represented
by drawing a line
marked with an
arrow.
Scale: = 1 m s- 1
Figure 1.4 B
Vectors can be
written in different
ways:
~ or
AB= a= g.
A
Example 1.1
Consider Figure 1.5, which shows an object being pulled by a force of 5 Nat
an angle of 60° to the horizontal. Show how this force can be represented by a
vector.
Figure 1.5 5N
An object being
pulled by a force.
1.2 The mathematical description of vector quantities 675
Solution
The force can be represented by drawing a line of length 5 units at an angle of 60° to
the horizontal, as shown in Figure 1.6. Note that we have labelled the force F. The
modulus of the force is 5 newtons. Whenever several forces are involved they can be
labelled Fi. F 2, and so on.
Figure 1.6
The force in
Figure 1.5
represented as a
vector.
Scale: ,-----, = 1 unit
When we wish to refer to just the magnitude of a vector we write this using the
--+
modulus sign as IABI, or lal, or 1~1. Alternatively we write simply a.
Referring to Figure 1.6, we can write the magnitude of the force F as IFI or
simply F (not bold, and without the underline or modulus signs).
-+
Key point The magnitude, or modulus, of a vector~ = AB can be written as
Equal vectors
In general two vectors are said to be equal vectors if they have the same magnitude
--+ --+
and direction. So, in Figure 1.7 the vectors CD and AB are equal even though their
locations differ.
This is a useful and important property of vectors: a vector can be translated main-
taining the same direction and magnitude, without changing the vector itself.
Figure 1.7 B
Vectors can be
equal even when
their locations
D
differ.
c
676 Block 1 Basic concepts of vectors
There are exceptions to this property. For example, a vector is sometimes used to
represent the position of an object that might be located at a particular point in space.
Such a vector cannot be translated freely. Nevertheless most of the vectors we shall
meet can be translated, and as such are called free vectors.
Negative vectors
The vector -a is a vector in the opposite direction to a, but with the same magnitude
---+ ---+
as a, as shown in Figure 1.8. Geometrically, if a = AB then -a = BA.
Figure 1.8 B
The negative
vector -a has the
opposite direction B
toa.
A
Exercises
1 An object is subject to two forces, one of 3 N 3 Vectors p and q are equal vectors. Draw a
vertically downwards, and one of 8 N diagram that might be used to represent
horizontally to the right. Draw a diagram p andq.
representing these two forces as vectors.
Solutions to exercises
~
r---------..I
I
l ____~SN F
3N
Figure 1.9 Figure 1.10
-F ~
Figure 1.11
1.3 Addition and subtraction of vectors ff17
Addition of vectors is carried out according to a rule known as the triangle law.
Figure 1.12
Two vectors
a andb.
Figure 1.13
Addition of the
two vectors of
Figure 1.12 using
the triangle law.
/
Example 1.2
Redraw the diagram in Figure 1.14 to show the vector sum a + b.
Figure 1.14 a
678 Block 1 Basic concepts of vectors
Solution
a
It is possible, using the triangle law, to prove the following rules, which apply to any
three vectors a, b and c:
To see why it is appropriate to add vectors using the triangle law consider the follow-
ing examples.
Example 1.3 The route taken by an automated vehicle
An unmanned vehicle moves on tracks around a factory floor carrying components
from the store at A to workers at C, as shown in Figure 1.15.
---
Figure 1.15
The vehicle may arrive at C either directly or via a second location at B. The
-+
movement from A to B can be represented by a displacement vector AB. Similarly
-+
movement from B to C can be represented by the displacement vector BC, and
-+ -+
movement from A to C can be represented by AC. Since the head of vector AB touches
--+
the tail of BC the triangle law can be applied immediately to find the combined effect
of the two displacements.
-+ -+ -+
AB+ BC= AC
Figure 1.16
The combined
effect of forces F 1 ___"_,_',-)o - 1
We can use vector addition to find the combined effect of the two forces, known as
the resultant force. Translating F 1 until its tail touches the head of F 2 , we complete the
triangle as shown. The vector represented by the third side is the resultant, R. We write
and say that R is the vector sum of F 2 and F 1• The resultant force acts at an angle of
()below the horizontal where tan() = ~. so that() = 33.7°, and has magnitude given
by Pythagoras's theorem as v'i3 N.
Key point The resultant of two vectors a and b is their vector sum a + b.
Figure 1.17
Force F has two
perpendicular
components.
Fcos 0
For example, Figure 1.18 shows a force of 5 N acting at an angle of 30° to the
x axis. It can be resolved into two components, one directed along the x axis with
magnitude 5 cos 30° and one perpendicular to this of magnitude 5 sin 30°. Together,
these two components have the same effect as the original force.
Figure 1.18 y
L
5 sin 30°
0
--->
5 cos 30°
Example 1.6
Consider the force shown in Figure 1.19. Resolve this force into two perpendicular
components, one horirontally to the right, and one vertically upwards.
L
Figure 1.19
0
---
Solution
Example 1.7
~ ~
Figure 1.21 shows vectors p = OP and q = OQ. What is the geometrical signifi-
cance of the vector q - p?
Figure 1.21 p
1.3 Addition and subtraction of vectors 681
Solution
We know that q - pis interpreted as q + (-p).
Start by drawing in the vector -p. This is shown in Figure 1.22(a). It has been
drawn with its tail touching the head of q so that we can apply the triangle rule for
addition. Figure 1.22(b) shows the application of the triangle rule. Note that the
---+
resultant q + (-p) is the same as the vector PQ. This result is very important.
Figure 1.22 p p
(a) (b)
Key point - -
Given two vectors p = OP and q = OQ (Figure 1.23) the vector from P to Q is given
byq - p.
p
Figure 1.23
Exercises
- -
Vectors p and q represent two perpendicular
sides of a square ABCD with p = AB and
positive y axis. The second has magnitude 4 N
and acts in the direction of the negative x axis.
Calculate the magnitude and direction of the
- -
q = BC. Find vector expressions that represent
the diagonals of the square AC and BD.
4
resultant force.
Solutions to exercises
If k is any positive scalar and a is a vector then ka, is a vector in the same direction as
a but k times as long. If k is negative, ka, is a vector in the opposite direction to a and
k times as long. The vector ka, is said to be a scalar multiple of a. Consider the
vectors shown in Figure 1.24.
Figure 1.24
Multiplying a
vector by a scalar.
The vector 3a is three times as long as a and has the same direction. The vector ~ r
is in the same direction as r but is half as long. The vector -4b is in the opposite
direction to b and four times as long.
For any scalars k and l, and any vectors a and b, the following rules hold:
Unit vectors
A vector that has a modulus of 1 is called a unit vector. Unit vectors will play an
important role when we come to study cartesian components in Block 2.
If a has modulus 3, say, then a unit vector in the direction of a is ~ a, as shown in
Figure 1.25.
1.4 Multiplying a vector by a scalar 683
Figure 1.25 a
More generally, to obtain a unit vector in the direction of any vector a we divide
by its modulus. A unit vector in the direction of a is given the 'hat' symbol a.
a
Key point
A
a=-
lal
Exercises
-
draw 2r, 41', -r, -3r and 2 r. ratio m:n. If OA = a and OB = b depict this
on a diagram and then find an expression for
2 In triangle OAB the point P is the midpoint O P in terms of a and b.
of AB._ -+
(a) HOA = a and OB = b depict this on a 4 Explain what is meant by a unit vector. Given
diagram. -+ an arbitrary vector n, how is a unit vector
(b) Write down an expression for AB in terms
-
having the same direction as n found?
of a andb.
-
(c) Write down an expression for AP in terms 5 He is a unit vector, how would you write a
of a andb.
(d) Find an expression for OP in terms of
e
vector in the same direction as but having
modulus 8?
a andb.
Solutions to exercises
1 Draw three arbitrary vectors a, band c. By 2 Draw two arbitrary vectors a and b. By using
using the triangle law verify that vector the triangle law verify that vector addition is
addition is associative, that is commutative, that is
(a + b) + c = a + (b + c) a+b=b+a
684 Block 1 Basic concepts of vectors
4 In the triangle ABC, M is the midpoint of BC 6 Draw two arbitrary vectors a and b. Verify that
and N is the midpoint of AC. Show that 2(a + b) = 2a + 2b
--+ 1 --+
NM= 2AB.
(This is the first of the rules concerning scalar
multiplication given at the start of Section 1.4.)
5 A particle is positioned at the origin. 1\vo
forces act on the particle. The first has
Solutions to exercises
3 6.10 N along the x axis, 11.48 N along the 5 13.9 Nat 59.7° to the negative x axis
yaxis
Cartesian components of vectors
BLOCK 2
2.1 Introduction
Figure 2.1 Y.
A two-dimensional
coordinate frame.
• P(x,y)
A unit vector pointing in the positive direction of the x axis is denoted by i. (Note
that it is common practice to write this particular unit vector without the 'hat' /\ .) It
follows that any vector in the direction of the x axis will be a multiple of i. Figure 2.2
shows vectors i, 2i, 5i and -3i. In general a vector of length a in the direction of the
x axis will be ai.
686 Block 2 Cartesian components of vectors
Figure2.2 Y.
All these vectors
are multiples of i. -3i
i
.......
2i
Si
Similarly, a unit vector pointing in the positive direction of the y axis is denoted
by j. Any vector in the direction of they axis will be a multiple ofj. Figure 2.3
showsj, 4j and -2j. In general a vector of length bin the direction of they axis
will be bj.
Figura2.3 Y.
All these vectors
are multiples ofj.
t-2)
4j
Key paint i represents a unit vector in the direction of the positive x axis.
j represents a unit vector in the direction of the positive y axis.
Example2.1
Draw the vectors 5i and 4j. Use your diagram and the triangle law of addition to add
these two vectors together to obtain the sum 5i + 4j.
Solution
First draw the vectors 5i and 4j.
Y.
By translating the vectors so that they lie head to tail, find the vector sum Si + 4j.
2.2 Two-dimensional coordinate frames and the vectors i and j 681
Y.
/
Si+ 4~/ 4j
/
/ Si
We now generalise the situation in the previous example. Consider Figure 2.4, which
--+
shows a vector r = AB.
Figure 2.4 Y.
---+ ---+ ---+
AB= AC+ CB B
by the triangle law. /
/
/
/
/
/
~~/ bj
/
/
/
/
/
/
A ai c
x
--+ --+
We can regard r as being the resultant of the two vectors AC = ai and CB = bj.
From the triangle law of vector addition
--+ --+ --+
r = AB = AC + CB = ai + bj
We conclude that any vector in the x-y plane can be expressed in the form
r = ai + bj. An alternative way of writing this vector is to use column vector
notation. We write
r = (:)
A row vector would be written as (a. b), but care must be taken not to confuse this
form with cartesian coordinates.
r = (:)
y
4
3 2i + 3'
'./
2
1
1234567x
(b) Translate one of the vectors so that they lie head to tail, completing the third
side of the triangle to give the resultant a + b.
(c) By studying your diagram note that the resultant consists of the two components
7i horizontally, and 4j vertically. Hence write down an expression for a + b.
y
4
3
2
1
4 5 6 7 x
a+b= 71 + 4J
Note that this result consists of the sum of the respective components of a and b.
That is,
(2i + 3f) + (Si + j) = 1i + 4j
It is important to note from the last example that vectors in cartesian form can be added
by simply adding their respective i andj components.
Example 2.3
If a = 9i + 7j and b = Si + 3j find
(a) a+ b
(b) a- b
Solution
(a) Simply add the respective components:
a+b= 171 + lOj
(b) Simply subtract the respective components:
a-b= I+ 4}
Example 2.4
If
find r + s.
Solution
The vectors are added by adding their respective components.
Position vectors
Now consider the special case when r represents the vector from the origin to the point
P(x, y) as shown in Figure 2.5. This vector is known as the position vector of P.
.
Key point The position vector of P(x, y) is r = OP = xi + yj.
690 Block 2 Cartesian components of vectors
Figure2.5 y
r =xi+ yjisthe
position vector of
the point P with
coordinates (x, y ). P(x,y)
y ----------
0 x x
Unlike most vectors, position vectors cannot be freely translated. Because they
indicate the position of a point they are fixed vectors in the sense that the tail of a
position vector is always located at the origin.
Example2.6
State the position vectors of the points with coordinates (a) P(2, 4), (b) Q(-1, 5),
(c) R(-1, -7), (d) S(8, -4).
Solution
(a) The position vector of P is 2i + 4j. This could be written
(!)
(b) The position vector of Q is - j + 5j.
(c) The position vector of R is -i - 7j.
(d) The position vector of Sis Si - 4j.
Example 2.7
Sketch the position vectors r 1 = 3i + 4j, r2 = -2i + 5j and r3 = -3i - 2j.
Solution
The vectors are shown in Figure 2.6. Note that all position vectors start at the origin.
Figure2.6 Y.
The position vectors
'1 = 31 + 4),
(3, 4)
r2 = -21 + 5} and
F3 = -31 - 2j.
(-3, -2)
2.2 Two-dimensional coordinate frames and the vectors i and j 691
Modulus
The modulus of any vector r is equal to its length. When r = xi + yj the modulus
can be obtained by Pythagoras's theorem. Referring to Figure 2.5, if r is the position
vector of point P then the modulus is clearly the distance of P from the origin.
Example 2.8
Find the modulus of each of the vectors (a) r 1 = 3i + 4j, (b) r 2 = -2i + 5j,
(c) r 3 = 9i - 2j and (d) r4 = -5i - 3j.
Solution
(a) The modulus of r 1 = l3i + 4jl = V 32 + 42 = v25 = 5.
(b) Themodulusofr2 = l-2i + 5jl = V(-2)2 + 52 = v'~4_+_2_5 = v'29.
(c) Similarly lr31 =V92 + (-2)2 = \185.
Cd) lr4I = vc-s>2 + <-3)2 = V25+9 = v34.
Example 2.9
Find the modulus of the vector
Solution
y
B
8
(7, 8)
6
0 2 4 6 8 x
--+
The position vector of A is then OA = a = 3i + Sj
692 Block 2 Cartesian components of vectors
so that
-- -- --
OA +AB= OB
-- -- --
AB= OB - OA
=b-a
--
Hence write down an expression for AB in terms of the unit vectors i andj.
v4 2
+ 32 = V2s = 5
Exercises
1 Explain the distinction between a position 5 Find the modulus of each of the following
vector and a more general or free vector. vectors:
(a) r = 1i + 3j (b) r = 17i (c) r = 2i - 3j
2 What is meant by the symbols i andj? (d) r = -3j (e) r = ai + bj (f) r = ai - bj
3 State the position vectors of the points with 6 Point P has coordinates (7, 8). Point Q has
coordinates (a) P(4, 7), (b) Q(-3, 5), coordinates ( -2, 4 ).
(c) R(O, 3), (d) S(-1, 0). (a) Draw a sketch showing P and Q.
(b) State the position vectors of P and Q.
--+
4 State the coordinates of the point P if its (c) Find an expression for PQ.
position vector is given as (a) 3i - 7j, --+
(d) Find IPQI.
(b) -4i, (c) -0.5i + 13j, (d) ai + bj.
Solutions to exercises
1 Free vectors can be translated keeping their 4 (a) (3, -7) (b) (-4, 0) (c) (-0.5, 13)
direction and length the same. Position vectors (d) (a, b)
must always start at the origin.
5 (a) v'58 (b) 17 (c) v'i3 (d) 3
2 i is a unit vector in the direction of the positive (e) Vcl + b2 (f) Va2 + b2
x axis.j is a unit vector in the direction of the
positive y axis. 6 (b)p = 7i + 8},q = -2i + 4}
3 (a) 4i + 1} (b) -31 + 5} (c) 3} (d) -i --
(c) PQ = -9i - 4j (d) IPQI = -- v97
97
2.3 The direction ratio and direction cosines 693
Consider the point P(4, 5) and its position vector 4i + 5j as shown in Figure 2.7.
-
Figure 2.7 Y.
The direction
cosines of OP
are cos a and 5 P(4, 5)
cos~.
0 x
.......
The direction ratio of the vector OP is defined to be 4:5. We can interpret this as
stating that to move in the direction of the line we must move 5 units in the y direc-
tion for every 4 units in the x direction. .......
The direction cosines of the vector OP are the cosines of the angles between the
vector and each of the positive axes. Specifically, referring to Figure 2. 7 these are
Key point For any vector r = ai + bj, its direction ratio is a:b. Its direction cosines are
a b
l = ----;===- m = -----;===-
Y a2 + b2' Y a2 + b2
Example 2.11
Refer back to Example 2.10, in which point A has coordinates (3, 5), and point B has
coordinates (7, 8).
694 Block 2 Cartesian components of vectors
--+
(a) Find the direction ratio of the vector AB.
(b) Find its direction cosines, I and m.
(c) Show that 12 + m 2 = 1.
Solution
--+
From Example 2.10 we know that AB = 4i + 3j.
--+
(a) The direction ratio of AB is therefore 4:3.
(b) The direction cosines are
4 4 3 3
1- - - m= =-
- v'42 + 32 - 5' v'42 + 32 5
(c)
=
25
= 1
Key point If l and m are the direction cosines of a line lying in the x-y plane, then
l2 +m2 = 1
Exercises
Solutions to exercises
9 4
1 (a) -9:-4 (b) - '\/97' - '\/97 than 90° and henc~each cosine is negative.
(Draw the vector PQ = -9i - 4j to see
(c) The angle between the vector and the this.)
positive direction of both axes is greater
2.4 Three-dimensional coordinate frames 695
The real world is three-dimensional, and in order to solve many engineering prob-
lems it is necessary to develop expertise in the mathematics of three-dimensional
space. An important application of vectors is their use to locate points in three
dimensions. When two distinct points are known we can draw a line between them.
Three distinct points that do not lie on the same line form a plane. Vectors can be
used to describe points, lines and planes in three dimensions. These mathematical
foundations underpin much of the technology associated with computer graphics
and the control of robots. In this section we shall introduce the vector methods that
underlie these applications.
Figure 2.8 shows a three-dimensional coordinate frame. Note that the third dimen-
sion requires the addition of a third axis, the z axis. Although these three axes are
drawn in the plane of the paper you should remember that we are now thinking of
three-dimensional situations. Just as in two dimensions the x and y axes are perpen-
dicular, in three dimensions the x, y and z axes are perpendicular to each other. We
say they are mutually perpendicular. There is no reason why we could not
have chosen the z axis in the opposite sense to that shown in Figure 2.8. However, it
is conventional to choose the directions shown in Figure 2.8. Any point in the three
dimensions can be defined in terms of its x, y and z coordinates. Consider the point P
with coordinates (x, y, z) as shown. The vector from the origin to the point P is
----..
known as the position vector of P, OP or r. To arrive at P from 0 we can think of mov-
ing x units in the x direction, y units in they direction and z units in the z direction.
Figure 2.8 z
The position vector
of the point with
P (x,y, z)
coordinates
(x, y, z) is
r = xi + yj + 'llc.
y
/ y
I
I
I
x ____________ yIt
Q
Extending the concept of unit vectors in the direction of each of the axes, a unit
vector
----.. pointing in the positive
----.. direction of the z axis is denoted by k. Noting that
OQ = xi + yj and that QP = zJc we can state
----..
r =OP
----.. ----..
= OQ + QP
=xi+ yj + zk
696 Block 2 Cartesian components of vectors
We conclude that the position vector of the point with coordinates (x, y, z) is
r = xi + 'Yi + zk.
In colwnn vector notation we would write
Key point -
The position vector of P(x, y, z) is r = OP = xi + yj + zk or, alternatively,
Example 2.12
State the position vector of the point with coordinates (9, -8, 6).
Solution
The position vector is 91 - SJ + 6k
find(a)r + s,(b)r - s.
Solution
(a)
(b)
2.4 Three-dimensional coordinate frames 697
Modulus
--+
The modulus of the vector OP is equal to the distance OP, which can be obtained by
Pythagoras's theorem.
Example 2.14
Find the modulus of the vector r = 4i + '}j + 3k.
Solution
lrl =
v4 2
+ 22 + 32 = v 16 + 4 + 9 = V29
Example 2.15
Points A, Band C have coordinates (-1, 1, 4), (8, 0, 2) and (5, -2, 11) respectively.
(a) Find the position vectors of A, B and C.
--+ --+
(b) FindAB and BC.
--+ --+
(c) Find IABI and IBCI.
Solution
(a) Denoting the position vectors of A, B and C by a, b and c respectively, we find
a= -i + j + 4k, b = Si+ 2k, c = 51 - 2) + Ilk
--+ --+
(b) AB = b - a = 9i - j - '2Jc, BC = c - b = -3i - '}j + 9k
(c) IABI = y92 + <-1)2 + c-2)2 = v86.
locl = V(-3)2 + c-2)2 + 92 = v'94
Exercises
1 State the position vector of the point with 3 Points P, Q and R have coordinates
coordinates (4, -4, 3). (9, 1, 0), (8, -3, 5) and (5, 5, 7) respectively.
Solutions to exercises
2
4i-4i+3k
The concepts of direction ratio and direction cosines extend naturally to three dimen-
sions. Consider Figure 2.9.
Consider point P with position vector
r = ai + bj + ck
-
Figure2.9 z
The direction
cosines of OP are
P (a, b, c)
cos a, cos fj and
cos 'Y·
c
n = cos 'Y = ~;:::=====
Va2 +b2 +<l-
In general we have the following result:
Key point For any vector r = ai + bj + ck, its direction ratio is a:b:c. Its direction cosines are
a b c
l = m = n = ----;=====
Va 2
+ b + c2'
2
Va2 + b2 + c'2
Va2 + b2 + c2
and
Example 2.16
(a) Calculate the direction ratio of r = 3i - 'lj + k.
(b) Calculate its direction cosines.
Solution
(a) The direction ratio is 3:-2:1.
(b) The direction cosines are
l = 3 3
y32 + (-2)2 + 12 = V'i4
-2 2
m= = ---
y32 + (-2)2 + 12 V'i4
1 1
n- ---
- y32 + (-2)2 + 12 - V'i4
Exercises
1 Points A and B have position vectors 2 Find the direction ratios, the <i!!;ction cosines
a = -3i + 'lj + ?k and b = 3i + 4j - 5k and the angles that the vector OP makes with
-
respectively. Find
(a)AB
each of the axes when P is the point with
coordinates (2, 4, 3).
Cb) IABI
--
(c) the direction ratios of AB
(d) the direction cosines of AB.
3 A line is inclined at 60° to the x axis and 45°
to the y axis. Find its inclination to the z axis.
Solutions to exercises
The vectors we have described so far have been either two- or three-dimensional.
However, there are some situations when it is desirable to generalise what we have
done to higher dimensions. No geometrical interpretation is then available. Never-
theless we can still refer to the components of a vector and the modulus of a vector.
1\vo examples of four-dimensional column vectors are
a=(~) md b = m
The modulus of a, which is generally referred to as its norm, is then defined as
lal = Y3 2 + 12 + 22 + 42
= V3o
An n-dimensional vector will have n components.
000000000000000000000
000000000010000000000
Figure 2.10
5 •
4
3 •
2
1
0 123456n
This sequence can also be represented by a vector: for example, we could write it
as the row vector
f = (o, o, 3, 5, o)
The norm of the signal is the modulus of the vector f, defined, by generalising the
two- and three-dimensional case, as
IJI = v'o2 + 02 + 32 + 52 + 02
= v'34
More generally a vector,/, with N components can represent a signal of length N, that is
Ill= ~%1;
A related quantity is the power in a signal, which is given by
4
Therefore the power in the signal (0, 0, 3, 5, 0) is 35 •
One of the main problems in signal processing is that of representing a large
amount of information by a smaller amount without significantly distorting the orig-
inal signal. Very often a signal,/, with a large information content is approximated by
f', which is a signal with a smaller information content. Then
IJ-/'I
is a measure of the 'distance' or difference between the two signals and is therefore
a measure of the quality of the approximation.
Solutions to exercises
5 7
1
v2 (i - J)
--+
3 AB = -2i + ')j + ?k,
--+
BC = 3i + ')j - 8k,
--+
AC= i + 4j - k
The scalar product, or dot product
BLOCK 3
3.1 Introduction
Multiplication of two vectors is defined in two different ways. The first way is known
as the scalar product. When the scalar product of two vectors is calculated the result
is a scalar and not a vector. The second way is known as the vector product. When
this is calculated the result is a vector. These products are summarised in Table 3.1.
The ways in which these products are defined seem rather strange when first met, but
the reason for this lies in their applications. In this block we consider only the scalar
product.
Table3.1
The two types Name Written as Result
of vector
multiplication.
Scalar product a•b Scalar
Vector product aXb Vector
Figure 3.1
Two vectors
separated by an
angle 6.
Note that the tails of the two vectors coincide and that the angle between the vectors
has been labelled (). Their scalar product, denoted a · b, is defined as
You should never use a X sign in this context because the X sign is reserved for the
vector product, which is quite different.
We can remember this formula as: the length of the first vector times the length of
the second times the cosine of the angle in between them.
Example3.1
Vectors a and b are shown in Figure 3.2. The vector a has modulus 6, the vector b has
modulus 7, and the angle between them is 60°. Calculate a · b.
Figure3.2
When the tails of a
and b coincide the
angle between
them is 60°.
Solution
Identify the angle between the two vectors, and also their moduli. Then apply the
formula for the dot product.
The scalar product of a and b is equal to 21. Note that when finding a scalar product
the result is always a scalar.
Example3.2
Find i • i, where i is a unit vector in the direction of the positive x axis.
Solution
Because i is a unit vector its modulus is 1. The angle between any two parallel vec-
tors is zero. So the angle between i and itself is zero. Therefore
i . i = (1)(1) cos 0°
= 1 since cos 0° = 1
So the scalar product of i with itself equals 1. It is easy to verify that j • j = 1 and
k·k=l.
3.2 Definition af the scalar product 705
Example3.3
Find i · j, where i andj are unit vectors in the directions of the x and y axes.
Solution
Because i and j are unit vectors they both have a modulus of 1. The angle between
the two vectors is 90° as shown in Figure 3.3.
Figure 3.3 y
The angle between
the unit vectors i
andjis 90°.
Therefore
i •j = (1)(1) cos 90°
= 0 since cos 90° = 0
That is, i · j = 0.
Exercises
1 Write down the definition of the scalar product 4 Two unit vectors are parallel. What can you
of two vectors and illustrate your definition deduce about their scalar product?
with a diagram.
5 Two vectors have modulus 10 and 12. The
2 Use the definition of the scalar product to angle between them is ~. Find their scalar
show that, if two vectors are perpendicular, product.
their scalar product is zero.
Solutions to exercises
3 64.35 5 60
4 It equals 1.
The scalar product has a number of properties that are necessary for further
development.
Commutativity
If a· b = lal lbl
cos (J then it follows that b ·a = lbl lal
cos 0. Since lbl, lal and cos (J
are numbers, and multiplication of numbers is commutative,
Distributivity
For three vectors a, b and c
a • (b + c) = a • b +a •c
Example3.4
Simplify i · (i + J).
Solution
Using the distributivity property,
i • (i + j) = i •i + i •j
which simplifies to 1 +0 = 1.
Multiplication by a scalar
For two vectors a and b, and a scalar k,
kf..a • b) = (ka) • b
=a • (kb)
3.3 Some properties of the scalar product 707
Example3.5
Simplify i • 1i.
Solution
Using this rule, with k = 7. i • (7i) can be written 7(i • i). So
i . 1i = 1(i • i)
= 7(1) = 7
Example3.6
Simplify (3i + 'l/) · (7i + 4]").
Solution
Using the distributivity property we can write
3i • 1i + 'lj . 1i + 3i • 4j + 'lj . 4j
This simplifies to
Finally
Exercises
Solutions to exercises
1 3if - 10b2
708 Block 3 The scalar product. or dot product
We can use the previous results to obtain a formula for finding a scalar product when the
vectors are given in cartesian form. Suppose a = a 1i + a 2 j and b = b 1i + b2 j. Then
a • b = (a1i + azj) . (b1i + hzj)
= a 1i · (b 1i + b2J'J + a 2 j · (b 1i + bu)
= a 1b 1 i • i + a 1b 2 i • j + azbii • i + a 2b2 j · j
Thus to find the scalar product of two vectors their i components are multiplied
together, their j components are multiplied together and the results are added.
Example 3.7
If a = 1i + 8j and b = Si - 2j, find the scalar product a· b.
Solution
We use the previous Key point and multiply corresponding components together,
adding the results.
a •b = (1i + 8J) • (Si - 2J)
= (7)(S) + (8)(-2)
= 35 - 16
= 19
Note that the answer is a scalar.
Example3.8
Ifp = Si - 3j and q = 2i + j, find the scalar productp • q.
Solution
(S)(2) + (-3)(1) = 7
a • b = a 1b 1 + aib2 + a3b3
Example3.9
Ifa =Si+ 3j - 2kandb = 8i - 9j + llk,finda • b.
Solution
Corresponding components are multiplied together and the results are added.
3.5 Using the scalar product to find the angle between two vectors 709
a· b =
Example 3.10
Ifp = 4i - 3j + 1kandq = 6i - j + 2.k,findp • q.
Solution
Corresponding components are multiplied together and the results are added.
41
Example 3.11
If r = 3i + 'lj + 9k find r • r. Show that this is the same as lrl 2•
Solution
94
Exercises
Solutions to exercises
3.5 Using the scalar product to find the angle between two vectors
Using the scalar product we can find the angle between two vectors.
Example 3.12
Find the angle between the vectors a = Si + 3j - 2k and b = Si - 9j + 1 lk of
Example 3.9.
710 Block 3 The scalar product. or dot product
Solution
Their scalar product has already been found to be -9. The modulus of a is
-9
cos6 =----
v'38 v'266
= -0.0895
so that
6 = cos- 1(-0.0895)
= 95.14°
In general, the angle between two vectors can be found from the following formula:
Key point a· b
cos (J = !al lbl
Exercises
1 Find the angle between p = 3i - j and 2 Find the angle between the vectors i - j - k
q = -4i + 6j. and2i + j + 2.k.
Solutions to exercises
1 142.1° 2 101.1°
3.6 Using the scalar product to find the component of a vector in the direction of another vector 711
Consider Figure 3.4, which shows arbitrary vectors a and n. Let nbe a unit vector
in the direction of n.
Figure 3.4 p
OQ is the
component of a in
the direction of n.
Projection of a onto n
Study the figure carefully and note that a line has been drawn from P to meet n at
right angles. The distance OQ is called the projection of a onto n. or alternatively
'the component of a in the direction of n'. Simple trigonometry tells us that
length of projection OQ
cos (J = lal
II
so that the length of the projection is a cos 8.
Now by taking the scalar product of a with the unit vector nwe find
a ·;, = lal lnl cos o
= lal cos 0 since lnl = 1
We conclude that a · nis the length of the projection OQ.
Example 3.13
Find the component of the vector a = '2i + 3j in the direction of the vector
n = i + 5j.
Solution
First we need a unit vector in the direction of n.
n
r;;T
A
n =
= .. ~ (i + 5j)
v26
712 Block 3 The scalar product. or dot product
Length
t
= 3.334
j
0 x
Example 3.14
Figure 3.6 shows a plane containing the point A with position vector a. The vector n
is a perpendicular, or normal, to the plane. Find an expression for the perpendicular
distance of the plane from the origin.
Figure3.6
OB is the
perpendicular
distance of the
plane from the
origin.
Solution
From the figure note that the perpendicular distance of the plane from the origin,
which is OB, is the projection of a onto n. Thus the perpendicular distance of the
plane from the origin is a · fl.
If the unrecognised signal resembles one of the known ones sufficiently well it
may be possible to identify it. To quantify this resemblance we can make use of vec-
tor methods.
Suppose that the unrecognised digital signal is represented by the vector x as
shown in Figure 3.7 whereas the vectors ei. e2, ... , eN represent known signals.
Usually these vectors are normalised, that is they are unit vectors. We seek the
particular unit vector that most closely resembles x. The 'distance' between the
unrecognised vector and any one of the known vectors, e say, is defined as
Ix - el
Figure 3.7
We would like to choose the particular e for which this distance is minim.al. First
consider the square of this distance 2
Ix - el
• Recall that, for any vector a, then
2
I a 1 = a · a. So,
Ix - el2 = (x - e) • (x - e)
=x·x+e•e-e•x-x•e
= lxl2 + 1 - 2r • e
since e is a unit vector and the scalar product is commutative. We see that the square
distance, and hence the distance between x and e, is minimal when x · e is maximal.
So, the unit vector most closely resembling x is the one having the largest scalar
product with x.
For example, suppose an unrecognised signal is represented by
x = (4, 3, 6)
Exercises
1 (a) What is the component of the vector (b) What is the component of 2i + 7j in the
2i + 7j in the direction of the vector i? direction of the vectorj? Interpret your
results graphically.
714 Block 3 The scalar product. or dot product
Solutions to exercises
4
1 (a) 2 (b) 7. These are just the x and y 3
components. vTI
10
2
V'3
1 If a = 4i + 6j and b = 3i - 3j find a • b 7 If
and verify that a • b = b • a.
Solutions to exercises
1 -6 6 15°
2 39° 7 3x + 2y + 5z
-
3
3 5a2 + 14b2 8
V6
A
4 -50 9 a •b
The vector product, or cross product
BLOCK 4
4.1 Introduction
In this block we describe how to find the vector product of two vectors. Like the
scalar product its definition may seem strange when first met but it is defined in this
way because of its many applications. When multiplying vectors using the vector
product the result is always a vector. To understand how this vector is formed it is
helpful to consider first the right-handed screw rule.
Figure4.1
Two vectors
separated by an
angle 6.
The two vectors lie in a plane; this plane is shaded in Figure 4.1. Figure 4.2 shows
the same two vectors and the plane in which they lie together with a unit vector,
denoted e, which is perpendicular to this plane. Imagine turning a right-handed
screw in the sense from a towards b as shown. A right-handed screw is one that when
turned clockwise enters the material into which it is being screwed. You will see
from Figure 4.2 that the screw will advance in the direction of e.
Figure4.2
A right-handed
screw turned from
a towards b will e
advance in the
e.
direction of
716 Block 4 The vector product, or cross product
Example4.1
If a right-handed screw is turned from b towards a, in which direction will it
advance? Show this on a diagram similar to Figure 4.2.
Solution
The result of finding the vector product of two vectors a and b is a vector of modulus
lal lbl e. e
sin (Jin the direction of where is a unit vector perpendicular to the plane
containing a and bin a sense defined by the right-handed screw rule, as we imagine
turning the screwdriver from a towards b, as shown in Figure 4.3.
Figure4.3
The vector a X b
is perpendicular a Xb Length lal lbl sin ()
to the plane
containing a and b.
/
The symbol we shall use for the vector product is the times sign X, which is
why the vector product is also called the cross product. The quantity a X b is read as
a cross b.
Note that lal lblsin 6 is the modulus of the vector product whereas e gives the
direction.
Now study Figure 4.4, which is used to illustrate the calculation of b X a. In
particular note the direction of b X a arising through the application of the right-
handed screw rule.
Figure4.4
Calculation of
b X a.
bXa
Example4.2
If a and b are parallel, show that a X b = 0, the zero vector.
Solution
use the definition: a x b = laI lbI sin oe. What is the angle ogiven that a and b are
parallel?
8 = 0°
If a and b are parallel then the angle between them is zero. Consequently sin 8 = 0.
It follows that a X b = 0. Note that the result, 0, is the zero vector.
Key point i x i = 0, j x j = 0, k x k = 0
Example4.3
Show that i X j = k and find expressions forj X k and k X i.
Solution
Note that i and j are perpendicular so that the angle between them is 90°. So the
modulus of i X j is (1 )(1) sin 90° = 1. The unit vector perpendicular to i andj in the
sense defined by the right-handed screw rule is k as shown in Figure 4.5. Therefore
i X j = k as required.
718 Block 4 The vector product, or cross product
Figure4.5 z z z
The vector k is iXj=k jXk=i kXi=j
perpendicular to
bothi andj. k k k
j j j
y y y
x x x
Key point i xj = k, j x k = i, k x i =j
j x i = -k, k x j = -i, i x k = -j
Exercises
1 Write down the definition of the vector 3 Show that if a and b are parallel vectors then
product of two vectors p and q. Illustrate the their vector product is the zero vector.
definition with a diagram showing clearly the
direction of p X q.
The vector product has a number of properties that are necessary for further
development.
Non-commutativity
We have already seen that a X b = -b X a.
Distributivity
For three vectors a, b and c
a X (b + c) = a X b +a X c
Example4.4
Simplify i x (i + J).
Solution
Using the distributivity property,
i x (i + J) = i x i +i xj
which simplifies to k.
Multiplication by a scalar
For two vectors a and b, and a scalar k,
k (a X b) = (ka) X b
=a X (kb)
Example4.5
Simplify i x 5k.
Solution
Using this rule,
i x 5k = 5(i x k)
= 5(-J)
= -5j
We can use the properties of the vector product to develop a formula for finding the
vector product of two vectors given in cartesian form. Suppose a = a1i + a 2j + a3k
and b = b 1i + b2 j + b3 k; then
Key point If a = a1i + a,.j + a3k and b = b1i + b2i + b3k then
a Xb = (a2b3 - a3b2Ji - (a1b3 - a3b1)j + (a1b2 - a2b1')k
Example4.6
Evaluate the vector product a X b if a = 3i - 2j + 5k and b = 1i + 4j - 8k.
Solution
Identifying a 1 = 3, a 2 = -2, a 3 = 5, b 1 = 7, b2 = 4, b 3 = -8 we find
a Xb = [(-2)(-8) - (5)(4)]i - [(3)(-8) - (5)(7)]j
+ [(3)(4) - (-2)(7)]k
= -4i + 59j + 26k
Example 4.7
Evaluate the vector product b X a where a and b are the vectors in Example 4.6.
Solution
4i- 59j - 26k
Example4.8
Use the Key point to find the vector product of p = 3i + 5j and q = 2i - j.
Solution
Note that in this example there are no k components so a 3 and b3 are both zero.
Apply the formula:
pXq= -13k
Exercises
1 Find the vector product ofp = -2i - 3j and 3 Find lr1 X r2 1when r1 = 2i + 3j and
q = 4i + 7j. Tz = -1i + 2j.
Solutions to exercises
1 -'lk 3 25
2 (a) 91k
4.6 Using determinants to evaluate a vector product 721
To find the i component of the vector product, imagine crossing out the row and col-
umn containing i and finding the determinant of what is left, that is
The resulting number is the i component of the vector product. The j component is
found by crossing out the row and column containingj and evaluating
and then changing the sign of the result. Finally the k component is found by cross-
ing out the row and column containing k and evaluating
a1 llz
b1 b2 = a1b2 - a2b1
Example4.9
Find the vector product of a = 3i - 4j + 2k and b = 9i - 6j + 2k.
Solution
The two given vectors are represented in the determinant
i j k
3 -4 2
9 -6 2
Evaluating this determinant we obtain
a X b = [-8 - (-12)]i - (6 - 18)j + [-18 - (-36)]k
= 4i + 12j + 18k
722 Block 4 The vector product, or cross product
Example 4.10
Find the vector product of a = 1i + j + 2k and b = i + 3j - 2k.
Solution
i j k
-8i + 16j + 20k
Figure4.6
The moment of a
force is found by
evaluating a vector
product.
Solution
(a)
i j k
Mo = 0 3 0
2 3 1
= 3i - 6k
Figure4.7 B
The area of a
triangle can be
found by A
evaluating a vector
product.
c
Solution
From the definition of the vector product
as required.
Example 4.13
Find the area of the triangle that has vertices at the following points: A(O, 7, 1),
B(l, 3, 2) and C(-2, 0, 3).
Solution
--+ --+
To apply the result of Example 4.12 we need to find the vectors AB and AC.
We are given the coordinates of the vertices. Write down the position vectors of
these points.
--+ --+
AB = i - 4j + k and AC = -2i - 7j + 2k
---+ --+
Now find AB X AC and apply the formula of Example 4.12.
---+ ---+ -i - 4j - 15k
AB x AC=
area=
724 Block 4 The vector product, or cross product
Exercises
Deduce that, in general, the vector product is
1 Ifp = 3i + 2j - k and q = 5i - j - k find
not associative.
p x q.
8 A force of magnitude 3 units acts at the point
2 Ifa = 12i + 13jandb = 1i + 3jfinda X b.
with coordinates (1, 2, 3). The force is applied
in the direction of the vector 3i - j + 4k. Find
3 If a = i + 'lj + 3k and b = 4i + 3j + '2Jc
the moment of the force about 0. What is the
find a X b. Show that a X b #- b X a.
moment of the force about the point with
coordinates (1, 2, 3)?
4 Points A, Band C have coordinates (9, 1, -2),
(3, 1, 3) and (1, 0, -1) respectively. Find the
--+ --+ 9 Find the area of the triangle with vertices at the
vector product AB x AC. points with coordinates (1, 2, 3), (4, -3, 2)
and (8, 1, 1).
5 Find a vector that is perpendicular to both
of the vectors a = i + '2j + 1k and 10 For the vectors a = i + '2j + 3k,
b = i + j - 2k. Hence find a unit vector that b = 2i - '2j - 5k and c = i - 3j - k,
is perpendicular to both a and b. evaluate
(a) (a • c)b - (b • c)a
6 Find a vector that is perpendicular to the plane (b) (a X b) X c
containing 6i + k and 2i + j. Deducethat(a • c)b - (b • c)a =(a X b) X c.
7 For the vectors a = 4i + '2j + k,
b = i - '2j + k and c = 3i - 3j + 4k,
evaluate a X (b X c) and (a X b) X c.
Solutions to exercises
Scalar and vector products can be readily calculated define the vectors a =i - '1J + 3k and b =2i - j + k
using software. For example, the Matlab instructions and then calculate their scalar and vector products,
yielding 7 and i + 5j + 3k, respectively. The
a=[l -2 3]
following Maple commands achieve the same result:
b=[2 -1 1]
dot(a,b)
cross(a,b)
4.6 Using determinants to evaluate a vector product 725
> with{LinearAlgebra};
1 For the vectors a = i - 'lj + 3k, b = 2i - j +
a:"' Vector[row] {[l,-2,3]};
b:"' Vector[row] {[2,-1,1]};
k and c = 1i + 'lj - 5k, use the software to
which you have access to find:
DotProduct {a, b} ;
(a) the scalar triple product a · (b X c ).
CrossProduct{a,b};
(b) the vector triple product a x (b x c ).
You should consult the on-line help for more details Verify Lagrange's formula that states
about these and other vector commands.
a X (b X c) = b(a · c) - c(a · b)
Solutions to exercises
1 Find the vector product of a = 2i + 4k and 5 For the vectors a = i - 'lj + 3k,
b = i - 1k. b = -3i + k andc = 2i + j + 4k, evaluate
a X (b X c) and (a X b) X c.
2 If a = 3i + 'lj + k and b = -4i + 6j + 2k
find a X b. Show that a X b '::/' b X a. 6 A force of magnitude 4 units acts at the point
with coordinates (4, 3, 2). The force is applied
3 Points A, Band C have coordinates (1, 3, 2), in the direction of the vector i - j. Find the
(4, 1, 3) and (0,..4 -1) ~spectively. Find the moment of the force about 0 .
vector product AB X AC.
7 Find the area of the triangle with vertices at the
4 Find a unit vector that is perpendicular to the points with coordinates (4, -3, 2), (5, 0, 5)
plane containing i + 2k and 2i + j + 1k. and (1, 1, 1).
Solutions to exercises
3 8i + Sj - 8k 7 ~v458
1
4 - -(-2i - 3j + k)
v'i4
The vector equation of a line and a plane
BLOCK 5
5.1 Introduction
Vectors are very convenient tools for analysing lines and planes in three dimensions.
In this block you will learn how to formulate the vector equation of a line and the
vector equation of a plane. Finding the equation of a plane relies heavily on an
understanding of the scalar product, which should be revised if necessary.
You will recall that in two dimensions a straight line has an equation of the form
y = mx + c, such as y = 3x - 2. Values of x and y that satisfy this equation corre-
spond to points that lie on the line. Lines in three dimensions are conveniently
described using vectors. If we are given a point through which a line must pass, and
if we can find a vector in the direction of the line, then the line can be described
uniquely.
Consider the straight line APB shown in Figure 5.1.
Figure 5.1 B
A straight line
passing through
points A and B.
Points A and B are fixed and known points on the line, and have position vectors
a and b respectively. Point P is ~other Sbitrary and variable point on the line, and
has position vector r. Note that AB and AP are parallel. It is possible to express the
position vector of the arbitrary point in terms of the vectors a and b in what is called
the vector equation of the line. We shall develop this equation in stages.
ExampleS.1
Refer to Figure 5.1. Using the triangle law of vector addition it is possible to write an
-+
expression for AB in terms of a and b. Do this now.
5.2 The vector equation of a line 727
Solution
---+ ---+
a + AB = b so AB = b - a
is the vector equation of the line passing through the points with position vectors
aandb.
By varying the value of k we can move to any point on the line. For example, when
k = 0, r = a, point A
k = 1, r = b, point B
If k lies between 0 and 1, the point P lies on the line between A and B. If k is greater
than 1, the point P lies on the line beyond B. If k is less than 0, the point P lies on the
line beyond A on the opposite side.
Note that the vector b - a is a vector in the direction of the line.
Example 5.3
Write down the vector equation of the line that passes through the points A and B
with position vectors a = 3i + 2j and b = 1i + 5j respectively.
Solution
Note that
r =a+ k(b - a)
= (3i + 21) + k(4i + 31)
728 Block 5 The vector equation of a line and a plane
Alternatively, using column vector notation we could write the equation of the
line as
This gives the position vector of any point on the line. Note that if k = 0 then
T = (~)
that is point A. If k = 1 then
T = (~) + (:)
= (~)
which is point B. Any other value of k will give another point on the line. For
example, if k = 2 we find
ExampleS.4
Write down the vector equation of the line that passes through the points with pos-
ition vectors a = 5i - '2j + 3k and b = 2i + j - 4k.
Solution
Using column vector notation write down b - a.
r = a + k(b - a) =
ExampleS.5
On a diagram mark two points M and N. Sketch a straight line through the points M
and N, and show their respective position vectors m and n. On your sketch mark an
arbitrary point on the line, having position vector r. Write down the vector equation
of the line MN.
5.2 The vector equation of a line 729
Solution
r = m + k(n - m)
On occasions it is useful to convert the vector form of the equation of a straight line
into cartesian form. Suppose we write
Then
r =a+ k(b - a)
x - a1
x = a1 + k(b1 - a 1), or equivalently k = b
1 - ai
y - a1
y = ai + k(b2 - a 2), or equivalently k = b
2 - ai
. z - a3
z= a3 + k(b3 - a 3), or eqwvalently k = - - -
b3 - a3
x - ai y - ai z - a3
= =---
bi - ai h2 - a1 b3 - a3
This is the cartesian form of the equation of the straight line that passes through the
points with coordinates (ai. a 2, a 3) and (bi. b2, b3).
730 Block 5 The vector equation of a line and a plane
Key point x - a1
=
y - ~ z - a3
=---
h1 - a1 b2 - ~ b3 - a3
is the cartesian form of the equation of the straight line that passes through the
points with coordinates (ai. a 2, a 3) and (bi. b 2, b 3).
Examples.&
(a) Write down the cartesian form of the equation of the straight line that passes
through the two points (9, 3, -2) and (4, 5, -1).
(b) State the equivalent vector equation.
Solution
x- 9 y- 3 z - (-2)
(a) = =
4-9 5-3 -1-(-2)
that is
x-9 y-3 z+2
= =
-5 2 1
(b) The vector equation is
r = a + k(,b - a)
Exercises
~
1 (a) Write down the vector AB joining the 4 Line I has equation
points A and B with coordinates (3, 2, 7)
and (-1, 2, 3) respectively.
(b) Find the equation of the straight line
through A and B.
Line II has equation
2 Write down the vector equation of the line
passing through the points with position
vectors
p = 3i + 7j - 2k
Different values of k give different points on
q = -3i + '2j + 2k
line I. Similarly, different values of l give
different points on line II. If the two lines
Find also the cartesian equation of this line. intersect then r 1 = r 2 at the point of intersection.
If you can find values of k and l which satisfy
3 Find the vector equation of the line passing this condition then the two lines intersect. Show
through (9, 1, 2) and which is parallel to the the lines intersect by finding these values and
vector (1, l, 1). hence find the point of intersection.
5.3 The vector equation of a plane 731
Solutions to exercises
Figure 5.2
Tiris plane passes
through A and is
perpendicular to n.
Suppose that A is a known point in the plane and has position vector a. Suppose
that~is any other arbitrary point in the plane with position vector r. Clearly the vec-
tor AP must lie in the plane. Note that
---+
AP=r-a
Also shown in Fi~ 5.2 is a vector that is perpendicular to the plane and denoted by
---+
n. Now, because AP and n are perpendicular their scalar product must equal zero,
that is
---+
AP ·n = 0
(r - a) ·n = 0
This is the equation of the plane passing through the point with position vector a and
perpendicular ton.
Key point A plane passing through the point with position vector a and being perpendicular to the
vector n is given by
r·n=a·n
The previous result is valid whether or not n is a unit vector. However, if is a unitn
vector then a • nrepresents the perpendicular distance from the origin to the plane,
which we usually denote by d. This was shown in Block 3. Hence we can write
r. n= d
This is the vector equation of a plane with unit normal nand which is a perpendic-
ular distance d from 0.
Key point A plane with unit normal ii and which is a perpendicular distance d from 0 is given by
r·n=d
Given the equations of a line and a plane we can calculate their point of intersection.
Example 5.8 illustrates the method.
Example 5.8
A line, L, passes through A(3, 3, 1) and B(4, 7, -1). A plane, IT, passes through
Solution
Consider the line, L, first. We develop the equation of the line. The direction of the
line is
The line passes through A(3, 3, 1) and so the equation of the line, L, is
x=3+k (1)
y=3+4k (2)
z=l-2k (3)
We now develop the equation of the plane. Noting the normal to the plane and the
coordinates of the point C we may write the vector equation of the plane as
Two planes, which are not parallel, intersect in a line. The equations of the planes
(in cartesian form) are solved simultaneously to find the equation of the line of
intersection.
Example5.9
The equations of two planes are given by
x-2y-z=O (1)
x+3y+2z= 1 (2)
Find their line of intersection.
Solution
(~ 3 2 ~)
The row-echelon form of this augmented matrix is
(~
-2 -1
3
1 5
The second row states
3 1
y + -z = -
5 5
Let y = k, that is the free variable. Then
1 - 5k
z=---
3
Using the first row we find
k + 1
x=--
3
Writing the expressions for x, y and z in the form of a vector equation gives
This is the required vector equation of the line. By varying the value of k we can
move to any point on the line. It is worth noting that we can rewrite this in a slightly
simpler form. Note that when k = -1 then the equation of the line reduces to
,~ G) ~ (~,)
5.6 Angle between a line and a plane 735
Hence (0, -1, 2) is a point on the line. We also note that the direction, ( l~}
is the same clirecticm as ( i
5
} So the equation of the line may be written as
Figure 5.3 shows a plane with normal n. A line L intersects the plane at A. We
wish to calculate the acute angle between the line and the plane: this is denoted 8
in Figure 5.3.
Figure 5.3
Finding the angle
between a line, L,
and a plane.
Given the equation of the plane we can determine the normal n. Knowing the
direction of the line we can use the scalar product to determine the acute angle
between the line, L, and the normal, n. This is denoted a in Figure 5.3. Observe that
8 = 90° - a. Example 5.10 illustrates the method.
Example 5.10
A plane has cartesian equation
x + 2z = 17
A line has vector equation
736 Block 5 The vector equation of a line and a plane
Solution
(a) We write the equation of the plane in vector form as
G).G) = 17
From this vector form we see that the normal to the plane is G}
(b) We now find the scalar product of the normal to the plane and the direction of
the line.
\/5v'41 cos a = 8
Key point Let a be the angle between a line and the normal to a plane. Then the angle, (), between
the line and plane is given by
() = 90° - a
Exercises
--+ --+
1 Find the equation of a plane that is normal to (a) Write down AB and AC.
--+ --+
Si + 9j + k and which is a distance 1 from (b) Find the vector product AB X AC.
the origin. --+ --+
(c) Comment upon the direction of AB X AC
in relation to the plane through A, B and C.
2 Find the equation of a plane that passes (d) Find the vector and cartesian forms of the
through (8, 1, 0) and which is normal to the equation of the plane containing A, B and C.
vector i + 'lj - 3k.
Solutions to exercises
1 r • _l
v146
(!) 1
= 1, or
3 (a) -3i + 5j - k, 'li + j
(c) it is normal to the plane
(b) i - 'lj - 13k
m~s
through A and B.
3
Find the cartesian equation of this line.
Solutions to exercises
2
r=UJ+ke} 6 ,.UJ =o
x-5 y - 3 z+2 5
- - =--= - - 7 --
-2 4 1 v'i4
6 8 2
8 (a) - (b)- (c)-
v'6 v'6 v'6
3
r= (D +km
4 same as 3
9 r· (;~) = 14
1 Show on a diagram three arbitrary vectors p, q 7 If A has coordinates (-4, 2, 1) and B has
and r. Using the triangle law of addition verify coordinates (2, 0, 2) find the direction ratio of
the associativity rule --+
the vector AB. Find its direction cosines l, m
p + (q + r) = (p + q) + r and n and verify that P. + m2 + n 2 = 1.
2 A force of 23 newtons acts at an angle of 20° 8 Find the angle between the vectors 121 - j
below the horizontal. Resolve this force into and2i + j + k.
two components, one vertical and one
horizontal. 9 Find the projection of the vector 6i + j + 5k
onto the vector i - j + 2k.
3 On a diagram show the arbitrary vectors p and
q. Then show the following: 10 Points A, B and C have position vectors
(a) p + q (b)p - q (c) q - p (9, 1, 1), (8, 1, 1) and (9, 0, 2). Find
(d) 4q (e) -2q (a) the equation of the plane containing A, B
andC
4 State the position vectors of the points with (b) the area of the triangle ABC.
coordinates (9, 1, -1) and (-4, 0, 4).
11 Find the equation of the plane with normalj
If A has coordinates (4, 3, 0) and B has that is a distance 2 from the origin.
5
--+ --+
coordinates (-2, 1, 9) find AB and IAB I. 12 If a = 3i + j - 2k and b = 13i - j - k
find
6 Find the modulus of the vector
(a) a + b (b) b - 3a (c) lbl (d) a
p=2i-j+5k (e) lb - al
End of chapter exercises 739
Solutions to exercises
1.1 Introduction
Engineers are often interested in the rate at which some variable is changing. For
example, an engineer needs to know the rate at which the pressure in a vessel is
changing, the rate at which the voltage across a capacitor is changing, or the rate at
which the temperature is changing in a chemical reaction. Rapid rates of change of a
variable may indicate that a system is not operating normally and is approaching
critical values. Alarms may be triggered.
Rates of change may be positive, negative or zero. A positive rate of change means
that the variable is increasing; a negative rate of change means that the variable is
decreasing. A zero rate of change means that the variable is not changing.
Consider Figure 1.1, which illustrates a variable, y(x).
Figure 1.1
The function
y(x) changes at
different rates for
different values
ofx.
~-~5...,-----~4--~3~-~2--~1~0,,,+-~1~2~~3~4~~5----.x
Between x = -5 and x = -3, y is increasing slowly. Across this interval the rate
of change of y is small and positive. Between x = -3 and x = 1, y is increas-
ing more rapidly; the rate of change of y is positive and fairly large. Between
x = 1 and x = 2, y is increasing very rapidly and so the rate of change is positive
and large. From x = 2 to x = 3, y decreases rapidly; the rate of change is large
and negative. From x = 3 to x = 5, y is constant and so the rate of change on this
interval is zero.
The technique for calculating rate of change is called dill'erentiation. Often it is
not sufficient to describe a rate of change as, for example, 'positive and large' or
'negative and quite small'. A precise value is needed. Use of differentiation provides
a precise value or expression for the rate of change of a function.
1.2 Average rate af change across an interval 743
We see from Figure 1.1 that a function can have different rates of change at different
points on its graph. We begin by defining and then calculating the average rate of
change of a function across an interval. Figure 1.2 shows a function, y(x), and values
Xi. .xi. y(x1) and y(.xi).
Consider x increasing from x1 to x2 • The change in xis Xi - x 1• As x increases
from x1 to x2, then y increases from y(x1) to y(Xz). The change in y is y(x:z) - y(x1).
Then the average rate of change of y across the interval is
change in y y(x2) - y(x1)
change in x Xi - x1
BC
AC
From Figure 1.2 we see that !~ = tan 0, which is also the gradient of the straight
line or chord AB. Hence we see that the average rate of change across an interval is
identical to the gradient of the chord across that interval.
_ _.=,;~. . ; ;. i_
of change=
Y(Xi) - y(x1)
Example 1.1
Calculate the average rate of change of y = :x2 across the interval
(a) x = 1 to x = 4
(b) x = -2 to x = 0
Solution
(a) Change inx = 4 - 1 = 3.
Whenx = l,y = 12 = 1. Whenx = 4,y = 42 = 16. Hencethechangeiny
is 16 - 1 = 15. So
1
average rate of change across interval [ 1, 4] = ;
=5
744 Block 1 Interpretation of a derivative
This means that across the interval [ 1, 4], on average the y value increases by 5
for every 1 unit increase in x.
(b) Change inx = 0 - (-2) = 2. We have y(-2) = 4 andy(O) = 0 so the
change in y is 0 - 4 = -4. Hence
-4
average rate of change = T
= -2
Solution
(a) Change in t = 2 - 0 = 2.
When t = 0, v = 3 + 2e0 = 5.
Whent = 2, v = -------~
3 + 2e-2 = 3.2707
So
average rate of change of v(t) =
3 27
· ~ -
5
= -0.8647
(b) Change in t = 3 - 1= 2
v(l) = 3 + 2e-1
= 3.7358
So
Exercises
1 Calculate the average rate of change of 5 Calculate the average rate of change of
y = :x?- + 2xfromx = 1 tox = 4. z(t) = 4 + 2t2 across (a) t = 1 to t = 3,
(b) t = -1 tot= 0.
2 Calculate the average rate of change of
h(t) = 2t2 - 2t + 1 from t = 0 to t = 2. 6 The temperature, T, of a vessel varies with
time, t, according to
3 Calculate the average rate of change of
i(t) = 50 sin tfrom t = 0 tot = 1f'. 65
T(t) = 320 + p:
4 Calculate the average rate of change of
1 Calculate the average rate of change of T from
r(x) = --fromx = -3tox = -2. t = 2 tot= 4.
x+l
Solutions to exercises
1 7 4 -0.5
2 2 5 (a) 8 (b) -2
3 0 6 -6.094
Key point rate of change at a point = gradient of tangent to the curve at that point
Figure 1.3 y
The extended
chord ultimately
becomes the
tangent at A.
Tangent at A
Figure 1.4 y
As B approaches
A,Bx~ 0.
~-+-~~~~~~~x~+~~~x~~--x
+-dx----+
Let A be a point on the curve with coordinates (x, y(x)). Bis a point on the curve
near to A. The x coordinate of B is x + 8x. The tenn 8x is pronounced 'delta x'. It
represents a small change in the x direction. They coordinate of B is y(x + 8x). We
calculate the gradient of the chord AB:
changeiny
gradient of AB = han .
c ge mx
y(x+ 8x) - y(x)
=
x + 8x-x
y(x + 8x) - y(x)
=
8x
The change in y, that is y(x + 8x) - y(x), is also written as 8y. So
. y(x + 8x) - y(x)
gradient of AB = ax
= 8y
8x
The gradient of AB gives the average rate of change of y(x) across the small interval
from x to x + 8x. To calculate the rate of change of y(x) at A we require the gradient
of the tangent at A.
1.3 Rate of change at a point 747
Consider A as a fixed point and let B move along the curve towards A. At each
position of B we can calculate the gradient of the chord AB. As B gets closer to A,
the chord AB approximates more closely to the tangent at A. Also, as B approaches
A, the distance Bx decreases. To find the gradient of the tangent at A we calculate the
gradient of the chord AB and let Bx get smaller and smaller. We say Bx tends to zero
and write this as Bx ~ 0.
As B approaches A, the x difference between A and B gets smaller, that is Bx ~ 0,
and likewise they difference, By, also gets smaller, so By~ 0. However, the gradient
of AB, given by the ratio
B x
:y,
approaches a definite value, called a limit. So we seek
lim By
&:--+o Bx
= lim 8y
ax--.o 8x
Figure 1.5 y
The gradient of the y = x2
tangent at A is
approximated by
the gradient of the
chord AB. (x + ox)2 ------------------------
Change in x = Bx
Change in y = By
= (x + Bx)2 - :x2
748 Block 1 Interpretation of a derivative
= x2 + 2x8x + (8x)2 - x2
2
= 2x(8x) + (8x)
8y
gradient of chord AB = -
8x
2x(8x) + (8x) 2
=
8x
= 2x +Bx
This is the average rate of change of y(x) across the small interval from x to x + 8x.
To obtain the gradient of the tangent at A, we let 8x ---+ 0.
gradient of tangent at A= lim (2x
&~o
+ 8x)
= 2x
Exercises
1 Find the rate of change of y(x) = x2 + 1. 2 Find the rate of change of y(x) = x2 + 2x.
Calculate the rate of change of y when x is Calculate the rate of change of y when x is
(a) 6 (b) 3 (c) -2 (d) 0 (a) 6 (b) -5 (c) 0
Solutions to exercises
The process of finding the rate of change of a given function is called differentiation.
The function is said to be diflerentiated. If y is a function of the independent variable
x, we say that y is differentiated with respect to (w.r.t.) x. The rate of change of a func-
tion is also known as the derivative of the function.
There is a notation for writing down the derivative of a function. If the function is
y(x), we denote the derivative ofy by
dy
dx
pronounced 'dee y by dee x'. Hence
1.4 Terminology and notation 749
Key point . 6y dy
lim-=-
6x
.U-+O dx
Another notation for the derivative is simply y', pronounced y dash. Similarly if the
function is z(t) we write the derivative as : or z'. When the independent variable is t,
the derivative may also be denoted using the dot notation. Thus, for example, : may
be written as i:, pronounced 'z dot'. Sometimes, instead of writing y, a function is
written in full: for example, to show the derivative of sin 5x we write
d(sin 5x)
dx
Figure 1.6
An aircraft must be
banked to
fly in a circle.
Horizontal
The angle, a, is a measure of the extent of the banking. Why must the aircraft be
banked to bring about a circular motion'! To answer the question we firstly consider
a much simplified model - a body travelling on an anti-clockwise circular path,
radius r, with constant speed v.
Consider the body as it moves along the arc from P to Q. The angle, 9, is swept
out during this movement. Figure 1.7 illustrates this.
Then~~ is the rate of change of 0, measured in radians per second. It is usually
denoted by w and is termed the angular velocity,
w = d(J = angular velocity
dt
If the body has a constant speed then w likewise is constant. In 1 second the angle
swept out is w and the distance travelled by the body is v. From elementary mathe-
matics we know
arc length = radius X angle at centre (in radians)
giving
v = rw
750 Block 1 Interpretation of a derivative
Figure 1.7 y
Body moving on a
circular path with
constant speed.
p~
At P the instantaneous direction of travel of the body is that of the tangent. Simi-
larly at Q, the direction is that of the tangent at Q.
Figure 1.8 y
Instantaneous
direction of travel
is that of the
tangent.
Suppose P and Qare very close to each other. Figure 1.8 illustrates this. Then the
angle swept out is very small, labelled 50 in Figure 1.8. Let the small time, 5t, be the
time of travel from P to Q. The arc length, PQ, is then v5t where
vBt = r88
The component of the velocity at Q parallel to PO, that is directed towards the cen-
tre, is v sin 88. So in time 8t the velocity directed to the centre increased from 0 at P
to v sin 88 at Q. The (average) acceleration along the direction PO is then
v sin 88
8t
1.4 Terminology and notation 751
We now take the limit of this expression as 1>8---+ 0 and 8t---+ 0. Noting the small-
angle approximation for sin 88 (see page 969) then sin l>8 may be replaced by 88
and so in the limit we obtain
d8
v-
dt
. d8
acceleration towards centre = v - = vw
dt
Note that as the aircraft banks, the vertical component, L cos a, is the force that
'supports' the aircraft. So as a increases, the lift force, L, must be increased so that
L cos a is sufficient to support the aircraft, that is
Lcosa =mg
where m is the mass of the aircraft.
temperature at any point x within the wall. Then : is the rate of change of temper-
ature with position x, that is the temperature gradient.
Figure 1.10
The temperature
gradient across a T.
wall.
Interior T1 Exterior T2
T1
~
T2
h
0 •x 0 x
h
Figure 1.11
Several possible
T
temperature
profiles.
0 h x 0 h xo h x
Figure 1.12
Cross sectional area, A
Heat energy
flows from hot to
cold.
For heat to flow in the direction shown, T2 < T1, that is : < 0. The amount
of heat energy that will flow depends on several factors. If the temperature gradi-
ent is large, more energy will flow than if the gradient is small. A large cross-sec-
tional area, A, will enable more energy to flow than a small one. The rate of heat
flow also depends upon a property of the material itself, the thermal conductiv-
ity, K . Materials with large thermal conductivity (e.g. metals) will conduct heat
much more rapidly than, say, thermal insulators. Taken together, these factors
result in Fourier's law of heat conduction:
dT
rate of heat transfer, Q = -KA dx
Solution dT 2-19
(a) The uniform temperature gradient is - = - - = -3400.
(b) The rate of heat loss is dx 0.005
dT
Q = -KA dx = -0.3 x 2 x (-3400) = 2040
That is 2040 joules of energy are lost each second through the window.
Exercises
1 If x is a function of the independent variable t, 2 Iff is a function of x, write down two ways in
write down two ways in which the derivative which the derivative can be written.
can be written.
Solutions to exercises
dx .
1 - orx 2 4f orf'
dt dx
1 Calculate the average rate of change of Calculate the average rate of change of current
y = x3 - 1 from as t varies from 0 to 3.
(a) x = 1 to x = 3
(b)x = Otox = 2 4 Explain the meaning of the expression : .
(c) x = -2 to x = 2
5 (a) Calculate the rate of change of
2 The pressure, P atmospheres, in a vessel varies y(x) = 5 - i2.
with temperature, T (degrees Celsius), (b) Calculate the rate of change of y when
according to x = -4.
P(T) = 120 - 20e-T/20 dR
6 (a) Calculate dx when R(x) = 2i2.
Calculate the average rate of change of dR
pressure as T varies from 10 °C to 100 °c. (b) Calculate dx when x = 0.5.
Solutions to exercises
3 -0.63
Using a table of derivatives
BLOCK 2
2.1 Introduction
Figure 2.1 y
The gradient of a
tangent varies
along the curve.
Table 2.1 lists some of the common functions used in engineering and their
corresponding derivatives.
Example 2.1
Use Table 2.1 to find ~ when y is given by
(a) 3x (b) 3 (c) 3x2 (d) 4x1