Chapter 7 Relations and Functions Mapua
Chapter 7 Relations and Functions Mapua
Functions
Complex Numbers
Chapter Sections:
7
7.1 Concept of a Relation
7.2 Functions
7.3 Evaluation of Functions
7.4 Operations on Functions
7.5 Inverse Functions
Objectives:
At the end of each chapter, the student should be able to:
1. define relation;
z
2. state the different ways of describing relations;
3. identify relations that are functions;
4. find the domain and range of a relation and function;
5. use the Cartesian coordinate system as a tool in graphing;
6. evaluate functions;
7. perform operations on functions; and
8. find the inverse of a relation and inverse of a function.
M any real-life situations involve two quantities that are related to each
other by some rule of correspondence. For instance, the number of textbooks
to be ordered for a class depends on the number of students enrolled, the
gravitational attraction between two bodies depends on the distance between
them, and the gasoline consumed by a car depends of the distance traveled.
In mathematics, the idea of one thing depending on the other is important. It
is called a relation. This chapter discusses the concept of relation. Emphasis
is given on the treatment of the special type of relation known as a function.
Let us take a look, for instance, at the earnings of Analyd in her part-time job in a certain food
chain. Suppose she earns ₱25 an hour. Then her earnings are related to the number of hours that
she works. The table and diagram below show her earnings corresponding to the number of hours
she has worked in a week.
We can denote this table or diagram of pairs of values as a set of ordered pairs E = {(8, 200), (10,
250), (15, 375), (28, 700)}. This set of ordered pairs defines a relation between two variable quan-
tities.
Each ordered pair in a set consists of two components. The set of all first components of the
ordered pairs in a relation is the domain and the set of all second components the range. The fol-
lowing illustration gives a clear understanding of the definition of a relation for the sets
A {x1 , x2 , x3 , x4 , x5 } and B {y1 , y2 , y3 , y4 , y5 , y6 }.
R
A B
x1 y1
x2 y2
x3 y3
x4 y4
x5 y5
y6
Example 7.1.1►In the diagram of the relation R in the previous page, we have the following:
Domain of R is A {x1, x2 , x3 , x4 , x5 }
Codomain of R is B {y1 , y2 , y3 , y4 , y5 , y6 }
Range of R is {y2 , y3 , y4 , y5 , y6 }
Example 7.1.2►In the relation E = {(8, 200), (10, 250), (15, 375), (28, 700)}, the domain of E is
{8, 10, 15, 28} and range of E is {200, 250, 375, 700}.
1. Ordered Pairs such as R = { (1, 1), (2, 0), (3, 1), (4, 2), (5, 3), (6, 4)}
2. Table of Values as
x 1 2 3 4 5
6
y 1 0 1 2 3
3. Mapping Diagram as shown in the diagram below.
R :x y
X Y
R maps x to y
1 1
2 0
3 2
4 1
5 3
6 4
5. Graph
y
5
x
3 3 5 7
Example 7.1.3►Graph the relation G ={(2, 1), (1, 2), (0, 3), (3, 5)}. Find the domain and range of
G.
Solution. The graph of G is obtained by plotting all ordered pairs in G. Hence, we have:
y
5 (3,
5)
(0,
3) (1,
2)
x
2 5
(2, 1)
The domain of G is the set of all first elements of the ordered pairs and the range is the set of all
second elements. Hence, we have
Example 7.1.4►Draw the graph of the relation R {(x, y)| y 2x 3}.
Solution. To be able to graph the given relation we tabulate some order pairs, plot them, and then
connect the points smoothly. y
Table of Val-
ues _
x 1 0 1 2 3 5_
4
3_
y 5 3 1 1 3 _
_
| | | | | | | | | | | | | x
5 3 _ 3 5
2 _
_
_
_
The method used in graphing the relation in Example 7.2.2 above is called a tabular method.
EXERCISE
7.1
7.2 FUNCTIONS
The term "function" was first used by Gottfried Wilhelm Leibniz in 1673 to denote the depen-
dence of one quantity on another but it was first defined by the German mathematician Lejeune
Dirichlet (1805-1859). Many mathematical models use the concept of a function. The following defi-
nition formalizes this concept.
► Characteristics of a Function◄
1. Each element in the domain A must be matched with an element in the range, which is con-
tained in set B.
2. Some elements in the set B may not be matched with any element in the domain A.
3. Two or more elements of the domain may be matched with the same element in the range.
4. No element of the domain may be matched with two different elements in the range.
To determine whether a relation is a function is to make a mapping diagram. Write the ele-
ments of the domain in one region and the elements of the range in another. Draw arrows to show
how each element is mapped to another.
x1 y1
x2 y2 Function x1
x3 y3 y1 Function
x2
y1
x1 y2 Relation
y3
Example 7.2.1►Make a mapping diagram for each given relation and determine whether or not it
is a function.
a. B = {(0, 5), (5, 2), (5, 2), (2, 3)} b. C = (x, y) y = 2x + 1, x = 0, 1, 2, 3}
Solution.
a. 0 5
2
5 Domain of B = {0, 5, 2} Range of B = {5, 2, 2, 3}
2
2 3
0 1
1 3 Domain of C = {0, 1, 2, 3} Range of C = {1, 3, 5, 7}
2 5
3 7
Thus, it is a function.
A graph in the plane ℝ2 represents a function if and only if no vertical line in-
tersects the graph at more than one point.
a. b.
x x
Solution.
a. This graph defines a function since any vertical line drawn cuts or intersects the graph at no
more than one point.
b. This second graph does not define a function since the vertical line drawn intersects the graph
at two points.
Example 7.2.3►Sketch the graph of each of the following relations. Determine the domain and
range. Use the vertical line test to determine the graph that represents a function.
1
a. D = {(x, y ) y = x2} b. E = {(x, y ) x = y2} c. y d.
x
x
y
x3
Solution.
a. D = {(x, y ) y = x2 } y
Domain of D = {x | x } _
Range of D = {y | y , y 0} 4_
= set of all nonnegative real numbers _
2_
_
x 0 1 1 2 2
x
_
_
_
_
_
_
y 0 1 1 4 4 3 1
_ 1
2
Thus, it is a function.
b. E = {(x, y ) x = y2}
2
Domain of E = {x | x , x 0}
Range of E = {y | y } x
2 4 6
2
x 0 1 1 4 4
y 0 1 1 2 2
Thus, it is a relation.
1
c. y y
x
Domain = { x x , x 0 },
6
To find the range express x in terms of y: x = 1/y
Range = { y y , y 0 } 4
2
x 1 2 3 1 2 1/2 1/2 1/3 8 6 4 2
x
y 1 1/2 1/3 1 1/2 2 2 3 2 4 6 8
2
4
Thus, it is a function.
6
x y
d. y
x3
5
Domain = {x | x , x 3}
Range = {y | y , y 1} 3
x 0 1 1 2 4 3 2
y 0 1/2 1/4 2/5 4 1/2 2 x
7 4 4
2
Thus, it is a function.
► Function Notation◄
In order to discuss a function that relates the values of two variable quantities, the Swiss
mathematician Leonhard Euler (1707-1783) introduced the notation f (x) , read as “ f-function of x ”
or f of x, to denote a function. Thus, the equation y f (x) defines y as a function of x where:
f function name
x the variable whose value is being assigned (independent variable)
y the variable whose value depends on the choice of x (dependent variable)
Any letters can be used to name functions other than f. Hence F(x), G(x), H(x), v(x), and h(x)
mean different functions of x. The domain of a function is the set of all values (real numbers)
taken on by the independent variable, and the range of a function is the set of values (real num-
bers) taken on by the dependent variable. We will denote the domain of the function f by the follow-
ing notations, respectively:
Domain of f = Df Range of f = Rf
3
x2 4
Example 7.2.4►The relations f (x) 4x 4x 7 and g(x) define functions of x.
x2 4
► Types of Functions◄
There are several types of functions. For future reference, we list the following common types
of functions along with their respective domains and ranges.
Df =
4ac b2 4ac b2
If a > 0, Rf = , .
If a < 0, Rf = , .
4a 4a
Df = = (, +)
If n is odd, then Rf = = (, +).
If n is even and
5. Root Function
a. f (x) n x , n ℕ and n 2
If n is odd, Df = and Rf = .
If n is even, Df = [0, +) and Rf = [0, +).
b. g(x) x 2 25 . This is a square root function that takes the form g(x) x 2 a 2 with a = 5.
Dg = (, a] [a, +) = (, 5] [5, +) Rg = [0, +)
x2 4
c. G(x) . We can simplify this quotient as follows.
x2
x 2 4 (x 2)(x 2)
G(x) x 2 for x 2. When x = –2, the value of x – 2 = 2 – 2 = 4.
x2 x2
Hence, DG = (, 2) (2, +) and RG = (, 4) (4, +).
x2
d. F (x) . This is a rational function that restricts the denominator to be a nonzero number.
2x 3
To get the range, we solve the given for x. Let y = F(x) so that
x2 3y 2
y 2xy 3y x 2 x(2y 1) 3y 2 x
2x 3 2y 1
4 x 5 2
a. f (x )
2
b. G(x) x 8
x 9 | x 1| 2
Solution.
4 x
a. f (x ) . To get the domain, we first consider the domain of 4 x which is { x | x
x2 9
4 }. The denominator does not need to be zero.
|x + 1| 2 = 0 |x + 1| = 2 x = 3 or x = 1.
There are functions whose definition over a specified domain is given by two or more equa -
tions. For instance the absolute value function f (x) | x| may be defined by the two equations
f (x) x if x 0 and f (x) x if x 0 . Such a function is called a peicewise-defined function (or
split function).
A piecewise-defined (split) function is a function defined by more than
Definition one equation at different parts of its domain.
1 ifx 0
f (x ) 4 x 2 if 2 x 2
a. b. g(x)
0 ifx 0 | x| if |x| 2
2 if x 2
x2 if x 0
a. f (x) b. f (x) 4 x2 if 2 x 0
1 if x 0 x if x 0
Solution.
y
y
3 3
a. b.
x
x
4 2 2
3 2
2 2
EXERCISE
7.2
1. {(1, 1), (2, 2), (3, 3)} 2. {(1, 9), (2, 9), (8, 2), (2, 4)}
3. {(0, 0) , (1, 2), (3, 4), (4, 5)} 4. {(x, y) | y 2x 2 }
5. {(x, y) | 2x y 6 } 6. {(x, y) | x 2 y2 4 , 0 y 2 }
1. x 2.
x
y y
3. x 4. x
y
y
5. 6.
x
x
x 2 2x x2 4 2 x 3
1. f (x) 2. G (x ) 3. f (x)
2 x 5
x 4x 5 3 | x 2|
4. (x 2)(x 2 x 3) 5. x 3x 4 6.
f (x) h(x)
x 1 9 x2
16x 2 9
f (x)
3 2 x | x 1|
7. h(x)
2x
8. | x 2 9| 9. 49 x2
H (x) f (x)
x 5 4 x x 2 3x 10 | x 1| x2
2 if x 0 2x if 5 x 0
1. f (x ) 2. f (x )
2 if x 0 x if 2 x 5
2 |x| if 3 x 3
9 x if 3 x 0
3. f (x) 4. f (x)
1 2
x 2 9 if otherwise
2x
if x 0
3 if x 0
x 2 1 if x 0
5. f (x ) 6. f (x) 1 x2 if 0 x 1
x 1 if x 0
x 1 if1 x 5
164 Chapter 7 Relations and Functions Section 7.3
Evaluation of Functions
Example 7.3.1►Evaluate the function y 7x 2 3x 1 for x = 5, 1, 0, 5 and give the resulting or-
dered pairs.
Solution.
f (x) 7x 2 3x 1
f ( 5) 7( 5)2 3( 5) 1 159
f ( 1) 7( 1)2 3( 1) 1 3
f (0) 7(0)2 3(0) 1 1
f (5) 7(5)2 3(5) 1 189
Thus, the resulting ordered pairs are (5, 159), (1, 3), (0, 1), and (5, 189).
x
Example 7.3.2►Given that f (x) 2 , find the following.
x 1
a. f ( x) b. f (x 3) c. f (x) d.
f 1
x
Solution.
x x
a. f ( x )
2 2
( x ) 1 x 1
(x 3) x 3 x 3
b. f (x 3)
2 2 2
(x 3) 1 x 6x 9 1 x 6x 10
x x x
c. f (x)
2 2 2
x 1 x 1 x 1
1 1 1
f 1 x x x 1 x
d. x
x
1 2 1 1 1 1 x2 1 x2 1 x2
x2
x2 x
x4
Example 7.3.3►If f (2x 4) , find the following.
x 2
a. f (x) b. f (x 3) c. f ( y2 ) d. f 2
y2 12 2 12 10
c. f ( y2 ) d. f ( 2) 5
2 2 2
y
EXERCISE
7.3
A. Do as indicated.
1. If f (x) 4 x , find each of the following:
1
a. f ( 1) b. f (2x) c. f (x 3) d.
f (x )
4 x2
2. If G(x) , find each of the following:
x 1
a. G(2) b. G( 3) c. G( 3) d. G(1/ y)
2
3. Given that f is a function defined by f (x) x 3x 5 , find f (0), f (2), f (k), and f (x + h).
F (x a) F (x)
4. Find where a 0, if F (x) 3x 2 4x 6 .
a
f (x h) f (x) 1
5. For the function f (x) x 3 , show that , h 0.
h x 3 h x 3
y 1
6. If f (4 3x) 5x 12 , find f (x) , f (x 2) , f , f (5) , f ( 1/ 3)
y 1
3x 6x 5 x 2 y 2
7. If f , find f , f (x 2) , f , f (1) , f ( 1)
x 2 4x 3 3x y 2
2x if 5 x 0
8. If f (x) , find f (3) , f ( 3) , f (0) , f ( 9
2 ,
) f (5)
x if 2 x 5
5 if x 0
2
9. If f (x) 1 x if 0 x 1 , find f ( 3) , f (1/ 4) , f (1) , f (2) , f (5)
x 1 if1 x 5
In this section, we discuss how functions can be combined by addition, subtraction, multiplica-
tion, and division to form new functions, including composition of functions.
► Composition of Functions◄
The composition of two functions can be thought of as a “chain reaction”, in which the func-
tions occur one after the other.
Let f and g be any two functions. The composition of f with g is the func-
tion f g defined by
The domain of the composite function f g is the set of all values of x in the
domain of g such that g(x) belongs to the domain of f.
Solution.
2x 3
( f g)(x) f ( g(x)) f (9 5x)
x5
9 w
Let w 9 5x so that x .
5
9 w
2 3
5 18 2w 15 2w 3 2x 3
f (w) = f (x)
9 w 9 w 25 w 34 x 34
5
5
Chapter 7 Relations and Functions Section 7.4 Opera-
tions on Functions 167
2x 3
b. f 2x 3
(x) x 34
g 9 5x (x 34)(9 5x)
EXERCISE
7.4
A. For each given pair of functions, find each of the following: (f + g)(x), (f g)(x), (f g)(x), and
f
g (x)
1. f (x) x and g(x) 3 4. f (x) x 2 5 and g(x) x 2 x
2 x
2. f (x) 2 5x and g(x) 2x 5 5. f (x ) and g(x)
x 5 3 4x
3. f (x) 3x 2 and g(x) 3x 9 6. f (x) x and g(x) 2 x
B. Find ( f g)(x) and ( g f )(x) for each given pair of functions. Determine the domains of these
compositions of functions.
1 2
1. f (x) 3x and g(x) 4x 10 4. f ( x) and g(x)
3x 1 3 x
2. f (x) 2x 2 5 and g(x) 5x 5. f (x) 2x 1 and g(x) x 2 9
x2
3. f (x) x 5 and g(x) x 2 5 6. f (x) and g(x) x 4
x2 4
D. Do as indicated.
1. If f ( g(x)) 2x 4 and g(x) 3x , find f (x) .
2
2. If ( g f )(x) and g(x) 1 2x , find f (x) .
x 3
1 2
3. If f (x) and g(x) , define (a) f g (b) g f . Also determine the domain of each
1 3x x
composite function.
x 2x 4 3
4. If ( f g) and f (x) , find g(x) .
x 2 x5 x 2
3x 5
5. If g 4x 7 , find g(2x 3) .
4
x 3 f
6. If ( f g)(x) and g(x 1) 4 x , find (a) f (x) , (b) (x) and (c) ( g f )(x) . What are
x2 g
f
the domains of (x) and g f (x) ?
g
If we interchange the first and second coordinates of each of the ordered pairs of a relation,
we get another relation called its inverse.
The domain of a relation is the range of its inverse relation. The range of a relation is the do-
main of its inverse relation.
y
C 6_
_ Mirror (y =
B
_ x)
3_ A B
_
_ A
_ x
_
_
_
_
_
_
_
_
_
_
_
_
_
3 3 6
_
C
2 _
Note that each point of the inverse relation R1 is the mirror image of the corresponding point
of the relation R, that is, for every point (a, b) on the relation R, there corresponds a point (b, a) on
its inverse R1. If the inverse of a relation defines a function then, we call it an inverse function. A re-
lation that defines a function does not always have an inverse function.
Let f and g be two functions. The functions f and g are inverse functions if
and only if
Definition ( f g)(x) x for every x in the domain of g and
Given function: y 2x 4
Domain: Range:
y
To find the inverse of a function interchange
x and y and solve for y. _
_
Hence, we have y 2x 4 _
_3
x 2y 4 _
x 4 2y _
| | | | | _ | | | | | x
x 4
2 y _ 4
2 _ x
y 2
1 x _ 2
Therefore, the inverse function f is y 2 .
2 _ 4
Domain of f 1 = _
Range of f 1 =
x4
Example 7.5.2►Find the inverse of the function f (x) , if it exists.
3 3x
x4
Solution. Let y = f(x). Then y . For the inverse of f, we interchange x and y and solve for y.
3 3x
Hence, we have
y 4
x
3 3y
3x 3xy y 4
3x 4 y 3xy
3x 4 y(1 3x)
3x 4
y
1 3x
3x 4
This defines a function and therefore the inverse function exists, which is f 1(x) .
1 3x
EXERCISE
7.5
5. 6.