Relations and Functions
Relations and Functions
Relations and Functions
The relation shows the relationship between INPUT and OUTPUT. Whereas, a function is a
relation which derives one OUTPUT for each given INPUT.
What is a Relation?
A relation in math is a set of ordered pairs defining the relation between two sets.
A relation is a subset of a Cartesian product. Thus, a relation is a rule that “relates” an element
from one set to another.
Example:
In the relation, {(-2, 3), {4, 5), (6, -5), (-2, 3)},
Note: Don’t consider duplicates while writing the domain and range and also write it in
increasing order.
Note: All functions are relations, but not all relations are functions
What is a Function?
A relation is a subset of a Cartesian product. Thus, a relation is a rule that “relates” an element
from one set to another. A function is a special kind of relation. Let’s consider a relation F from
A set A to B
Definition: A relation F is said to be a function if each element in set A is associated with exactly
one element in set B.
To understand the difference between relations and functions with the help of an example.
Example
Set A = Names of all countries that won the cricket world cup
The arrow diagram shows (in the figure below) the relation R but not a function.
This is because elements of set A are associated with more than one element of set B.
Suppose we define a relation F from set A to B such that it associates the countries with the year
in which they won the world cup for the first time. Thus, every element in set A will be exactly
associated with only one element in set B.