SIT194 - Functions (Lecture Notes)
SIT194 - Functions (Lecture Notes)
1 / 33
Basic concepts
I Consider only real numbers x and y, i.e. x, y ∈ R1 .
I Each pair of values (x, y) represent a point on the Cartesian
plane2 .
I An equation involving x and y describe a set of points on
the Cartesian plane which describes a curve (which could
be a straight line). Any point will have its (x, y) values
satisfying the equation. Any point with (x, y) values NOT
satisfying the equation is NOT on the curve.
I A relation is a set of values (x, y) described by the equation,
i.e. a curve is also a relation.
1
The symbol R denotes all possible negative and positive number, i.e.
−3.2 or 5.9. The notation ∈ is from the concepts of sets so that x ∈ R means
that x belong to the set of all real numbers, i.e. x is a real number.
2
A review of coordinate geometry is required if you have forgotten the
concepts there.
2 / 33
An example of a relation is given by the equation
x2 + y2 = 9 = 32
This equation describes a curve with the set of points on the
circle of radius 3. Any (x, y) value on the circle satisfies the
equation, e.g. (x, y) = (3, 0) satisfies the equation. The curve is
shown in the diagram below:
y = f (x)
The thing inside the bracket, i.e. x, is the object the function
f operates or acts on to give the output y.
I Pictorially, a function is a relation for which any vertical
line cuts the curve at most once.
4 / 33
Q: Does the equation of circle x2 + y2 = 9 = 32 describe a function?
Why? Hint: Do the vertical line test for the diagram of the circle
shown above.
Definitions:
I The DOMAIN of f is the set of all possible x values that the
function operates on.
I The RANGE of f is the set of all possible y values, i.e.
outputs.
5 / 33
Example: if y = f (x) = x2 + 1 (parabola)
6 / 33
√
Example: Find the domain and range of y = f (x) = 9 − x2 .
y = 3x3 + 2x2 − 6
7 / 33
Example: Find the domains of
1
(i) y = f (x) =
x+3
√
(ii) z = f (t) = t − 4
Note: The symbols for the domain and range are different but
the same principles apply.
8 / 33
MODULUS FUNCTION |x|
9 / 33
Definition: (
x, if x > 0
|x| =
−x, if x < 0
The purpose of the negative sign in second line to change a
negative number to a positive number. An easy way to
remember the effect of modulus is that it ’removes the negative
sign’. In other words, the modulus gives the size of the number.
For example |3| = 3 (as 3 > 0) and | − 3| = 3 (as −3 < 0.)
10 / 33
Goemetrically, on the x-axis, the modulus of x, |x| (or absolute
value of x) is the distance of x from the origin.
Q: For all possible values of x, are the following statement correct: (a)
|x2 | = x2 ; (b) |x3 | = x3 .
12 / 33
Solving modulus equation: equations of the form
|u(x)| = |υ(x)| can be solved by using u(x) = ±υ(x), or in other
words there are two equations to consider:
u(x) = v(x) and u(x) = −v(x)
14 / 33
COMPOSITE FUNCTIONS
15 / 33
A composite function is obtained by applying two (or more
functions) in sequence or in tandem. Given 2 functions f and g
f g g f
x −→ y −→ z; or x −→ y −→ z
and g.
I The order where the functions are applied are important.
I For g(f (x)), the function f (x) is applied first and the
function g(x) is applied second.
I For f (g(x)), the function g(x) is applied first and the
function f (x) is applied second.
16 / 33
√
Example: if f (x) = x, and g(x) = x2 + 1,
√ √
then g(f (x)) = g( x) = ( x)2 + 1 = x + 1
√
also, f (g(x)) = f (x2 + 1) = x2 + 1
17 / 33
Example: With the composite function h(x) = f (g(x)) = sin(x2 ),
what are the constituent functions f (x) and g(x)?
Remark:
I General rule to identify constituent functions is to start
where x appears first, then determine the sequence of
processes that modify the value. For example with sin(x2 ),
(i) x is first squared; (ii) the squared value is then put into
the sine function.
I Being able to identify constituent functions is important
when the chain rule of derivatives is used (to be covered in
Week 2).
18 / 33
Q: If h(x) = f (g(x)) = (sin x)2 = sin2 x, what are f (x) and g(x)?
19 / 33
ODD FUNCTIONS AND EVEN FUNCTIONS
20 / 33
An even function is symmetric about the y axis.
21 / 33
Simple test for eveness or oddness of a function f (x)
1. Calculate f (−x) (replace x with −x).
2. Calculate f (x) − f (−x) and simplify as much as possible. If
the result is identically 0, then f (x) is even.
3. Calculate f (x) + f (−x) and simplify as much as possible. If
the result is identically 0, then f (x) is odd.
4. If 2 and 3 is not 0, then function is neither even nor odd.
22 / 33
Q: True or False?
1. If f (x) − f (−x) = 0, then the graph of f (x) is symmetric about
the y-axis.
2. If g(x) + g(−x) = 3, then the graph of f (x) is symmetric about
the origin.
23 / 33
Example: Are the following functions even, odd or neither?
(i) f (x) = x2 + 3
(ii) f (x) = x + 3
5
(iii) f (x) = 2x3 − x
24 / 33
ONE-TO-ONE FUNCTIONS
In some applications, we need to be able to invert a function.
The inverse of a function is described in the section. However
not all function has an inverse. Only function that has the
one-one property can be inverted.
25 / 33
Algebraic determination: to show, using algebra, that y = f (x)
is one-to-one, write f (a) = f (b), and solve for a.
26 / 33
INVERSE FUNCTIONS
27 / 33
Basic ideas:
1. An inverse can only be defined for a one-to-one function.
This means that not all functions can have an inverse.
2. The symbol for the inverse function is f −1 (x). Now f −1 (x)
1
does not mean f (x) (which is the reciprocal).
3. An inverse function basically undo the operation of a
(one-to-one) function f
f f −1
x −→ y −→ x;
28 / 33
For example if f (−1) = 3, i.e. the value −1 is mapped to 3, then
f −1 (3) = −1, i.e. the inverse function maps the value 3 back to
−1.
29 / 33
Determining the inverse function:
1. Check that the function y = f (x) is one-to-one.
2. Swap x and y can to give x = f (y).
3. Solving the equation x = f (y) for y gives a new function,
the inverse function, denoted by y = f −1 (x).
4. The graphs of y = f (x) and y = f −1 (x) are reflections of
each other along the line y = x. This means that the points
at which the graphs y = f (x) and y = f −1 (x) intersect lie
along the line y = x.
30 / 33
Example: For the function y = f (x) = 4x − 7,
1. Determine the inverse f −1 (x).
2. Sketch the graphs of f (x) and f −1 (x).
3. Determine the points where the two graphs intersect.
31 / 33
FUNCTIONS WITH RESTRICTED DOMAINS
Basic ideas8:
1. If a function is not one-to-one, it may be possible to restrict
the domain so that it becomes a one-to-one function.
2. It is then possible to find an inverse using the technique
described section 1.6.
32 / 33
x2 +6
Example: For the function y = f (x) = 7 ,
1. Sketch the graph and determine a suitable domain
restriction so that the function is a one-to-one.
2. Find its inverse f −1 .
3. Sketch f and f −1 on the same set of axes, and label all
intersections.
√
Exercise: For the function y = f (x) = 10x − 25
1. Determine the domain and range.
2. Find its inverse f −1 .
3. Sketch f and f −1 on the same set of axes, and label all
intersections.
33 / 33