A function is an equation that has only one answer for y for every x. A function assigns exactly one output to each input of a speceified type. It is common to name a function either f(x) or g(x) instead of y. f(2) means that we should find the value of our function when x equals 2.