Relations and Functions
Relations and Functions
Examples
Functions and relations are one the most important topics in Algebra. In most
occasions, many people tend to confuse the meaning of these two terms.
In this article, we ae going to define and elaborate on how you can identify if a
relation is a function. Before we go deeper, let’s look at a brief history of functions.
Let’s now review some key concepts as used in functions and relations.
What is a set?
For example,
These are numbers that go hand in hand. Ordered pair numbers are represented
within parentheses and separated by a comma. For example, (6, 8) is an ordered-pair
number whereby the numbers 6 and 8 are the first and second element respectively.
What is a domain?
A domain is a set of all input or first values of a function. Input values are generally
‘x’ values of a function.
What is a range?
The range of a function is a collection of all output or second values. Output values are
‘y’ values of a function.
What is a function?
In mathematics, a function can be defined as rule that relates every element in one
set, called the domain, to exactly one element in another set, called the range. For
example, y = x + 3 and y = x2 – 1 are functions because every x-value produces a
different y-value.
A relation
Types of Functions
Functions can be classified in terms of relations as follows:
Linear Function
Inverse Functions
Constant Function
Identity Function
Absolute Value Function
Note: if there is repetition of the first members with an associated repetition of the
second members, then, the relation becomes a function.
Example 1
Solution
⟹ {-2, 4, 6}
B = {(1, 5), (1, 5), (3, -8), (3, -8), (3, -8)}
Solution
B = {(1, 5), (1, 5), (3, -8), (3, -8), (3, -8)}
Example 3
Determine the domain and range of the following function: Z = {(1, 120), (2, 100), (3,
150), (4, 130)}.
Solution
Example 4
Solution
1. All the first values in W = {(1, 2), (2, 3), (3, 4), (4, 5)} are not repeated, therefore,
this is a function.
2. Y = {(1, 6), (2, 5), (1, 9), (4, 3)} is not a function because, the first value 1 has
been repeated twice.
Example 5
Determine whether the following ordered pairs of numbers is a function.
Solution
Practice Questions
1. Check whether the following relation is a function:
a. A = {(-3, -1), (2, 0), (5, 1), (3, -8), (6, -1)}
b. B = {(1, 4), (3, 5), (1, -5), (3, -5), (1, 5)}
c. C = {(5, 0), (0, 5), (8, -8), (-8, 8), (0, 0)}
d. D = {(12, 15), (11, 31), (18, 8), (15, 12), (3, 12)}
Relations and Functions” are the most important topics in algebra. Relations and functions –
these are the two different words having different meanings mathematically. You might get
confused about their difference. Before we go deeper, let’s understand the difference between
both with a simple example.
An ordered pair is represented as (INPUT, OUTPUT):
The relation shows the relationship between INPUT and OUTPUT. Whereas, a function is a
relation which derives one OUTPUT for each given INPUT.
Note: All functions are relations, but not all relations are functions.
In this section, you will find the basics of the topic – definition of functions and relations,
special functions, different types of relations and some of the solved examples.
What is a Function?
A function is a relation which describes that there should be only one output for each input (or)
we can say that a special kind of relation (a set of ordered pairs), which follows a rule i.e every
X-value should be associated with only one y-value is called a function.
For example:
Domain Range
-1 -3
1 3
3 9
Let us also look at the definition of Domain and Range of a function.
Domain It is a collection of the first values in the ordered pair (Set of all input (x) values).
Range It is a collection of the second values in the ordered pair (Set of all output (y) values).
Example:
In the relation, {(-2, 3), {4, 5), (6, -5), (-2, 3)},
The domain is {-2, 4, 6} and range is {-5, 3, 5}.
Note: Don’t consider duplicates while writing the domain and range and also write it in
increasing order.
Types of Functions
In terms of relations, we can define the types of functions as:
Constant Function
Identity Function
Linear Function
Absolute Value Function
Inverse Functions
Relation Representation
There are other ways too to write the relation, apart from set notation such as through tables,
plotting it on XY- axis or through mapping diagram.
Types of Relations
Different types of relations are as follows:
Empty Relations
Universal Relations
Identity Relations
Inverse Relations
Reflexive Relations
Symmetric Relations
Transitive Relations
Let us discuss all the types one by one.
Empty Relation
When there’s no element of set X is related or mapped to any element of X, then the relation R in
A is an empty relation, and also called the void relation, i.e R= ∅.
For example, if there are 100 mangoes in the fruit basket. There’s no possibility of finding a
relation R of getting any apple in the basket. So, R is Void as it has 100 mangoes and no apples.
Universal relation
R is a relation in a set, let’s say A is a universal relation because, in this full relation, every
element of A is related to every element of A. i.e R = A × A.
It’s a full relation as every element of Set A is in Set B.
Identity Relation
If every element of set A is related to itself only, it is called Identity relation.
I={(A, A), ∈ a}.
For Example,
When we throw a dice, the total number of possible outcomes is 36. I.e (1, 1) (1, 2), (1, 3)…..(6,
6). From these, if we consider the relation (1, 1), (2, 2), (3, 3) (4, 4) (5, 5) (6, 6), it is an identity
relation.
Inverse Relation
If R is a relation from set A to set B i.e R ∈ A X B. The relation R−1 = {(b,a):(a,b) ∈ R}.
For Example,
If you throw two dice if R = {(1, 2) (2, 3)}, R−1= {(2, 1) (3, 2)}. Here the domain is the range
R−1 and vice versa.
Reflexive Relation
A relation is a reflexive relation iIf every element of set A maps to itself, i.e for every a ∈ A, (a,
a) ∈ R.
Symmetric Relation
A symmetric relation is a relation R on a set A if (a, b) ∈ R then (b, a) ∈ R, for all a & b ∈ A.
Transitive Relation
If (a, b) ∈ R, (b, c) ∈ R, then (a, c) ∈ R, for all a,b,c ∈ A and this relation in set A is transitive.
Equivalence Relation
If a relation is reflexive, symmetric and transitive, then the relation is called an equivalence
relation.
Examples
Example 1: Is A = {(1, 5), (1, 5), (3, -8), (3, -8), (3, -8)} a function?
Solution: If there are any duplicates or repetitions in the X-value, the relation is not a function.
But there’s a twist here. Look at the following example:
Though X-values are getting repeated here, still it is a function because they are associating with
the same values of Y.
The point (1, 5) is repeated here twice and (3, -8) is written thrice. We can rewrite it by writing a
single copy of the repeated ordered pairs. So, “A” is a function.
Example 2: Give an example of an Equivalence relation.
Solution:
If we note down all the outcomes of throwing two dice, it would include reflexive, symmetry and
transitive relations. Then, throwing two dice is an example of an equivalence relation.
Example 3: All functions are relations, but not all relations are functions. Justify.
Solution:
Let’s suppose, we have two relations given in below table
Worksheet – SET 1
Relations are sets of ordered pairs. Usually, the first coordinates come from a set called the
domain and are thought of as inputs. The second coordinates are thought of as outputs and
come from a set called the range (I actually prefer to call this the co-domain but that’s a
long story we don’t need to go into here).
In order for a relation to be a function, each input must have one and only one output.
If you look at a collection of people, you can think of there being a relation between height
and age (people generally get taller as they age then remain the same height for a while
and then at some point they start getting a bit shorter). This is a relation but not a function
because if you input an age people of the same age will have different heights. However, for
a particular person, height is a function of age. At any given point in their life (age) that
person will be exactly one height. It’s impossible for one person to be 5’ 6” and 6’ 2” at the
same time.
In one semester at college, there is a relation between a student and their final grades; the
same student can have different grades in different courses. In a particular class, there is a
function from the students to their grades. The professor assigns a grade to each student
and each student is assigned one and only one grade.
Generally there is a relation between time and temperature (as in the weather). If you look
at a particular location, temperature is a function of time; at any moment the thermometer
at that location can only read one temperature.
Once you pull up to a pump and choose your fuel, the cost of filling up your car with gas is
a function of how much gas you put in your car. The cost of taking a (particular) taxi is
usually a function of how long the ride is.
Functional Relationship Examples: Distance-Time Graphs
and Temperature-
Precipitation Graphs
A real-life example of a functional relationship is the
relationship between distance and time. We all know that it
takes time to travel distances and when we travel any
distance (or stand still), it takes a certain amount of time to
do so. The relationship between distance and time is a
functional relationship.
Another example of a real-life functional relationship is the relationship between temperature and precipitation.
This relationship represents concepts in science (e.g., weather) as well as concepts in mathematics (e.g.,
measurement).
Before going on, take a look at some of the services you receive (e.g., cell phone service) and make some
comparisons between service providers to see for yourself how the concept of functional relationships can be
used in everyday life. Revisit the web sites presented in this learning activity to reinforce your understanding of
functional relationships.
An understanding of functional relationships helps us figure out how different variables work together. We use
this concept to understand everything from the weather to how we spend the funds at our disposal. Knowing
how one variable affects another (and hence the situation at hand) helps us make good decisions.
Algebraic reasoning is a skill that develops as we learn more about numbers and the relationships between
them. Algebraic reasoning also helps us make sense out of present situations as well as situations in the
future. Being able to generalize helps us to look ahead and see what will happen if we continue the same
pattern or way of thinking. In addition, if we have a general idea about how variables work together, we can
make wise choices related to each variable.