Functions I: Supporting Australian Mathematics Project
Functions I: Supporting Australian Mathematics Project
2
3
4
6 12
11
7 10
8 9
Functions: Module 5
Functions I
Functions I – A guide for teachers (Years 11–12)
© 2013 Education Services Australia Ltd, except where indicated otherwise. You may
copy, distribute and adapt this material free of charge for non-commercial educational
purposes, provided you retain all copyright notices and acknowledgements.
Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Set theory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
The concept of a function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Domains and ranges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Function notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Finding domains and ranges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Links forward . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Functions between sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Functions between finite sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
More examples of functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Answers to exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Functions I
Assumed knowledge
• Familiarity with elementary set theory, as discussed in the TIMES module Sets and
Venn diagrams (Years 7–8).
• Familiarity with the algebraic techniques described in the TIMES module Formulas
(Years 9–10).
Motivation
The expression y = x 2 , which links the two pronumerals x and y, can be thought of in
several different ways.
In the early years of school, we seek pairs of values, such as (x, y) = (3, 9), which satisfy the
equation. These ordered pairs determine a graph. In this case, the graph is the standard
parabola.
y
y = x2
x
0
A guide for teachers – Years 11 and 12 • {5}
A formula is an equation relating different quantities using algebra. So y = x 2 is also a
formula. In fact, y = x 2 is an example of a function, in the sense that each value of x
uniquely determines a value of y.
In this module, we will study the concept of a function. The formula A = πr 2 gives A
as a function of r . The formula V = πr 2 h expresses V as a function of the two variables
r and h. In this module, we will only consider functions of one variable, such as the
polynomial
A clear understanding of the concept of a function and a familiarity with function nota-
tion are important for the study of calculus. The use of functions and function notation
in calculus can be seen in the module Introduction to differential calculus.
Content
Set theory
It is not possible to discuss functions sensibly without using the language and ideas of
elementary set theory. In particular, we will use the following ideas from the module Sets
and Venn diagrams (Years 7–8):
Sets must be well defined, and if sets are defined using mathematical notation there are
rarely any problems. A set is well defined if it is possible to determine whether or not a
given object belongs to that set or not. The set of all words in the English language is not
well defined.
Exercise 1
Think of several reasons why ‘the set of all English words’ is not well defined.
{6} • Functions I
Further notation
Set-builder notation is useful for describing subsets of the real numbers. For example,
consider the set defined by
S = { x ∈ R | −5 ≤ x ≤ 5 }
or, equivalently,
S = { x ∈ R : −5 ≤ x ≤ 5 }.
This can be read as ‘S is the set of all x belonging to R such that −5 ≤ x ≤ 5’. In this
construction:
–5 5
Union and intersection are familiar operations on sets. Another useful operation on sets
is set difference. For two sets A and B , we define
A \ B = { x ∈ A | x ∉ B }.
That is, A \ B is the set of all elements of A that are not in B . We can read A \ B as ‘A take
away B ’ or ‘A minus B ’. For example, the set of all non-zero real numbers can be written
as { x ∈ R | x 6= 0 } or, more simply, as R \ {0}.
A × B = { (a, b) | a ∈ A and b ∈ B }.
That is, A × B is the set of all ordered pairs (a, b) with a in A and b in B . So, for example,
R × R = { (x, y) | x ∈ R and y ∈ R }.
We write R × R as R2 , which explains the use of the notation R2 to describe the coordinate
plane. This was introduced in the module Coordinate geometry.
A guide for teachers – Years 11 and 12 • {7}
Note. In this module and many others:
We begin with six examples in which both x and y are real numbers:
• y = x +2 • y = 3x 2 − 7 • y = sin x
1
• y = 2x • y= • y = log2 x.
x
We draw their graphs in the usual way, with the x-axis horizontal and the y-axis vertical.
y y y
y=x+2 y = 3x2 – 7 1 y = sin x
2
x x x
–2 0 0 0
–360 360
–1
–7
y y y
y = 2x y = 1x y = log2 x
1
x x x
0 0 0 1
The first four functions are similar in that their formulas ‘work’ for all real numbers x.
1
For y = , we clearly need x 6= 0, and for y = log2 x, we need x > 0. We will discuss this
x
further in the section Domains and ranges.
{8} • Functions I
What is a relation?
There are many naturally occurring formulas whose graphs are not the graphs of func-
tions. For example:
y y
5
x2 + y2 = 25 x2 y2
3 16 + 9 =1
x x
–5 0 5 –4 0 4
–3
–5
y y x2 – y2 = 1
16 9
y2 = x2
–4 4
x x
0 0
The first graph is a circle, the second is an ellipse, the third is two straight lines, and the
fourth is a hyperbola. In each example, there are values of x for which there are two
values of y. So these are not graphs of functions.
It turns out that the most useful concept to help describe and understand this issue is
very general.
Definition
A relation on the real numbers is any subset of R × R. That is, a relation on the reals is a
set of ordered pairs of real numbers.
Thus the four graphs above and the graphs of the six example functions are all relations
on the real numbers. Indeed, the graph of any function is a relation. Formally speaking,
a function is a relation such that, for each x, there is at most one ordered pair (x, y).
A guide for teachers – Years 11 and 12 • {9}
Example
• The relation R 1 = { (x, y) | x = y } is the line itself. Note that, for each x, there is only
one value of y.
y
x=y
x
0
• The relation R 2 = { (x, y) | x < y } consists of all points strictly above the line y = x.
Note that, for each x, there are infinitely many values of y.
x<y
x
0
• The relation R 3 = { (x, y) | x > y } consists of all points strictly below the line y = x.
x
0
x>y
{10} • Functions I
We can generalise the previous example to any line in the plane, as follows.
Example
R 1 = { (x, y) | ax + b y + c = 0 }
R 2 = { (x, y) | ax + b y + c < 0 }
R 3 = { (x, y) | ax + b y + c > 0 }.
Example
Consider the circle x 2 + y 2 = r 2 , for some r > 0. There are three relations closely con-
nected with this circle.
R 1 = { (x, y) | x 2 + y 2 = r 2 }.
R 2 = { (x, y) | x 2 + y 2 < r 2 }.
R 3 = { (x, y) | x 2 + y 2 > r 2 }.
We have seen the graphs of several naturally described functions. A sensible question to
ask, for a given graph in R2 , is whether it is the graph of a function.
The vertical-line test gives a simple geometric test for answering this question:
If we can draw a vertical line x = c that cuts the graph more than once, then
the graph is not the graph of a function.
A guide for teachers – Years 11 and 12 • {11}
Returning to the graph of x 2 + y 2 = 25, we see that the vertical line x = 3 meets the graph
at both (3, 4) and (3, −4).
y x2 + y2 = 25
5
(3,4)
x
–5 0 3 5
(3,–4)
–5
Hence, the graph of x 2 + y 2 = 25 is not the graph of a function. The line x = 6 does not
meet the graph at all, but this does not matter. In general:
There is a natural way in which we can use the relation x 2 + y 2 = 25 to construct two
functions. Solving x 2 + y 2 = 25 for y gives
y 2 = 25 − x 2
p p
y = 25 − x 2 or y = − 25 − x 2 .
The graph of the first of these functions is the ‘top half’ of the circle, and the graph of the
second is the ‘bottom half’ of the circle.
y y
5 y = √25 – x2 y = – √25 – x2
x x
–5 0 5 –5 0 5
–5
{12} • Functions I
Example
x2 y 2
+ = 1.
16 9
Find two functions whose graphs together include all points on the ellipse.
Solution
Solve for y:
x2 y 2
+ =1
16 9
y2 x2
= 1−
9 16
9¡
y2 = 16 − x 2
¢
16
3p
y =± 16 − x 2 .
4
Hence,
3p 3p
y1 = 16 − x 2 and y2 = − 16 − x 2
4 4
are two such functions.
y y
3 y1 = 34 √16 – x 2 y2 = – 34 √16 – x 2
x x
–4 0 4 –4 0 4
–3
Note that the two graphs overlap in the points (4, 0) and (−4, 0). This is not an issue.
A guide for teachers – Years 11 and 12 • {13}
Domains and ranges
• y = x +2 • y = 3x 2 − 7 • y = sin x
1
• y = 2x • y= • y = log2 x.
x
For the first four functions, we can take x to be any real number. That is, we can substi-
tute any x-value into the formula to obtain a unique y-value. We therefore say that the
natural domain of the functions y = x + 2, y = 3x 2 − 7, y = sin x and y = 2x is the set of
1
all real numbers, denoted by R. On the other hand, for the function y = , we cannot
x
substitute x = 0; the set of allowable values of x is all non-zero reals.
Definition
The set of allowable values of x is called the natural domain of the function.
The natural domain is sometimes called the maximum domain; it is often simply called
the domain of the function.
For example:
1
• The function y = has domain { x ∈ R | x 6= 0 }, which is also written as R \ {0}.
x
In a similar way, we can ask: What are all possible values of y, as x varies over the domain
of the function? This set of values is called the range of the function.
The domains and ranges for our six standard examples are given in the following table.
Example functions
y = x +2 R R
y = 3x 2 − 7 R { y : y ≥ −7 }
y = sin x R { y : −1 ≤ y ≤ 1 }
y = 2x R { y : y > 0}
1
y= x { x : x 6= 0 } { y : y 6= 0 }
y = log2 x {x : x > 0} R
{14} • Functions I
Interval notation
In geometry, an interval is the set of all points between two points A and B on a line.
B
A
Sometimes the interval includes A and B , in which case it is called closed. If it contains
neither A nor B , we call it an open interval.
A = {x : 3 ≤ x ≤ 5} and B = { t : 3 ≤ t ≤ 5 }.
Clearly A = B , and the variables x and t are irrelevant! For this reason (and others), we
use the notation [3, 5] to represent the set of all real numbers between 3 and 5, including
3 and 5. So
A = B = [3, 5].
We call [3, 5] a closed interval, since it includes the endpoints. We use parentheses to
denote an open interval, not including the endpoints, so
There are also half-open intervals (3, 5] and [3, 5). We use the symbols ∞ and −∞ to
define unbounded intervals:
[a,b] = {x : a ≤ x ≤ b}
a b
[a,b) = {x : a ≤ x < b}
a b
(a,b] = {x : a < x ≤ b}
a b
(–∞,a) = {x : x < a}
a
(–∞,a] = {x : x ≤ a}
a
(b,∞) = {x : x > b}
b
[b,∞) = {x : x ≥ b}
b
(–∞,∞) = ℝ
Of course, the intervals [a, ∞), (a, ∞), (−∞, b] and (−∞, b) could also have been included.
Notice that
We will often use interval notation to describe domains. For example, the domain of
p
y = log2 x is (0, ∞), and the domain of y = x is [0, ∞).
{16} • Functions I
Sometimes it is more convenient not to use intervals. For example, the domain of the
function
x −1
y= , for x ∉ {2, 3},
(x − 2)(x − 3)
is written most simply as R \ {2, 3}. (A quotient of two polynomials is called a rational
function.)
Function notation
A function is a rule for transforming an object into another object. The object you start
with is called the input, and comes from some set called the domain. What you end up
with is called the output, and it comes from some set called the codomain. There is a
standard and very convenient notation for functions.
f (x) = x 2 .
This is read as ‘ f of x is equal to x 2 ’. To calculate the value of the function for some
input a, we simply substitute a for x in the formula for f . For example, for this function
we have
We are now distinguishing between the function f (x) and its graph y = f (x). A function
can be given by a rule such as
x 3 sin x
f (x) = , for x 6= 2.
(x − 2)2
We can easily calculate values of this function, even though drawing its graph may be
quite difficult. This new way of writing functions is called function notation, and was
introduced to mathematics by Leonhard Euler in 1735. It is now completely standard.
Exercise 2
x2
For the function f (x) = + x, find
2
a f (3)
b f (a + h).
In general, a function should be specified by giving both the rule and the domain. It is not
essential to draw the graph of the function, but very often the sensible first step in solving
an algebraic problem or a problem using calculus is to draw the graph of the function.
A guide for teachers – Years 11 and 12 • {17}
Non-standard functions
In the late 19th century, when these ideas were being seriously considered for the first
time, examples such as the following were introduced:
1 if x ∈ Q,
f (x) =
0 if x ∈ R \ Q.
It is not possible to draw the graph of the function, except perhaps as follows.
1 y = f(x)
x
0
At first, this type of example was dismissed by many mathematicians. But such exam-
ples turned out to be very important in finding the correct definitions of continuity and
differentiability in advanced calculus (known as analysis).
The natural domain of a function is the set of all allowable input values. We will call it the
domain of the function f , denoted by domain( f ). The range of the function f is the set
of all possible output values:
For a particular function f (x), determining domain( f ) and range( f ) is sometimes quite
complicated.
{18} • Functions I
Example
Solution
4
y = 4 – x2
x
–2 0 2
Example
7
What is the domain and range of f (x) = − ?
x
Solution
y 7
y=– x
x
0
domain( f ) = { x ∈ R | x 6= 0 } = R \ {0}
range( f ) = { y ∈ R | y 6= 0 } = R \ {0}.
A guide for teachers – Years 11 and 12 • {19}
Example
Solution
y
y = 7𝘹 – 5
log 5
α = log 7
0
x
α
–4
y = –5
Example
p
What is the domain and range of f (x) = 16 − x 2 ?
Solution
We have
p
y= 16 − x 2 ⇐⇒ y 2 = 16 − x 2 and y ≥ 0
⇐⇒ x 2 + y 2 = 16 and y ≥ 0.
So the graph of f (x) is the top half of the circle with centre the origin and radius 4.
y
4 y =√16 – x 2
–4 4
x
0
Example
p
Find the domain and range of f (x) = 1 − 2x.
Solution
f (x) is defined ⇐⇒ 1 − 2x ≥ 0
⇐⇒ x ≤ 12 .
So domain( f ) = (−∞, 21 ].
p
Every non-negative real number can be obtained as a value of f (x) = 1 − 2x. Thus
range( f ) = [0, ∞).
⇐⇒ x = 21 (1 − y 2 ) and y ≥ 0.
y = √1 – 2x
(0,1)
x
0 ( 12 , 0)
Exercise 3
Find the domain and range of
p
a f (x) = (x − 1)(x − 2)
p
b g (x) = 1 − 2 sin 2x.
A guide for teachers – Years 11 and 12 • {21}
Example
1
Find the domain and range of f (x) = x 3 . Sketch the graph of y = f (x).
Solution
Clearly domain( f ) = R, since all real numbers have a cube root. As x → ∞, f (x) → ∞
and as x → −∞, f (x) → −∞. Since f is continuous, it follows that range( f ) = R.
1
We have y = x 3 if and only if x = y 3 . The graph of y = x 3 is as follows.
y = x3
x
0
1
The graph of x = y 3 , or y = x 3 , is obtained by reflecting in the line y = x.
y
1
y = x3
0 x
{22} • Functions I
Exercise 4
What is the domain and range of f (x) = 3 tan 2x? Sketch the graph of y = 3 tan 2x.
Example
Solution
By drawing the graph of y = |x|, we see that domain( f ) = R and range( f ) = [0, ∞).
y = |x|
x
0
Exercise 5
Let bxc denote the largest integer less than or equal to x. So, for example, bπc = 3.
a Let f (x) = bxc. Sketch the graph of y = f (x). Find domain( f ) and range( f ).
b Let g (x) = x − bxc. Sketch the graph of y = g (x). Find domain(g ) and range(g ).
Links forward
In the Content sections of this module, we have dealt exclusively with real functions. In
the 20th century, the concept of a function was generalised to functions from any set to
any other set. This has turned out to be a very powerful idea.
A guide for teachers – Years 11 and 12 • {23}
Definition
Let A and B be any two sets. A function f from A to B is a rule which maps each element
x in A to an element f (x) in B . A common notation is
f : A→B
f : x 7→ f (x)
Notes.
4 There is a difficulty with domains. For example, consider the real function
1
f (x) = .
x −2
One approach is define A = { x ∈ R : x 6= 2 }, and then define
1
f : A → R, f (x) = .
x −2
A difficulty with this approach is that the precise domain must be known for the func-
tion to be properly specified.
In the next example, we use N to denote the set of all positive integers (also called the set
of natural numbers). That is, N = {1, 2, 3, . . . }.
Example
a, a + d , a + 2d , a + 3d , . . .
a, ar, ar 2 , ar 3 , . . .
Exercise 6
Classify each of the following sequences as arithmetic, geometric or neither.
a 2, 5, 8, 11, 14, . . .
b 3, −6, 12, −24, 48, . . .
c 1, 0.1, 0.01, 0.001, 0.0001, . . .
d 1, 1, 2, 3, 5, 8, 13, . . .
e The sequence of decimal approximations to π:
Example
Consider the function f : R → R given by f (x) = bxc. The range of f is Z. Hence f is also
a function from R to Z.
Exercise 7
Determine the domain, codomain and range of f : N → N given by f (n) = 2n + 1.
If A and B are finite sets, then a function from A to B can be specified by listing all ele-
ments in A and their images in B . For example, if
A = {a 1 , a 2 , a 3 , a 4 } and B = {b 1 , b 2 , b 3 , b 4 , b 5 },
f (a 1 ) = b 4 , f (a 2 ) = b 1 , f (a 3 ) = b 5 and f (a 4 ) = b 5 .
A B
• a1 • b3 • b4
• a2
• a3 • b5 • b2
• a4 • b1
Exercise 8
Suppose |A| = m and |B | = n. How many functions are there from A to B ?
Let Σ be a finite set of symbols. In computer science, this is often called an alphabet. For
example, we could take Σ = {a, b, c, . . . , z} or Σ = {a, b}.
A word over Σ is a finite string of characters from Σ. For example, if Σ = {a, b}, then the
following are examples of words over Σ:
The empty word, which has no characters, is denoted by ε. Let Σ∗ be the set of all words
over Σ.
The length of a word is the number of characters in the string. Thus, for example,
The function l induces a natural partition on the set of all words over Σ. Define Σi to be
all words of length i , that is,
Σi = { w ∈ Σ∗ : l (w) = i }.
There are four basic binary operations involving the real numbers:
3
3 + 2 = 5, 3 − 2 = 1, 3 × 2 = 6, 3÷2 = .
2
All of these can be thought of as functions. For example,
+ : R × R → R, (a, b) 7→ a + b.
Consider a finite sample space E = {a 1 , a 2 , a 3 , . . . , a n }. Let P (E ) denote the set of all sub-
sets of E , that is, the set of all events. (The notation P is used because ‘the set of all
subsets of S’ is called the power set of S.) Then we can assign probabilities to events by a
function
Pr : P (E ) → [0, 1]
History
Euler wrote six books on calculus between 1748 and 1770. All six were written in Latin,
the lingua franca of scholars of the 18th century. There were two volumes entitled In-
troduction to analysis of the infinite, one volume on Methods of differential calculus,
and three volumes on Methods of the integral calculus. Euler made functions the cen-
tral idea in his books. This was a radical move, since both Newton and Leibniz in their
development of the calculus had dealt with curves. The idea of a function was not fully
developed in these books, since Euler restricted a function to mean a formula. However,
he did consider functions of a complex variable as well as functions of a real variable. He
also considered divergent series as well as convergent series.
Euler divided the set of functions into two basic classes: algebraic and transcendental.
Algebraic functions are formed from variables and constants by addition, subtraction,
multiplication, division, raising to an integer power, and extraction of roots. For Euler,
the transcendental functions were limited to trigonometric, exponential and logarithmic
functions.
Euler made extensive use of infinite series, infinite products and infinite continued frac-
tions. As an example of the depth of his thinking, he was the first mathematician to
seriously investigate the Riemann zeta function, defined by
∞ 1
ζ(s) =
X
s
.
n=1 n
In the 19th century, the centrality of the complex numbers to mathematics, and in par-
ticular to both algebra and analysis (calculus), was realised. Functions of a complex vari-
able were introduced, and it was shown (essentially) that any function given by a formula
A guide for teachers – Years 11 and 12 • {27}
such as z 2 or sin z, where z = x +i y, could be both integrated and differentiated. This ma-
terial is typically taught in second-year university courses. (Reference: R. V. Churchill and
J. W. Brown, Complex variables and applications, 5th edition, McGraw-Hill, 1990.)
In the 20th century, the idea of a function was generalised considerably further, leading
to two branches of modern analysis called harmonic analysis and functional analysis.
Answers to exercises
Exercise 1
• Are ‘diagonalise’ and ‘diagonalize’ two words or the same word?
• Is the phrase ‘deja vu’ two English words? What about ‘café’?
• Can we restrict English words to the words defined in the Oxford English Dictionary?
Is the word ‘gunna’ defined? Was ‘internet’ in the Oxford English Dictionary in 1970?
Exercise 2
x2
Let f (x) = + x.
2
32 15
a f (3) = +3 = .
2 2
(a + h)2
b f (a + h) = + a + h.
2
Exercise 3
p
a Let f (x) = (x − 1)(x − 2). Then f (x) is defined if and only if (x − 1)(x − 2) ≥ 0. So we
sketch the graph of y = (x − 1)(x − 2).
x
–1 0 1 2 3 4
y = (x – 1)(x – 2)
⇐⇒ 2 sin 2x ≤ 1
⇐⇒ sin 2x ≤ 21 .
y
y = sin2x
1
x
– 0 3 2
2 2 2
–1
1
Now solve sin 2x = 2 for x:
π 5π
2x = + 2kπ or 2x = + 2kπ, for some k ∈ Z
6 6
π 5π
x= + kπ or x= + kπ, for some k ∈ Z.
12 12
h 5π 13π i
1
It follows that sin 2x ≤ 2 if and only if x belongs to the interval , or one of
12 12
its translates by a multiple of π. Hence,
[ h 5π 13π i
domain(g ) = + kπ, + kπ .
k∈Z 12 12
p p p
The maximum value of g (x) is 1 − 2 × (−1) = 3. Hence, range(g ) = [0, 3].
Exercise 4
π
Let f (x) = 3 tan 2x. The domain of tan x is all real numbers except odd multiples of 2,
and the range of tan x is all reals. Hence,
π π 3π
domain( f ) = R \ {. . . , − 3π
4 ,− 4 , 4 , 4 ,...}
and range( f ) = R.
A guide for teachers – Years 11 and 12 • {29}
y y = 3tan (2x)
0
x
–3 – – 3
4 2 4 4 2 4
Exercise 5
a
y
f(x) = ⌊x⌋
2
x
–2 –1 0 1 2 3
–1
–2
b
y
1 g(x) = x – ⌊x⌋
x
–1 0 1 2
Exercise 7
domain( f ) = codomain( f ) = N and range( f ) = {3, 5, 7, 9, 11, . . . }.
Exercise 8
Assume A = {a 1 , a 2 , . . . , a m } and B = {b 1 , b 2 , . . . , b n }. If we are defining a function from A
to B , then there are n choices for where to map a 1 , and then there are n choices for where
to map a 2 , and so on. Thus the total number of functions is n m .
0 1 2 3 4 5 6 7 8 9 10 11 12