A function is defined as the set of ordered pairs such as (x,y) which is used for showing the relationship between the input and output. Also, this explains that there is one output for every input.
A relation is defined as the set of ordered pairs such as (x,y) where the input can have more than one output.