Professional Documents
Culture Documents
What is a function?
950/1, 954/1
Graphical representation of a function
B A
y 11 x
Definition of a function:
The mapping between the elements of set A and the
elements of set B is a function, if to every element of A
corresponds one and only one element of B.
Remark: Not all mappings are functions.
Determine if each of the following mappings is a function.
1
1 x
O 1
y x 3 2x 2 1
-4
-2
-1
-2
-3
1
the domain of the function f : x 1 x is the set of
1
1 x
y2 = 4x
x
x=h
x=h
Represents a function
Not a function
x2
in the domain of f,
x1 x 2
implies that
f ( x1 ) f ( x 2 ) .
Alternatively, a function f is one-to-one if and only if
for all x1 and x 2 in the domain of f, f ( x1 ) f ( x 2 )
implies that x1 x 2 .
x1 x 2 2 x1 2 x 2
2 x1 5 2 x 2 5
http://stpmmaths.webs.com
y = x2
f ( x1 ) f ( x 2 )
Hence, f is a one-to-one function.
Given a function g : R R such that g ( x ) x 2 .
TOPIC: FUNCTIONS
g ( 2) g (2) 4 .
Note that 2 2 , but
Therefore, g is not a one-to-one function.
Remark: If a horizontal line y k intersects the
graph of a function at no more than one point, then the
function is one-to-one.
y
y = 2x 5
y=k
y=k
y = x2
950/1, 954/1
2. Determine if each of the following functions is a oneto-one function.
f : x x3
a.
1
b. f : x 2
x
f : x sin x
c.
2x 1
d. f : x
x 1
f : x 2x
e.
3.
Not one-to-one
One-to-one
Can you
function?
Discussion
4.
f ( x ) x 2 5 for x 0
c.
f ( x ) 1 x for x 1
d.
f ( x)
5.
1
for x 2
x
f ( x) x 2 3
c.
f ( x) 3 2 x x 2
d.
f ( x)
x2
e.
f ( x)
4 x2
f.
f ( x)
x2 9
g.
f ( x)
2x 2 3
h.
i.
j.
k.
l.
1
x
2x 1
f ( x)
x 1
5
f ( x) 2
x 1
x
f ( x)
4 x2
f ( x)
f ( x)
5 x2
1 x 2
http://stpmmaths.webs.com
TOPIC: FUNCTIONS
Algebraic operations on functions
950/1, 954/1
( f g )( x ) f ( x) g ( x )
( f g )( x) f ( x) g ( x)
( f g )( x) f ( x ) g ( x )
f
f ( x)
( x )
, g ( x) 0
g ( x)
D f g D f Dg
D f g D f Dg
D f g D f Dg
b
4ac b 2
written as f ( x) a x
.
2a
4a
D f D f D g \ x : g ( x) 0
g ( x ) ln x , x 0 .
has
maximum
point
b
2a
y
y = x +2x
y = x2 1
( f g )( x ) x ln x ; D f g x R : x 0
if a > 0.
It
b 4 ac b 2
,
2a
4a
b , 4 ac b if a < 0.
2a
4a
D f g x R : x 0
( x )
( f g )( x ) x ln x ;
For example:
f ( x) x ,
x R and
Let
Therefore,
( f g )( x ) x ln x ;
D f g x R : x 0
x
;
ln x
x=1
D f x R : x 0 and x 1
g
f ( x) a n x n a n 1 x n 1 a1 x a 0
for some real numbers a 0 , a1 , a 2 , , a n 1 , a n and
an 0 .
A function f ( x) ax 3 bx 2 cx d , where a, b, c,
d are any real numbers and a 0 , is a cubic function.
The graph of a cubic function has at most two turning
points.
y
y
y = x(x2 1)
y = x3 + 1
y = 2x 5
y = x+ 2
O
http://stpmmaths.webs.com
A function f ( x) ax 4 bx 3 cx 2 dx e , where
a, b, c, d, e are any real numbers and a 0 , is a quartic
function. y
The graph of a quartic function has at most three
turning points.
y = x4
O
TOPIC: FUNCTIONS
950/1, 954/1
y
y = x43x2+x
If n
2 4 8
, , ,
3 3 3
If n is even (i.e. n = 2, 4, 6, )
8
8
3
4
n
3
6
6
n=8
4
n=4
n=2
-5
-5
2
3
10
-2
-2
If n is odd (i.e. n = 1, 3, 5, )
6
n=5
n=3
1
Sketch the graphs of y x and y on the same
x
diagram.
1
Notice that for the graph of y ,
x
x
,
y
0
when
when y , x 0
Hence, the lines y 0 and x 0 are the
1
asymptotes for the graph of y .
x
Remark: Asymptotes are the lines which the graph
approaches when x or when y .
n=1
-5
-2
-4
If n
1 3 5
, , ,
2 2 2
8
5
2
3
2
Vertical asymptote
-5
5
4
1 5 7
, , ,
3 3 3
-2
If n
1
2
-5
-4
7
n
3
5
n
3
y=x
-2
y
2
1
x
4
10
-1
1
3
Horizontal asymptote
-2
10
-2
http://stpmmaths.webs.com
-4
TOPIC: FUNCTIONS
Notice that the vertical asymptote intersects the line
y x at the point where the line y x cuts the x-axis.
Hence, for the graph of y
950/1, 954/1
1
,
f ( x)
b.
f ( x) 2 x 3
e.
1
2
x 2x 1
1
x 2 2x 2
c.
f ( x ) x 1 x 3
x 2 1
y x 2 1
-4
-2
x 1
4
-1
x 1
-2
x 1
d.
f ( x) x 2 2 x 1
-3
x 1
which corresponds to the minimum point on the graph of
y x 2 1 .
Discussion
1
on the
f ( x)
same diagram, showing clearly any horizontal or vertical
asymptotes and any minimum or maximum points.
a.
f ( x) x 1
e.
http://stpmmaths.webs.com
f ( x) x 2 2 x 2
TOPIC: FUNCTIONS
950/1, 954/1
f ( x)
,
g ( x)
1
2
x 1
-6
1 3x 1
x
x 2 2x
.
,
, 2
,
x 2 x x 1
x 1
-4
-2
-1
Asymptotes
-2
k
, where k is
f (x )
-3
-4
a constant, k 0 and f ( x) 0 .
6
Notice that there are two vertical asymptotes. What are the
equations of the two vertical asymptotes?
1
x
where
-5
both
g ( x) 0 .
10
Asymptotes
-2
g ( x ) are
f ( x)
,
g ( x)
linear
and
10
2x 1
x 1
-4
2
10
-10
-5
10
15
8
-2
6
-4
Asymptotes
-6
2
-10
-5
10
15
10
-2
3
y
2 x
-4
-6
2 x
3 x
-8
-10
-5
10
15
-2
-4
-6
6
-8
1.5
3x 1
2 x
2
x 2 1
y
-10
0.5
-5
10
15
-2
-2
-1
-0.5
http://stpmmaths.webs.com
-1
Asymptote
-4
-6
-8
-10
TOPIC: FUNCTIONS
Describe
asymptotes.
950/1, 954/1
how you
where
f ( x)
,
g ( x)
g ( x ) is quadratic and
x
2
x 1
2x 2 1
x2 4
4
-5
10
2
-2
Asymptotes
-10
-5
10
15
-2
-4
-4
-6
3
8
3x 1
( x 1)
x 2 1
2x 1
1
-4
-2
-1
-5
10
-2
-2
-3
-5
1 2x
y
x( x 3)
f ( x)
,
g ( x)
10
-2
8
x 2x
y
.. range of the function.ction.
Asymptotes
x 1
2x 1
llowing functions.
y 2
ion FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
6
-4
x x 1
-10
-5
10
15
-2
-4
-6
http://stpmmaths.webs.com
TOPIC: FUNCTIONS
Notice that the graph has an oblique asymptote.
Discussion
Even functions
2
x 1
2.
950/1, 954/1
1 x
x 1
2.5
1.5
3.
2x 5
y
5 2x
4.
0.5
x 1
-6
-4
-2
-0.5
5.
7.
5
2
2x 2x 1
2x 1
x x 3
6.
8.
-1
x x 2
x
1 x 2 x
-1.5
f ( x)
x2
2.5
9.
1 5x
x 1 2
10. y
1 x
x 2 1
1.5
0.5
11. y
1 x x 2
12. y
-6
-4
-2
x 1
-0.5
-1
13. y
15. y
17. y
19. y
x 1
14. y
x 3
x
2 x 2 x
2 x 2
x 2 1
3x 2 1
x 2 2x 4
16. y
18. y
20. y
2x 2 x 3
x 1 x 3
2
3x 1
2x 2 1
x2 9
x 2 2x 1
-1.5
Odd function
A function f ( x ) is said to be odd if f ( x ) f ( x )
for all values of x. The graphs of odd functions are
symmetrical about the origin, O, i.e., they remain
unchanged when rotated about O through an angle .
Examples of odd functions:
f ( x ) sin x
x 2 x 1
x 1
1.5
21. y 2
23. y
1
x
2x 2 2
x 2 2x 3
22. y
24. y
x2
x 2 1
0.5
-4
-2
-0.5
-1
x2
-1.5
1 x 2
1.5
25. y
x 1 2 x
2
x 3x 4
26. y
1 x 2
x x 4
0.5
-4
-2
-0.5
http://stpmmaths.webs.com
-1
-1.5
TOPIC: FUNCTIONS
1
f ( x)
950/1, 954/1
Discussion
Periodic functions
f ( x ) f ( x a ) f ( x 2a )
1.
f ( x) 2 x
2.
f ( x) 1 x 4
3.
f ( x ) tan x
4.
f ( x) x 3 x
5.
f ( x)
6.
f ( x)
7.
f ( x) x
8.
f ( x) x 2 x 2 1
2
2
x 1
x
1 x 2
f ( x) 2 x 1
0 x 1
for
and
f ( x 1) f ( x ) for all values of x, then the
function is periodic with a period of 1.
If
1
1
-6
-4
3 2 1 0
-2
4
4
-1
f ( x2 )
-2
-3
f ( x1 )
-4
x1
x2
If f ( x ) x 2 for 0 x 1 and f ( x 2) f ( x)
for all values of x, then the function is periodic with a
period of 2.
2.5
f ( x1 )
1.5
f ( x2 )
x1
x2
0.5
2
-2
1
-1
x
3
-0.5
Discussion
1. Determine which of the following functions are
increasing and which are decreasing.
f ( x) e x
a.
b.
f ( x) e x
c.
f ( x)
x 3
1
x
2. Determine the interval on which the function f is
increasing and the interval on which it is decreasing.
f ( x) x
a.
d.
f ( x)
b.
f ( x)
-1
-1.5
Discussion
1. Determine the period, and sketch the graph of the
periodic function f ( x ) x for 1 x 1 and
f ( x 2) f ( x ) for all values of x.
x 2 1
http://stpmmaths.webs.com
TOPIC: FUNCTIONS
950/1, 954/1
where n is an integer. Therefore, the tangent function is
periodic with a period of radian.
Since tan( x) tan x , therefore, y tan x is
an odd function and the curve has rotational symmetry
about the origin.
Trigonometric functions
Note that
,
where n is an integer. Therefore, the sine function is
periodic with a period of 2 radian.
Since sin( x ) sin x , therefore, y sin x is
an odd function and the curve has rotational symmetry
about the origin.
The range of the function is 1 sin x 1 .
1.5
y tan x
0.5
2
-6
-4
-2
0
-0.5
2
6
-1
1.5
-1.5
y sin x
0.5
2
-6
-4
-2
-0.5
sin( x ) sin x
cos( x ) cos x
-1
-1.5
tan( x ) tan x
Note that
cos x cos(2 x) cos(4 x) cos(2n x )
,
where n is an integer. Therefore, the cosine function is
periodic with a period of 2 radian.
Since cos( x) cos x , therefore, y cos x is
an even function and the curve is symmetric about the yaxis.
The curve is the same shape as the sine wave but is
1
2
translated a distance
cos x sin x 12
sin( x ) sin x
cos( x) cos x
tan( x ) tan x
sin( 2 x ) sin x
1.5
cos( 2 x ) cos x
y cos x
2
-6
-4
-2
0
-0.5
tan( 2 x ) tan x
2 x
0.5
2
6
-1
-1.5
Summary:
sine +ve
All +ve
Note that
,
http://stpmmaths.webs.com
tan +ve
cos +ve
10
TOPIC: FUNCTIONS
950/1, 954/1
Discussion
Sketch the graphs of y f (x ) and y f ( x) for
each of the following functions.
1 2x
f ( x)
1.
1 x
f ( x) x x 2
2.
30
2
sin x
4.
f ( x)
5.
f ( x)
1 2x
x2
2x
2
x 2x 3
45o
Angle in
degree
Angle in
radian
f ( x) x 3 1
45o
3.
60o
60o
1
0o
30o
45o
1
2
1
2
3
2
1
2
cos x
3
2
1
2
tan x
1
3
1
90o
60o
3
not
defined
y x2
y x 3 2
1
cos ecx ;
sin x
1
sec x ;
cos x
-8
y a cos b x c d
-4
-2
-1
-2
-3
-6
y x 3 2 2
1
cot x
tan x
and
y
in the equation y f (x ) , i.e.,
c
Replacing y by
y
f (x ) or y cf (x) , produces a stretch of
c
factor c in the y-direction.
x
Replacing x by
in the equation y f (x ) , i.e.,
c
x
y f , produces a stretch of factor c in the x c
direction.
y 3 f ( x)
y f (x)
1.5
0.5
-2
-1
-0.5
-1
-1.5
y f ( 2x )
11
TOPIC: FUNCTIONS
950/1, 954/1
Composite functions
The composition of functions f and g, written as
f g x f g x
g f x g f x
1.5
y ex
y ex
0.5
find
the
-2
-1
y e
defined on x (i.e.,
-0.5
defined on f (x ) (i.e.,
-1
-1.5
Discussion
1.
(1, 2)
2
-4
3-2
2
3
Let f ( x ) x , g ( x) x 2 and h f g .
What is the domain of h?
First of all, the domain of g is the set of real numbers,
and the range of g is also the set of real numbers. But
f is defined only for the set of non-negative real
numbers.
Therefore, f is defined only for g ( x ) 0 or x 2 ,
i.e., domain of h is x : x 2 .
f g ( x) 0 .
For x 2 , g ( x) 0 and
-1
6
-2
(1, 2)
-3
2
b.
y f ( x)
-4
-2
-1
10
12
-2
c.
e.
2.
y f ( x)
y f (x) 2
d.
f.
y 2 f ( x)
y x 1 2 4
http://stpmmaths.webs.com
1
f ( x)
-3
-4
-5
If f ( x ) x , g ( x) x 2 and h g f ,
what is the domain of h?
Now, the domain of f is the set of non-negative real
numbers and the range of f is also the set of nonnegative real numbers. Since the domain of g is the
set of real numbers, so
domain of h is x : x 0 .
For x 0 , f ( x ) 0
and
g f ( x ) 2 .
12
TOPIC: FUNCTIONS
6
-4
-2
0
2
-1
4
4
10
12
-2
-3
-4
Discussion
-5
f : x 2x 5 ,
g : x x 2 and
Given
that
1
5
h : x , where x R and x 0 or , find the
x
2
following composite functions: fg, fh, fhg, ff, h2.
1.
950/1, 954/1
1
That is, f 1 y 2 y 5 .
2
Thus, the inverse function of f is
1
f 1 : x x 5
2
Consider the function f : x x 2 , x R .
Let y f (x) , i.e., y x 2 .
So, we have x y or f 1 y y .
Note that the inverse is not a function. (Why?)
The inverse function of f does not exist because f is not
one-to-one. However, the inverse function of f exists if we
restrict the domain of f to x : x R, x 0 .
6
for
2.
-5
1
x
4. Let
and g ( x)
. Find the
x2
x3
composite function fg x and determine its domain and
range.
Sketch the graph of y fg x .
Inverse functions
The inverse of a function f is denoted by the symbol f 1 .
If f : x y , then f 1 : y x . That is, if f x y ,
then x f
f is not one-to-one
for
y f (x) and
( x)
yx
y f (x)
y f 1 ( x )
1.5
0.5
-1
Domain of f 1
http://stpmmaths.webs.com
-1
1
y 5 .
2
-1
f 1
So, we have x
-2
f is one-to-one
Range of f 1
-2
Range of f
10
-4
y .
Domain of f
-2
f ( x)
y x
-0.5
Discussion
1.
x R and x 2 .
x2
, where
x2
13
TOPIC: FUNCTIONS
State the domain and range of the inverse function.
Sketch the graphs of the function f and its inverse on
the same diagram showing clearly the relationship
between the two graphs.
3. Functions f and g are defined by f : x 4 x 5 ,
x R and g : x 3 2 x , x R . Find
f 1
a.
b. g 1
c.
gf
Remark: gf
d.
f
g 1 and
fg 1
950/1, 954/1
*Compare this graph with the graph of f : x a x where
0 a 1.
Notice that an exponential function is one-to-one. So the
inverse function exists.
Let y a x , so x log a y .
That
g 1 f
is,
the
inverse
function
f : x ax
of
is
: x log a x .
where x R, and a 0 .
Properties of an exponential function:
f ( x) 0 for all x R ( y 0 is an
asymptote).
When x 0 , f ( x) 1 .
For a 1 , as x , f (x) and as
x , f ( x) 0 .
1.5
3.5
0.5
3
-2
-1
2.5
-0.5
2
-1
1.5
-1.5
1
-2
0.5
-3
-2
-1
-0.5
asymptote).
When x 0 , f ( x) 1 .
For a 1 , as x , f ( x ) 0 and as
x , f (x) .
For
the
3.5
2.5
1.5
0.5
-3
-2
-1
-0.5
http://stpmmaths.webs.com
14
TOPIC: FUNCTIONS
950/1, 954/1
provided that f (x ) is arbitrarily close to L for all x
sufficiently close to, but not equal to, a.
Piecewise-defined function
A function which is defined differently on different
intervals in its domain is known as a piecewise-defined
function.
f (fa(a
) )notL defined
lim f ( x) L
limx
f (ax) L
xa
yy
L
L2
L1
-5
f ( a ) L but
-2
x x
a a
10
f (a ) not defined
lim f ( x)
xa
x a
x 2, x 2
x2
g x 0,
x2 , x 2
One-sided limits:
x a
10
x a
lim f ( x) exists if
The limit x
a
-5
10
1.
xa
x2
f x x 2
0,
f ( x) x x 3
constant, then:
lim c c
xa
x a
xa
x a
lim
Limits of a function
lim f ( x) L
lim f ( x) lim f ( x) .
xa
f ( x) L .
If lim f ( x ) lim f ( x ) L , then xlim
a
xa
xa
lim f ( x) is known
xa
Properties of limits:
Discussion
2.
lim f ( x) is known
xa
xa
xa
lim c f ( x) c lim f ( x)
xa
xa
x a
f ( x)
f ( x) xlim
g ( x) 0
a
if xlim
a
g ( x ) lim g ( x)
xa
xa
http://stpmmaths.webs.com
15
TOPIC: FUNCTIONS
lim
xa
950/1, 954/1
f ( x) n lim f ( x )
xa
b.
f ( x) f ( a )
If f is a polynomial function, then xlim
a
x 2 1, x 1
f ( x)
0,
x 1
x 3, x 1
Discussion
1.
b.
c.
2.
4x 2 5
x3
f ( x) x 3,
1,
otherwise
2x 2 1
a.
lim
lim x e
Find
x 3
lim f ( x) if it exists.
x3
x0
x0
5.
lim f ( x) if it exists.
and find x
0
3.
4.
f ( x)
0,
x 3,
x 1
x 1
Find
x0
determine if f is continuous at x = 0.
b. Sketch the graph of the function f.
x 1
f ( x ) if it exists.
and find xlim
1
Continuous functions
A function f is continuous at a if and only if
1.
2.
f is defined at a; and
lim f ( x) f (a )
x a
Remarks:
A continuous function has no breaks in its
graph.
A rational function is discontinuous at points
where the denominator is 0.
A polynomial function is continuous at every
point.
Discussion
1.
Determine if f ( x ) x is continuous at x = 0 .
2.
Function f is defined by
sin x,
f ( x)
1,
0 x 12
x 12
Determine if f is continuous at
x 12
f ( x)
1
x
http://stpmmaths.webs.com
16
TOPIC: FUNCTIONS
http://stpmmaths.webs.com
950/1, 954/1
17