In mathematics, a function f is a non-empty set of ordered pairs (x, f(x)) of which no two can have the same first element.
The set of all first elements in a function's ordered pairs is called the domain.
The set of all second elements is the range.
Functions are used in all branches of mathematics, physics, and science generally.