Relation means collection of inputs and outputs which are related to each other in some way. If each input of the relation having exactly one output, then that relation is called a function.