What is the difference between relations and functions? Provide own examples.

Answer:
The difference between a relation and a function is that a relationship can have many outputs for a single input, but a function has a single input for a single output. This is the basic factor to differentiate between relation and function. Relations are used, so those model concepts are formed.
Step-by-step explanation:
Relation
R = {(2, x), (9, y), (2, z)}
** It is not a function, as “2” is input for both x and z.
Funtion
F = {(2, x), (9, y), (5, x)}