Chapter 3: Functions and Their Graphs Learning Outcome
Chapter 3: Functions and Their Graphs Learning Outcome
Learning outcome
Upon completion of this chapter, students should be able to:
Identify a function
Find the domain and range
Find combination, one to one and inverse of functions
Sketch graphs
The relation between two sets is the correspondence between elements of one set (first
set called domain) and elements of the other set (second set called codomain). For
example:
For each of the above there is a correspondence or relation between two sets of items,
things or ojects. These two things are connected or related to each other. Such realtion
can be represented by using arrow diagrams, ordered pairs or graphs. Let us consider the
following example with the relation as:
Example : Given the set S {(0 ,3), (1, 4), (2, 5), (3, 6), (4,7)} is the set order
pairs for a relation.
(a) What is the image for object 1?
(b) What is the object for image 7?
F u n c t i o n s a n d t h e i r g r a p h s | 24
Solution
(a) 4
(b) 4
(c) The coordinate of y is 3+ coordinate of x. ( y 3 x ).
(d) Domain {0,1, 2, 3, 4} , codomain {3, 4, 5, 6, 7} , and range
{3, 4, 5, 6, 7} .
(e)
A function relates each element of a set with exactly one element of another set
(possibly the same set).
1 a
2 6 b
3 c
X Y
F u n c t i o n s a n d t h e i r g r a p h s | 25
Example 3.1:
Solution
In the equation y 2 x 1 ,
Therefore, x is the input (also can be said the independent variable) and y is the
output (also can be said the dependent variable).
Example 3.2:
Is y x 2 a function?
Yes, since for any x we take, we will get only one value for y
F u n c t i o n s a n d t h e i r g r a p h s | 26
The domain of a function is the set of all possible x values which will make the
function "work" (defined) and provide real y-values as output.
Example 3.3:
Given f ( x) x 1 .
Solution
x f (x )
3 2
2 1
1 0
0 1
0 .5 1 .5
1 2
etc etc
We found that for any real number x, f (x) can be defined, In this case, x can be any
number located on the real number line, so we can say the domain of f is the set of
all real number.
The Range is the set of all possible output values (usually y or f (x) ), which depends
on the possible input values x .
For the above example, range f (x) is also the set of all real number.
F u n c t i o n s a n d t h e i r g r a p h s | 27
Example 3.4:
1
Find domain and range of the function y .
5 x 10
Solution
1
Step 1: Given y .
5 x 10
1
Set the denominator of the given function y to zero and solve for x:
5 x 10
5 x 10 0
5 x 10
x 2
Therefore, the domain of a given function is all real numbers except for x 2 .
F u n c t i o n s a n d t h e i r g r a p h s | 28
Since the domain of a given function is all real numbers except for x 2 , f (x) will
never be equal to zero. Therefore, the range for the given function is all real numbers
except 0.
Example 3.5:
Example 3.6:
Step 1: Here, we got an odd number root; therefore x can be any real values.
Step 2: Since x can take any real values, y also can take any real values.
Note: We will see more examples on how to find domain and range in the next section.
The graph of a function is the set of all points whose co-ordinates ( x, y ) satisfy the
function y f (x) . This means that for each x -value there is a corresponding y -
value. The y -value will be obtained when we substitute the x -value into the
expression f (x) .
F u n c t i o n s a n d t h e i r g r a p h s | 29
Since there is no limit to the possible number of points for the graph of the function, we
will follow this procedure:
Linear graphs are always in the form of y mx c , where m is the gradient or the slope
of the graph and c is the intercept at the y axis. When you plot a linear graph, you will
obtain a straight line as shown in Figure 3.1
Example 3.8:
Now, you will notice that the gradient is negative, so you will obtain a graph as in Figure
3.2
In chapter 2, we have seen that a quadratic graph is a U shape graph or parabolic. The
simplest form of quadratic graph of y x 2 , as shown in Figure 3.3.
In the next chapter, we will look, how to graph the rational functions.
F u n c t i o n s a n d t h e i r g r a p h s | 31
On a graph, the idea of single valued means that no vertical line would ever cross more
than one value.
If it crosses more than once it is still a valid curve, but it would not be a function.
Example 3.9:
A
F u n c t i o n s a n d t h e i r g r a p h s | 32
D
F u n c t i o n s a n d t h e i r g r a p h s | 33
Solution
The vertical line test tells us that no vertical line would ever cross more than one value.
But not for B, so B is not a function. Remember a function y = f(x) for each x has one
value of y. This graph has two values of y for the same value of x.
Example 3.10:
Solution
x y
5 1 Real number
4 00
3 1 1
2 2 1.4122
0 42
1 5 2.2361
Range,
The domain of the function is x 4 , since x cannot take values less than −4. If
x 4 then the value under a square root sign will be negative, and this cannot be
defined under the real number system. The only one that satisfy the condition and give
us an answer are the ones greater than or equal to −4.
Example 3.11:
Solution
f ( x) x 2 2 is defined for all real values of x. Hence, the domain of f(x) is the set of all
real values of x.
We can see that x can be substitute by any value as shown in Figure 3.3, but the resulting
y = f(x) values are greater than or equal to 2.
F u n c t i o n s a n d t h e i r g r a p h s | 35
Range
Domain
A piecewise function is usually defined by more than one formula: a formula for each
interval.
Example 3.12:
2 x if x 0
f ( x)
1 if x 0
x 2 if x 1
f ( x)
2 x 1 if x 1
Solution
( f g ) ( x ) f ( x) g ( x), domain A B
The symbol means
( f g ) ( x) f ( x ) g ( x), domain A B
intersection.
( f g ) ( x) f ( x) g ( x ), domain A B
f f ( x)
( x ) , domain A B , g ( x ) 0
g
g ( x)
Example 3.14:
(i) ( f g )(3)
(ii) ( f g )(1)
(iii) ( fg )( x )
f
(iv) (x)
g
Solution
Example 3.15:
h
(c) (x) and its domain.
f
Solution
(a) ( f g ) ( x) f ( x ) g ( x)
= ( x 5) ( x 2 3 x 1)
= x2 4x 6
To find the domain, since f ( x) x 5 is a linear function, then the domain is real
number, x . Also, since g ( x ) x 2 3 x 1 a quadratic function, therefore the
domain is real values, x . Therefore the domain for ( f g ) ( x) is any real numbers
x .
(b) ( f g ) ( x) f ( x ) g ( x )
= ( x 5) ( x 2 3 x 1)
= x2 2x 4
Similar to (a), the function ( f g )( x) is a quadratic function then the domain is also a
real values, x .
h
(c)
f
( x)
h( x)
f ( x)
x2
x 5
The domain would be, x 2, for h(x) and x 5 for f (x) , therefore intersection of
h
these two domains would give us : x 2, x 5. So the domain for (x ) is
f
x 2, x 5.
A composition of functions occurs when you put one function into another. In effect, the
range of the one function becomes the domain of the second. The notation for
composition of functions is either.
The diagram shows the role of the domain and range of each function in the composition
of f ( g ( x )).
Example 3.16:
Solution
f ( g ( x)) f ( x 2 2)
( x 2 2) 1
x2 3
Since the domain for g ( x ) is any real number and after substituted into f (x) we will
obtained x 2 3 which also it is any real number. Therefore, the domain for f ( g ( x)) is
also any real number.
Example 3.17:
Solution
f ( g ( x)) f ( x 2)
1
( x 2) 1
1
x3
Now, even though the domain for g (x ) is any real number but when you insert in
f (x) the domain will no longer be any real number as in this case x 3 .
X Y
1 A
2 B
3 C
X Y
P 5
Q
R 9
Figure 3.7: A not One to one function
F u n c t i o n s a n d t h e i r g r a p h s | 41
Notice that P and Q in Figure 3.7 has the same image which is the value of 5 in Y.
Therefore, Figure 3.7 above is it show a Not one to one function.
Example 3.18:
X Y
1 1
2 4
3 9
-2
Notice that 2 and -2 in Figure 3.8 both has same image (output) 4, so f ( x) x 2 is not
one to one.
A function is one to one if and only if no horizontal line intesects the graph more than
one time.
F u n c t i o n s a n d t h e i r g r a p h s | 42
Example 3.19:
The horizontal line intersects more than one point on the graph. So Figure 3.9 shown
above a not one to one function.
Example 3.20:
Solution
1. If the function is not one-to-one, the domain of the function must be restricted so
that a portion of the graph is one-to-one.
2. The domain of the function is equal to the range of the inverse. The range of the
function is equal to the domain of the inverse function.
A B
Set A is the domain for f (x) and set B is the range for f (x) .
1
For the inverse f ( x) :
F u n c t i o n s a n d t h e i r g r a p h s | 44
1 1
Set A is the range for f ( x ) and set B is the domain for f ( x) .
Figure 3.10 below shows the inverse of f (x) which is the reflection of f (x) through
the y x line.
Figure 3.10: The graph of f (x) and inverse of f (x) which is they are reflect of on
the y x line.
Finding inverse
Solution
f 1
(3) 1 , f 1
(5) 2 and f 1
( 7) 4
F u n c t i o n s a n d t h e i r g r a p h s | 45
Step 1: Write f ( x) y
Example 3.21:
Solution
Step 1: f ( x) 5 x 2 y
5x y 2
y2
x
5
1 x2
So f ( x)
5
Example 3.22:
(i) f ( x) 2 x 1
3
(ii) f ( x)
x 1
(iii) y x 1
F u n c t i o n s a n d t h e i r g r a p h s | 46
Solution
(i) f ( x) 2 x 1
Step 1: f ( x) 2 x 1 y
Step 2: x y 1
2
y 1 1 x 1
Step 3: x f ( x)
2 2
3
(ii) f ( x)
x 1
3
Step 1: f ( x) y
x 1
Step 2: y ( x 1) 3
xy y 3
3 y
x
y
1 3 x
f ( x)
x
(iii) y x 1
Step 1: y x 1
Step 2: y 2 x 1 x y 2 1
1
Step 3: f ( x) x 2 1
3.7. Exercises
F u n c t i o n s a n d t h e i r g r a p h s | 47
1. Given g ( x ) x 2 and h( x ) 3x 5 . Find the domain and range for both of the
functions.
(a) f ( x) 2 x 3 (b) h( x ) 2 x 11
2 1
(c) g ( x ) (d) f ( x)
x5 4x 5
1
3. If f ( x) x 1, g ( x) , find the following:
x 1
(a) f ( x) g ( x) (b) ( g f )( x)
(c) ( f f )( x) (d) ( g g )( x )
(a) (b) 1
( f g )( x ) 7 x 12 ( g f )( x) , x 1.
x 1
(c) ( f g )( x 1)
1
(a) f ( x) 3x 5 , g ( x)
2
2
(b) f ( x) , g ( x) x 3 2 x
x
F u n c t i o n s a n d t h e i r g r a p h s | 48
1 x
(c) f ( x) , g ( x)
x x2
9. State whether the following is a one to one functions or not? and Why?.
(a) f ( x) 5 x 3 (b) f ( x) 4 x 3
(c) f ( x) x 2 3x 5
(a) f ( x) x (b) f ( x) x 2 2 x 3, x 3
x 1
(c) f ( x) 11x 72