Professional Documents
Culture Documents
7XA1
Course Notes
F17XA1
Maths for Engineers and Scientists 1
Contents
1 Formulae 1–1
1.1 Working with formulae . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1–1
1.2 Units - Beware! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1–2
1.3 Algebraic Fractions and Partial Fractions . . . . . . . . . . . . . . . . . . . . . . 1–3
0–1
F17XA1 : Maths for Engineers and Scientists 1 (i)
7 Vectors 7–1
7.1 Basic Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7–1
7.2 Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7–5
7.3 Scalar Product . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7–8
7.4 Vector Product . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7–10
7.5 The Scalar Triple Product . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7–13
7.6 Lines in 3D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7–14
7.7 The equation of a plane . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7–16
F17XA1
Maths for Engineers and Scientists 1
Chapter 1: Formulae
Contents
1.1 Working with formulae . . . . . . . . . . . . . . . . . . . . . . . . . . . 1–1
1.2 Units - Beware! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1–2
1.3 Algebraic Fractions and Partial Fractions . . . . . . . . . . . . . . . . 1–3
• One for physicists and engineers – the distance s travelled in a time t with a constant
acceleration a, starting with a velocity u0 :
1
s = u0 t + at2
2
• One to celebrate the lovely Scottish weather. The formula for converting Centigrade (C)
to Fahrenheit (F ) is given by
9C
F = 32 +
5
We take the formulae above as examples and attempt to change the subject of each formula.
q
L
Example 1.1.1. Given that T = 2⇡ g, express L in terms of T, g.
Solution. Get rid of the square root by squaring both sides of the equation.
s !2
L L
T2 = 2⇡ = 4⇡ 2
g g
1–1
F17XA1 : Maths for Engineers and Scientists 1 1–2
gT 2
L=
4⇡ 2
⇤
Example 1.1.2. A particle with initial velocity u0 and constant acceleration a travels a distance
1
s in time t where s = u0 t + at2 . Express u0 in terms of s, a and t.
2
1 2
Solution. Re-arrange to get u0 t = s at . Dividing both sides by t gives
2
1 2
s 2 at s at
u0 = =
t t t 2
⇤
9C
F = 32 +
5
Express C in terms of F .
9C 5 5(F 32)
Solution. F 32 = · Multiplying each side by gives C = · ⇤
5 9 9
The various manipulations in these examples can be summed up by stating that we must...
• In 2001, the Los Angeles Zoo lent a tortoise, to a Exotic Animal Training Centre. The L.A.
Zoo said that the tortoise was big with weight 250. The college thought the zoo meant
250 pounds and built an enclosure to match this. In fact the animal was a 75-year-old
Galapagos tortoise weighing 250 kilograms and it wrecked the enclosure on the first night
in its new home.
• An Air Canada flight was fuelled in Toronto using pounds instead of litres of fuel. The
pilot calculated how much he needed thinking he was getting his fuel in litres and ran
out of fuel about an hour into the flight. He successfully landed the plane safely at a
semi-abandoned airstrip.
• In 2003, the Space Mountain roller coaster at Tokyo Disneyland derailed when an axle
broke just before the end of the ride. The axle fractured because it was smaller than the
designs requirement; the gap between the bearing and the axle was over 1mm - when it
should have been a 0.2mm gap. The error was in converting measurements to the metric
system.
• Many medication errors are due to conversion and calculation errors In 1999, the Institute
for Safe Medication Practices reported an instance where a patient had received 0.5 grams
of Phenobarbital (a sedative) instead of 0.5 grains when the recommendation was misread.
A grain is a unit of measure equal to about 0.065 grams.
• In 1999 NASA lost a Mars orbiter because one team used metric units for a calculation
and the other team used imperial units. This loss cost over 125 million dollars.
x3 + 3x2 + 2x + 1
or
x2 + 2x + 3
x3 + 3x2 + 2x + 1
x2 + 2x + 3
If the numerator (top) has a higher power of x than the denominator (bottom) then the fraction
is improper, otherwise it is proper.
Often we are interested in either splitting up fractions or combining them. As we see later,
splitting up algebraic fractions is particularly useful for simplifying integrals and this method is
usually called the method of partial fractions.
2 5
The expression + can be combined into a single fraction by introducing the common
x 1 x+4
denominator (x 1)(x + 4) :
2 5 2(x + 4) + 5(x 1) 7x + 3
+ = = ·
x 1 x+4 (x 1)(x + 4) (x 1)(x + 4)
F17XA1 : Maths for Engineers and Scientists 1 1–4
The method of partial fractions provides a means of performing the reverse operation.
First we describe the simplest case when
(i) The denominator of the fraction can be expressed as a product of two linear factors; for
example (x 1)(x + 4) , as above.
7x + 3
Example 1.3.1. Express in terms of partial fractions.
(x 1)(x + 4)
Solution. We start with a guess for how to split up the fraction. Let
7x + 3 A B
= +
(x 1)(x + 4) x 1 x+4
We have to find the values of A and B so the above is true for all x.
Multiplying by (x 1)(x + 4) :
(7x + 3)(x 1)(x + 4) A(x 1)(x + 4) B(x 1)(x + 4)
= +
(x 1)(x + 4) x 1 x+4
Hence
7x + 3 = A(x + 4) + B(x 1) .
We choose values of x to make the term involving A or the term involving B disappear.
Put x = 1 then 7 ⇥ 1 + 3 = A(1 + 4) + 0 .
Thus 10 = 5A so A = 2 .
Put x = 4 then 7 ⇥ ( 4) + 3 = 0 + B( 4 1) .
Hence 25 = 5B so B = 5 .
7x + 3 2 5
= +
(x 1)(x + 4) x 1 x+4
⇤
2x 1
Example 1.3.2. Express in terms of partial fractions.
(2x + 1)(x 3)
Solution. Let
2x 1 A B
= +
(2x + 1)(x 3) 2x + 1 x 3
2x 1 = A(x 3) + B(2x + 1) .
F17XA1 : Maths for Engineers and Scientists 1 1–5
We can also handle the case where there is a repeated bracket such as
10x + 18
(2x + 3)2
10x + 18
Example 1.3.3. Express in terms of partial fractions.
(2x + 3)2
Solution. Let
10x + 18 A B
2
= +
(2x + 3) 2x + 3 (2x + 3)2
and multiply both sides by (2x + 3)2 . Comparing the top lines
10x + 18 = A(2x + 3) + B
so equating the coefficient of x on both sides gives 10 = 2A, i.e. A = 5 and equating the
constants gives 18 = 3A + B, so B = 3. ⇤
We have seen that the choices to make for partial fraction expansions in these cases are of one
of the following forms:
mx + n A B
= +
(px + q)(rx + s) (px + q) (rx + s)
mx + n A B
= +
(px + q)2 (px + q) (px + q)2
where m, n, p, q, r, s are all numbers we are given and we combine the fractions on the right hand
side to find the unknown constants A and B.
When we combine the fractions on the right hand side to find the constants A, B, we may either
choose particular x values and compare the numerators or compare coefficients, i.e. match up x
F17XA1 : Maths for Engineers and Scientists 1 1–6
and constant terms. The same methods work with even higher powers of x in more complicated
partial fractions, such as
mx + n A Bx + C
2
= +
(px + q)(rx + sx + t) (px + q) (rx2 + sx + t)
In this case m, n, p, q, r, s, t are given and we combine the fractions on the right hand side as
before to find A, B, C.
9x + 3
Example 1.3.4. Express in terms of partial fractions.
(x 1)(x2 + x + 10)
Solution. Let
9x + 3 A Bx + C
2
= + 2
(x 1)(x + x + 10) x 1 (x + x + 10)
and multiply both sides by (x 1)(x2 + x + 10). Comparing the top lines
Contents
2.1 A reminder about Indices and Exponents . . . . . . . . . . . . . . . . 2–1
2.2 Logarithms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–1
2.3 The Exponential Function . . . . . . . . . . . . . . . . . . . . . . . . . 2–4
2.4 Hyperbolic Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–8
a2 = a ⇥ a b3 = b ⇥ b ⇥ b c1 = c
2 1 1 1 1 4 1 1
3 = 2
= a = b = = 4
3 9 a b⇥b⇥b⇥b b
am ⇥ an = am+n
am
= am n
an
(am )n = amn
a0 = 1
2.2 Logarithms
Definition
If a and b are positive numbers we can always find x such that ax = b . For example, if a = 10
and b = 100 then x = 2 since 102 = 100 . The number x is called the logarithm of b to base
a , and we write x = loga (b) .
2–1
F17XA1 : Maths for Engineers and Scientists 1 2–2
Most calculators have two di↵erent logarithm functions: base 10 logarithms and logarithms to
base e The letter e stands for the number 2.718281 · · · . On a calculator , logarithms to base
e are usually denoted by ln .
The reader should use the ln button on a calculator to check that
ln(2) = 0.693 ln(10) = 2.303 ln(0.3) = 1.204
which in this case mean
e0.693 = 2 e2.303 = 10 e 1.204
= 0.3
Note that ln A (and log A ) only make sense if A > 0 . Hence, an expression such as ln(3x 15)
will only make sense if 3x 15 > 0 , that is if if x > 5 .
What does the graph of a logarithm look like? We can see that both ln(x) and log(x) look very
similar, going through x = 1 since 100 = e0 = 1.
1.5
Ln (x)
1.0
0.5
Log (x)
1 2 3 4 5
- 0.5
- 1.0
- 1.5
- 2.0
Laws of Logarithms
Below we give the various laws of logarithms and show how to apply them.
Let B and C be positive numbers. Then for any base a :
• loga (1) = 0
Solution.
(a) log(x) + log(x 3) = log(x (x 3)) = log(x2 3x) .
(b) 4 log(2) = log(24 ) = log(16) and 2 log(3) = log(9) . So
✓ ◆
16 ⇥ 9
4 log(2) + 2 log(3) log(12) = log(16) + log(9) log(12) = log = log(12) .
12
log((1.76)x ) = log(2002) .
log(2002) 3.301
x= = = 13.45
log(1.76) 0.2455
ln(2002) 7.602
x= = = 13.45
ln(1.76) 0.5653
⇤
F17XA1 : Maths for Engineers and Scientists 1 2–4
x -2 -1 0 1 2 3 4
ex 0.14 0.37 1 2.72 7.39 20.1 54.6
50
40
30
Exp (x)
20
10
-2 -1 1 2 3 4
Graph of ex or exp(x)
if y = ex then x = ln y
Now let us consider some examples of manipulating formulae that contain exponentials.
Example 2.3.1. Let f (t) = 3 exp( 5t2 ) . Find f (0) and f (0.4) .
F17XA1 : Maths for Engineers and Scientists 1 2–5
As we see in the figure exp(x) is rapidly increasing, similarly exp( x) is rapidly decreasing.
This remains true for expressions such as A exp(kx) (increasing for positive constants A and k)
and A exp( kx) (decreasing for positive constants A and k). It is useful to be able to sketch
the behaviour of various exponential curves since they occur in so many physical problems. Let
us consider a couple of examples.
Solution. The main points are (a) y = 6 when t = 0 , (b) y ⇡ 0 for large t , (c) y is rapidly
decreasing. The graph is shown below.
6 exp ( - 2 t)
3
y = 6e 2t
Solution. The main points are (a) y = 7 4 = 3 when t = 0 , (b) y ⇡ 7 for large t , (c) y is
increasing. The graph is shown below.
F17XA1 : Maths for Engineers and Scientists 1 2–6
y=7 4e 2t so 4e 2t =7 y . Hence
✓ ◆
2t 7 y 7 y
e = and 2t = ln
4 4
Hence ✓ ◆
1 7 y
t= ln
2 4
7 - 4 exp ( - 2 t)
6
y=7 4e 2t
In physical problems where some quantity is decreasing with time or distance exponential func-
tions often appear. An archetypal example of this is radioactive decay, where the exponential
decrease is with time.
Example 2.3.6. A very similar calculation can be used to calculate how air pressure falls o↵
with height. Atmospheric pressure, when measured in atmospheres, varies according to the
height above the earths surface. The formula is
Let us tackle some examples and determine the air pressure at:
Solution.
Example 2.3.7. As a final example of the use of exponential functions we set up an electrical
circuit with a resistor R and capacitor C in series with a direct current source V .
Electrical Circuit
Initially the capacitor is uncharged. When we fully connect the circuit, the charge on the
capacitor varies with time. For our circuit RC = 2, the final charge is 3, and the charge on the
capacitor is given by the formula:
2.5 3 [ 1 - exp( - t / 2) ]
2.0
1.5
1.0
0.5
2 4 6 8
sinh x = 12 (ex e x)
cosh x = 12 (ex + e x)
20
10
-4 -2 2 4
- 10
- 20
Graph of sinh x
25
20
15
10
-4 -2 2 4
Graph of cosh x
Just as for the trigonometric functions we can define tanh x = sinh x/ cosh x, which appears like
a smooth step:
F17XA1 : Maths for Engineers and Scientists 1 2–9
1.0
0.5
-4 -2 2 4
- 0.5
- 1.0
Graph of tanh x
How do these functions appear? They appear, like sin and cos, as the solutions to many physical
problems. For instance, although it was long thought that a hanging heavy chain or rope hung
in the form of a parabola, it was eventually shown that it is in fact a section of the cosh curve.
The Gateway Arch in St Louis, Missouri, is one of the largest and most elegant catenary arches
in the world. If you conduct an image web-search on the keywords Gateway Arch St Louis you’ll
see many images of this structure. It is 630 feet high and 630 feet wide at ground level. The
formula for its shape is displayed at the base of the arch and is
⇣ x ⌘
y = 757 127.7 cosh
127.7
with y and x both measured in feet.
600
y = 757-127.7 cosh (x/ 127.7)
500
400
300
200
100
As for the trigonometric functions the hyperbolic functions satisfy various identities, but these
are easy to derive if we consider the definition above in terms of exponentials.
5e4x 7e 4x
= 5(cosh 4x + sinh 4x) 7(cosh 4x sinh 4x) = 2 cosh 4x + 12 sinh 4x
Solution. Since
1 1
cosh x = (ex + e x
) sinh x = (ex e x
)
2 2
we can multiply these out, (remembering that (ex )2 = e2x ) :
1 1
cosh2 x = (ex + e x 2
) = (e2x + 2 + e 2x
)
4 4
1 1
sinh2 x = (ex e x 2
) = (e2x 2+e 2x
)
4 4
so subtracting the two just gives one, as required. ⇤
1
sinh2 x = (e2x 2+e 2x
)
4
so
1 1
1 + 2 sinh2 x = 1 + (e2x 2+e 2x
) = (e2x + e 2x
)
2 2
This is just the definition of cosh 2x, which is what we wanted to show. ⇤
Example 2.4.5. We finish this section with one final physical example. The formula for the
velocity of waves in shallow water channel is given by:
✓ ◆
2 6.3d
V = 1.8L tanh
L
where d is the depth of the water and L is the wavelength of the wave.
If d = 0.5m and L = 3.0m what is V ?
Solution. s ✓ ◆
6.3 ⇥ 0.5 p 1
V = 1.8 ⇥ 3 ⇥ tanh = 4.2 = 2.05ms
3.0
⇤
F17XA1
Maths for Engineers and Scientists 1
Chapter 3: Application of Linear and Log Functions
Contents
3.1 The Equation of a Straight Line . . . . . . . . . . . . . . . . . . . . . 3–1
3.2 Obtaining Formulae from Experimental Data . . . . . . . . . . . . . 3–2
3.3 Log-Log and Log-Linear Laws . . . . . . . . . . . . . . . . . . . . . . . 3–4
3.4 Interpolation and Extrapolation . . . . . . . . . . . . . . . . . . . . . 3–6
10
y = 2 x +1
4
1 2 3 4 5
A straight line
In the figure above we have plotted y = 2x + 1 and we can see that this straight line has slope
2 and hits the vertical axis at 1. In general y = mx + c has slope m and hits the vertical axis
at c.
How exactly did I see that the line had slope two? If I move along some distance in x, say x,
I can see that the line goes up a distance y in y. In this particular case if I move along 2 in x
the line goes up 4 in y. The slope or gradient is defined as
y
slope =
x
so here it is 4/2 = 2. If the line slopes downwards it has a negative slope.
I can get the equation of the line from scratch if I know two points on it. In the figure above the
two crosses are the points (1, 3) and (3, 7) on the line so I can work out the slope straight away
y 7 3
= =2
x 3 1
Now I know that y = 2x + c and to find c I can simply insert one of the sets of points to get c,
e.g. y = 3, x = 1. This gives c = 1 as it should.
3–1
F17XA1 : Maths for Engineers and Scientists 1 3–2
R = at + b (3.1)
we could test if (3.1) was true (allowing for experimental error). If (3.1) was true we could then
attempt to find a and b .
Example 3.2.1. Suppose that as a result of an experiment we collected the following data.
t C 10 30 50 70 90
R ⌦ 4.9 5.2 5.8 6.2 6.8
7.0
6.5
6.0
5.5 R=a t +b
5.0
4.5
4.0
3.5
0 20 40 60 80 100
R = at + b
Solution. We plotted this data in Figure 1. From this we see that the points lie approximately
on a straight line. Choosing the ‘best’ line to fit through will not be considered here. For the
rest of the calculation we use points taken from the line (i.e. not from the data). To find a and
b we first note that a is the gradient of the line. Taking for example, the points (30, 5.25) and
(70, 6.25) which lie on the graph, we get that
6.25 5.25 1
a= = = 0.025
70 30 40
To obtain b we choose any point on the line, say (10, 4.75) , and substitute it into (3.1) with
a = 0.025 to get 4.75 = 0.25 + b so that b = 4.5 . ⇤
We are not always fortunate enough to be presented directly with a straight line equation. In
other cases we may have to plot some other combination of the variables in order to see this.
Example 3.2.2. In some experiment suppose we want to test if t and y are related by
y = at2 + b (3.2)
t 0 1 2 3 4
y 3.1 4.9 11.2 20.8 34.9
Solution. It would be difficult to see from a plot of this data if (3.2) holds. Also it is not clear
how to find a and b . If we let x = t2 in (3.2) then
y = ax + b (3.3)
which is the equation of a straight line. To test (3.3) we need a new data table.
x = t2 0 1 4 9 16
y 3.1 4.9 11.2 20.8 34.9
From the data plot below we see that to experimental error, (3.3) holds. The number a is the
gradient of the line, so using two points on the line we get
23 3
a= =2
10 0
and since y = 3 when x = 0 we have that b = 3 . Thus y = 2t2 + 3.
40
30
20
10
5 10 15
y= 2t2 +3
Example 3.2.3. In each of the following cases explain how you would reduce each proposed
law connecting x and y to straight line form.
b
(i) y = ax4 + b (ii) y = ax2 + bx (iii) y = ax +
x2
b
(iii) From y = ax + x2
we get x2 y = ax3 + b .
Then if w = x2 y and t = x3 we get w = at + b .
If we plot w = x2 y against x3 we get a straight line. ⇤
Example 3.3.1. Explain how you would reduce the formula y = axb to straight line form.
Example 3.3.2. As shown in the figure below, a set of experimental results gives a straight line
graph when y is plotted against x3 . The straight line passes through (0, 3) and has a gradient
of 1/2 . Express y in terms of x .
y
6.0
5.5
5.0
4.5
4.0
3.5
3.0
2.5
3
2.0 x
1 2 3 4 5
y = (1/2) x3 + 3
Example 3.3.3. As shown below, a set of experimental results gives a straight line graph when
ln y is plotted against ln x. The straight line passes through (0, 2) and has a gradient of 1/3 .
Express y in terms of x .
lny
4.0
3.5
3.0
2.5
2.0
1.5
1.0 lnx
1 2 3 4 5
ln y = (1/3) ln x + 2
A final case we might run across is where x appears as a power, for instance y = ax . Here, if
we take logs we find ln(y) = x ln(a) so it would make sense to plot ln(y) against x, as in the
example below.
Example 3.3.4. A set of experimental results gives a straight line graph when ln y is plotted
against x. The straight line passes through (0, 0) and has a gradient of 1/3 . Express y in
terms of x .
F17XA1 : Maths for Engineers and Scientists 1 3–6
lny
2.0
1.5
1.0
0.5
0.0 x
1 2 3 4 5
ln y = (1/3)x
Example 3.4.1. The velocity of sound in air varies with temperature. The values at di↵erent
temperatures are measured to be:
Air Temp o C 0 10 20 30
Velocity ms 1 331.3 337.3 343.2 349.0
Velocity
345
340
335
Temp
5 10 15 20 25 30
Solution. Simply drawing a straight line on the graph will show that the velocity of sound at
this temperature is 341ms 1 . This process is called interpolation.
⇤
There is a related method called extrapolation in which a graph of a function is extended beyond
the domain of the data points. Let us take the same data as before but extend the axes and the
function beyond our data points:
Velocity
350
340
330
320
310
Temp
- 30 - 20 - 10 10 20 30
Solution.
If we draw a straight line from Temp = 30, we can use the graph to determine that the velocity
of sound in air at this temperature of is about 316ms 1
⇤
F17XA1 : Maths for Engineers and Scientists 1 3–8
Example 3.4.3. Let us finish this section with a example of using graphical methods against
a real set of measurements for the period of a simple pendulum similar to the one shown below.
Simple Pendulum
The length L of the pendulum is varied and the period T of the oscillation backward and forward
is measured. We list both T and T 2 below. As we shall see, it is the latter which is most useful.
L 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 1.2 1.3 1.4 1.5
T 0.63 0.89 1.10 1.27 1.42 1.55 1.68 1.79 1.90 2.01 2.10 2.20 2.37 2.46 2.54
T2 0.402 0.805 1.207 1.610 2.012 2.415 2.817 3.219 3.622 4.024 4.427 4.829 5.232 5.634 6.036
2.5
2.0
1.5
1.0
0.5
L
0.5 1.0 1.5
Simple Pendulum T vs L
Acting on a hunch, we search for a suitable mathematical function which might help us and
we start with the square function. We add another column to our data table and calculate the
squares of the periods. Then we plot a graph of T 2 against L. The graph looks like this:
F17XA1 : Maths for Engineers and Scientists 1 3–9
2
T
L
0.5 1.0 1.5
Simple Pendulum T 2 vs L
So, by plotting this graph, we have found evidence that, for a simple pendulum:
T 2 = kL
And if we go and look in a Mechanics textbook, we will see that the formula for a simple
pendulum is actually: ✓ 2◆
2 4⇡
T = L
g
where g is the acceleration due to gravity: 9.81ms 2
What we have done here is using a graphical method to determine a relation between variables.
Such methods are fundamental in the Physical Sciences Engineering and Social Sciences.
⇤
F17XA1
Maths for Engineers and Scientists 1
Chapter 4: Introduction to Di↵erentiation
Contents
4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–1
4.2 Derivatives of Common Functions . . . . . . . . . . . . . . . . . . . . 4–3
4.3 Higher Derivatives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–6
4.4 The Chain Rule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–7
4.5 Product and Quotient Rules . . . . . . . . . . . . . . . . . . . . . . . 4–8
4.6 Implicit Di↵erentiation . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–10
4.7 Parametric Di↵erentiation . . . . . . . . . . . . . . . . . . . . . . . . . 4–12
4.8 Curve sketching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–15
4.9 Stationary Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–17
4.10 Related Rates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–19
4.1 Introduction
Recall that the gradient of the straight line joining A(x1 , y1 ) to B(x2 , y2 ) is given by
y2 y1
gradient =
x2 x1
For instance, in the straight line graph below y = 3x+2 and we have shown the points A = (1, 5)
and B = (3, 11)
y
14
12 B
10
8
A
6
0 x
0.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0
y = 3x + 2
4–1
F17XA1 : Maths for Engineers and Scientists 1 4–2
The gradient of a curve at a point A is the gradient of the straight line AB which just touches
the curve at A. This is called the tangent to the curve at A . In the figure below we have plotted
the parabola y = x2 and its tangent at A = (1, 1). We have also shown a point C = (2, 4)
further up the curve.
4
C
B
3
x
0.5 1.0 1.5 2.0
-1
Gradient of y = x2 at x = 1
We can find approximations to the gradient of the curve by finding the gradient of the straight
line AC (see above). Although this is clearly too steep here, we’ll get a better approximation
if we take C to lie closer to A. In fact, the closer C gets to A the better the approximation
becomes.
For the parabola here we have y = x2 , so when x = 1 , y = 1 and when x = 2 , y = 4 . Thus
the points A(1, 1) and C(2, 4) are indeed on the curve. We can calculate the gradient of the
straight line AC :
f (2) f (1) 4 1
gradient of AC = = =3
2 1 2 1
1.52 12 2.25 1
gradient of AC1 = = = 2.5
1.5 1 0.5
1.22 12 1.44 1
gradient of AC2 = = = 2.2
1.2 1 0.2
1.12 12
gradient of AC3 = = 2.1
1.1 1
F17XA1 : Maths for Engineers and Scientists 1 4–3
1.012 12
gradient of AC4 = = 2.01
1.01 1
As the point C gets closer and closer to the point A the gradients of the straight lines get
nearer to 2. This is the gradient of the curve y = f (x) = x2 , at x = 1 .
More generally, for any function y = f (x) , the gradient at x is given by
f (x + h) f (x)
lim
h! 0 h
• The process of finding f 0 (x) from f (x) is called di↵erentiation or finding the derivative.
Using formula (4.1) to find the derivative is called di↵erentiating from first principles.
Example 4.1.1. Using the method above find f 0 (x) when f (x) = x2 .
Solution. We write
(x + h)2 x2 x2 + 2hx + h2 x2 2hx + h2
lim = lim = lim = lim (2x + h) = 2x
h! 0 h h! 0 h h! 0 h h! 0
In general we do not di↵erentiate from first principles every time, but rather make use of various
rules which cover many of the most commonly encountered cases. We will now develop these
rules to make the task of di↵erentiating easier.
The next rule tells us how to di↵erentiate constant multiples of a function such as 7x3 . If c is
a constant then
if g(x) = cf (x) then g 0 (x) = cf 0 (x)
F17XA1 : Maths for Engineers and Scientists 1 4–4
Example 4.2.2. Find g 0 (x) if : (a) g(x) = 2x5 , (b) g(x) = 4x(x 7) .
Example 4.2.3. Find the gradient of the tangent to f (x) = x3 7x2 + 4x 9 at the point
x = 2.
dy
An alternative notation for the derivative of y = f (x) is ·
dx
If y = f (x) , then the following are all equivalent notations for the derivative:
dy
f 0 (x) y 0 ( read as ‘ y prime ’ or as ‘ y dash ’ )
dx
We can di↵erentiate functions where di↵erent symbols are used, for example :
dy
if y = f (u) = 2u3 7u then = f 0 (u) = 6u2 7.
du
There are formulae for finding the derivatives of many functions such as sin x , cos x , ex and
ln x . Below we give a table with these formulae. Note that the rules for di↵erentiating hyperbolic
functions are in your formulae sheet.
The derivatives of sin x and cos x are simplest when x is measured in radians. For all subse-
quent work on di↵erentiation of sin x and cos x , x will be measured in radians.
In the table below both a and b are constants.
F17XA1 : Maths for Engineers and Scientists 1 4–5
f (x) f 0 (x)
sin(ax + b) a cos(ax + b)
cos(ax + b) a sin(ax + b)
eax aeax
a
ln(ax + b)
ax + b
Example 4.2.4. Find f 0 (x) if : (a) f (x) = 5 sin x (b) f (x) = 3 cos 2x .
Solution. (a) Using the first table with a = 1 , if f (x) = 5 sin x then f 0 (x) = 5 cos x .
(b) Using the first table with a = 2 , if f (x) = 3 cos 2x then f 0 (x) = ( 2)⇥3 sin 2x = 6 sin 2x .
⇤
⇡
Example 4.2.5. If f (x) = 5 sin 4x 8 cos 4x , find f 0 ( ) .
2
Example 4.2.6. An alternating voltage is given by v = v(t) = 80 sin 10t volts where t is the
time in seconds. Find the rate of change of voltage when t = 0.2 .
Solution. The rate of change of voltage at time t is v 0 (t) = 800 cos 10t .
When t = 0.2 , v 0 (t) = v 0 (0.2) = 800 cos 2 = 800( 0.4161) = 333 (Note: use radians).
⇤
2
Solution. f (x) = 2 ln x x2 so from the table f 0 (x) = 2x . ⇤
x
V 0
C
Electrical circuit
F17XA1 : Maths for Engineers and Scientists 1 4–6
Example 4.2.8. In the circuit shown above containing a resistor R, a capacitor C and a constant
voltage source V0 , the current I(t) which flows at time t is given by:
✓ ◆
V0 t
I(t) = exp
R RC
Show that
dI(t)
RC = I(t)
dt
Multiplying up by RC and using the definition of I(t) then gives the desired result
dI(t)
RC = I(t)
dt
⇤
dy d2 y
f 0 (x) = = y 0 = 4x3 5 and f 00 (x) = = y 00 = 12x2 .
dx dx2
6 6
Solution. y 0 = 4 and y 00 = . ⇤
t t2
Solution. (a) If f (x) = 9 sin 3x then f 0 (x) = 27 cos 3x and f 00 (x) = 81 sin 3x .
(b) If f (x) = 3e 5x then f 0 (x) = 15e 5x and f 00 (x) = 75e 5x . ⇤
d2 y
Example 4.3.3. If y = 5 cos 3x show that y satisfies an equation of the form + Ay = 0
dx2
where A is a constant and find A.
dy d2 y
Solution. = 15 sin 3x and = 45 cos 3x . Then
dx dx2
d2 y
+ Ay = 45 cos 3x + 5A cos 3x = (5A 45) cos 3x = 0
dx2
if A = 9 . ⇤
dy
In each case y = f (x) is a function of u , where u is a function of x . We can find from
dx
dy dy du
= ⇥
dx du dx
dy du
= 5u4 and = 2x 3
du dx
Thus
dy dy du
= ⇥ = 5u4 (2x 3) = 5(2x 3)(x2 3x + 8)4 .
dx du dx
⇤
With practice you will be able to use the chain rule without introducing much notation. For
example, in the above y = (x2 3x + 8)5 . We can use the substitution u = x2 3x + 8 , giving
dy
= 5u4 (2x 3) = 5(2x 3)(x2 3x + 8)4 .
dx
dy dy du 3x2
= ⇥ = 6xeu = 6xe .
dx du dx
⇤
dy du
= 2u and = sin x
du dx
dy dy du
Hence f 0 (x) = = ⇥ = 2 cos x sin x . ⇤
dx du dx
The function f (x) = x2 e 4x is the product of the functions g(x) = x2 and h(x) = e 4x , that
is f (x) = g(x) h(x) . The product rule is
if y = u v then y 0 = u0 v + u v 0 .
Solution. f (x) = g(x) h(x) where g(x) = x3 ; and h(x) = ln x . By the product rule
✓ ◆
1
f 0 (x) = g 0 (x) h(x) + g(x) h0 (x) = 3x2 ln x + x3 = 3x2 ln x + x2 ⇤
x
Quotient rule
u u0 v u v 0
if y= then y 0 = ·
v v2
F17XA1 : Maths for Engineers and Scientists 1 4–10
5x + 1
Example 4.5.5. Find the derivative of f (x) = ·
3x + 2
x
Example 4.5.6. Find the derivative of f (x) = ·
x2 +4
dy
Example 4.6.1. If y 3 + 2xy 5x2 = 0, find
dx
dy
Example 4.6.2. If x2 sin y + xy = 0 find .
dx
dy
Solution. Again we take the equation, di↵erentiate using the chain rule and solve for · We
dx
find
d d
x2 sin y + xy = (0)
dx dx
dy dy
2x cos y +x +y =0
dx dx
dy
which may be solved for
dx
dy 2x + y
=
dx cos y x
⇤
d 1 1
Example 4.6.3. Use implicit di↵erentiation to show that sin x= p
dx 1 x2
1
Solution. If y = sin x then x = sin y or x sin y = 0
d d
(x sin y) = (0)
dx dx
dy
1 cos y =0
dx
F17XA1 : Maths for Engineers and Scientists 1 4–12
so
dy 1
=
dx cos y
We can put this into a more familiar form by remembering that cos2 y + sin2 y = 1, so
q p
cos y = 1 sin2 y = 1 x2
and
dy 1
=p
dx 1 x2
⇤
Example 4.6.4. y(t) satisfies the equation y 00 + ky = 0 where k is a constant. Find g 0 (t)
where
2
g(t) = y 0 (t) + k (y(t))2
dw dw du
= = 2uy 00 = 2y 00 y 0
dt du dt
In the above example, g(t) is proportional to the energy of the system modelled by the di↵er-
ential equation y 00 + ky = 0 . Since g 0 (t) = 0 , g(t) is a constant which means that energy is
conserved.
x = r cos t y = r sin t
where t is the parameter. It can be thought of as a time co-ordinate for motion along the curve
in question.
F17XA1 : Maths for Engineers and Scientists 1 4–13
Suppose that a bicycle is moving in a straight line at constant speed. If we consider a particular
point on a wheel, then this point will trace out a path. After t seconds, the position of the
point is
x = t sin t y = 1 cos t
A picture of the path of the point is shown in Figure 1.
y
2 .0
1 .5
1 .0
0 .5
x
2 4 6 8 10 12
dy
In this section we will be finding for a curve given by parametric equations. You should
dx
dy
make sure you know what means in this case. For the above example shown in Figure 1, at
dx
dy
a time t we will be at a certain point on the graph. The gradient is the slope at this point.
dx
When a curve is given by parametric equations x = x(t) ; y = y(t) , we use the chain rule to get
dy dy dt dy 1
= ⇥ = ⇥
dx dt dx dt dx
dt
dy
Example 4.7.1. Let x = t2 + 3 , y = 4t3 . Find .
dx
dx dy
Solution. Since = 2t and = 12t2 ,
dt dt
dy dy 1 12t2
= ⇥ = = 6t
dx dt dx 2t
dt
⇤
dy
Example 4.7.2. Find if x = t sin t and y = 1 cos t .
dx
F17XA1 : Maths for Engineers and Scientists 1 4–14
dx dy
Solution. In this case =1 cos t, = sin t, so
dt dt
dy dy 1 sin t
= ⇥ =
dx dt dx 1 cos t
dt
⇤
Suppose we want to find the second derivative of a curve given by parametric equations x = x(t) ;
dy
y = y(t) . We first need to find dx and then we can use the chain rule again to get
✓ ◆ ✓ ◆ ✓ ◆
dy dy dy
2 d d d
d y dx dx dt dx 1
= = ⇥ = ⇥
dx2 dx dt dx dt dx
dt
d2 y
Example 4.7.3. Find if x = 2t2 and y = t4 8t3 .
dx2
dx dy
Solution. Since = 4t and = 4t3 24t2 ,
dt dt
dy dy 1 4t3 24t2
= ⇥ = = t2 6t
dx dt dx 4t
dt
✓ ◆
dy
d
d2 y dx 1 1 t 3
= ⇥ = (2t 6) ⇥ =
dx 2 dt dx 4t 2t
dt
⇤
F17XA1 : Maths for Engineers and Scientists 1 4–15
y y y
(i) 3.5
(ii)
7 1.4 (iii)
3.0
6 1.2
2.5
5 1.0
2.0
4 0.8
1.5
3 0.6
1.0
2 0.4
1 0.2 0.5
x 0.0 x 0.0 x
0.0 0.5 1.0 1.5 2.0 0.0 0.5 1.0 1.5 2.0 0.0 0.5 1.0 1.5 2.0
The derivative f 0 (x) measures the rate at which f (x) increases with respect to x .
Example 4.8.1. If f (x) = 5 x2 , find the intervals in which f (x) is increasing or decreasing.
Example 4.8.2. Find the intervals in which f (x) = 2x3 3x2 is increasing or decreasing.
Solution. f 0 (x) = 6x2 6x = 6x(x 1) . We have to find where f 0 (x) > 0 and f 0 (x) < 0 .
The product of two numbers is positive if both numbers are positive or both numbers are
negative.
Hence f 0 (x) > 0 if either x > 1 (both positive) or x < 0 (both negative).
Thus f (x) is increasing if x > 1 or if x < 0 .
If 0 < x < 1 then x > 0 and x 1 < 0 so f 0 (x) = 6x(x 1) < 0 . Hence f (x) is decreasing
for 0 < x < 1 . ⇤
F17XA1 : Maths for Engineers and Scientists 1 4–16
Solution. We have to show that R0 (x) > 0 (note that x > 0 ). Using the quotient rule
3(x + 3) 3x 9
R0 (x) = = >0
(x + 3)2 (x + 3)2
Hence R(x) is an increasing function of x as we can verify by plotting out R(x) as below:
R
1.4
1.2
1.0
0.8
0.6
0.4
0.2
0.0 x
0.5 1.0 1.5 2.0 2.5 3.0
R(x)
⇤
1
Example 4.8.4. If f (x) = x + , x > 0 , find the intervals in which f (x) is increasing or
x
decreasing.
1 x2 1
Solution. f 0 (x) = 1 = .
x2 x2
Thus f 0 (x) > 0 if x > 1 while f 0 (x) < 0 if x < 1 .
Hence f (x) is increasing for x > 1 and f (x) is decreasing for 0 < x < 1 as we can again verify
by plotting out f (x).
f
x
-2 -1 1 2
-5
f (x)
⇤
F17XA1 : Maths for Engineers and Scientists 1 4–17
100 a
50
x
2 4 6 8 10 12
- 50
b
Stationary Points
Example 4.9.1. Find the stationary point of f (x) = x2 6x + 3 and determine its nature.
4
Example 4.9.2. Find the stationary point of f (x) = x + , x > 0 and determine its nature.
x
4 x2 4
Solution. f 0 (x) = 1 2
= .
x x2
Thus f 0 (x) = 0 if x2 4 = 0 so that x = 2 is the stationary point.
If x > 2 then f 0 (x) > 0 , while if x < 2 we have f 0 (x) < 0 . Hence f (x) has a local minimum
at x = 2 . ⇤
F17XA1 : Maths for Engineers and Scientists 1 4–18
Example 4.9.3. For f (x) = 2x3 6 x , find the stationary points of f and the nature of each
stationary point. Find also the intervals on which f is increasing or decreasing.
• Write down the x values at and on either side of the stationary point.
An alternative method, often called the second derivative test, for determining the nature of
stationary points involves f 00 (x). Remember at the stationary point x = c you have f 0 (c) = 0.
The nature of a stationary point at x = c can usually be determined from the sign of f 00 (c).
• If f 00 (c) = 0 then you need to use the first derivative test to determine the nature of x = c.
f 00 (0) = 9 3=6>0
Solution. It is useful to see what happens when x ! ±1. We can see that for x ! +1,
f (x) ! +1 too, since the x3 term is largest. Similarly as x ! 1, f (x) ! 1. In the middle
we can look at f 0 (x) to find maxima and minima. f 0 (x) = 3x2 2x 1 = (3x + 1)(x 1), so
there are extrema at x = 1/3 and x = 1. Since f 00 (x) = 6x 2, f 00 ( 1/3) = 4 and this is a
maximum, f 00 (1) = 4 and this is a minimum. If we were feeling clever we could also note that
f ( 1) = 0 and f (1) = 0. All of this information is enough to construct the graph of f (x).
F17XA1 : Maths for Engineers and Scientists 1 4–19
x
-2 -1 1 2 3
-5
dx dy
Example 4.10.1. Let y = x2 . If = 5 , find when x = 3 .
dt dt
Example 4.10.2. The length of the sides of a square are changing. The area of the square is
increasing at a rate 16 cm2 per hour. At what rate is the length of each side increasing, when
the length is 4 .
Solution. Let x be the length of a side of the square and let y be the area.
Both x and y depend on the time t and y = x2 .
dy dx
We are given that = 16 . We have to find when x = 4 .
dt dt
dy dy dy dx
Using = 2x and the chain rule = ⇥ we have that
dx dt dx dt
dx dx
16 = 2x =8 when x = 4 .
dt dt
dx
Hence = 2 , that is, the length is increasing at 2 cm per hour when x = 4 . ⇤
dt
F17XA1 : Maths for Engineers and Scientists 1 4–20
Example 4.10.3. Water is dropping into a circular puddle at a uniform rate of 1 cm3 per
second . The depth of the puddle remains constant at 0.1 cm . When the radius of the puddle
is 5 cm, find (a) the rate of increase of the radius, (b) the rate of increase of the area, (c) the
rate of increase of the circumference, of the puddle.
Solution. Let r be the radius of the puddle, V the volume, A the area, and C the circum-
ference. We have that
⇡r2
V = A = ⇡r2 C = 2⇡r
10
dV dr
We are given that = 1 . We first have to find when r = 5 .
dt dt
dV 2⇡r
Using the chain rule and = we have that
dr 10
dV 2⇡r dr
= .
dt 10 dt
dV dr 5 dr 1
Since = 1 , we obtain = . Putting r = 5 gives = .
dt dt ⇡r dt ⇡
dA
To find we use A = ⇡r2 and the chain rule to obtain
dt
dA dr 1
= 2⇡r = 10⇡ = 10 when r = 5.
dt dt ⇡
dC
Finally to find we use C = 2⇡r and the chain rule to obtain
dt
dC dr 1
= 2⇡ = 2⇡ = 2 when r = 5.
dt dt ⇡
⇤
F17XA1
Maths for Engineers and Scientists 1
Chapter 5: Introduction to Integration
Contents
5.1 Basic Ideas and Definitions . . . . . . . . . . . . . . . . . . . . . . . . 5–1
5.2 Indefinite integrals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–2
5.3 Definite Integrals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–4
5.4 Infinite Limits: “Improper” Integrals . . . . . . . . . . . . . . . . . . 5–6
dF (x)
= f (x)
dx
thus Z
3x2 dx = x3 + C
since di↵erentiating x3 + C gives 3x2 . Note that C can be any number in these examples since
di↵erentiating a constant gives zero. In general if
dF (x)
= f (x)
dx
then Z
f (x) dx = F (x) + C
5–1
F17XA1 : Maths for Engineers and Scientists 1 5–2
Standard Derivatives
f (x) f 0 (x)
xn nxn 1
sin(ax + b) a cos(ax + b)
cos(ax + b) a sin(ax + b)
eax aeax
a
ln(ax + b)
ax + b
so, “reading the table backwards” gives
Standard Integrals
Z
f (x) f (x) dx
xn+1
xn +C n 6= 1
(n + 1)
1
sin(ax + b) a cos(ax + b) + C
1
cos(ax + b) a sin(ax + b) + C
1 x
eax ae +C
1 1
ln(ax + b) + C
ax + b a
It is easy to string indefinite integrals together, given their reciprocal relation with di↵erentiation.
Firstly, numbers may be taken outside the integral sign. In other words:
Z Z
Ef (x)dx = E f (x)dx (5.1)
We can also divide integrals when what we are integrating, called the integrand, is a sum
Z Z Z
f (x) + g(x) dx = f (x)dx + g(x)dx (5.2)
F17XA1 : Maths for Engineers and Scientists 1 5–3
✓Z ◆
d
f (x)dx = f (x)
dx
⇤
Some further examples of indefinite integrals along these lines are:
Z
8x2
(3 + 8x) dx = 3x + + C = 3x + 4x2 + C
2
Z ✓ ◆ Z
18 x3 18x 3 x3
5 x2 + dx = 5 x2 + 18x 4
dx = 5x + C = 5x 6x 3
+C
x4 3 3 3
Z 5x
5x sin 7x 2e
cos 7x + 2e dx = +C
7 5
Z ✓ ◆
6
4 sin 2t dt = 2 ln(3t 5) + 2 cos 2t + C
3t 5
Integration is used in physical problems to calculate the amount of work done by a variable
force. For a constant force W ork = F orce ⇥ Distance, but we need to carry out an integration
for a variable force, such as that in the next example.
F17XA1 : Maths for Engineers and Scientists 1 5–4
Example 5.2.2. Two electric charges with charge q1 and q2 respectively are separated by a
distance r in a vacuum and f (r) is the force exerted. Coulomb’s inverse square law states
q1 q2
f (r) =
4⇡✏0 r2
where ✏0 is a constant. Integrate f (r) with respect to r.
Solution.
Z Z
q1 q2
f (r)dr = dr
4⇡✏0 r2
Z
q1 q2 1
= dr
4⇡✏0 r2
q1 q2 1
= +C
4⇡✏0 r
⇤
The right hand side of this equation is read as “The integral between a and b of f (x) dx”.
Calculating areas such areas is easy if f (x) is made up of horizontal lines and we have only
rectangles.
20
15
10
0 x
2 4 6 8 10
what is Z 10
f (x)dx ?
0
Solution. We can simply calculate the area of the rectangles in the figure to get the area under
the curve Z 10
f (x)dx = 19 ⇥ 2 + 10 ⇥ 6 + 19 ⇥ 2 = 136
0
⇤
How does the area under a curve way of thinking of integration work if f (x) isn’t a collection of
straight lines? We simply pretend that a curve f (x) is a collection of (very short) straight lines.
The area under the curve is then approximated by the area of the rectangles as shown below.
The thinner the rectangles, the better the approximation.
6
graph
of f (x)
A
AU
-x
a b
We treat limits by using the Fundamental theorem of calculus. This states that the definite
integral is given by
Z b
f (x) dx = F (b) F (a)
a
where F (x) is a function such that
d
F (x) = f (x)
dx
We can still use the table of integrals but now we have to slot in the limits a and b to get the
final answer, which will be a number now instead of a function. Note too that the unknown
constant C disappears in such definite integrals.
R6
Example 5.3.2. Evaluate the definite integral 4 3x2 dx.
dF (x)
where, as above, = f (x). We can use the table of standard indefinite integrals to see
dx
d 3
that x = 3x2 so
dx Z 6
3x2 dx = [x3 ]64 = 63 43 = 216 64 = 152
4
The notation [F (x)]ba is shorthand for F (b) F (a). ⇤
F17XA1 : Maths for Engineers and Scientists 1 5–6
3x2 .
R1 3x2
Example 5.3.4. Let F (x) = e Find F 0 (x) and use this result to find 0 xe dx.
Solution. By the Chain Rule (see the example in Section 3.4) we have F 0 (x) = 6xe 3x2 .
Z 1
In other words, an integral of the form f (x) dx can be calculated by applying the following
a
steps:
Z b
• Calculate f (x)dx (which will depend on b).
a
F17XA1 : Maths for Engineers and Scientists 1 5–7
As b gets larger and larger, 1/b gets smaller and smaller, so we say that 1/b tends to zero as b
tends to infinity and write 1/b ! 0 as b ! 1. Thus as b tends to infinity 1 1b tends to 1. Thus
Z 1 Z b
1 1 1
dx = lim dx = lim 1 = 1.
1 x2 b!1 1 x2 b!1 b
⇤
R1
Example 5.4.2. Explain why the integral 0 2xdx does not make sense.
So as b tends to infinity so does b2 , which means the integral is not a finite number. ⇤
F17XA1
Maths for Engineers and Scientists 1
Chapter 6: Statistics and Probability
Contents
6.1 Statistics: mean, median, variance . . . . . . . . . . . . . . . . . . . . 6–1
6.2 Probability Theory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6–4
6.3 Probability distributions . . . . . . . . . . . . . . . . . . . . . . . . . . 6–7
Measures of location measure the average value (in some sense) of the observations of our
variable. We describe the two most useful measures—the mean and the median.
Throughout this section, let n be the number of observations and let x1 , x2 , . . . , xn be their
individual values.
The mean, denoted by x, is defined as
n
1X 1
x= xi = (sum of observations)
n n
i=1
5 7 8 1 9 12
The median, of a set of numbers is found by listing all of the numbers in ascending order and
selecting the number that is half way along the list. When there is an even number of values in
the list, the median is the mean of the two middle values. Thus, we rank the observations in
ascending order and the median is the observation of rank (n + 1)/2. In our simple example we
rank the observations in order of size
1, 5, 7, 8, 9, 12
and take the “3.5th” observation, i.e. between 7 and 8, so the median is (7 + 8)/2 = 7.5
6–1
F17XA1 : Maths for Engineers and Scientists 1 6–2
The mean is typically a more efficient measure of location for symmetrically distributed data.
The median is more resistant, i.e. una↵ected by unusual observations.
• If a constant a is added to all data, then both the mean and the median increase by a.
• If all data are multiplied by b, then both the mean and the median are multiplied by b.
The standard deviation is defined as the square root of the sample variance 2 where
n
X
2 1 ⇥ ⇤
= (xi x̄)2 .
n 1
i=1
2 1 ⇥ ⇤
= (5 7)2 + (7 7)2 + (8 7)2 + (1 7)2 + (9 7)2 + (12 7)2 = 14
6 1
p
Thus the standard deviation = 14 = 3.74.
It is often easier to use the equivalent formula
2 !2 3
n
X n
X
2 1 4 1 5
= x2i xi
n 1 n
i=1 i=1
Back to the simple example: Using the alternative formula for 2 we have
n
X n
X
(x2i ) 2 2 2
= 5 + 7 + 8 + 1 + 9 + 12 = 364 2 2 2
and xi = 42
i=1 i=1
Thus
2 1 422 70
= 364 = = 14
5 6 5
as before, so that we again obtain = 3.74.
F17XA1 : Maths for Engineers and Scientists 1 6–3
Frequency Tables
If we have a lot of data working out the mean and variance rapidly becomes prohibitive. A
useful trick is to group the data using a frequency table.
Tyre tread depth was measured during roadside checks by the transport police. The results are
tabulated below for 100 cars:
Tyre tread depth (in mm) xi Frequency fi
1.6 12
Example 6.1.1. 1.8 22
2.0 26
2.2 40
Solution.
It is perhaps easiest to write extra columns in the table above for (xi x̄)2 to calculate
this (and even x̄ in (a)):
so we find
2 4.3855
= = 0.0443, = 0.21
99
(c) The mode is the most common measurement, so looking at the table this is 2.2mm
⇤
F17XA1 : Maths for Engineers and Scientists 1 6–4
Note: in saying that the four possible outcomes are all equally probable we are actually
making an extra assumption that the two tosses are ‘independent’ – see next section.
• Test reliability of a component:
An event E is a set of outcomes. The probability P (E) of the event E is the sum of the
probabilities of these outcomes.
Example 6.2.1. Let A be the event that a die shows at most 4 and let B be the event that the
die shows an even number. Find P (A) and P (B).
Solution.
D = {0, 1, 2} and P (D) = 0.368 + 0.368 + 0.184 = 0.920.
⇤
Probability Rules
P (not A) = 1 P (A)
As an example, let A be the event that a die shows at most 4. Then from the example above,
P (A) = 2/3 and P (not A) = 1 2/3 = 1/3. Note that the event ’not A’ is that the die shows
at least 5.
The event ‘A or B’ is the event that either A, or B, or both, occurs, i.e. the set of outcomes
which are in at least one of the events. If A be the event that a die shows at most 4 and B is
the event that the die shows an even number then
5
A or B = {1, 2, 3, 4, 6} and P (A or B) =
6
The event ‘A and B’ is the event that both A and B occur, i.e. the set of outcomes in both
events. For the example above,
1
A and B = {2, 4} and P (A and B) =
3
Two events are mutually exclusive (or disjoint) if they cannot both occur simultaneously, i.e.
they contain no outcomes in common. For the example of rolling a die, if A = {1, 2, 3, 4},
B = {2, 4, 6}, and C = {6}, then A and the event C are mutually exclusive. The event A and
the event B are not mutually exclusive.
P (E or F ) = P (E) + P (F ).
P (E and F ) = 0.
In the above example, the events A and C are mutually exclusive, and so
2 1 5
P (A or C) = P (A) + P (C) = + =
3 6 6
(as can also be seen directly since A or C = {1, 2, 3, 4, 6}).
We need to subtract the term P (A and B), since otherwise the events A and B would be counted
twice.
F17XA1 : Maths for Engineers and Scientists 1 6–6
Example 6.2.3. For the example of the die with A = {1, 2, 3, 4} and B = {2, 4, 6}, find
P (A or B).
Example 6.2.4. Outside work on an oil platform cannot proceed if it is either too wet or too
windy. The probability of the event A that work is cancelled because it is too wet is 0.3, and the
probability of the event B that work is cancelled because it is too windy is 0.2. The probability
of the event A and B that it is simultaneously both too wet and too windy is 0.1. Find the
probability that work can proceed.
Solution. The event that it is either too wet or too windy is A or B and we have
The event C that work can proceed is the same as the event A or B not occurring. Hence, the
probability that work can proceed is given by
Independent events
Frequently an experiment consists of a number of subexperiments (or trials), such that the result
of each does not influence the outcome of any of the others. Such subexperiments are said to
be (statistically) independent.
If the events E1 , . . . , Ek are such that each is determined by a separate subexperiment, and these
subexperiments are independent, then E1 , . . . , Ek are said to be independent and
Example 6.2.5. A computer is defective with probability 14 and a second computer is inde-
1
pendently defective with probability 10 . Find the probability that at least one computer is
working.
Solution. Let A be the event that the first computer is defective, B the event that the second
computer is defective. Then A and B are independent, and so
1
P (neither computer working) = P (A and B) = P (A)P (B) =
40
Hence
39
P (at least one working) = 1 P (neither working) =
40
⇤
F17XA1 : Maths for Engineers and Scientists 1 6–7
Tree Diagrams
Another useful visual aid for probability problems is the use of tree diagrams to list all possible
outcomes. Often these greatly simplify problems that involve combining various probabilities.
Example 6.2.6. A plant has three synthesis reactors- A,B and C - all of which produce urea.
Urea is produced in discrete batches, each of 100 kg. Reactor A produces 60% of the total
volume, Reactors B and C 25% and 15% respectively. The failure rate of the three Reactors
also varies: 5% of the production by Reactor A has unacceptable levels of contamination. The
failure rate for Reactors B and C are 2% and 6%. Calculate the probability that a batch picked
at random is
(d) acceptable
Solution. The tree diagram for the three reactors in this plant looks like this:
100%
A B C
We use a tree-diagram to display all this information. The answers can be read o↵ directly from
this:
(b) 0.57
(c) 0.009
76, 80, 86, 92, 97, 97, 102, 105, 112, 122.
We could construct a frequency table of these results and plot this data on a histogram. Suppose
we collect a much bigger data set, and plot histograms of the IQ for a random sample of sizes
(i) 10, (ii) 100 and (iii) 10000 people.
F17XA1 : Maths for Engineers and Scientists 1 6–8
6 30 1500
5 25
4 20 1000
Frequency
Frequency
Frequency
3 15
2 10 500
1 5
0 0 0
59.5 79.5 99.5 119.5 139.5 69.5 79.5 89.5 99.5 109.5 119.5 129.5 139.5 40 60 80 100 120 140 160
IQ score IQ score IQ score
In the above series of plots, as the number of samples increase and the width of the interval is
decreased, the line connecting the tops of the rectangles (the frequency polygon) more closely
resemble a smooth curve. We can also notice how the majority of samples are distributed around
the sample mean. When the variable is continuous we can conveniently represent the structure
of the data set by a probability distribution, or more precisely a probability density function.
0.025
0.02
0.015
P(X)
0.01
0.005
0
0 50 a 100 b 150 200
IQ score, X
• the probability that the variable X lies between two given values, say a and b, is given by
the area under the curve between X = a and X = b.
A common probability density function which represents random continuous data is called the
Normal distribution (or Gaussian distribution). The Normal distribution is given by
✓ ◆
1 (x x)2
P (x) = p exp 2
2⇡ 2
F17XA1 : Maths for Engineers and Scientists 1 6–9
The constant parameters x and are the mean and standard deviation, respectively, for the
Normal distribution, which is denoted N (x, ). This function looks like the function P(X) in
the IQ example above. (In fact that function is N (100, 20).)
Note: natural variability in samples, such as in studies involving weight, height or other forms
of continuous measurement typically leads to a normal distribution. In fact the Central Limit
Theorem says that data sets involving continuous measurement will eventually form a normal
distribution as the sample size increases.
As stated earlier, given a probability distribution for some variable, we can find the probability
of the variable lying between two values by finding the area under the distribution function lying
between those two values.
For example, if we know that the height of a population is normally distributed with mean x
and standard deviation , then to find the proportion of the population with a height less than
some value, h, we can calculate the area under the normal distribution curve up to h along the
horizontal axis.
This is done using distribution tables, found in the appendices of statistics books (and included
with these course notes). It is impossible to print a table for every possible normal distribution
(i.e. any mean and standard deviation), however we only need to use the table for the Standard
normal distribution, which is the normal distribution with mean 0 and standard deviation 1.
This is because any normally distributed variable X, with mean µ and standard deviation ,
can be related to a new variable z which has a standard normal distribution, according to the
formula
X x
z= .
In particular the area under the original normal distribution curve up to some value X = A is
equal to the area under the Standard Normal distribution curve up to the value
A x
Az = ,
Standard normal distribution tables may quote the area under the Standard Normal distribution
curve in a variety of ways — see figure below.
F17XA1 : Maths for Engineers and Scientists 1 6–10
0.4 0.4
B
0.3 0.3
A
P(X)
P(X)
0.2 0.2
0.1 0.1
0 0
−6 −4 −2 0 2 4 6 −6 −4 −2 0 2 4 6
X X
0.4 0.4
0.3 0.3 D
P(X)
P(X)
C
0.2 0.2
0.1 0.1
0 0
−6 −4 −2 0 2 4 6 −6 −4 −2 0 2 4 6
X X
Standard Normal distribution tables could quote any of the areas shown, though the first case
is the most common (and used on the tables given out with this module).
Cumulative probabilities for POSITIVE z-values are shown in the following table:
z 0.00 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09
0.0 0.5000 0.5040 0.5080 0.5120 0.5160 0.5199 0.5239 0.5279 0.5319 0.5359
0.1 0.5398 0.5438 0.5478 0.5517 0.5557 0.5596 0.5636 0.5675 0.5714 0.5753
0.2 0.5793 0.5832 0.5871 0.5910 0.5948 0.5987 0.6026 0.6064 0.6103 0.6141
0.3 0.6179 0.6217 0.6255 0.6293 0.6331 0.6368 0.6406 0.6443 0.6480 0.6517
0.4 0.6554 0.6591 0.6628 0.6664 0.6700 0.6736 0.6772 0.6808 0.6844 0.6879
0.5 0.6915 0.6950 0.6985 0.7019 0.7054 0.7088 0.7123 0.7157 0.7190 0.7224
0.6 0.7257 0.7291 0.7324 0.7357 0.7389 0.7422 0.7454 0.7486 0.7517 0.7549
0.7 0.7580 0.7611 0.7642 0.7673 0.7704 0.7734 0.7764 0.7794 0.7823 0.7852
0.8 0.7881 0.7910 0.7939 0.7967 0.7995 0.8023 0.8051 0.8078 0.8106 0.8133
0.9 0.8159 0.8186 0.8212 0.8238 0.8264 0.8289 0.8315 0.8340 0.8365 0.8389
1.0 0.8413 0.8438 0.8461 0.8485 0.8508 0.8531 0.8554 0.8577 0.8599 0.8621
1.1 0.8643 0.8665 0.8686 0.8708 0.8729 0.8749 0.8770 0.8790 0.8810 0.8830
1.2 0.8849 0.8869 0.8888 0.8907 0.8925 0.8944 0.8962 0.8980 0.8997 0.9015
1.3 0.9032 0.9049 0.9066 0.9082 0.9099 0.9115 0.9131 0.9147 0.9162 0.9177
1.4 0.9192 0.9207 0.9222 0.9236 0.9251 0.9265 0.9279 0.9292 0.9306 0.9319
1.5 0.9332 0.9345 0.9357 0.9370 0.9382 0.9394 0.9406 0.9418 0.9429 0.9441
1.6 0.9452 0.9463 0.9474 0.9484 0.9495 0.9505 0.9515 0.9525 0.9535 0.9545
1.7 0.9554 0.9564 0.9573 0.9582 0.9591 0.9599 0.9608 0.9616 0.9625 0.9633
1.8 0.9641 0.9649 0.9656 0.9664 0.9671 0.9678 0.9686 0.9693 0.9699 0.9706
1.9 0.9713 0.9719 0.9726 0.9732 0.9738 0.9744 0.9750 0.9756 0.9761 0.9767
2.0 0.9772 0.9778 0.9783 0.9788 0.9793 0.9798 0.9803 0.9808 0.9812 0.9817
2.1 0.9821 0.9826 0.9830 0.9834 0.9838 0.9842 0.9846 0.9850 0.9854 0.9857
2.2 0.9861 0.9864 0.9868 0.9871 0.9875 0.9878 0.9881 0.9884 0.9887 0.9890
2.3 0.9893 0.9896 0.9898 0.9901 0.9904 0.9906 0.9909 0.9911 0.9913 0.9916
2.4 0.9918 0.9920 0.9922 0.9925 0.9927 0.9929 0.9931 0.9932 0.9934 0.9936
2.5 0.9938 0.9940 0.9941 0.9943 0.9945 0.9946 0.9948 0.9949 0.9951 0.9952
2.6 0.9953 0.9955 0.9956 0.9957 0.9959 0.9960 0.9961 0.9962 0.9963 0.9964
2.7 0.9965 0.9966 0.9967 0.9968 0.9969 0.9970 0.9971 0.9972 0.9973 0.9974
2.8 0.9974 0.9975 0.9976 0.9977 0.9977 0.9978 0.9979 0.9979 0.9980 0.9981
2.9 0.9981 0.9982 0.9982 0.9983 0.9984 0.9984 0.9985 0.9985 0.9986 0.9986
3.0 0.9987 0.9987 0.9987 0.9988 0.9988 0.9989 0.9989 0.9989 0.9990 0.9990
3.1 0.9990 0.9991 0.9991 0.9991 0.9992 0.9992 0.9992 0.9992 0.9993 0.9993
3.2 0.9993 0.9993 0.9994 0.9994 0.9994 0.9994 0.9994 0.9995 0.9995 0.9995
3.3 0.9995 0.9995 0.9995 0.9996 0.9996 0.9996 0.9996 0.9996 0.9996 0.9997
3.4 0.9997 0.9997 0.9997 0.9997 0.9997 0.9997 0.9997 0.9997 0.9997 0.9998
• 68% of the area lies within one standard deviation either side of the mean.
• 95% of the area lies within two standard deviation either side of the mean.
• 99.7% of the area lies within three standard deviation either side of the mean.
Let us look at using the table of standard normal values in the following example:
Example 6.3.1. The thickness of an aluminium sheet is normally distributed with mean 52µm
and standard deviation 5µm. What proportion of the aluminium sheets have thickness:
Therefore
60.3 52
Prob(X < 60.3) = Prob(z < ),
5
= Prob(z < 1.66) .
The table does not give probabilities for negative values, yet we can determine these using:
and so
Prob(z < 2.4) = 1 0.9918 = 0.0082 .
The proportion of aluminium sheets with thickness < 40 will be 0.82%.
Binomial Distribution
We are now familiar with the idea of calculating the probability P (A) of an event A and of
calculating the probability of the complement: P (notA). We now need to find a method of
dealing with a large number of trials, i.e. repeated events.
Suppose, for example, the probability of selecting an acceptable component from a large batch
was 0.98 and we made 50 selections. What are the chances that all the selected components
were acceptable? or 25 of the 50 ? or even none of the 50?
To answer these questions we need to use the Binomial Distribution. An example will serve
as introduction:
Example 6.3.2. A reactor produces 100 kg batches of urea, 0.85 of which (i.e. 85%) are
acceptable. Three batches are selected. Calculate the probability that the number of acceptable
batches is: (a) zero (b) one (c) two (d) three?
Solution. Define A as “the batch is acceptable” and define Ā as “the batch is unacceptable”.
Then P (A) = 0.85 and P (Ā) = 0.15.
(a) Since the selections are independent events, we can use the multiplication law:
P (Ā and Ā and Ā) = P (Ā)P (Ā)P (Ā) = 0.15 ⇥ 0.15 ⇥ 0.15 = 0.003375
(b) If one batch is acceptable then AĀĀ or ĀAĀ or ĀĀA will have occurred. These events
are mutually exclusive so we can use the addition law:
(c) If two batches are acceptable then AAĀ or AĀA or ĀAA will have occurred. As with (b)
these events are mutually exclusive, so we can use the addition law):
We could use the same tactics of writing out all the possibilities if we sampled many more
batches, but the arithmetic involved would quickly become overwhelming. Instead we can make
use of the binomial distribution.
If we have a trial with two possible results A and Ā , the probabilities of each result may be
written as P (A) = p and P (Ā) = q = 1 p. If the trial is then repeated n times the probability
of r occurrences of A and (n r) occurrences of Ā in a sequence of n independent trials is
✓ ◆
n n n!
p (1 p)n r = pn (1 p)n r
r r!(n r)!
The binomial coefficient nr counts the number of di↵erent ways we can get r occurrences of A
and n r occurrences of Ā (and saves us having to do it explicitly).
The factorials appearing in the formula are defined as
n! = n ⇥ (n 1) ⇥ (n 2) ⇥ . . . 2 ⇥ 1
Let us consider another urea reactor and a larger number of samples, where the binomial coef-
ficients take care of counting the number of di↵erent orders in which the outcomes may occur.
Example 6.3.3. A reactor produces 100kg batches of urea, 0.87 of which are acceptable. 10
batches are selected. Calculate the probability that the number of acceptable batches from these
10 is: (a) zero (b) nine (c) ten
Solution. Let A and Ā be defined as A “the batch is acceptable” and Ā “the batch is
unacceptable” with P (A) = 0.87 and P (Ā) = 0.13.
We then have
(a) ✓ ◆
10
P (0 acceptable batches) = (0.87)0 (0.13)10 = 1 ⇥ 1 ⇥ 1.37 ⇥ 10 9
0
(b) ✓ ◆
10
P (9 acceptable batches) = (0.87)9 (0.13)1 = 10 ⇥ 0.2855 ⇥ 0.13 = 0.371
9
(c) ✓ ◆
10
P (10 acceptable batches) = (0.87)10 (0.13)0 = 1 ⇥ 0.248 ⇥ 1 = 0.248
10
⇤
F17XA1
Maths for Engineers and Scientists 1
Chapter 7: Vectors
Contents
7.1 Basic Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7–1
7.2 Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7–5
7.3 Scalar Product . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7–8
7.4 Vector Product . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7–10
7.5 The Scalar Triple Product . . . . . . . . . . . . . . . . . . . . . . . . . 7–13
7.6 Lines in 3D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7–14
7.7 The equation of a plane . . . . . . . . . . . . . . . . . . . . . . . . . . . 7–16
PQ
P
A Vector
This directed line segment is denoted by P~Q. It represents a vector. The length, denoted P Q,
is equal to the magnitude of the vector. The direction from P to Q is the direction of the
vector. We shall refer to the vector that this line segment represents, as simply ‘the vector P~Q’.
Vectors are also denoted my underlined letters, e.g., a, or in print by bold face letters, e.g. a.
In these lectures, we shall primarily use the the notation a. A vector a can be represented
pictorially by a directed line segment, e.g., a is presented by
7–1
F17XA1 : Maths for Engineers and Scientists 1 7–2
P
Same Vector, di↵erent notation
If a = P~Q, then the magnitude of a is defined to be the positive length P Q and is denoted by
|a|. Thus |a| = P Q. Sometimes the notation a is used to denoted |a|.
Two vectors are equal is they have same magnitude and direction. Consider the parallelogram
P QRS
Q S
a
b
P R
Equal vectors
Q S
P R
Equal vectors
F17XA1 : Maths for Engineers and Scientists 1 7–3
Suppose that a and b are vectors. We can represent these by directed line segments
a
b
Two vectors
Recall, that these directed line segments can start from anywhere. Thus we are allowed to move
the beginning of the directed line segment representing b to the end of the segment representing
a. This produces a triangle, and the vector a + b is defined to be the directed line segment
forming the 3rd side of the triangle as shown.
b
a
a+b
Two vectors
This rule for adding vectors represented by line segments is called the triangle rule.
Example 7.1.1. Supposing that a = P~Q and b = QR,
~ find a + b.
Q
b R
Q
b R
P S
b + a = P~S + SR
~ = P~R = a + b.
We also need to define the idea of a negative vector: a is defined to be the vector with the
same magnitude as a but opposite direction. For example, if a = P~Q, then a = QP ~ .
a
P Q
−a
The negative of a vector
A further useful idea is that of a zero or null vector: 0 is the zero vector (or null vector) with
zero magnitude and any direction.
With these definitions in hand we can now discuss the subtraction of vectors. The subtraction
of a vector is equal to the addition of the negative of that vector so a b is simply defined as
a + ( b).
−b b
a−b a
a a = P~Q + QP
~ = P~P = 0.
F17XA1 : Maths for Engineers and Scientists 1 7–5
We can multiply vectors by scalars (i.e. numbers). When p > 0, p a is defined to be the vector
with the same direction as a and p times the magnitude of a. When p < 0, p a is the
vector with the opposite direction to a and p = |p| times the magnitude.
Pictorially this looks like stretching or squeezing the vector when we multiply by a positive
number depending on whether the number is larger or smaller than one. If we multiply by a
negative number we also reverse the direction of the vector.
2a
a
−2a
1
2
a
A vector of magnitude one is called a unit vector. u is a unit vector if |u| = 1. A unit vector
1
in the direction of a vector a is given by u = |a| a.
7.2 Components
Let P be a point in 2 dimensions (the xy-plane) with Cartesian coordinates (x, y). And let O
~ .
denote the origin with coordinates (0, 0). We say that P has a position vector r = OP
y axis
y P
O x x axis
Position vector in 2D
The unit vectors in 2D corresponding to line segments of length one along the positive x and y
axes are denoted by i and j.
F17XA1 : Maths for Engineers and Scientists 1 7–6
i
Components in 2D
It follows from the triangle rule that we can write the position vector of the point with Cartesian
coordinates (x, y) as r = xi + yj. That is we have
r
yj
O xi
Example 7.2.1. Find the position vector r of the point with Cartesian co-ordinates ( 1, 3)
Solution.
⇤
F17XA1 : Maths for Engineers and Scientists 1 7–7
where i, j and k are the unit vectors in the direction of the positive x, y and z axes respectively.
More generally, we can resolve any 3D vector v as
v = ai + bj + ck
We shall generally be interested in vectors in 3D in this course, for the rather obvious reason
that our world has 3 space dimensions (except if you are talking to a string theorist).
p p
Solution. We have v = 2i + 3j k and |v| = 22 + 32 + ( 1)2 = 14. ⇤
General vector addition and scalar multiplication can be simply stated in terms of components.
Let a = (a1 , a2 , a3 ), b = (b1 , b2 , b3 ) be vectors then
Solution.
1 1
a + b = ( 3, 9, 1) + ( 6, 9, 12) (7.3)
3 3
= ( 3, 9, 1) + ( 2, 3, 4) = ( 5, 12, 3)
Example 7.2.5. P and Q are the points with Cartesian co-ordinates ( 1, 3, 4) and ( 3, 2, 5).
Find the distance P Q and the Cartesian co-ordinates of the midpoint M of P Q.
Solution. For this type of geometrical problem, the first step is always to draw the the relevant
vectors (you can draw it in 2D and you don’t need to worry about the detailed position of points).
We have
F17XA1 : Maths for Engineers and Scientists 1 7–8
OM PM
O P
OP
Midpoint
~
OM ~ + P~M = OP
= OP ~ + 1 P~Q = ( 1, 3, 4) + 1 ( 2, 1, 1)
2 2
1 1 5 9
= ( 1, 3, 4) + ( 1, , ) = ( 2, , ).
2 2 2 2
Thus the Cartesian coordinates of M are ( 2, 52 , 92 ). ⇤
b
b
θ
θ
a a
Note that a.b is a scalar quantity. It is also often called the dot product. One of the uses
of the scalar product is to find the angle ✓ between 2 vectors a and b. Namely, if we know a.b,
then we can find ✓ from the formula
a.b
cos(✓) = .
|a||b|
F17XA1 : Maths for Engineers and Scientists 1 7–9
There are certain special cases when the scalar product of 2 vectors is very simple:
To say that a and b are parallel vectors means that they are in the same or opposite directions.
If they are in the same direction then ✓ = 0, cos(✓) = 1 and
a.b = |a||b|.
a.b = |a||b|.
Example 7.3.1. Find the scalar product of the vectors (1, 1, 0) and (2, 2, 0).
Solution. These are clearly in the same direction (since (2, 2, 0) = 2(1, 1, 0)). Hence,
p p p
(1, 1, 0).(2, 2, 0) = 2 8 = 16 = 4.
If a and b are perpendicular, then ✓ = ⇡2 and cos(✓) = 0. Hence, a.b = 0. Conversely, if a.b = 0
and a and b are non-zero vectors, then we must have
a.b ⇡
cos(✓) = =0 and so ✓ = (since 0 ✓ ⇡)
|a||b| 2
and so the vectors are perpendicular. Another word for perpendicular is orthogonal. Note
that |a.b| means the absolute value of the scalar quantity.
Scalar products of i, j, k are useful to know. Recall that i, j and k are unit vectors along the
x, y and z axes in 3D. Thus they are perpendicular and from the above results we have
This means that the scalar product of vectors expressed in component form is very simple.
a.b = a1 b1 + a2 b2 + a3 b3
Note:
(i) that |a|2 = a21 + a22 + a23 = a.a for any vector.
(ii) For 2D vectors a = (a1 , a2 ) and b = (b1 , b2 ) we have a.b = a1 b1 + a2 b2 .
Example 7.3.3. Find the angle between the vectors e = i 4j and f = 3i + 2j.
F17XA1 : Maths for Engineers and Scientists 1 7–10
Solution.
p p p
e.f= 1 ⇥ 3 + ( 4) ⇥ 2 = 5, |e| = 12 + ( 4)2 = 17, |f | = 13,
e.f 5
cos(✓) = = p p , hence,
|e||f | 17 13
✓ = 1.913 radians (3DP).
Example 7.3.4. Find the angle at A in the triangle with vertices A, B, C with Cartesian
coordinates (1, 0, 1), (2, 1, 3), (3, 2, 1) respectively.
AC
Α
AB
We then have
~
AB ~
= OB ~ = (2, 1, 3)
OA (1, 0, 1) = (1, 1, 4)
~
AC ~
= OC ~ = (3, 2, 1)
OA (1, 0, 1) = (2, 2, 2).
Note that here, we are referring to vectors - not Cartesian coordinates, despite the identical
notation! Thus we have
~ AC
AB. ~ = 1 ⇥ 2 + 1 ⇥ 2 + 4 ⇥ 2 = 12,
p p p p
~
|AB| = 1 + 1 + 16 = 18, |AC| ~ = 4 + 4 + 4 = 12,
r
~ AC
AB. ~ 2
hence cos(A) = = .
~ AC|
|AB|| ~ 3
a ⇥ b = |a||b| sin(✓) n,
F17XA1 : Maths for Engineers and Scientists 1 7–11
where as before 0 ✓ ⇡ is the angle between the positive directions of a and b, and n
is the unit vector perpendicular to the plane of a and b, with direction determined by the
right-hand-rule. Note:
• The vector product is a vector quantity.
• An alternative common notation for the vector product is a ^ b.
• There are two unit vectors perpendicular to the plane of a and b. One going in to the
plane and one coming out. Which one we choose to give n is fixed by the right-hand-rule.
The right-hand rule: Let the index finger of the right-hand point in the
direction of a and the middle finger point in the direction of b. Then
the thumb points in the direction of the unit vector n entering the cross
product a ⇥ b
a
Right hand rule
the right-hand-rule gives n pointing out of the plane towards you (after some minor contortions).
For the vectors
a
i ⇥ j = k, j ⇥ k = i, k ⇥ i = j,
j⇥i= k, k⇥j = i, i⇥k = j.
Note, that each expression is a cyclic permutation of the previous one in the row.
Solution.
a ⇥ b = (2i j + 3k) ⇥ (i + 2j + k) = 7i + j + 5k = ( 7, 1, 5).
⇤
b⇥a = a⇥b
a⇥a = 0
a ⇥ (b + c) = a ⇥ b + a ⇥ c
(a + b) ⇥ c = a ⇥ c + b ⇥ c
We can give a geometrical interpretation to the magnitude of the vector product if we consider
the parallelogram below
b
h
θ
a
Right hand rule
a · (b ⇥ c)
In terms of components:
a = a1 i + a2 j + a3 k
b = b1 i + b2 j + b3 k
c = c1 i + c2 j + c3 k
so we can evaluate the vector product first using the rules for the vector products of the unit
vectors i, j, k
b ⇥ c = (b1 i + b2 j + b3 k) ⇥ (c1 i + c2 j + c3 k)
= (b2 c3 b3 c2 )i (b1 c3 b3 c1 )j + (b1 c2 b2 c1 )k
Example 7.5.1. Find the scalar triple product a.(b ⇥ c) when a = (1, 2, 3), b = (2, 1, 3),
c = (4, 0, 1)
Solution. We have
A geometrical interpretation may also be given to the scalar triple product. Consider the
following parallelepiped:
bxc a
φ
c
b
Parallelepiped
F17XA1 : Maths for Engineers and Scientists 1 7–14
The volume V of this object is the base area B times the height h = |a| cos( ). We also know
B = |b ⇥ c| from above, and that b ⇥ c points up from the right-hand-rule. Hence, we have
Thus we have that the volume of such a parallelepiped is given by the scalar triple product
a.(b ⇥ c). One nice use of this formula is that it leads us immediately to the identity
since the volume does not depend upon the cyclic order we choose for a, b and c.
The fact that the volume is clearly zero if any two of the vectors are the same, also leads us to
the identity
a.(a ⇥ b) = a.(b ⇥ a) = 0.
In arriving at V = a.(b ⇥ c), we have been rather careful about choosing the orientation of a, b
and c. More generally, we have V = |a.(b ⇥ c)|.
7.6 Lines in 3D
The equation of a line in 3D is easily obtained if we have a point P on the line, and a vector d
parallel to the line. From the picture
P r = OP + t d
OP + d
Ο
3D Line
r = a + td
or
r = (x, y, z) = (a1 , a2 , a3 ) + t(d1 , d2 , d3 ).
Thus we can easily go both ways between the parametric and Cartesian forms of the equation
for a line.
Example 7.6.1. Find the parametric equation of the line through the point (1, 2, 1) in the
direction of the vector ( 1, 1, 3). Hence, find the Cartesian form of the line.
x = 1 t
y = 2+t
z = 1 + 3t
Example 7.6.2. Find the parametric equation of the line passing through the two points
P = (1, 1, 0) and Q = (2, 1, 3).
~
Solution. We choose the vector parallel to the line to be d = OQ ~ = (2, 1, 3)
OP (1, 1, 0) =
(1, 0, 3) and obtain the parametric equation
Hence, (3, 2, 1) is a vector parallel to the line, and (1, 2, 2) is a point on the line. ⇤
r = (x, y, z)
such that
(r a).n = 0
n
r−a
P
a r
O
Plane
The normal vector n is a vector perpendicular to all vectors r a lying parallel to the plane.
Example 7.7.1. Find the equation of the plane that contains the point P with position vector
a = (1, 2, 4), and has the normal vector n = (1, 1, 1).
Solution. A point r = (x, y, z) lies in the plane if it satisfies the equation r.n = a.n (it is often
easier to write the equation in this form). That is we have
or
x+y z= 1.
⇤
F17XA1 : Maths for Engineers and Scientists 1 7–17
Suppose, we are not given the normal directly, but are given the position vectors a, b and c of
3 points that lie in the plane. In the case, we can construct a normal n by taking the vector
product of any two vectors that are parallel to the plane. Two such vectors are b a and c a,
and thus we can take
n = (b a) ⇥ (c a),
and carry on to write the equation of the plane as r.n = a.n as before.
Example 7.7.2. Find a plane through the points A (1,1,-1), B (2,0,2) and C (0,-2,1).
and
~ = (0, 2, 1)
AC (1, 1, 1) = ( 1, 3, 2)
Their vector product is perpendicular to both vectors and therefore to the plane.
This will give a normal n to the plane.
Now
~ ⇥ AC
AB ~ = (i j + 3k) ⇥ ( i 3j + 2k)
= 7i 5j 4k
Thus a normal to the plane is n = (7, 5, 4). Any scalar multiple of this vector would also do
for the normal. The point A with position vector a = (1, 1, 1) is on the plane so the equation
of a plane is given by
r.n = a.n