Skip to content

Image and Preimage of a Set

Definition

Let XX and YY be sets (in this course usually subsets of metric spaces), and let f ⁣:X→Yf\colon X\to Y be a function. Let CC be a subset of the domain XX, the image of CC under ff is defined as:

f(C)={y∈Y ⁣:there exists some x∈C such that y=f(x)}.f(C)=\{y\in Y\colon \text{there exists some } x\in C \text{ such that } y=f(x)\}.

Let VV be a subset of the codomain YY, the preimage of VV under ff includes all points in the domain that give results in VV:

f−1(V)={x∈X ⁣:f(x)∈V}.f^{-1}(V)=\{x\in X\colon f(x)\in V\}.

Interpretation

The image pushes a set of inputs forward: f(C)f(C) collects the outputs obtained from inputs in CC. The preimage pulls a set of outputs back: f−1(V)f^{-1}(V) collects all inputs whose output lands in VV.

Two boxes X and Y with arrows f. A set C in X is mapped onto its image f(C) in Y, and a set V in Y pulls back to its preimage, the set of points of X mapped into V.

The three marked points of CC are sent to only two points of f(C)f(C), so this ff is not injective. Going back, f−1(V)f^{-1}(V) contains every point of XX that is mapped into VV, wherever it lies in XX.

A common slip is to read f−1(V)f^{-1}(V) as requiring an inverse function. The preimage is defined for every function. For f(x)=x2f(x)=x^2 on R\mathbb{R}, f−1({4})={−2,2}f^{-1}(\{4\})=\{-2,2\} and f−1({−1})=∅f^{-1}(\{-1\})=\varnothing. Only for a bijection does f−1(V)f^{-1}(V) coincide with the image of VV under the inverse function. The same ff shows that the inclusions in the Key Results can be strict: for C=[0,1]C=[0,1] we get f−1(f(C))=[−1,1]f^{-1}(f(C))=[-1,1], and for V=[−1,1]V=[-1,1] we get f(f−1(V))=[0,1]f(f^{-1}(V))=[0,1].

Preimages behave well with set operations: they preserve unions, intersections and complements. Images preserve unions, but in general only f(C1∩C2)⊆f(C1)∩f(C2)f(C_1\cap C_2)\subseteq f(C_1)\cap f(C_2) holds.

The range of ff is the image of the whole domain, and a level set is the preimage of a single value. In probability, the event generated by a random variable and a set B⊆RB\subseteq\mathbb{R} is the preimage of BB under the random variable.

This idea returns later: continuity can be characterized by preimages of open sets being open, whereas images of open sets need not be open.


Key Results

  • VV only needs to be a part of the codomain of ff. This means there might be some yy in VV that doesn't match any xx in the domain XX.
  • We have C⊆f−1(f(C))C \subseteq f^{-1}(f(C)) and f(f−1(V))⊆Vf(f^{-1}(V)) \subseteq V.

Examples

  • Let f ⁣:R2→Rf\colon\mathbb{R}^2\to\mathbb{R} be f(x,y)=x+yf(x,y)=x+y. Image of the unit square [0,1]×[0,1][0,1]\times[0,1] under ff is [0,2][0,2]. Preimage of {0}\{0\} under ff is the line y=−xy=-x.
  • Let f ⁣:R2→Rf\colon \mathbb{R}^2\to\mathbb{R} be f(x,y)=xf(x,y)=x. Image of the disc {(x,y)∈R2 ⁣:x2+y2≤1}\{(x,y)\in\mathbb{R}^2\colon x^2+y^2 \leq 1\} under ff is [−1,1][-1,1]. Preimage of [2,3][2,3] under ff is the vertical strip [2,3]×R[2,3]\times\mathbb{R}.

Prerequisites

Sources

Keywords: image of a set, preimage, inverse image Symbols: element of, intersection, real numbers, subset

Last updated: 22 October 2026 19:04