In mathematics, a function is a relation where each input (x) has exactly one output which we can call Y.There are many different ways we can represent functions including mapping diagrams, graphs, and ordered pairs.