Week 1 Functions and Inverse functions
Week 1 Functions and Inverse functions
WEEK 1
Look at the workshop questions in preparation for the first workshop in Week 2
(attending less than 80% of workshops results in a fail grade).
Learning outcomes
Define and graph the following functions: trigonometric and inverse trigonometric
functions, hyperbolic and inverse hyperbolic functions.
The idea of a function is fundamental to much of mathematics; it’s a notion that enables
understanding of mathematics and of many applications. Functions are about connec-
tions; sometimes they are viewed as just formulas, but often they tell a story.
There are some functions that are particularly important in engineering. Some of these
functions will be revised and others introduced.
x
y
D R D R D R
An example of a function Not a function Not a function
(a) y = −6x + 1,
(b) x = y 2 − 1.
Solution. Here the context is real numbers, so D = R = R, the set of real numbers.
The equation y = −6x + 1 defines y as a function of x because it gives exactly one real
number for every value of x.
However, x = y 2 − 1 does not define a function; for example, x = 3 has two different
values of y associated to it (y = 2 and y = −2), not a unique value of y.
The set of all possible values of the independent variable (or elements of the set D) is
called the domain of the function, and the set of all possible values of the dependent
variable (or elements of the set R) is called the range of the function.
Solution. Domain: R, that is, all real values of x, −∞ < x < ∞, or (−∞, ∞).
Range: R, all values of y, that is, −∞ < y < ∞, or (−∞, ∞).
√
Example 1.3. Give the domain and range of the function y = 1 − x.
2
Example 1.4. Give the domain and range of the function y = .
x2 − 1
2 Inverse functions
The inverse of a function f is a function, usually written as f −1 , which “undoes” or
“reverses” f . Only some functions have an inverse.
D R D R
A one-to-one function Not a one-to-one function
Example 2.1. The function y = 21 x2 , shown on the left, is not a one-to-one function
because there are different values of x with the same function value. For example, 2 6= −2,
but f (2) = f (−2) = 2.
2 y = 21 x2 2 y = 21 x + 1
1 1
−2 −1 0 1 2 −2 −1 0 1 2
Solution. Note that the domain is given by x ≥ 0. In Step 2 this makes it possible to
take the square root.
Step 1. Swap x and y to obtain x√= y 2 .
Step 2. Make y the subject: y = x.
√
Therefore the inverse is f −1 (x) = x.
Definition. Functions f (x) and g(x) are an inverse pair if and only if
f (g(x)) = g(f (x)) = x.
x+1
Example 2.4. Show that f (x) = 2x − 1 and g(x) = are an inverse pair.
2
2x + 1 1 − 3x
Example 2.5. Show that f (x) = and g(x) = are an inverse pair.
x+3 x−2
1. ax × ay = ax+y
ax
2. = ax−y
ay
1
3. a−x =
ax
4. (ax )y = axy
5. (ab)x = ax bx
6. a0 = 1
7. a1 = a.
2 +3
Example 3.1. Solve 2x = 16 for x.
√ 2 8x
Example 3.2. Solve ( 2)x = for x.
4
The function f (x) = bkx is an exponential function with base b. The domain of these
functions is R, all real x. The range is positive real numbers because f (x) > 0.
The graphs of some exponential functions are shown in the diagrams.
y = 3x y = 3−x
y = 10x y = 2x y = 2−x y = 10−x
y = ( 32 )x y = ( 23 )x
4 4
2 2
−2 0 2 4 −4 −2 0 2
When b > 1, f (x) = bx rises more steeply as b gets larger.
The number e. The number e is irrational,
e ≈ 2.7182818284590 . . .
and it is one of the most important mathematical constants. It has many uses in engi-
neering and science.
n
1
One way of defining e is lim 1 + = e.
n→∞ n
Definition. The base b logarithmic function y = logb x is the inverse of the base b
exponential function y = bx where b > 0, b 6= 1. This is the same as saying that
y = bx y=x
2 y = loge x = ln x
1
y = log10 x
1 2 e3 4
y = logb x
1 −1
−2
1
The two most common logarithmic functions are f (x) = log10 x, often written as just
f (x) = log x (the common logarithm), and f (x) = loge x = ln x (the natural logarithm).
The graph of these functions is in the diagram above right.
Example 3.4. The expression is each row of the table are equivalent. Fill in the table.
3. logb b = 1
4. logb 1 = 0
5. logb x1 = − logb x
6. logb xn = n logb x
Example 3.11. The pH scale for measuring the acidity of a solution is a base 10 loga-
rithmic scale. The pH value (hydrogen potential) of the solution is the common logarithm
of the reciprocal of the solution’s hydronium ion concentration, [H3 O+ ]:
1
pH = log10 = − log10 [H3 O+ ].
[H3 O+ ]
The hydronium ion concentration is measured in moles per litre. The cerebrospinal fluid
in the brain has a hydronium ion concentration of about [H3 O+ ] = 4.8 × 10−8 moles per
litre. What is the pH of this fluid?
Example 3.12. If I is the intensity of sound in watts per square metre, the decibel
level of the sound is given by
Sound level = 10 log10 I × 1012 dB
Expanding gives
log10 I + log10 1012 + 1 = log10 k + log10 I + log10 1012 ,
then simplifying gives
1 = log10 k =⇒ k = 101 = 10.
Therefore, the intensity I must be multiplied by a factor of 10.
Solution. (a) R = 8.3 and R = log II0 , so
I I
8.3 = log =⇒ 108.3 = =⇒ I = 108.3 × I0 .
I0 I0
The earthquake was 108.3 times more intense than the comparison intensity I0 .
(b) For the 1999 western Turkey earthquake R = 7.8 = log II0 . Therefore this earth-
quake had intensity 107.8 × I0 .
Comparing the intensities of both earthquakes,
108.3
7.8
= 100.5 ≈ 3.2.
10
So, the 1906 San Francisco earthquake was about 3.2 times more intense than the 1999
western Turkey earthquake.
Example 3.15. The electric current I (in amps A) in a circuit containing a resistor
measuring R Ω, an inductor measuring L H, and a voltage source measuring E V is given
by
E Rt
I= 1 − e− L .
R
Find t if I = 0.750, E = 6.00, R = 4.50, and L = 2.50.
4.5t
Solution. Substituting the given values into the equation gives 0.75 = 6
4.5
1 − e− 2.5 .
4.5t 4.5t
Simplifying gives 0.75×4.5
6
= 1 − e− 2.5 =⇒ 1 − 0.75×4.5
6
= e− 2.5 .
0.75×4.5
= − 4.5t
Take logs to base e of both sides: ln 1 − 6 2.5
.
2.5 × ln 1 − 0.75×4.5
6
Therefore t = ≈ 0.459 seconds.
−4.5
The two most common logarithms are those to base 10, called common logarithms (on
your calculator as “log”), and those to base e, called the natural logarithms and written
as “ln” or“loge ”. To calculate logs to any other base for example, the binary logarithm
which has base 2 and is used in computer science, we need to change the base to 10 or
to e.
Recall that if u = logb x, then bu = x.
Taking logs to base a of both sides of bu = x gives
Therefore,
loga x
logb x = .
loga b
log 8 ln 8
Solution. log3 8 = ≈ 1.89 (log means log10 ). Alternatively, log3 8 = ≈ 1.89.
log 3 ln 3
ln 7 log 7
Solution. log20 7 = ≈ 0.65. Or, log20 7 = ≈ 0.65.
ln 20 log 20
Challenge Problem. The police discover a murder victim at 6:00 am. The body
temperature of the victim is measured then and found to be 25◦ C. A doctor arrives on
the scene 40 minutes later and measures the body temperature again, finding it to be
22◦ C. The room temperature remains constant at 15◦ C.
If the cooling process is modelled by the equation θ = θ0 e−kt where θ is the excess
temperature over the room temperature, estimate the time of death of the victim.
Example 4.2. Conversion between degrees and radians; fill in the table.
Degrees Radians
180◦ π
30◦ π
6
45◦ π
4
60◦ π
3
90◦ π
2
sin(a + b) = sin a cos b + cos a sin b cos(a + b) = cos a cos b − sin a sin b
1 + cos 2θ 1 − cos 2θ
cos2 θ = sin2 θ =
2 2
sin 2θ = 2 sin θ cos θ cos 2θ = cos2 θ − sin2 θ
You need to know your complementary angle results, even and odd functions, Pythagorean
identities, angle sum and double angle formulae, etc. Also, angles of any magnitude
(remember “All Stations to Central”?), Sine Rule, Cosine Rule, and formulae for the area
of a triangle, for arc lengths and areas of sectors and segments.
y y
4 4
2 y = tan(x) 2 y = sec(x)
x x
−3π −π −π π π 3π 2π −3π −π −π π π 3π 2π
2 2 2 2 2 2 2 2
−2 −2
−4 −4
y = tan x domain: x 6= ± π2 , ± 3π
2
,... y = sec x domain: x 6= ± π2 , ± 3π
2
,...
range: −∞ < y < ∞ range: y ≤ −1 and 1 ≤ y
period: π period: 2π
y y
4 4
2 2
y = cosec(x) x y = cot(x) x
−3π −π −π π π 3π 2π −3π −π −π π π 3π 2π
2 2 2 2 2 2 2 2
−2 −2
−4 −4
Consider the graph of the sine function. Clearly, this function is not a one-to-one function.
However, if we restrict the domain to −π2
≤ x ≤ π2 , then this is a one-to-one function, so
on this domain sin x has an inverse, the inverse sine function, written as sin−1 x.
y
To the right is the graph of x = sin y (the dashed and the solid
parts). 3π
2
The graph of y = sin−1 x is the solid blue section. It has domain π
−1 ≤ x ≤ 1 and range − π2 ≤ y ≤ π2 .
π
The graph of y = sin−1 x is part of the graph of x = sin y. 2
x
Note that sin−1 x is sometimes written as arcsin x.
−1 1
Note also that sin−1 x is not the reciprocal of sin x. −π
2
For −π
2
≤ y ≤ π2 the statements “y = sin−1 x” and “x = sin y”
are equivalent. −π
None of the trig functions are one-to-one, so like the sine function, none of these has an
inverse. In each case, like the sine function, the domain is restricted to obtain a one-to-one
function. The one-to-one functions each has an inverse.
The function y = cos x with domain 0 ≤ x ≤ π has an inverse, which is written y =
cos−1 x = arccos x.
For 0 < y < π the statements “y = cos−1 x” and “x = cos y are equivalent.
The function y = tan x with domain − π2 < x < π
2
has an inverse, which is written
y = tan−1 x = arctan x.
For − π2 < y < π
2
the statements “y = tan−1 x” and “x = tan y are equivalent.
The graphs of all the inverse trig functions are shown in the next section, together with
the domain and range of each function.
y = cos−1 (x) x x
−1 1 −1 1
−π −π
2 2
π y π y
x x
−3 −2 −1 1 2 3 −3 −2 −1 1 2 3
−π −π
2 2
π y π y
π π
2 2 y = cot−1 (x)
−1
y = cosec (x)
x x
−3 −2 −1 1 2 3 −3 −2 −1 1 2 3
−π −π
2 2
√
Example 4.5. Given that α = sin−1 2
3
, find cosec α, cos α, sec α, tan α, and cot α.
Solution.
π
y= − 3 sin−1 x
4
π
3 sin−1 x = − y
4
−1 π y
sin x = −
12 3
π y
x = sin − .
12 3
5 Hyperbolic Functions
Hyperbolic functions are closely related to trigonometric functions, are very useful includ-
ing for some calculus problems and appear in many applications.
Definition. The hyperbolic sine and hyperbolic cosine functions, denoted by sinh (pro-
nounced “shine”) and cosh (pronounced “cosh”) respectively, are defined by
ex − e−x ex + e−x
sinh x = and cosh x = .
2 2
Example 5.1. Using physics and mathematics, it can be shown that the equation of the
curve formed
x by a cable suspended between two points is the hyperbolic cosine function
y = a cosh .
a
The images show a chain and a necklace, both of which have the shape of a hyperbolic
cosine function.
x
The graph shows y = a cosh for a = 0.5, 1, and 2.
a
7 y
6
5
4 y = 2 cosh( x2 )
3
2 y = cosh(x)
1 1
y= 2 cosh(2x) x
−6 −5 −4 −3 −2 −1 1 2 3 4 5 6
ex − e−x
sinh x =
2
ex + e−x
cosh x =
2
sinh x ex − e−x
tanh x = = x
cosh x e + e−x
cosh x ex + e−x
coth x = = x
sinh x e − e−x
1 2
sech x = = x
cosh x e + e−x
1 2
cosech x = = x .
sinh x e − e−x
y y
3 3
2 y = tanh(x) 2 y = sech(x)
1 1
x x
−4 −3 −2 −1 1 2 3 4 −4 −3 −2 −1 1 2 3 4
−1 −1
y y
3 3
2 2
y = cosech(x)
1 1
x y = coth(x) x
−4 −3 −2 −1 1 2 3 4 −4 −3 −2 −1 1 2 3 4
−1 −1
−2 −2
−3 −3
The graphs seen so far might make one think that y = cosh x is much like a parabola.
However, if we zoom out, as in the graph below, we see that y = cosh x has a very different
shape to a parabola.
5,000 y
y = 100x2
4,000
3,000
2,000
1,000
y = cosh x
x
−10 −5 5 10
From the graphs, you can see that the hyperbolic cosine function, for large values of x,
increases much faster than a parabola.
1. cosh2 x − sinh2 x = 1
2. 1 − tanh2 x = sech2 x
3. coth2 x − 1 = cosech2 x
Example 5.2. Verify the first identity, that is, cosh2 x − sinh2 x = 1.
Example 5.3. Prove the second identity, that is, prove that 1 − tanh2 x = sech2 x.
The identity can also be proved using the definitions of tanh and sech.
2
e − e−x e − 2 + e−2x
x 2x
2
1 − tanh x = 1 − =1−
ex + e−x e2x + 2 + e−2x
(e2x + 2 + e−2x ) − (e2x − 2 + e−2x )
=
e2x + 2 + e−2x
2
4 2
= x −x 2
= x −x
= sech2 x.
(e + e ) e +e
Solution. We will prove the result for x + y; the proof for x − y is similar.
Solution. Using the identities sinh 2x = 2 sinh x cosh x and cosh 2x = cosh2 x + sinh2 x,
we have
4x
Example 5.6. Show that sech (ln 2x) = .
4x2 + 1
y = sinh−1 x,
y = cosh−1 x, x≥1
−1
y = tanh x, −1 < x < 1
−1
y = cosech x, x 6= 0
y = sech−1 x, 0<x≤1
−1
y = coth x, |x| > 1.
The hyperbolic functions with restricted domains are shown below dashed, the graphs of
the inverses, y = sinh−1 x, y = cosh−1 x, y = tanh−1 x, y = sech−1 x, y = cosech−1 x and
y = coth−1 x are shown in blue. A function and its inverse are reflections of each other in
the line y = x (shown in yellow).
y y
3 3
2 y = cosh−1 (x) 2
1 1
y = sinh−1 (x) x x
−4 −3 −2 −1 1 2 3 4 −4 −3 −2 −1 1 2 3 4
−1 −1
−2 −2
−3 −3
y y = tanh−1 (x) y
3 3
2 2 y = sech−1 (x)
1 1
x x
−4 −3 −2 −1 1 2 3 4 −4 −3 −2 −1 1 2 3 4
−1 −1
−2 −2
y y
3 3
2 2
1 1
y = cosec−1 (x) x y = cot−1 (x) x
−4 −3 −2 −1 1 2 3 4 −4 −3 −2 −1 1 2 3 4
−1 −1
−2 −2
−3 −3
Using algebra, such as that in Example 1., each inverse hyperbolic function can be rewrit-
ten in terms of natural logarithms.
√
1. sinh−1 x = ln x +
x2 + 1
√
2. cosh−1 x = ln x + x2 − 1 , x ≥ 1
3. tanh−1 x = 12 ln 1+x
1−x
, −1 < x < 1
√
−1 1+ 1−x2
4. sech x = ln x
, 0<x<1
√
−1 1 1+x2
5. cosech x = ln x
+ |x|
, x 6= 0
6. coth−1 x = 21 ln x+1
x−1
, |x| > 1.
√
Example 5.7. Show that sinh−1 x = ln x +
x2 + 1 .
ey − e−y
Solution. Let y = sinh−1 x, so x = sinh y = . Hence,
2
1
2x = ey − e−y = ey − y
e
2xey = e2y − 1
e2y − 2xey − 1 = 0.
Solving this quadratic equation in ey :
√
2x ± 4x2 + 4 √
ey = = x ± x2 + 1.
2
√
Taking the positive root (since ey > 0) we get y = ln x + x2 + 1 .
−1 1 1+x
Example 5.8. Show that tanh x = ln , −1 < x < 1.
2 1−x
ey − e−y
Solution. Let y = tanh−1 x, so x = tanh y = . Hence
ey + e−y
x(ey + e−y ) = ey − e−y
xey + xe−y = ey − e−y
ey (1 − x) = e−y (1 + x)
1+x
e2y = .
1−x
Taking logs
1+x 1 1+x
2y = ln =⇒ y = ln .
1−x 2 1−x
−1 5
Example 5.9. Express cosh in terms of natural logarithms.
3
−1 5
Example 5.10. Express sinh − in terms of natural logarithms.
12
−1 3
Example 5.11. Write sech in terms of natural logarithms.
5
1. Define the terms domain and range for the function y = f (x).
5. Define e and ln x.
9. Give the definitions of the inverse sine and cosine functions. What are their do-
mains?
10. Give the definitions of the hyperbolic sine and cosine functions.
6. The magnitudes (visual brightness), m1 and m2 , of two stars are related to their
(actual) brightness, b1 and b2 , by the equation m1 − m2 = 2.5 log10 ( bb12 ). Solve for b2 .
11. Through how many radians does a Ferris wheel with 18 seats move when loading
passengers on the first 12 seats, assuming the loading process started at seat 1?
16. Determine all solutions of the sinh x = 4. Express your answer as a natural log.
Answers
19
1. 10
2. ln 10
ln 3
3. ln 3−ln 2
√
1± 1+4e
4. x = 2
5. 30
m2 −m1
6. b2 = b1 10 2.5
7. T = 90e−0.23t
8. Approximately 2086.
√
1 − x2
9.
x
√
3
10.
2
11π
11.
9
12. (Sketch required)
13. d = A cos(2πf t)
15. Proof
√
16. ln(4 + 17)