relation is a relationship between two variables usually x and y in which the input which is usually x has to restrictions in order to come up with the value y.
however function is a relation but has restrictions and there are some values that cannot and never will satisfy the value of y.