A function in math is the process of showing a relationship between the input and output of a problem. The number you put in is directly related to the number you get out.
A function is a relation (a set of ordered pairs), in which each element of the domain (the x-values) corresponds (is paired) to one and ONLY ONE element of the range (the y-values).