Module 2 - 3 Functions and Relations
Module 2 - 3 Functions and Relations
Mathematical Language
and Symbols
x y= f(x)
Let us say the question is this. What is y = f(x) = 3x + 2 when x = 2?
A B Now,
when our
x = 2, then
x=2 y= f(x)= 8
our
y = f(x)
would be
3x + 2 = 8
To be able to understand better what a relation is all about more specifically if we talked about relation in
mathematics, let us have a simple illustration.
Let A = {1,2,3} and B = {2, 3, 4} and let us say that an element x in A is related to
an element y in B if and only if, x is less than y (x < y) and let us use the notation x R y
as translated mathematical term for the sentence “x is related to y. Then, it follows that:
A B
x R y iff x < y
1 R 2 since 1 < 2
1 R 3 since 1 < 3 1 2
1 R 4 since 1 < 4
2 3
2 R 3 since 2 < 3
2 R 4 since 2 < 4 3 4
3 R 4 since 3 < 4.
What are the elements (ordered pair) in A x B, based on the given conditions, that
are related? Recall that x < y, perhaps your answer would be:
Observe that knowing which ordered pairs lie in this set is equivalent to knowing
which elements are related to which. The relation can therefore be thought of the
totality of ordered pairs whose elements are related by the given condition. The
formal mathematical definition of relation, based on this idea, was introduced by the
American mathematicians and logician C.S. Peirce in the nineteenth century.
2. Let A and B set. A relation (Rel) from A to B is a subset of A x B. Given an ordered pair (x, y) in A x
B, x is related to y by R, written x R y, if and only if, (x, y) is in R. The set A is called the domain of R
and the set B is called its co-domain or range.
A B
A x B = {(1,3), (1,5), (1,7), (2,3), (2,5), (2,7), (3,3), (3,5), (3,7)}
1 3
Let us say, the relation would be a = b. So, Rel = {(3, 3)}
{(0, -5), (1, -4), (2, -3), (3, -2), (4, -1), (5, 0)}
1
1
2
2
3
b) Is 1 R 3? Is 2 R 3? Is 2 R 2?
Yes! 1 R 3 because (1,3) R
No! 2 R 3 because (2,3) R
Yes! 2 R 2 because (2,2) R.
For each x in A and y in B, draw an arrow from x to y, and only if, x is related to
y by R. Symbolically:
Solution:
A x B = {(1,1), (1,3), (1,5), (2,1), (2,3), (2,5), (3,1), (3,3), (3,5)}. It is given by x < y
so S = {(1,3), (1,5), (2,3), (2,5), (3,5)}
1 1
2 3
3 5
An example of a non reflexive relation is the relation "is the father of" on a set of people since no person is the
father of themself. In an ordered pair (a, a).
R = {(x,y)| x = a; y = a}
R = {(1,1), (1,2), (2,2), ,(2,1), (3,3)} is a reflexive
Module 2 | Topic 2-3 : Four Basic Concepts (Functions and Relations)
When looking at an arrow diagram, a relation is reflexive if every element of
A has an arrow pointing to itself. For example, the relation in a given figure below
is a reflexive relation.
For example, "is married to" is a symmetric relation, while, "is less than"
is not. The relation "is the sister of" is not symmetric on a set that contains a
brother and sister but would be symmetric on a set of females. The arrow
diagram of a symmetric relation has the property that whenever there is a
directed arrow from a to b, there is also a directed arrow from b to a.
A={1,2,3}
B=(4,5}
R = {(1,2), (2,1),
(1,4) (4,1)(1,5)(5,1) (2,2), (1,1)}
On the other hand, "is the mother of" is not a transitive relation, because if Maria is the mother
of Josefa, and Josefa is the mother of Juana, then Maria is not the mother of Juana.
On the other hand, the relation " " is not an equivalence relation on the set
of all subsets of a set A since this relation is not symmetric.
A function from set X to Y is the set of ordered pairs of real numbers (x, y) in
which no two distinct ordered pairs have the same first component. Similar to a
relation, the values of x is called the domain of the function and the set of all resulting
value of y is called the range or co-domain of the function.
A relation f from a set A to a set B is said to be function if every
element of set A has one and only one image in set B.
2. For all elements x in A and y and z in B, if (x,y) F and (x,z) F, then y =
z
These two properties; (1) and (2) can be stated less formally as follows:
The set of all values of f (x) taken together is called the range of f or image of
X under f.
Symbolically.
• If the set of ordered pairs have different x-coordinates (or the first element of an ordered pair),
it IS A function
• If the set of ordered pairs have same x-coordinates,
it is NOT a function but it could be said a relation
Note:
Y-coordinates have no bearing in determining functions
Function is a relation but relation could not be said as function.
Module 2 | Topic 2-3 : Four Basic Concepts (Functions and Relations)
Illustration
{(0, 5), (1, 4), (2, 3), (3, 2), (4, 1), (5, 0)}
•Is this a function?
• Hint: Look only at the x-coordinates
YES
{(–1, 7), (1, 0), ( 2, 3), (0, 8), (0, 5), (–2, 1)}
•Is this a function?
• Hint: Look only at the x-coordinates
NO
Module 2 | Topic 2-3 : Four Basic Concepts (Functions and Relations)
Illustration
Which mapping represents a function?
Choice 1
Module 2 | Topic 2-3 : Four Basic Concepts (Functions and Relations)
Allan
Learsi Casiano
Ernesto
Casiano Learsi
Ernesto
This is a function.
Illustration
Which mapping represents a function?
A. B.
B
Module 2 | Topic 2-3 : Four Basic Concepts (Functions and Relations)
Vertical Line Test
•Vertical Line Test: a relation is a function if a
vertical line drawn through its graph, passes through
only one point.
Would this
graph be a
function?
YES
Module 2 | Topic 2-3 : Four Basic Concepts (Functions and Relations)
Vertical Line Test
Would this
graph be a
function?
NO
Module 2 | Topic 2-3 : Four Basic Concepts (Functions and Relations)
According to the vertical line test and the
definition of a function, if a vertical line cuts
the graph more than once, the graph could
not be the graph of a function since we have
multiple y- values for the same x-value and
this violates the definition of a function.
g(-2) = x – 3; so we get;
2
Solution:
(f • g)(x) = f(x) • g(x)
= (2x + 1)(3x + 2)
= 6x2 + 7x + 2
Solution:
Solution:
(g f)(x) = g(f(x)) = g(2x + 1)
= 3(2x + 1) + 2
= 6x + 3 + 2
= 6x + 5
Solution:
(f g)(x) = f(g(x)) = f(3x + 2)
= 2(3x + 2) + 1
= 6x + 4 + 1
= 6x + 5
Solution:
(f f)(x) = f(f(x)) = f(2x + 1)
= 2(2x + 1) + 1
= 4x + 2 + 1
= 4x + 3
• Degree 1.
• One x-intercepts.
• No turning points.