Function
Elementary
A function is a rule that takes an input and gives exactly one output, like a machine.
High school
Graduate (set theory)
Consider two sets $X$ and $Y$, and their product $X \times Y$. A function from $X$ to $Y$ is a subset $f \subseteq X \times Y$ such that for each $x \in X$ there is exactly one $y \in Y$ such that $(x, y) \in f$. In this formalization, a function is identified with its graph (together with its codomain).
Examples
Examples
-
A continuous map from a sphere to the plane is a function, because it assigns to each point of the sphere exactly one point of the plane.
-
$f \mapsto f^{\prime}$ is a function, because it assigns one function to each differentiable function.
-
$f(x) = x^2$ is a function, because it assigns to each real number $x$ exactly one real number $x^2$.
-
$T$ is a function, because it assigns to each vector $x$ in $\reals^2$ exactly one vector $T(x)$ in $\reals^2$.
-
$f \mapsto f(0)$ is a function, because it assigns one number to each input function.
Non-examplesThings that may be mistaken for examples of this term.
-
The unit circle $x^2 + y^2 = 1$ is not a function, because it is a set of points, not a rule.
-
The circle $x^2 + y^2 = 1$ is not a function taking $x$ to $y$, because for $x = 0$ there are two values, $y = 1$ and $y = -1$.
-
The relation $<$ on $\reals$ is not a function, because it relates $0$ to every positive number, not to exactly one number.
Distinctions involving this term
- Function vs. Map: “Function” and “map” (or “mapping”) mean exactly the same thing. “Map” is more common when the function preserves some structure or acts on geometric objects, but every statement about functions holds for maps, and vice versa.
All definitions · All distinctions · All examples · Notation