WB06 All
WB06 All
HELM
Contacts:
Post:
HELM,
Mathematics
Education
Centre,
Loughborough
University,
Loughborough,
LE11
3TU.
Email:
[email protected]
Web:
http://helm.lboro.ac.uk
Contents 6
Exponential and
Logarithmic Functions
6.1 The Exponential Function 2
6.3 Logarithms 19
Learning outcomes
In this Workbook you will learn about one of the most important functions in mathematics,
science and engineering - the exponential function. You will learn how to combine
exponential functions to produce other important functions, the hyperbolic functions,
which are related to the trigonometric functions.
You will also learn about logarithms and the logarithmic function which is the function
inverse to the exponential function. Finally you will learn what a log-linear graph is and
how it can be used to simplify the presentation of certain kinds of data.
The Exponential
Function 6.1
Introduction
In this Section we revisit the use of exponents. We consider how the expression ax is defined when a
is a positive number and x is irrational. Previously we have only considered examples in which x is a
rational number. We consider these exponential functions f (x) = ax in more depth and in particular
consider the special case when the base a is the exponential constant e where :
e = 2.7182818 . . .
We then examine the behaviour of ex as x → ∞, called exponential growth and of e−x as x → ∞
called exponential decay.
#
• have a good knowledge of indices and their
laws
Prerequisites
Before starting this Section you should . . . • have knowledge of rational and irrational
numbers
"
' !
$
x
• approximate a when x is irrational
2 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
1. Exponents revisited
We have seen (in 1.2) the meaning to be assigned to the expression ap where a is a positive
number. We remind the reader that ‘a’ is called the base and ‘p’ is called the exponent (or power
or index). There are various cases to consider:
If m, n are positive integers
• an = a × a × · · · × a with n terms
• a1/n means the nth root of a. That is, a1/n is that positive number which satisfies
(a1/n ) × (a1/n ) × · · · × (a1/n ) = a
where there are n terms on the left hand side.
• am/n = (a1/n ) × (a1/n ) × · · · × (a1/n ) where there are m terms.
1
• a−n =
an
For convenience we again list the basic laws of exponents:
Key Point 1
am
am an = am+n n
= am−n (am )n = amn
a
a1 = a, and if a 6= 0 a0 = 1
Example 1
pn−2 pm
Simplify the expression 3 2m
pp
Solution
First we simplify the numerator:
pn−2 pm = pn−2+m
Next we simplify the denominator:
p3 p2m = p3+2m
Now we combine them and simplify:
pn−2 pm pn−2+m
= = pn−2+m p−3−2m = pn−2+m−3−2m = pn−m−5
p3 p2m p3+2m
HELM (2015): 3
Section 6.1: The Exponential Function
Task
bm−n b3
Simplify the expression
b2m
Answer
bm−n b3 = bm+3−n
Now include the denominator:
Your solution
bm−n b3 bm+3−n
= =
b2m b2m
Answer
bm+3−n
2m
= bm+3−n−2m = b3−m−n
b
Task
(5am )2 a2
Simplify the expression
(a3 )2
Answer
(5am )2 a2 = 25a2m a2 = 25a2m+2
Answer
(5am )2 a2 25a2m+2
= = 25a2m+2−6 = 25a2m−4
(a3 )2 a6
4 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
So far we have given the meaning of ap where p is an integer or a rational number, that is, one which
can be written as a quotient of integers. So, if p is rational, then
m
p= where m, n are integers
n
Now consider x as a real number which cannot√ be written as a rational number. Two common
examples of these irrational numbers are 2 and π. What we shall do is approximate x by a
rational number by working to a fixed number of decimal places. For example if
x = 3.14159265 . . .
then, if we are working to 3 d.p. we would write
x ≈ 3.142
and this number can certainly be expressed as a rational number:
3142
x ≈ 3.142 =
1000
so, in this case
3142
ax = a3.14159... ≈ a3.142 = a 1000
3142
and the final term: a 1000 can be determined in the usual way by calculator. Henceforth we shall
therefore assume that the expression ax is defined for all positive values of a and for all real values
of x.
Task
By working to 3 d.p. find, using your calculator, the value of 3π/2 .
π
First, approximate the value of :
2
Your solution
π
≈ to 3 d.p.
2
Answer
π 3.1415927 . . .
≈ = 1.5707963 · · · ≈ 1.571
2 2
Now determine 3π/2 :
Your solution
3π/2 ≈
Answer
3π/2 ≈ 31.571 = 5.618 to 3 d.p.
HELM (2015): 5
Section 6.1: The Exponential Function
2. Exponential functions
For a fixed value of the base a the expression ax clearly varies with the value of x: it is a function of
x. We show in Figure 1 the graphs of (0.5)x , (0.3)x , 1x , 2x and 3x .
The functions ax (as different values are chosen for a) are called exponential functions. From the
graphs we see (and these are true for all exponential functions):
y
(0.3)x
(0.5)x 3x 2x
1x
x
Figure 1: y = ax for various values of a
The most important and widely used exponential function has the particular base e = 2.7182818 . . . .
It will not be clear to the reader why this particular value is so important. However, its importance
will become clear as your knowledge of mathematics increases. The number e is as important as the
number π and, like π, is also irrational. The approximate value of e is stored in most calculators.
There are numerous ways of calculating the value of e. For example, it can be shown that the value
of e is the end-point of the sequence of numbers:
1 2 3 16 64
2 3 4 17 65
, , , ..., , ..., ,...
1 2 3 16 64
which, in decimal form (each to 6 d.p.) are
2.000000, 2.250000, 2.370370, ..., 2.637929, . . . , 2.697345, ...
This is a slowly converging sequence. However, it does lead to a precise definition for the value of e:
n
n+1
e = lim
n→∞ n
6 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
Key Point 2
ex is the exponential function where e = 2.71828 . . .
y
ex
x
Figure 2: y = ex
Exponential functions (and variants) appear in various areas of mathematics and engineering. For
example, the shape of a hanging chain or rope, under the effect of gravity, is well described by a
2
combination of the exponential curves ekx , e−kx . The function e−x plays a major role in statistics;
it being fundamental in the important normal distribution which describes the variability in many
naturally occurring phenomena. The exponential function e−kx appears directly, again in the area of
statistics, in the Poisson distribution which (amongst other things) is used to predict the number of
events (which occur randomly) in a given time interval.
From now on, when we refer to an exponential function, it will be to the function ex (Figure 2) that
we mean, unless stated otherwise.
HELM (2015): 7
Section 6.1: The Exponential Function
Task
Use a calculator to determine the following values correct to 2 d.p.
(a) e1.5 , (b) e−2 , (c) e17 .
Your solution
(a) e1.5 = (b) e−2 = (c) e17 =
Answer
(a) e1.5 = 4.48, (b) e−2 = 0.14, (c) e17 = 2.4 × 107
Task
e2.7 e−3(1.2)
Simplify the expression and determine its numerical value to 3 d.p.
e2
Answer
e2.7 e−3(1.2)
= e2.7 e−3.6 e−2 = e2.7−3.6−2 = e−2.9
e2
Now evaluate its value to 3 d.p.:
Your solution
e−2.9 =
Answer
0.055
3. Exponential growth
If a > 1 then it can be shown that, no matter how large K is:
ax
→ ∞ as x → ∞
xK
That is, if K is fixed (though chosen as large as desired) then eventually, as x increases, ax will become
larger than the value xK provided a > 1. The growth of ax as x increases is called exponential
growth.
8 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
Task
A function f (x) grows exponentially and is such that f (0) = 1 and f (2) = 4.
Find the exponential curve that fits through these points. Assume the function
is f (x) = ekx where k is to be determined from the given information. Find the
value of k.
Your solution
When x = 0 f (0) = e0 = 1
When x = 2, f (2) = 4 so e2k = 4
By trying values of k: 0.6, 0.7, 0.8, find the value such that e2k ≈ 4:
Your solution
e2(0.6) = e2(0.7) = e2(0.8) =
Answer
e2(0.6) = 3.32 (too low) e2(0.7) = 4.055 (too high)
Answer
e2(0.67) = 3.819 (low) e2(0.68) = 3.896 (low) e2(0.69) = 3.975 (low)
Answer
e2(0.691) = 3.983, (low) e2(0.692) = 3.991 (low) e2(0.693) = 3.999 (low)
Finally, state the exponential function with k to 3 d.p. which most closely satisfies the conditions:
Your solution
y=
Answer
The exponential function is e0.693x .
We shall meet, in Section 6.4, a much more efficient way of finding the value of k.
HELM (2015): 9
Section 6.1: The Exponential Function
4. Exponential decay
As we have noted, the behaviour of ex as x → ∞ is called exponential growth. In a similar manner
we characterise the behaviour of the function e−x as x → ∞ as exponential decay. The graphs of
ex and e−x are shown in Figure 3.
y
e−x ex
Task
Choose K = 10 in the expression xK e−x and calculate xK e−x using your calculator
for x = 5, 10, 15, 20, 25, 30, 35.
Your solution
x 5 10 15 20 25 30 35
10 −x
x e
Answer
x 5 10 15 20 25 30 35
10 −x
x e 6.6 × 104 4.5 × 105 1.7 × 105 2.1 × 104 1324 55 1.7
The topics of exponential growth and decay are explored further in Section 6.5.
Exercises
1. Find, to 3 d.p., the values of
(a) 2−8 (b) (5.1)4 (c) (2/10)−3 (d) (0.111)6 (e) 21/2 (f) π π (g) eπ/4 (h) (1.71)−1.71
2. Plot y = x3 and y = ex for 0 < x < 7. For which integer values of x is ex > x3 ?
Answers
1. (a) 0.004 (b) 676.520 (c) 125 (d) 0.0 (e) 1.414 (f) 36.462 (g) 2.193 (h) 0.400
2. For integer values of x, ex > x3 if x ≥ 5
10 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
The Hyperbolic
Functions 6.2
Introduction
The hyperbolic functions sinh x, cosh x, tanh x etc are certain combinations of the exponential
functions ex and e−x . The notation implies a close relationship between these functions and the
trigonometric functions sin x, cos x, tan x etc. The close relationship is algebraic rather than geo-
metrical. For example, the functions cosh x and sinh x satisfy the relation
cosh2 x − sinh2 x ≡ 1
which is very similar to the trigonometric identity cos2 x + sin2 x ≡ 1. (In fact every trigonometric
identity has an equivalent hyperbolic function identity.)
The hyperbolic functions are not introduced because they are a mathematical nicety. They arise
naturally and sufficiently often to warrant sustained study. For example, the shape of a chain hanging
under gravity is well described by cosh and the deformation of uniform beams can be expressed in
terms of tanh.
' $
• have a good knowledge of the exponential
function
Before starting this Section you should . . . • have familiarity with the definitions of
tan, sec, cosec, cot and of trigonometric
identities
&
' %
$
• explain how hyperbolic functions are defined
in terms of exponential functions
Learning Outcomes • obtain and use hyperbolic function identities
On completion you should be able to . . .
• manipulate expressions involving hyperbolic
functions
& %
HELM (2015): 11
Section 6.2: The Hyperbolic Functions
1. Even and odd functions
Constructing even and odd functions
A given function f (x) can always be split into two parts, one of which is even and one of which is
1 1
odd. To do this write f (x) as [f (x) + f (x)] and then simply add and subtract f (−x) to this to
2 2
give
1 1
f (x) = [f (x) + f (−x)] + [f (x) − f (−x)]
2 2
1 1
The term [f (x) + f (−x)] is even because when x is replaced by −x we have [f (−x) + f (x)]
2 2
1
which is the same as the original. However, the term [f (x) − f (−x)] is odd since, on replacing x
2
1 1
by −x we have [f (−x) − f (x)] = − [f (x) − f (−x)] which is the negative of the original.
2 2
Example 2
Separate x3 + 2x into odd and even parts.
Solution
f (x) = x3 + 2x
f (−x) = (−x)3 + 2−x = −x3 + 2−x
Even part:
1 1 1
(f (x) + f (−x)) = (x3 + 2x − x3 + 2−x ) = (2x + 2−x )
2 2 2
Odd part:
1 1 1
(f (x) − f (−x)) = (x3 + 2x + x3 − 2−x ) = (2x3 + 2x − 2−x )
2 2 2
Task
Separate the function x2 − 3x into odd and even parts.
Answer
f (x) = x2 − 3x , f (−x) = x2 − 3−x
12 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
1 1
Now construct [f (x) + f (−x)], [f (x) − f (−x)]:
2 2
Your solution
1 1
[f (x) + f (−x)] = [f (x) − f (−x)] =
2 2
Answer
1 1
[f (x) + f (−x)] = (x2 − 3x + x2 − 3−x )
2 2
1
= x2 − (3x + 3−x ). This is the even part of f (x).
2
1 1
[f (x) − f (−x)] = (x2 − 3x − x2 + 3−x )
2 2
1
= (3−x − 3x ). This is the odd part of f (x).
2
Key Point 3
Hyperbolic Functions
1
cosh x ≡ (ex + e−x )
2
1
sinh x ≡ (ex − e−x )
2
HELM (2015): 13
Section 6.2: The Hyperbolic Functions
y
e− x ex
cosh x
sinh x
2. Hyperbolic identities
The hyperbolic functions cosh x, sinh x satisfy similar (but not exactly equivalent) identities to
those satisfied by cos x, sin x. We note first some basic notation similar to that employed with
trigonometric functions:
coshn x means (cosh x)n sinhn x means (sinh x)n n 6= −1
1 1
In the special case that n = −1 we do not use cosh−1 x and sinh−1 x to mean and
cosh x sinh x
respectively. The notation cosh−1 x and sinh−1 x is reserved for the inverse functions of cosh x
and sinh x respectively.
Task
Show that cosh2 x − sinh2 x ≡ 1 for all x.
Answer
1 x 1 1 1
(e + e−x )2 ≡ [(ex )2 + 2ex e−x + (e−x )2 ] ≡ [e2x + 2ex−x + e−2x ] ≡ [e2x + 2 + e−2x ]
4 4 4 4
14 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
Answer
1 x 1 1 1
(e − e−x )2 ≡ [(ex )2 − 2ex e−x + (e−x )2 ] ≡ [e2x − 2ex−x + e−2x ] ≡ [e2x − 2 + e−2x ]
4 4 4 4
(c) Finally determine cosh2 x − sinh2 x using the results from (a) and (b):
Your solution
cosh2 x − sinh2 x ≡
Answer
1 1
cosh2 x − sinh2 x ≡ [e2x + 2 + e−2x ] − [e2x − 2 + e−2x ] ≡ 1
4 4
As an alternative to the calculation in this Task we could, instead, use the relations
ex ≡ cosh x + sinh x e−x ≡ cosh x − sinh x
and remembering the algebraic identity (a + b)(a − b) ≡ a2 − b2 , we see that
(cosh x + sinh x)(cosh x − sinh x) ≡ ex e−x ≡ 1 that is cosh2 x − sinh2 x ≡ 1
Key Point 4
The fundamental identity relating hyperbolic functions is:
cosh2 x − sinh2 x ≡ 1
This is the hyperbolic function equivalent of the trigonometric identity: cos2 x + sin2 x ≡ 1
HELM (2015): 15
Section 6.2: The Hyperbolic Functions
Task
Show that cosh(x + y) ≡ cosh x cosh y + sinh x sinh y.
Your solution
ex + e−x ey + e−y
cosh x cosh y ≡ ≡
2 2
Answer
e + e−x e + e−y
x y
1 1
≡ [ex ey + e−x ey + ex e−y + e−x e−y ] ≡ (ex+y + e−x+y + ex−y + e−x−y )
2 2 4 4
Answer
e − e−x e − e−y
x y
1
≡ (ex+y − e−x+y − ex−y + e−x−y )
2 2 4
Answer
1
cosh x cosh y + sinh x sinh y ≡ (ex+y + e−(x+y) ) which we recognise as cosh(x + y)
2
16 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
Other hyperbolic function identities can be found in a similar way. The most commonly used are
listed in the following Key Point.
Key Point 5
Hyperbolic Identities
• cosh2 x − sinh2 x ≡ 1
• cosh(x + y) ≡ cosh x cosh y + sinh x sinh y
• sinh(x + y) ≡ sinh x cosh y + cosh x sinh y
• sinh 2x ≡ 2 sinh x cosh x
• cosh 2x ≡ cosh2 x + sinh2 x or cosh 2x ≡ 2 cosh 2 x − 1 or cosh 2x ≡ 1 + 2 sinh2 x
Key Point 6
Further Hyperbolic Functions
sinh x
tanh x ≡
cosh x
1
sech x ≡
cosh x
1
cosech x ≡
sinh x
cosh x
coth x ≡
sinh x
HELM (2015): 17
Section 6.2: The Hyperbolic Functions
Task
Show that 1 − tanh2 x ≡ sech2 x
Answer
Dividing both sides by cosh2 x gives
sinh2 x 1
1− 2 ≡ implying (see Key Point 6) 1 − tanh2 x ≡ sech2 x
cosh x cosh2 x
Exercises
1. Express
(a) 2 sinh x + 3 cosh x in terms of ex and e−x .
(b) 2 sinh 4x − 7 cosh 4x in terms of e4x and e−4x .
2. Express
(a) 2ex − e−x in terms of sinh x and cosh x.
7ex
(b) in terms of sinh x and cosh x, and then in terms of coth x.
(ex − e−x )
(c) 4e−3x − 3e3x in terms of sinh 3x and cosh 3x.
3. Using only the cosh and sinh keys on your calculator (or ex key) find the values of
(a) tanh 0.35, (b) cosech 2, (c) sech 0.6.
Answers
5 1 5 9
1. (a) ex + e−x (b) − e4x − e−4x
2 2 2 2
7(cosh x + sinh x) 7
2. (a) cosh x + 3 sinh x, (b) , (coth x + 1) (c) cosh 3x − 7 sinh 3x
2 sinh x 2
3. (a) 0.3364, (b) 0.2757 (c) 0.8436
18 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
Logarithms 6.3
Introduction
In this Section we introduce the logarithm: loga b. The operation of taking a logarithm essentially
reverses the operation of raising a number to a power. We will formulate the basic laws satisfied by
all logarithms and learn how to manipulate expressions involving logarithms. We shall see that to
every law of indices there is an equivalent law of logarithms. Although logarithms to any positive
base are defined it is common practice to employ only two kinds of logarithms: logs to base 10 and
logs to base e.
HELM (2015): 19
Section 6.3: Logarithms
1. Logarithms
Logarithms reverse the process of raising a base ‘a’ to a power ‘n’. As with all exponentials, the base
should be a positive number.
If b = an then we write loga b = n.
Of course, the reverse statement is equivalent
If loga b = n then b = an
The expression loga b = n is read
“The log to base a of the number b is equal to n”
The term “log” is short for the word logarithm.
Example 3
Determine the log equivalents of
(a) 16 = 24 , (b) 16 = 42 , (c) 1000 = 103 ,
(d) 134.896 = 102.13 , (e) 8.414867 = e2.13
Solution
(a) Since 16 = 24 then log2 16 = 4
(b) Since 16 = 42 then log4 16 = 2
(c) Since 1000 = 103 then log10 1000 = 3
(d) Since 134.896 = 102.13 then log10 134.896 = 2.13
(e) Since 8.41467 = e2.13 then loge 8.414867 = 2.13
Key Point 7
If b = an then loga b = n
If loga b = n then b = an
20 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
Task
1
Find the log equivalent of (a) 100 = 102 (b) = 10−3
1000
1
(b) = 10−3 implies
1000
Answer
(a) log10 100 = 2
1
(b) log10 = −3
1000
Task
Find the log equivalent of (a) b = an , (b) c = am , (c) bc = an+m
Answer
n = loga b
Answer
m = loga c
Answer
n + m = loga (bc)
HELM (2015): 21
Section 6.3: Logarithms
From the last Task we have found, using the property of indices, that
loga (bc) = n + m = loga b + loga c.
We conclude that the index law an am = an+m has an equivalent logarithm law
loga (bc) = loga b + loga c
In words: “The log of a product is the sum of logs.”
Indeed this property is one of the major advantages of using logarithms. They transform a product
of numbers (a relatively difficult operation) to a sum of numbers (a relatively easy operation).
Each index law has an equivalent logarithm law, true for any base, listed in the following Key Point:
Key Point 8
The laws of logarithms The laws of indices
1. loga (AB) = loga A + loga B 1. aA aB = aA+B
A
2. loga ( ) = loga A − loga B 2. aA /aB = aA−B
B
3. loga (Ak ) = k loga A 3. (aA )k = akA
4. loga (aA ) = A 4. aloga A = A
5. loga a = 1 5. a1 = a
6. loga 1 = 0 6. a0 = 1
Example 4
10
Simplify: log10 2 − log10 4 + log10 (42 ) + log10 ( )
4
Solution
The third term log10 (42 ) simplifies to 2 log10 4 and the last term
10
log10 ( ) = log10 10 − log10 4 = 1 − log10 4
4
10
So log10 2−log10 4+log10 (42 )+log10 ( ) = log10 2−log10 4+2 log10 4+1−log10 4 = log10 2+1
4
22 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
Task
Simplify the expression:
1 10
log10 ( ) − log10 ( ) + log10 1000
10 27
1
(a) First simplify log10 ( ):
10
Your solution
1
log10 ( ) =
10
Answer
1
log10 ( ) = log10 1 − log10 10 = 0 − 1 = −1
10
10
(b) Now simplify log10 ( ):
27
Your solution
10
log10 ( ) =
27
Answer
10
log10 ( ) = log10 10 − log10 27 = 1 − log10 27
27
(c) Now simplify log10 1000:
Your solution
Answer
3
(d) Finally collect all the terms together from (a), (b), (c) and simplify:
Your solution
Answer
−1 − (1 − log10 27) + 3 = 1 + log10 27
HELM (2015): 23
Section 6.3: Logarithms
Task
Use your calculator to determine (a) log 10, (b) log 1000000, (c) log 0.1
Your solution
(a) log 10 = (b) log 1000000 = (c) log 0.1 =
Answer
(a) 1, (b) 6, (c) −1.
Each of the above results could be determined directly, without the use of a calculator. For example:
Since loga a = 1 then log 10 (≡ log10 10) = 1.
Since loga Ak = k loga A then log 1000000 = log 106 = 6 log 10 = 6.
A
Since loga ( ) = loga A − loga B and loga 1 = 0 and loga a = 0, then
B
1
log 0.1 = log( ) = log 1 − log(10) = −1
10
Task
Use your calculator to determine
(a) ln 29.42, (b) ln e, (c) ln 0.1
Your solution
(a) ln 29.42 = (b) ln e = (c) ln 0.1 =
Answer
(a) ln 29.42 = 3.38167, (b) ln e = 1, (c) ln 0.1 = −2.30258
24 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
Key Point 9
logp b
loga b =
logp a
Task
Use your calculator to determine the value of log21 7 using first base 10 then check
using base e.
Answer
log 7 ln 7
log21 7 = = 0.6391511 log21 7 = = 0.6391511
log 21 ln 21
HELM (2015): 25
Section 6.3: Logarithms
Example 5
Simplify the expression 10log x .
Solution
Let y = 10log x then take logs (to base 10) of both sides:
log y = log(10log x ) = (log x) log 10
where we have used: log Ak = k log A. However, since we are using logs to base 10 then log 10 = 1
and so
log y = log x implying y=x
Therefore, finally we conclude that
10log x = x
This is an important result true for logarithms of any base. It follows from the basic definition of the
logarithm.
Key Point 10
aloga x = x
Raising to the power and taking logs are inverse operations.
Exercises
1. Find the values of (a) log2 8 (b) log16 50 (c) ln 28
2. Simplify
26 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
The Logarithmic
Function 6.4
Introduction
In this Section we consider the logarithmic function y = loga x and examine its important charac-
teristics. We see that this function is only defined if x is a positive number. We also see that the
log function is the inverse of the exponential function and vice versa. We show, through numerous
examples, how equations involving logarithms and exponentials can be solved.
' $
• have knowledge of inverse functions
HELM (2015): 27
Section 6.4: The Logarithmic Function
1. The logarithmic function
In Section 6.3 we introduced the operation of taking logarithms which reverses the operation of
exponentiation.
If a > 0 and a 6= 1 then x = ay implies y = loga x
In this Section we consider the log function in more detail. We shall concentrate only on the functions
log x (i.e. to base 10) and ln x (i.e. to base e). The functions y = log x and y = ln x have similar
characteristics. We can never choose x as a negative number since 10y and ey are each always
positive. The graphs of y = log x and y = ln x are shown in Figure 5.
y 10 x
ex
ln x
log x
Example 6
1
Solve for the variable x: (a) 3 = 10x , (b) 10x/4 = log 3, (c) =4
17 − ex
Solution
(a) Here we take logs (to base 10 because of the term 10x ) of both sides to get
where we have used the general property that loga Ak = k loga A and the specific property
that log 10 = 1. Hence x = log 3 or, in numerical form, x = 0.47712 to 5 d.p.
28 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
Solution (contd.)
(b) The approach used in (a) is used here. Take logs of both sides: log(10x/4 ) = log(log 3)
x
that is log 10 = log(log 3) = log(0.4771212) = −0.3213712
4
So, since log 10 = 1, we have x = 4(−0.3213712) = −1.28549 to 5 d.p.
(c) Here we simplify the expression before taking logs.
1
=4 implies 1 = 4(17 − ex )
17 − ex
or 4ex = 4(17) − 1 = 67 so ex = 16.75. Now taking natural logs of both sides
(because of the presence of the ex term) we have:
Task
Solve the equation (ex )2 = 50
Answer √
(ex )2 = 50 implies ex = 50 = 7.071068. Here we have taken the positive value for the square
root since we know that exponential functions are always positive.
Answer
ex = 7.071068 implies x = ln(7.071068) = 1.95601 to 5 d.p.
HELM (2015): 29
Section 6.4: The Logarithmic Function
Task
Solve the equation e2x = 17ex
Answer
e2x
x
= 17 implies e2x−x = 17 so ex = 17
e
Now complete the solution for x:
Your solution
ex = 17 implies x =
Answer
x = ln(17) = 2.8332133
Example 7
Find x if 10x − 5 + 6(10−x ) = 0
Solution
We first simplify this expression by multiplying through by 10x (to eliminate the term 10−x ):
10x (10x ) − 10x (5) + 10x (6(10−x )) = 0
or
(10x )2 − 5(10x ) + 6 = 0 since 10x (10−x ) = 100 = 1
We realise that this expression is a quadratic equation. Let us put y = 10x to give
y 2 − 5y + 6 = 0
Now, we can factorise to give
(y − 3)(y − 2) = 0 so that y = 3 or y = 2
For each of these values of y we obtain a separate value for x since y = 10x .
Case 1 If y = 3 then 3 = 10x implying x = log 3 = 0.4771212
Case 2 If y = 2 then 2 = 10x implying x = log 2 = 0.3010300
We conclude that the equation 10x − 5 + 6(10−x ) = 0 has two possible solutions for x: either
x = 0.4771212 or x = 0.3010300, to 7 d.p.
30 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
Task
Solve 2e2x − 7ex + 3 = 0.
First write this equation as a quadratic in the variable y = ex remembering that e2x ≡ (ex )2 :
Your solution
If y = ex then 2e2x − 7ex + 3 = 0 becomes
Answer
2y 2 − 7y + 3 = 0
Answer
1
(2y − 1)(y − 3) = 0 therefore y = or y = 3
2
Answer
x = −0.693147 or x = 1.0986123
Task
The temperature T , in degrees C, of a chemical reaction is given by the formula
T = 80e0.03t × t ≥ 0, where t is the time, in seconds.
Calculate the time taken for the temperature to reach 150◦ C .
Answer
ln(1.875)
150 = 80e0.03t ⇒ 1.875 = e0.03t ⇒ ln(1.875) = 0.03t ⇒ t=
0.03
This gives t = 20.95 to 2 d.p.
So the time is 21 seconds.
HELM (2015): 31
Section 6.4: The Logarithmic Function
Engineering Example 1
Arrhenius’ law
Introduction
Chemical reactions are very sensitive to temperature; normally, the rate of reaction increases as
temperature increases. For example, the corrosion of iron and the spoiling of food are more rapid
at higher temperatures. Chemically, the probability of collision between two molecules increases
with temperature, and an increased collision rate results in higher kinetic energy, thus increasing
the proportion of molecules that have the activation energy for the reaction, i.e. the minimum
energy required for a reaction to occur. Based upon his observations, the Swedish chemist, Svante
Arrhenius, proposed that the rate of a chemical reaction increases exponentially with temperature.
This relationship, now known as Arrhenius’ law, is written as
−Ea
k = k0 exp (1)
RT
where k is the reaction rate constant, k0 is the frequency factor, Ea is the activation energy, R is
the universal gas constant and T is the absolute temperature. Thus, the reaction rate constant, k,
depends on the quantities k0 and Ea , which characterise a given reaction, and are generally assumed
to be temperature independent.
Problem in words
In a laboratory, ethyl acetate is reacted with sodium hydroxide to investigate the reaction kinetics.
Calculate the frequency factor and activation energy of the reaction from Arrhenius’ Law, using the
experimental measurements of temperature and reaction rate constant in the table:
T 310 350
k 7.757192 110.9601
32 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
Task
The reaction
has a reaction rate constant of 1.0 × 10−10 s−1 at 300 K and activation energy of
111 kJ mol−1 = 111 000 J mol−1 . Use Arrhenius’ law to find the reaction rate
constant at a temperature of 273 K.
Your solution
HELM (2015): 33
Section 6.4: The Logarithmic Function
Answer
Rearranging Arrhenius’ equation gives
Ea
k0 = k exp
RT
Substituting the values gives k0 = 2.126 × 109 s−1
Now we use this value of k0 with Ea in Arrhenius’ equation (1) to find k at T = 273 K
−Ea
k = k0 exp = 1.226 × 10−12 s−1
RT
Task
For a chemical reaction with frequency factor k0 = 0.5 s−1 and ratio Ea /R = 800
K, use Arrhenius’ law to find the temperature at which the reaction rate constant
would be equal to 0.1 s−1 .
Your solution
Answer
Rearranging Equation (1)
k −Ea
= exp
k0 RT
Taking the natural logarithm of both sides
k −Ea
ln =
k0 RT
so that
−Ea Ea
T = =
R ln (k/k0 ) R ln (k0 /k)
Substituting the values gives T = 497 K
34 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
Example 8
Solve the equations
(a) cosh 3x = 1 (b) cosh 3x = 2 (c) 2 cosh2 x = 3 cosh 2x − 3
Solution
(a) From its graph we know that cosh x = 0 only when x = 0, so we need 3x = 0 which implies
x = 0.
e3x + e−3x
(b) cosh 3x = 2 implies =2 or e3x + e−3x − 4 = 0
2
Now multiply through by e (to eliminate the term e−3x ) to give
3x
1
e3x = 3.7321 implies x= ln 3.7321 = 0.439 to 3 d.p.
3
1
e3x = 0.26795 implies x= ln 0.26795 = −0.439 to 3 d.p.
3
(c) We first simplify this expression by using the identity: cosh 2x = 2 cosh2 −1. Thus the original
equation 2 cosh2 x = 3 cosh 2x − 3 becomes cosh 2x + 1 = 3 cosh 2x − 3 or, when written in terms
of exponentials:
e2x + e−2x e2x + e−2x
= 3( )−4
2 2
Multiplying through by 2e2x gives e4x + 1 = 3(e4x + 1) − 8e2x or, after simplifying:
e4x − 4e2x + 1 = 0
Writing y = e2x we easily obtain y 2 − 4y + 1 = 0 with solution (using the quadratic formula):
√
4 ± 16 − 4 √
y= =2± 3
2
√ √
If y = 2 + 3 then 2 + 3 = e2x implying x = 0.65848 to 5 d.p.
√ √
If y = 2 − 3 then 2 − 3 = e2x implying x = −0.65848 to 5 d.p.
HELM (2015): 35
Section 6.4: The Logarithmic Function
Task
Find the solution for x if tanh x = 0.5.
Your solution
tanh x =
Answer
ex − e−x e2x − 1
tanh x = =
ex + e−x e2x + 1
Now substitute into tanh x = 0.5:
Your solution
e2x − 1
tanh x = 0.5 implies = 0.5 so, on simplifying, e2x =
e2x + 1
Answer
e2x − 1 2x 1 2x e2x 3
2x
= 0.5 implies (e − 1) = (e + 1) so = so, finally, e2x = 3
e +1 2 2 2
Now complete your solution by finding x:
Your solution
e2x = 3 so x =
Answer
1
x = ln 3 = 0.549306
2
Alternatively, many calculators can directly calculate the inverse function tanh−1 . If you have such
a calculator then you can use the fact that
tanh x = 0.5 implies x = tanh−1 0.5 to obtain directly x = 0.549306
36 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
Example 9
Solve for x if 3 ln x + 4 log x = 1.
Solution
This has logs to two different bases. So we must first express each logarithm in terms of logs to the
same base, e say. From Key Point 8
ln x
log x =
ln 10
So 3 ln x + 4 log x = 1 becomes
ln x 4
3 ln x + 4 =1 or (3 + ) ln x = 1
ln 10 ln 10
ln 10 2.302585
leading to ln x = = = 0.211096 and so
3 ln 10 + 4 10.907755
x = e0.211096 = 1.2350311
Exercises
1
1. Solve for the variable x: (a) π = 10x (b) 10−x/2 = 3 (c) =4
17 − π x
2. Solve the equations
(a) e2x = 17ex , (b) e2x − 2ex − 6 = 0, (c) cosh x = 3.
Answers
1. (a) x = log π = 0.497
(b) −x/2 = log 3 and so x = −2 log 3 = −0.954
log 16.75 1.224
(c) 17 − π x = 0.25 so π x = 16.75 therefore x = = = 2.462
log π 0.497
2. (a) Take logs of both sides: 2x = ln 17 + x ∴ x = ln 17 = 2.833
√
(b) Let y = ex then y 2 − 2y − 6 = 0 therefore y = 1 ± 7 √(we cannot take the negative sign
since exponentials can never be negative). Thus x = ln(1 + 7) = 1.2936.
√
x −x 2x x x 6 ± 36 − 4 √
(c) e + e = 6 therefore e − 6e + 1 = 0 so e = =3± 8
2
√ √
We have, finally x = ln(3 + 8) = 1.7627 or x = ln(3 − 8) = −1.7627
HELM (2015): 37
Section 6.4: The Logarithmic Function
Introduction
This Section provides examples and tasks employing exponential functions and logarithmic functions,
such as growth and decay models which are important throughout science and engineering.
' $
• be familiar with the laws of logarithms
Before starting this Section you should . . . • be able to solve equations involving
logarithms and exponentials
&
%
38 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
1. Exponential increase
Task
(a) Look back at Section 6.2 to review the definitions of an exponential function
and the exponential function.
Your solution
Answer
(a) An exponential function has the form y = ax where a > 0. T he exponential function has
the form y = ex where e = 2.718282......
(b) It is stated that exponential functions are useful when modelling the shape of a hanging chain
or rope under the effect of gravity or for modelling exponential growth or decay.
We will look at a specific example of the exponential function used to model a population increase.
Task
Given that
P = 12e0.1t (0 ≤ t ≤ 25)
where P is the number in the population of a city in millions at time t in years
answer these questions.
(c) What does the model imply about values of P over time?
(d) What does the model predict for P when t = 10? Comment on this.
(d) What does the model predict for P when t = 25? Comment on this.
HELM (2015): 39
Section 6.5: Modelling Exercises
Your solution
(a)
(b)
(c)
(d)
(e)
Answer
(a) At t = 0, P = 12 which represents the initial population of 12 million. (Recall that e0 = 1.)
(b) The time interval during which the model is valid is stated as (0 ≤ t ≤ 25) so the model is
intended to apply for 25 years.
(c) This is exponential growth so P will increase from 12 million at an accelerating rate.
(d) P (10) = 12e1 ≈ 33 million. This is getting very large for a city but might be attainable in
10 years and just about sustainable.
Note that exponential population growth of the form P = P0 ekt means that as t becomes large and
positive, P becomes very large. Normally such a population model would be used to predict values
of P for t > 0, where t = 0 represents the present or some fixed time when the population is known.
In Figure 6, values of P are shown for t < 0. These correspond to extrapolation of the model into
the past. Note that as t becomes increasingly negative, P becomes very small but is never zero or
negative because ekt is positive for all values of t. The parameter k is called the instantaneous
fractional growth rate.
P
30
P = 12e0.1 t
25
20
15
10
10 5 0 5 10 t
40 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
For the model P = 12ekt we see that k = 0.1 is unrealistic, and more realistic values would be
k = 0.01 or k = 0.02. These would be similar but k=0.02 implies a faster growth for t > 0 than
k = 0.01. This is clear in the graphs for k = 0.01 and k = 0.02 in Figure 7. The functions are
plotted up to 200 years to emphasize the increasing difference as t increases.
P
500 P = 12e0.02 t
250
P = 12e0.01 t
t
0 50 100 150 200
HELM (2015): 41
Section 6.5: Modelling Exercises
Table 1: Rules for manipulating base e logarithms and exponentials
Number Rule Number Rule
1a ln(xy) = ln(x) + ln(y) 1b e × ey = ex+y
x
42 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
So, given some ‘population versus time’ data, for which you believe can be modelled by some version
of the exponential function, plot the natural logarithm of population against time. If the exponential
function is appropriate, the resulting data points should lie on or near a straight line. The slope of
the straight line will give an estimate for b and the intercept with the ln(P ) axis will give an estimate
for ln(a). You will have carried out a logarithmic transformation of the original data for P . We
say the original variation has been linearised.
A similar procedure will work also if any exponential function rather than the base e exponential
function is used. For example, suppose that we try to use the function
P = A × 2Bt (C ≤ t ≤ D),
where A and B are constant parameters to be derived from the given data. We can take natural
logarithms again to give
ln(P ) = ln(A × 2Bt ) (C ≤ t ≤ D).
Rule 1a from Table 1 then gives
ln(P ) = ln(A) + ln(2Bt ) (C ≤ t ≤ D).
Rule 3a then gives
ln(2Bt ) = Bt ln(2) = B ln(2) t
and so
ln(P ) = ln(A) + B ln(2) t (C ≤ t ≤ D).
Again we have a straight line graph with the same intercept as before, ln A, but this time with slope
B ln(2).
Task
The amount of money £M to which £1 grows after earning interest of 5% p.a.
for N years is worked out as
M = 1.05N
Find a linearised form of this equation.
Your solution
Answer
Take natural logarithms of both sides.
ln(M ) = ln(1.05N ).
Rule 3b gives
ln(M ) = N ln(1.05).
So a plot of ln(M ) against N would be a straight line passing through (0, 0) with slope ln(1.05).
HELM (2015): 43
Section 6.5: Modelling Exercises
The linearisation procedure also works if logarithms other than natural logarithms are used. We start
again with
P = A × 2Bt (C ≤ t ≤ D).
and will take logarithms to base 10 instead of natural logarithms. Table 2 presents the laws of
logarithms and indices (based on Key Point 8 page 22) interpreted for log10 .
Table 2: Rules for manipulating base 10 logarithms and exponentials
Task
(a) Write down the straight line function corresponding to taking logarithms of
the general exponential function
P = aebt (c ≤ t ≤ d)
Your solution
Answer
(a) log10 (P ) = log10 (a) + (b log10 (e))t (c ≤ t ≤ d)
It is not usually necessary to declare the subscript 10 when indicating logarithms to base 10. If you
meet the term ‘log’ it will probably imply “to the base 10”. In the remainder of this Section, the
subscript 10 is dropped where log10 is implied.
44 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
3. Exponential decrease
Consider the value, £D, of a car subject to depreciation, in terms of the age A years of the car. The
car was bought for £10500. The function
D = 10500e−0.25A (0 ≤ A ≤ 6)
could be considered appropriate on the ground that (a) D had a fixed value of £10500 when
A = 0, (b) D decreases as A increases and (c) D decreases faster when A is small than when A is
large. A plot of this function is shown in Figure 8.
12000
10000
8000
D pounds
6000
4000
2000 A years
0 1 2 3 4 5 6
Task
Produce the linearised model of D = 10500e−0.25A .
Your solution
Answer
ln D = ln 10500 + ln(e−0.25A )
so ln D = ln 10500 − 0.25A
HELM (2015): 45
Section 6.5: Modelling Exercises
Engineering Example 2
Introduction
The rate at which a quantity decays is important in many branches of engineering and science. A
particular example of this is exponential decay. Ideally the sound level in a room where there are
substantial contributions from reflections at the walls, floor and ceiling will decay exponentially once
the source of sound is stopped. The decay in the sound intensity is due to absorbtion of sound at the
room surfaces and air absorption although the latter is significant only when the room is very large.
The contributions from reflection are known as reverberation. A measurement of reverberation in
a room of known volume and surface area can be used to indicate the amount of absorption.
Problem in words
As part of an emergency test of the acoustics of a concert hall during an orchestral rehearsal,
consultants asked the principal trombone to play a single note at maximum volume. Once the sound
had reached its maximum intensity the player stopped and the sound intensity was measured for the
next 0.2 seconds at regular intervals of 0.02 seconds. The initial maximum intensity at time 0 was
1. The readings were as follows:
time 0 0.02 0.04 0.06 0.08 0.10 0.12 0.14 0.16 0.18 0.20
intensity 1 0.63 0.35 0.22 0.13 0.08 0.05 0.03 0.02 0.01 0.005
Draw a graph of intensity against time and, assuming that the relationship is exponential, find a
function which expresses the relationship between intensity and time.
Mathematical statement of problem
If the relationship is exponential then it will be a function of the form
I = I0 10kt
and a log-linear graph of the values should lie on a straight line. Therefore we can plot the values
and find the gradient and the intercept of the resulting straight-line graph in order to find the values
for I0 and k.
k is the gradient of the log-linear graph i.e.
change in log10 (intensity)
k=
change in time
and I0 is found from where the graph crosses the vertical axis log10 (I0 ) = c
Mathematical analysis
Figure 9(a) shows the graph of intensity against time.
46 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
Intensity Log(Intensity)
0 (0, 0)
−1
(0.2, −2.2)
−2
Figure 9: (a) Graph of sound intensity against time (b) Graph of log10 (intensity) against time
and a line fitted by eye to the data. The line goes through the points (0, 0) and (0.2, −2.2).
We can see that the second graph is approximately a straight line and therefore we can assume that
the relationship between the intensity and time is exponential and can be expressed as
I = I0 10kt .
The log10 of this gives
log10 (I) = log10 (I0 ) + kt.
From the graph (b) we can measure the gradient, k using
change in log10 (intensity)
k=
change in time
−2.2 − 0
giving k = = −11
0.2 − 0
The point at which it crosses the vertical axis gives
log10 (I0 ) = 0 ⇒ I0 = 100 = 1
Therefore the expression I = I0 10kt becomes
I = 10−11t
Interpretation
The data recorded for the sound intensity fit exponential decaying with time. We have used a
log-linear plot to obtain the approximate function:
I = 10−11t
HELM (2015): 47
Section 6.5: Modelling Exercises
4. Growth and decay to a limit
Consider a function intended to represent the speed of a parachutist after the opening of the parachute
where v m s−1 is the instantanous speed at time t s. An appropriate function is
v = 12 − 8e−1.25t (t ≥ 0),
We will look at some of the properties and modelling implications of this function. Consider first the
value of v when t = 0:
v = 12 − 8e0 = 12 − 8 = 4
This means the function predicts that the parachutist is moving at 4 m s−1 when the parachute
opens. Consider next the value of v when t is arbitrarily large. For such a value of t, 8e−1.25t would
be arbitrarily small, so v would be very close to the value 12. The modelling interpretation of this is
that eventually the speed becomes very close to a constant value, 12 m s−1 which will be maintained
until the parachutist lands.
The steady speed which is approached by the parachutist (or anything else falling against air resis-
tance) is called the terminal velocity. The parachute, of course, is designed to ensure that the
terminal velocity is sufficiently low (12 m s−1 in the specific case we have looked at here) to give a
reasonably gentle landing and avoid injury.
Now consider what happens as t increases from near zero. When t is near zero, the speed will be
near 4 m s−1 . The amount being subtracted from 12, through the term 8e−1.25t , is close to 8 because
e0 = 1. As t increases the value of 8e−1.25t decreases fairly rapidly at first and then more gradually
until v is very nearly 12. This is sketched in Figure 10. In fact v is never equal to 12 but gets
imperceptibly close as anyone would like as t increases. The value shown as a horizontal broken line
in Figure 10 is called an asymptotic limit for v.
15
10
1
v (m s )
0
3 5
t (s)
0 1 2 4
48 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
y approaches the value a. This value represents the limit, towards which y grows. If a function of
this general form was being used to create a model of population growth to a limit, then a would
represent the limiting population, and a − b would represent the starting population.
There are three parameters, a, b, and k in the general form. Knowledge of the initial and limiting
population only gives two pieces of information. A value for the population at some non-zero time is
needed also to evaluate the third parameter k.
As an example we will obtain a function to describe a food-limited bacterial culture that has 300
cells when first counted, has 600 cells after 30 minutes but seems to have approached a limit of 4000
cells after 18 hours.
We start by assuming the general form of growth-to-a-limit function for the bacteria population, with
time measured in hours
P = a − be−kt (0 ≤ t ≤ 18).
When t = 0 (the start of counting), P = 300. Since the general form gives P = a − b when t = 0,
this means that
a − b = 300.
The limit of P as t gets large, according to the general form P = a − b−kt , is a, so a = 4000. From
this and the value of a − b, we deduce that b = 3700. Finally, we use the information that P = 600
when t (measuring time in hours) = 0.5. Substitution in the general form gives
600 = 4000 − 3700e−0.5k
3400 = 3700e−0.5k
3400
= e−0.5k
3700
Taking natural logs of both sides:
3400 34
ln = −0.5k so k = −2 ln( ) = 0.1691
3700 37
Note, as a check, that k turns out to be positive as required for a growth-to-a-limit behaviour. Finally
the required function may be written
P = 4000 − 3700e−0.1691t (0 ≤ t ≤ 18).
As a check we should substitute t = 18 in this equation. The result is P = 3824 which is close to
the required value of 4000.
HELM (2015): 49
Section 6.5: Modelling Exercises
Task
Find a function that could be used to model the growth of a population that
has a value of 3000 when counts start, reaches a value of 6000 after 1 year but
approaches a limit of 12000 after a period of 10 years.
Answer
Start with
P = a − be−kt (0 ≤ t ≤ 10).
where P is the number of members of the population at time t years. The given data requires that
a is 12000 and that a − b = 3000, so b = 9000.
The corresponding curve must pass through (t = 1, P = 6000) so
6000 = 12000 − 9000e−k
t
−k 12000 − 6000 2 −kt −k t 2
e = = so e = (e ) = (using Rule 3b, Table 1, page 42)
9000 3 3
So the population function is
t
2
P = 12000 − 9000 (0 ≤ t ≤ 10).
3
Note that P (10) according to this formula is approximately 11840, which is reasonably close to the
required value of 12000.
50 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
Your solution
Answer
P
12000
10000
5000
0 t (s)
0 2 4 6 8 10
Engineering Example 3
Introduction
Engineers are concerned with using and intercepting many kinds of wave forms including electromag-
netic, elastic and acoustic waves. In many situations the intensity of these signals decreases with
the square of the distance. This is known as the inverse square law. The power received from a
beacon antenna is expected to conform to the inverse square law with distance.
Problem in words
Check whether the data in the table below confirms that the measured power obeys this behaviour
with distance.
Power received, W 0.393 0.092 0.042 0.021 0.013 0.008
Distance from antenna, m 1 2 3 4 5 6
HELM (2015): 51
Section 6.5: Modelling Exercises
Mathematical statement of problem
A
Represent power by P and distance by r. To show that the data fit the function P = where
r2
A is a constant, plot log(P ) against log(r) (or plot the ‘raw’ data on log-log axes) and check
Mathematical analysis
The values corresponding to log(P ) and log(r) are
log(P ) -0.428 -1.041 -1.399 -1.653 -1.851 -2.012
log(r) 0 0.301 0.499 0.602 0.694 0.778
These are plotted in Figure 11 and it is clear that they lie close to a straight line.
− 0.5
− 1
log(P ) − 1.5
− 2
− 2.5 log(r)
0 0.2 0.4 0.6 0.8
Figure 11
The slope of a line through the first and third points can be found from
−1.399 − (−0.428)
= −2.035
0.499 − 0
The negative value means that the line slopes downwards for increasing r. It would have been possible
to use any pair of points to obtain a suitable line but note that the last point is least ‘in line’ with
A
the others. Taking logarithms of the equation P = n gives log(P ) = log(A) − n log(r)
r
The inverse square law corresponds to n = 2. In this case the data yield n = 2.035 ≈ 2. Where
log(r) = 0, log(P ) = log(A). This means that the intercept of the line with the log(P ) axis gives
the value of log(A) = −0.428. So A = 10 − 0.428 = 0.393.
Interpretation
If the power decreases with distance according to the inverse square law, then the slope of the line
should be −2. The calculated value of n = 2.035 is sufficiently close to confirm the inverse square
law. The values of A and n calculated from the data imply that P varies with r according to
0.4
P =
r2
The slope of the line on a log-log plot is a little larger than −2. Moreover the points at 5 m and 6 m
range fall below the line so there may be additional attenuation of the power with distance compared
with predictions of the inverse square law.
52 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
Exercises
1. Sketch the graphs of (a) y = et (b) y = et + 3 (c) y = e−t (d) y = e−t − 1
16 y e2t
14 2et
12
10
8
et
6
4
2
2 1 0 1 2 t
State in words how the graphs of y = 2et and y = e2t relate to the graph of y = et .
y
y y
1 2
−1 0 t 4
4
−1 y = −e−t y = 4 − e−t 2 y = 4 − 3e−t
3
2 −1 0 1 2 t
−2 −2
1
−4
−3
t
−1 0 1 2
Use the above graphs to help you to sketch graphs of (a) y = 5 − e−t (b) y = 5 − 2e−t
4. (a) The graph (a) in the figure below has an equation of the form
HELM (2015): 53
Section 6.5: Modelling Exercises
y y
2 -------------------------- 5
t t
(a) (b)
y
y
6 --------------------------------
3
2
1 ------------------------------
t t
(c) (d)
Answers
1.
y
et + 3
e−t et
e−t − 1
4
1
1
t
2 1 0 2
2. (a) y = 2et is the same shape as y = et but with all y values doubled.
(b) y = e2t is much steeper than y = et for t > 0 and much flatter for t < 0. Both pass
through (0, 1). Note that y = e2t = (et )2 so each value of y = e2t is the square of the
corresponding value of y = et .
y 5 − et y
6
4
4 − 3 et
2 3
3. (a) t (b) t
54 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
6. Logarithmic relationships
Experimental psychology is concerned with observing and measuring human response to various
stimuli. In particular, sensations of light, colour, sound, taste, touch and muscular tension are
produced when an external stimulus acts on the associated sense. A nineteenth century German,
Ernst Weber, conducted experiments involving sensations of heat, light and sound and associated
stimuli. Weber measured the response of subjects, in a laboratory setting, to input stimuli measured
in terms of energy or some other physical attribute and discovered that:
(1) No sensation is felt until the stimulus reaches a certain value, known as the threshold value.
(2) After this threshold is reached an increase in stimulus produces an increase in sensation.
(3) This increase in sensation occurs at a diminishing rate as the stimulus is increased.
Task
(a) Do Weber’s results suggest a linear or non-linear relationship between sensa-
tion and stimulus? Sketch a graph of sensation against stimulus according
to Weber’s results.
Answer
(a) Non-linearity is required by observation (3).
10
S 5
0
0 2 4 6 8 10
P
(b) An exponential-type of growth is not appropriate for a model consistent with these experimen-
tal results, since we need a diminishing rate of growth in sensation as the stimulus increases.
A growth-to-a-limit type of function is not appropriate since the data, at least over the range
of Weber’s experiments, do not suggest that there is a limit to the sensation with continuing
increase in stimulus; only that the increase in sensation occurs more and more slowly.
A late nineteenth century German scientist, Gustav Fechner, studied Weber’s results. Fechner sug-
gested that an appropriate function modelling Weber’s findings would be logarithmic. He suggested
that the variation in sensation (S) with the stimulus input (P ) is modelled by
HELM (2015): 55
Section 6.5: Modelling Exercises
S = A log(P/T ) (0 < T ≤ 1)
where T represents the threshold of stimulus input below which there is no sensation and A is a
constant. Note that when P = T, log(P/T ) = log(1) = 0, so this function is consistent with item
(1) of Weber’s results. Recall also that log means logarithm to base 10, so when P = 10T, S =
A log(10) = A. When P = 100T, S = A log(100) = 2A. The logarithmic function predicts that
a tenfold increase in the stimulus input from T to 10T will result in the same change in sensation
as a further tenfold increase in stimulus input to 100T . Each tenfold change is stimulus results in
a doubling of sensation. So, although sensation is predicted to increase with stimulus, the stimulus
has to increase at a faster and faster rate (i.e. exponentially) to achieve a given change in sensation.
These points are consistent with items (2) and (3) of Weber’s findings. Fechner’s suggestion, that
the logarithmic function is an appropriate one for a model of the relationship between sensation and
stimulus, seems reasonable. Note that the logarithmic function suggested by Weber is not defined
for zero stimulus but we are only interested in the model at and above the threshold stimulus, i.e.
for values of the logarithm equal to and above zero. Note also that the logarithmic function is useful
for looking at changes in sensation relative to stimulus values other than the threshold stimulus.
According to Rule 2a in Table 2 on page 42, Fechner’s sensation function may be written
S = A log(P/T ) = A[log(P ) − log(T )] (P ≥ T > 0).
Suppose that the sensation has the value S1 at P1 and S2 at P2 , so that
S1 = A[log(P1 ) − log(T )] (P1 ≥ T > 0),
and
S2 = A[log(P2 ) − log(T )] (P2 ≥ T > 0).
If we subtract the first of these two equations from the second, we get
S2 − S1 = A[log(P2 ) − log(P1 )] = A log(P2 /P1 ),
where Rule 2a of Table 2 has been used again for the last step. According to this form of equation,
the change in sensation between two stimuli values depends on the ratio of the stimuli values.
We start with
S = A log(P/T ) (1 ≥ T > 0).
Divide both sides by A:
S P
= log (1 ≥ T > 0).
A T
‘Undo’ the logarithm on both sides by raising 10 to the power of each side:
P
10S/A = 10log(P/T ) = (1 ≥ T > 0), using Rule 4b of Table 2.
T
So P = T × 10S/A (1 ≥ T > 0) which is an exponential relationship between stimulus and
sensation.
A logarithmic relationship between sensation and stimulus therefore implies an exponential rela-
tionship between stimulus and sensation. The relationship may be written in two different forms with
the variables playing opposite roles in the two functions.
The logarithmic relationship between sensation and stimulus is known as the Weber-Fechner Law of
Sensation. The idea that a mathematical function could describe our sensations was startling when
56 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
first propounded. Indeed it may seem quite amazing to you now. Moreover it doesn’t always work.
Nevertheless the idea has been quite fruitful. Out of it has come much quantitative experimental
psychology of interest to sound engineers. For example, it relates to the sensation of the loudness of
sound. Sound level is expressed on a logarithmic scale. At a frequency of 1 kHz an increase of 10
dB corresponds to a doubling of loudness.
Task
x
Given a relationship between y and x of the form y = 3 log( ) (x ≥ 4), find
4
the relationship between x and y.
Your solution
Answer
One way of answering is to compare with the example preceding this task. We have y in place of
S, x in place of P , 3 in place of A, 4 in place of T . So it is possible to write down immediately
x = 4 × 10y/3 (y ≥ 0)
Alternatively we can manipulate the given expression algebraically.
Starting with y = 3 log(x/4), divide both sides by 3 to give y/3 = log(x/4).
Raise 10 to the power of each side to eliminate the log, so that 10y/3 = x/4.
Multiply both sides by 4 and rearrange, to obtain x = 4 × 10y/3 , as before.
The associated range is the result of the fact that x ≥ 4, so 10y/3 ≥ 1, so y/3 > 0 which means
y > 0.
HELM (2015): 57
Section 6.5: Modelling Exercises
Introduction
In this Section we employ our knowledge of logarithms to simplify plotting the relation between one
variable and another. In particular we consider those situations in which one of the variables requires
scaling because the range of its data values is very large in comparison to the range of the other
variable.
We will only employ logarithms to base 10. To aid the plotting process we explain how log-linear
graph paper is used. Unlike ordinary graph paper, one of the axes is scaled using logarithmic values
instead of the values themselves. By this process, values which range from (say) 1 to 1,000,000 are
scaled down to range over the values 0 to 6. We do not discuss log-log graphs, in which both data
sets require scaling, as the reader will easily be able to adapt the technique described here to those
situations.
' $
• be familiar with the laws of logarithms
Before starting this Section you should . . . • be able to solve equations involving
logarithms
&
%
• decide when to use log-linear graph paper
Learning Outcomes
• use log-linear graph paper to analyse
On completion you should be able to . . . functions of the form y = kapx
58 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
Example 10
x 1.0 1.1 1.2 1.3 1.4 1.5 1.6
Plot the following values (x, y)
y 1.0 2.14 4.3 8.16 14.8 25.6 42.9
Estimate the value of y when x = 1.35.
Solution
If we attempt to plot these values on ordinary graph paper in which both vertical and horizontal
scales are linear we find the large range in the y-values presents a problem. The values near the
lower end are bunched together and interpolating to find the value of y when x = 1.35 is difficult.
y
42.9
25.6
14.8
8.16
4.3
1.0 1.6 x
Figure 12
HELM (2015): 59
Section 6.6: Log-linear Graphs
Example 11
To alleviate the scaling problem in Example 10 employ logarithms to scale down
x 1 1.1 1.2 1.3 1.4 1.5 1.6
the y-values, giving:
log y 0 0.33 0.63 0.97 1.17 1.41 1.63
Plot these values and estimate the value of y when x = 1.35.
Solution
log y
1.63
1.41
1.17
0.91
0.63
0.33
x
1.0 1.2 1.4 1.6
Figure 13
This approach has spaced-out the vertical values allowing a much easier assessment for the value
of y at x = 1.35. From the graph we see that at x = 1.35 the ‘log y’ value is approximately 1.05.
Taking log y = 1.05 and inverting we get
y = 101.05 = 11.22
60 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
An example of 2-cycle log-linear graph paper is shown in Figure 14. We see that the horizontal scale
is linear. The vertical scale is divided by lines denoted by 1,2,3,. . . ,10,20,30,. . . ,100. In the first
cycle each of the horizontal blocks (separated by a slightly thicker line) is also divided according to
a log-linear scale; so, for example, in the range 1 → 2 we have 9 horizontal lines representing the
values 1.1, 1.2, . . . , 1.9. These subdivisions have been repeated (appropriately scaled) in blocks 2-3,
3-4, 4-5, 5-6, 6-7. The subdivisions have been omitted from blocks 7-8, 8-9, 9-10 for reasons of
clarity. On this graph paper, we have noted the positions of A : (1, 2), B : (1, 23), C : (4, 23), D :
(6, 2.5), E : (3, 61).
HELM (2015): 61
Section 6.6: Log-linear Graphs
100
90
80
70
60 E
50
40
second cycle
30
B C
20
logarithmic scale
10
9
8
7
6
4
First cycle
3
D
2 A
1
1 2 3 4 5 6 7
linear scale
Figure 14
62 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
Task
On the 2-cycle log-linear graph paper (below) locate the positions of the points
F : (2, 21), G : (2, 51), H : (5, 3.5). [The correct positions are shown on the
graph on next page.]
log y
1
9
8
7
6
1
9
8
7
6
1 x
HELM (2015): 63
Section 6.6: Log-linear Graphs
100
90
80
70
60
50 G
40
second cycle
30
F
20
logarithmic scale
10
9
8
7
6
4
H
First cycle
1
1 2 3 4 5 6 7
linear scale
64 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
Example 12
It is thought that the relationship between two variables x, y is exponential
y = kax
An experiment is performed and the following pairs of data values (x, y) were
obtained
x 1 2 3 4 5
y 5.9 12 26 49 96
Verify that the relation y = kax is valid by plotting values on log-linear paper to
obtain a set of points lying on a straight line. Estimate the values of k, a.
Solution
First we rearrange the relation y = kax by taking logarithms (to base 10).
∴ log y = log(kax ) = log k + x log a
So, if we define a new variable Y ≡ log y then the relationship between Y and x will be linear −
its graph (on log-linear paper) should be a straight line. The vertical intercept of this line is log k
and the gradient of the line is log a. Each of these can be obtained from the graph and the values
of a, k inferred.
When using log-linear graphs, the reader should keep in mind that, on the vertical axis, the values
are not as written but the logarithms of those values.
We have plotted the points and drawn a straight line (as best we can) through them - see Figure
15. (We will see in a later Workbook ( 31) how we might improve on this subjective approach
to fitting straight lines to data points). The line intersects the vertical axis at a value log(3.13) and
the gradient of the line is
log 96 − log 3.13 log(96/3.13) log 30.67
= = = 0.297
5−0 5 5
But the intercept is log k so
log k = log 3.13 implying k = 3.13
and the gradient is log a so
log a = 0.297 implying a = 100.297 = 1.98
We conclude that the relation between the x, y variables is well modelled by the
relation y = 3.13(1.98)x . If the points did not lie more-or-less on a straight line then we would
conclude that the relationship was not of the form y = kax .
HELM (2015): 65
Section 6.6: Log-linear Graphs
log y
100
90
80
70
60
50
40
30
20
10
9
8
7
6
1 x
1 2 3 4 5 6 7
Figure 15
66 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
Task
Using a log-linear graph estimate the values of k, a if it is assumed
that y = ka−2x and the data values connecting x, y are:
x −0.3 −0.2 −0.1 0.0 0.1 0.2 0.3
y 190 155 123 100 80 63 52
First take logs of the relation y = ka−2x and introduce an appropriate new variable:
Your solution
y = ka−2x implies log y = log(ka−2x ) =
introduce Y =
log y = log k − 2x log a. Let Y = log y then Y = log k + x(−2 log a). We therefore expect a linear
relation between Y and x (i.e. on log-linear paper).
Now determine how many cycles are required in your log-linear paper:
Your solution
The range of values of y is 140; from 5.2 × 10 to 1.9 × 102 . So 2-cycle log-linear paper is needed.
Now plot the data values directly onto log-linear paper (supplied on the next page) and decide
whether the relation y = ka−2x is acceptable:
Your solution
It is acceptable. On plotting the points a straight line fits the data well which is what we expect
from Y = log k + x(−2 log a).
Now, using knowledge of the intercept and the gradient, find the values of k, a:
Your solution
See the graph two pages further on. k ≈ 94 (intercept on x = 0 line). The gradient is
log 235 − log 52 log(235/52) 0.655
=− =− = −0.935
−0.4 − 0.3 0.7 0.7
But the gradient is −2 log a. Thus − 2 log a = −0.935 which implies a = 100.468 = 2.93
HELM (2015): 67
Section 6.6: Log-linear Graphs
log y
1000
900
800
700
600
500
400
300
200
100
90
80
70
60
50
40
30
20
10
0.3
x
−0.3 −0.2 −0.1 0.0 0.1 0.2
68 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
log y
1000
900
800
700
600
500
400
300
200
100
90
80
70
60
50
40
30
20
10
0.0 0.1 0.2 0.3
x
−0.3 −0.2 −0.1
HELM (2015): 69
Section 6.6: Log-linear Graphs
Use the log-linear graph sheets supplied on the following pages for these Exercises.
Exercises
1. Estimate the values of k and a if y = kax represents the following set of data values:
x 0.5 1 2 3 4
y 5.93 8.8 19.36 42.59 93.70
2. Estimate the values of k and a if the relation y = k(a)−x is a good representation for the data
values:
x 2 2.5 3 3.5 4
y 7.9 3.6 1.6 0.7 0.3
Answers
1. k ≈ 4 a ≈ 2.2
2. k ≈ 200 a ≈ 5
70 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
log y
1
9
8
7
6
1
9
8
7
6
1 x
HELM (2015): 71
Section 6.6: Log-linear Graphs
log y
1
9
8
7
6
1
9
8
7
6
1 x
72 HELM (2015):
Workbook 6: Exponential and Logarithmic Functions
®
log y
1
9
8
7
6
1
9
8
7
6
1 x
HELM (2015): 73
Section 6.6: Log-linear Graphs
NOTES
Index for Workbook 6