MATH1031 Mathematics For Life Sciences: Term 3, 2021
MATH1031 Mathematics For Life Sciences: Term 3, 2021
Term 3, 2021
Functions
This lecture we will review some basic ideas about functions, and look at
some common types of functions:
Uses of functions
Some important definitions
Graphing functions
Piecemeal functions1
Periodic functions
1
more commonly called piecewise functions
Joshua Capel (UNSW) Functions 2 / 36
Uses of functions
Examples:
herbivory and population viability
ambient carbon dioxide concentration and temperature
etc . . .
The concept of functions is fundamental to such investigations.
A function
y = f (x)
is a relationship between the quantities x and y with the property that for
each value of the independent variable x there corresponds exactly one
value of the dependent variable y .
y
y = f (x)
What values of the variables are you considering? Usually (and for all of
this lecture) we consider real values, R.
Note
∞ is never included in the interval.
The domain of a function y = f (x) is the set of all x-values for which the
function is defined.
√
Example. Find Domain(f ) where f (x) = 2x − 8.
The square root of a negative number is undefined, so 2x − 8 has to be
non-negative.
We require
2x − 8 > 0
2x >8
x >4
1
f (x) = √ .
2x − 8
Hence, x 6= 4 as well.
We require x > 4.
So Domain(f ) = (4, ∞).
The range of a function y = f (x) is the set of all y -values for which the
function is defined. i.e. the range is the set of all y -values produced when
the whole domain is considered.
4
The x-intercept, when y = 0, is
1 2 b
x =− .
2
b
x
−1 1
−2
Absolute Value
y = |x|
y
Axis of Symmetry
2
x
−2 −1 1 2
−1
Reciprocal
1
y=
x
y
3
2
1
x
−3 −2 −1 1 2 3
−1
−2
−3
Circle
x2 + y2 = r2
Technically this is not a function, but a relation – there are two possible
values of y for −r < x < r .
y
r
x
−r r
−r
x-intercepts: f (x) = 0:
x − 1 = 0, we have x = 1, a simple root at 1.
x 2 = 0, we have x = 0, a double root at 0.
(x + 2)3 = 0, we have x = −2, a triple root at −2.
So the function curve must pass through (-2,0), (0,0) and (1,0).
b b b
x
−2 −1 1
b
−2
If k < −1, the graph is flipped upside down and stretched vertically.
6
y = 2f (x)
4
y = f (x)
2
y = 12 f (x)
x
−2 −1 1
−2
−4
−6
6
5
4
3 y = f (x)
2
1
x
y= − 12 f (x) −2 −1 −1 1
−2
y = −f (x)
−3
−4
−5
y = −2f (x) −6
x Scaling
A function
y = f (kx), k>0
stretches or compresses the function f (x) along the x coordinate.
y =f 1
y = f (x)
2x y = f (2x)
x
−5 −4 −3 −2 −1 1 2
−2
x
−4 −3 −2 −1 1 2
−2
y = f (x) + 1 4
y = f (x) 3
2
y = f (x) − 1
1
x
−2 −1 −1 1
−2
−3
−4
x
−2 4
−3
Sketch:
1 y = −f (x)
2 y = 2f (x)
3 y = f (2x)
4 y = f (x − 1)
5 y = f (x) + 1
Joshua Capel (UNSW) Functions 25 / 36
Joshua Capel (UNSW) Functions 26 / 36
Even and Odd Functions
A function f (x) is said to be even if f (−x) = f (x).
Graphs of even functions are symmetric about the y -axis. For example,
y
f (x)
Example.
1 Sketch the function
to the domain −3 6 x 6 3.
3 Sketch an odd function that would extend
to the domain −3 6 x 6 3.
These are functions that repeat. The shortest length of the segment that
repeats is called the period.
Many real world quantities, e.g. sea levels, temperature etc., repeat in a
cyclical manner.
The graph of f (x) stays the same when it is shifted T units horizontally.
The smallest value of T for which this is true is called the period of the
function.
Note!
You do not have to use the variable names x and y , nor the function name
f.
These are just labels. We can call them anything we like and the principle
remains the same:
e.g. p = g (q) = q 3 + 3q 2 + 4