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.
Definitions
Level:
Notation
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
-
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.
Missing definition: map
Examples
| Example | function | map | Why |
|---|---|---|---|
| $f(x) = x^2$ on $\reals$ | ✓ | – | “Function” is the usual word for $f(x) = x^2$, because its inputs and outputs are numbers. |
| A linear map $T : \reals^2 \to \reals^2$ | ✓ | – | “Linear map” is more common than “linear function” for $T$, partly because “linear function” also means $x \mapsto m x + b$ in school algebra. |
| A continuous map from a sphere to the plane | ✓ | – | “Map” is the usual word for a continuous map from a sphere to the plane, because in topology and geometry the inputs and outputs are points of spaces. |
Notes
- For where each word is more common, see map.
- In category theory, “morphism” generalizes “map” to arrows that need not be functions at all.