“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.
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.
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).
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.