The difference between relation and function is described
<em><u>Solution:</u></em>
Let us first understand about relation and function
A relation is a set of inputs and outputs that are related in some way.
When each input in a relation has exactly one output, the relation is said to be a function.
To determine if a relation is a function, we make sure that no input has more than one output
Every function is a relation ,but every relation doesn't represent a function
<em><u>Example:</u></em>
R = {(2, x), (9, y), (2, z)}
It is not function as “2” is input for both x and z
F = {(2, x), (9, y), (5, x)} is a function because all the first elements are different.
<em><u>Differences:</u></em>
<em><u>Relation:</u></em>
- A relation is a relationship between sets of values
- A relation is denoted by “R”
- Every relation is not a function.
<em><u>Functions:</u></em>
- A function is a relation in which there is only one output for each input.
- A function is denoted by “F” or “f”
- Every function is a relation.