14.relations, Functions and Graphs
14.relations, Functions and Graphs
RELATIONS
In the Arrow Diagram that follows, we define a
In mathematics, we study relations between two sets relation between the set {1, 2, 3, 4} and the set {3, 6,
of numbers, where members of one set are related to 9, 12} as ‘multiply by 3’. Notice that 1 is mapped
the other set by a rule. Relations are also described as onto 3, 2 onto 6, 3 onto 9 and 4 onto 12. The arrows
mappings. When we map a set of numbers onto are drawn from the set X to the set Y.
another set of numbers, we often express the rule for
the mapping using mathematical relationships instead
of words.
m
Ordered pairs
co
An Arrow Diagram is often used to represent a
relation. The members of each set are listed inside an
enclosed shape and arrows are drawn to connect
related members. For a relation to exist between the
.
hs
sets, there must be a rule connecting pairs of
elements and this rule must hold for all mappings
from set X to set Y.
ordered pairs.
(7, 15) (8, 17) (9, 19) (10, 21)
sp
.fa
w
w
w
We refer to the members of the set X as the input and A relation exists between two sets of numbers if we
members of the set Y as the output. The direction of can find a rule that maps members of the first set
the arrows is always from the input to the output. (domain) onto members of the second set
(codomain). The rule must hold for all possible pairs
The mapping can also be represented as the set of that are connected. So that when we select a value of
ordered pairs: x, also called an input, and apply the rule of the
(4, 9) (5, 10) (6, 11) (7, 12). relation, we obtain the y value, also called the output.
We can also refer to the y value as the image of the x
The ordered pair preserves the directional property of value.
the relation. It is consistent with the order of points
plotted on a Cartesian Plane represented by (𝑥, 𝑦).
112
m
Codomain and Range
co
Now assume we define a relation from the set,
X= {1, 2, 3, 4} to the set, Y = {2,3,4,5,6,7,8}.
.
We will define the relation as x ® 2 x . The arrow
hs
diagram is shown below. Notice that some members
of the set Y are not outputs. These are the odd
numbers 3, 5 and 7.
The subset of Y consisting of the even numbers {2, 4, at Range is equal to the codomain
m
6, 8} is called the range.
Example 1
The entire set, Y, is called the codomain. A relation is represented by the ordered pairs shown
s
below:
(1, 5) (2, 7) (3, 9) (4, ?) ( ?, 23)
as
Solution
3.
w
113
2 6
4 2
4 8 −2
1
−3
5 10 3
m
9
co
In this relation,
• an element of A (2) is associated with more than (iii)
one element of B (6, 8, 10).
.
• more than one element of A (2 and 5) is
hs
associated with one element of B (10)
many
Solution
types of relationships. This is an example of a many
to many relation.
i. Each member of B is related to only one
w
114
m
the relation.
Examples and non-examples of a function
co
2 This is a one to one
−3 function.
.
The range is the same
4
hs
as the codomain.
−2
5
0
6
at This is a one to one
function.
m
The range is a subset of
the codomain.
The arrow diagram shows one example of a one-
s
to-many relation. We conclude that this relation is
as
one-to-many.
function.
defined from a set X to a set Y: Each member of the
• Every member of X is mapped onto one and domain is associated
w
115
m
Solution
𝑓(1) = 2(1) + 1 = 3 (i) Substitute the input values to find the output
𝑓: 1 → 2(1) + 1 = 3 values.
co
𝑦 = 2(1) + 1 = 3 y = 2(−2)2 + 3 = 8 + 3 = 11
y = 2(-1)2 + 3 = 2 + 3 = 5
If we have more than one function, we can use
.
another letter, say g or h so that we can write, for y = 2(0)2 + 3 = 0 + 3 = 3
hs
example: y = 2(1)2 + 3 = 2 + 3 = 5
y = 2(2)2 + 3 = 8 + 3 = 11
𝑔(𝑥) = 2𝑥 + 1
5
0
Example 4 1
11
Draw the graph of the relation represented by the 2
sp
116
m
we will have the following set of ordered pairs:
co
The domain for the new function is {2, 4, 6, 8, 10}
The range for the new function is {1, 2, 3, 4, 5}
.
hs
The new function which maps members of the range
onto members of the domain is called the inverse of
𝑓(𝑥), written as 𝑓 => (𝑥). The rule for this function is
at >
“divide by 2”, expressed as 𝑓 => (𝑥) = ? 𝑥.
−1
The inverse of f, denoted f (x) is the rule that
m
maps members of the range back onto members of
Horizontal Line Test for a One to One Function the domain.
s
In a similar fashion, we can develop a test for a one-
as
117
m
first understand order as it applies to composite
Start with 𝑥, subtract 2 then divide the result by 3. functions before making observations about the
This is represented symbolically as commutative property.
co
𝑥−2
𝑥 ⟶ 𝑥−2 ⟶ Notation for composite functions
3
.
Consider the following functions:
hs
The above method is useful in finding the inverse of x+3
simple functions. For more complex ones, the f ( x ) = 2 x + 1 and g(x) =
2
following steps are followed. We are interested in obtaining a function that
Step 1: Rewrite the function letting y = f (x) at combines both functions in the order:
𝑓(𝑥) followed by 𝑔(𝑥) or f followed by g.
m
So f (x) = 3x + 2 is written as y = 3x + 2
This means that 𝑓(𝑥) is the first function and 𝑔(𝑥) is
s
the second function. In writing this, we place the first
Step 2: Make x the subject
function, 𝑓, to the left of 𝑥 and the second function g,
y-2
as
x-2
f -1 ( x ) =
3 A more shortened form is 𝒈𝒇(𝒙), read as “g of f(x)”.
.fa
@A=>
Let y = AB? The output is now the input into 𝑔(𝑥), so we need
𝑔(11)
w
118
m
is not the same.
Solution
co
The function gf is called a composite function,
which is equivalent to a combination of f(x) and gf (x) = g[ f (x)]
then g(x). We can say that the function gf (x) = g[2x + 1]
.
means to perform f first and then g second. (2x + 1) + 3
hs
=
2
2x + 4
Deriving the Composite Function =
2
Conclusion
To determine the composite function 𝑔𝑓(𝑥), we can Since 𝑔𝑓(𝑥) ≠ 𝑓𝑔(𝑥)
carry out the following procedure.
.fa
𝑔𝑓(𝑥) = 𝑔[𝑓(𝑥)]
Example 8
w
Step 2: Given
We replace 𝑓(𝑥) by its rule, that is (𝑥 + 2) 𝟏
𝒇(𝒙) = , where 𝑥𝜖𝑅, 𝑥 ≠ 2.
w
Step 3:
We now apply the rule for the function, g, which can Solution
be read as ‘take the square root’ of the input. Since
the input is (𝑥 + 2), we write: 1
f (3) = = -1
𝑔[𝑥 + 2] = √𝑥 + 2 2-3
1 1
\ ff (3) = f (- 1) = =
2 - (- 1) 3
\ gf (x ) = x + 2
119
m
In a similar fashion, we could illustrate that
Let y = 3x – 1
co
𝑓𝑓 => (𝑥) = 𝑥
Making 𝑥 the subject, we have
CB> Hence,
x=
.
@
hs
𝑓𝑓 => (𝑥) = 𝑓 => 𝑓(𝑥)
AB>
Hence 𝑓 => (𝑥)= @
𝑓𝑓 => (𝑥)= 𝑓[
AB>
@
] = 3(
AB>
AB>
@
) -1 = x
(@A=>)B> at
m
𝑓 => 𝑓(𝑥)= 𝑓 => R S = =x
@ @
=> (2)
𝑓 = =1
3
𝑓(2) = 3(2) − 1 = 5 5 + 1
𝑓 => (5) = =2
3
w
1 2 2 1
2 5 5 2
3 8 8 3
120