Sets and Logic · Synonyms

“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

function

Elementary

A function is a rule that takes an input and gives exactly one output, like a machine.

High school

Consider two sets $X$ and $Y$. A function $f : X \to Y$ assigns to each element $x$ of $X$ exactly one element $f(x)$ of $Y$. The set $X$ is called the domain of $f$, and $Y$ is called the codomain of $f$.

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
Non-examples
Things that may be mistaken for examples of this term.

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.

See also

All distinctions · All definitions · Notation