Preimage
High school
Consider a function $f$ and a set $B$ of possible outputs. The preimage of $B$ under $f$ is the set of all inputs $x$ whose output $f(x)$ is in $B$.
Undergraduate
Consider a function $f : X \to Y$ and a set $B \subseteq Y$. The preimage of $B$ is
\[f^{-1}(B) = \setdef{x \in X \suchthat f(x) \in B}.\]Examples
Worked examples
-
Value:
$f^{-1}(\setdef{4}) = \setdef{-2, 2}$
This is the same rule as $x \mapsto x^2$ on $\reals$, but with the smaller codomain $[0, \infty)$, which equals the range. -
Value:
$f^{-1}(\setdef{4}) = \setdef{-2, 2}$ and $f^{-1}(\setdef{-1}) = \emptyset$
The preimage $f^{-1}(\setdef{4})$ exists even though $f$ has no inverse. No real number squares to $-1$, so $f^{-1}(\setdef{-1})$ is empty.
Properties
- For a function $f : X \to \reals$, the $c$-level set of $f$ is the preimage $f^{-1}(\setdef{c})$ of a single point, and the $c$-sublevel set of $f$ is the preimage $f^{-1}((-\infty, c])$ of an interval.
- Preimages preserve unions, intersections, and complements: $f^{-1}(A \cup B) = f^{-1}(A) \cup f^{-1}(B)$, $f^{-1}(A \cap B) = f^{-1}(A) \cap f^{-1}(B)$, and $f^{-1}(Y \setdiff B) = X \setdiff f^{-1}(B)$. Images preserve unions, but not always intersections or complements.
Notes
The preimage is always defined, even for functions with no inverse.
Distinctions involving this term
- Domain vs. Range vs. Codomain vs. Image vs. Preimage: A function comes with several sets that describe its inputs and outputs. The domain is where inputs come from, and the codomain is where outputs are allowed to land. The range is the set of outputs that actually occur. For a set $A$ of inputs, the image $f(A)$ is the set of outputs for inputs in $A$, so the range is the image of the whole domain. For a set $B$ of outputs, the preimage $f^{-1}(B)$ is the set of inputs that land in $B$.
All definitions · All distinctions · All examples · Notation