In mathematics, for a function f: X \to Y, the image is a relation between inputs and outputs, used in three related ways:
- The image of an input value
xis the single output value produced byfwhen passedx. The preimage of an output valueyis the set of input values that producey. - More generally, evaluating
fat each element of a given subsetAof its domainXproduces a set, called the "image ofAunder (or through)f". Similarly, the inverse image (or preimage) of a given subsetBof the codomainYis the set of all elements ofXthat map to a member ofB. - The image of the function
fis the set of all output values it may produce, that is, the image ofX. The preimage offis the preimage of the codomainY. Because it always equalsX(the domain off), it is rarely used.
Image and inverse image may also be defined for general binary relations, not just functions.
Definition
The word "image" is used in three related ways. In these definitions, f : X \to Y is a function from the set X to the set Y.
Image of an element
If x is a member of X, then the image of x under f, denoted f(x), is the value of f when applied to x. f(x) is alternatively known as the output of f for argument x.
Given y, the function f is said to take the value y or take y as a value if there exists some x in the function's domain such that f(x) = y.
Similarly, given a set S, f is said to take a value in S if there exists some x in the function's domain such that f(x) \in S.
However, f takes [all] values in S and f is valued in S means that f(x) \in S for every point x in the domain of f.
Image of a subset
Throughout, let f : X \to Y be a function.
The image under f of a subset A of X is the set of all f(a) for a\in A. It is denoted by f[A], or by f(A) when there is no risk of confusion. Using set-builder notation, this definition can be written as[1][2]
f[A] = \{f(a) : a \in A\}
This induces a function f[\,\cdot\,] : \mathcal P(X) \to \mathcal P(Y), where \mathcal P(S) denotes the power set of a set S; that is the set of all subsets of S. See § Notation below for more.
Image of a function
The image of a function is the image of its entire domain, also known as the range of the function.[3] This last usage should be avoided because the word "range" is also commonly used to mean the codomain of f.
Generalization to binary relations
If R is an arbitrary binary relation on X \times Y, then the set \{ y \in Y : x R y \text{ for some } x \in X \} is called[by whom?] the image, or the range, of R. Dually, the set \{ x \in X : x R y \text{ for some } y \in Y \} is called[by whom?] the domain of R.
Inverse image
Let f be a function from X to Y. The preimage or inverse image of a set B \subseteq Y under f, denoted by f^{-1}[B], is the subset of X defined by
f^{-1}[ B ] = \{ x \in X \,:\, f(x) \in B \}.
Other notations include f^{-1}(B) and f^{-}(B).[4]
The inverse image of a singleton set, denoted by f^{-1}[\{ y \}] or by f^{-1}(y), is also called the fiber (or fibre) over y, or the level set of y. The set of all the fibers over the elements of Y is a family of sets indexed by Y.
For example, for the function f(x) = x^2, the inverse image of \{ 4 \} would be \{ -2, 2 \}. Again, if there is no risk of confusion, f^{-1}[B] can be denoted by f^{-1}(B), and f^{-1} can also be thought of as a function from the power set of Y to the power set of X. The notation f^{-1} should not be confused with that for inverse function, although it coincides with the usual one for bijections in that the inverse image of B under f is the image of B under f^{-1}.
Notation for image and inverse image
The traditional notations used in the previous section do not distinguish the original function f : X \to Y from the image-of-sets function f : \mathcal{P}(X) \to \mathcal{P}(Y); likewise they do not distinguish the inverse function (assuming one exists) from the inverse image function (which again relates the powersets). Given the right context, this keeps the notation light and usually does not cause confusion. But if needed, an alternative[5] is to give explicit names for the image and preimage as functions between power sets:
Arrow notation
f^\rightarrow : \mathcal{P}(X) \to \mathcal{P}(Y)withf^\rightarrow(A) = \{ f(a)\;|\; a \in A\}f^\leftarrow : \mathcal{P}(Y) \to \mathcal{P}(X)withf^\leftarrow(B) = \{ a \in X \;|\; f(a) \in B\}
Star notation
f_\star : \mathcal{P}(X) \to \mathcal{P}(Y)instead off^\rightarrowf^\star : \mathcal{P}(Y) \to \mathcal{P}(X)instead off^\leftarrow
Other terminology
- An alternative notation for
f[A]used in mathematical logic and set theory isf\,''A.[6][7] - Some texts refer to the image of
fas the range off,[8] but this usage should be avoided because the word "range" is also commonly used to mean the codomain off.
Examples
f : \{ 1, 2, 3 \} \to \{ a, b, c, d \}defined by\left\{\begin{matrix} 1 \mapsto a, \\ 2 \mapsto a, \\ 3 \mapsto c. \end{matrix}\right.The image of the set\{ 2, 3 \}underfisf(\{ 2, 3 \}) = \{ a, c \}.The image of the functionfis\{ a, c \}.The preimage ofaisf^{-1}(\{ a \}) = \{ 1, 2 \}.The preimage of\{ a, b \}is alsof^{-1}(\{ a, b \}) = \{ 1, 2 \}.The preimage of\{ b, d \}underfis the empty set\{ \ \} = \emptyset.f : \R \to \Rdefined byf(x) = x^2.The image of\{ -2, 3 \}underfisf(\{ -2, 3 \}) = \{ 4, 9 \},and the image offis\R^+(the set of all positive real numbers and zero). The preimage of\{ 4, 9 \}underfisf^{-1}(\{ 4, 9 \}) = \{ -3, -2, 2, 3 \}.The preimage of setN = \{ n \in \R : n < 0 \}underfis the empty set, because the negative numbers do not have square roots in the set of reals.f : \R^2 \to \Rdefined byf(x, y) = x^2 + y^2.The fibersf^{-1}(\{ a \})are concentric circles about the origin, the origin itself, and the empty set (respectively), depending on whethera > 0, \ a = 0, \text{ or } \ a < 0(respectively). (Ifa \ge 0,then the fiberf^{-1}(\{ a \})is the set of all(x, y) \in \R^2satisfying the equationx^2 + y^2 = a,that is, the origin-centered circle with radius\sqrt{a}.)- If
Mis a manifold and\pi : TM \to Mis the canonical projection from the tangent bundleTMtoM,then the fibers of\piare the tangent spacesT_x(M) \text{ for } x \in M.This is also an example of a fiber bundle. - A quotient group is a homomorphic image.
Properties
Counter-examples based on the real numbers \R,f : \R \to \R defined by x \mapsto x^2,showing that equality generally need not hold for some laws: |
|---|
General
For every function f : X \to Y and all subsets A \subseteq X and B \subseteq Y, the following properties hold:
| Image | Preimage |
|---|---|
f(X) \subseteq Y | f^{-1}(Y) = X |
f\left(f^{-1}(Y)\right) = f(X) | f^{-1}(f(X)) = X |
f\left(f^{-1}(B)\right) \subseteq B(equal if B \subseteq f(X); for instance, if f is surjective)[9][10] | f^{-1}(f(A)) \supseteq A(equal if f is injective)[9][10] |
f(f^{-1}(B)) = B \cap f(X) | \left(f \vert_A\right)^{-1}(B) = A \cap f^{-1}(B) |
f\left(f^{-1}(f(A))\right) = f(A) | f^{-1}\left(f\left(f^{-1}(B)\right)\right) = f^{-1}(B) |
f(A) = \varnothing \,\text{ if and only if }\, A = \varnothing | f^{-1}(B) = \varnothing \,\text{ if and only if }\, B \subseteq Y \setminus f(X) |
f(A) \supseteq B \,\text{ if and only if } \text{ there exists } C \subseteq A \text{ such that } f(C) = B | f^{-1}(B) \supseteq A \,\text{ if and only if }\, f(A) \subseteq B |
f(A) \supseteq f(X \setminus A) \,\text{ if and only if }\, f(A) = f(X) | f^{-1}(B) \supseteq f^{-1}(Y \setminus B) \,\text{ if and only if }\, f^{-1}(B) = X |
f(X \setminus A) \supseteq f(X) \setminus f(A) | f^{-1}(Y \setminus B) = X \setminus f^{-1}(B)[9] |
f\left(A \cup f^{-1}(B)\right) \subseteq f(A) \cup B[11] | f^{-1}(f(A) \cup B) \supseteq A \cup f^{-1}(B)[11] |
f\left(A \cap f^{-1}(B)\right) = f(A) \cap B[11] | f^{-1}(f(A) \cap B) \supseteq A \cap f^{-1}(B)[11] |
Also:
f(A) \cap B = \varnothing \,\text{ if and only if }\, A \cap f^{-1}(B) = \varnothing
Multiple functions
For functions f : X \to Y and g : Y \to Z with subsets A \subseteq X and C \subseteq Z, the following properties hold:
(g \circ f)(A) = g(f(A))(g \circ f)^{-1}(C) = f^{-1}(g^{-1}(C))
Multiple subsets of domain or codomain
For function f : X \to Y and subsets A, B \subseteq X and S, T \subseteq Y, the following properties hold:
| Image | Preimage |
|---|---|
A \subseteq B \,\text{ implies }\, f(A) \subseteq f(B) | S \subseteq T \,\text{ implies }\, f^{-1}(S) \subseteq f^{-1}(T) |
f(A \cup B) = f(A) \cup f(B)[11][12] | f^{-1}(S \cup T) = f^{-1}(S) \cup f^{-1}(T) |
f(A \cap B) \subseteq f(A) \cap f(B)[11][12](equal if f is injective[13]) | f^{-1}(S \cap T) = f^{-1}(S) \cap f^{-1}(T) |
f(A \setminus B) \supseteq f(A) \setminus f(B)[11](equal if f is injective[13]) | f^{-1}(S \setminus T) = f^{-1}(S) \setminus f^{-1}(T)[11] |
f\left(A \triangle B\right) \supseteq f(A) \triangle f(B)(equal if f is injective) | f^{-1}\left(S \triangle T\right) = f^{-1}(S) \triangle f^{-1}(T) |
The results relating images and preimages to the (Boolean) algebra of intersection and union work for any collection of subsets, not just for pairs of subsets:
f\left(\bigcup_{s\in S}A_s\right) = \bigcup_{s\in S} f\left(A_s\right)f\left(\bigcap_{s\in S}A_s\right) \subseteq \bigcap_{s\in S} f\left(A_s\right)f^{-1}\left(\bigcup_{s\in S}B_s\right) = \bigcup_{s\in S} f^{-1}\left(B_s\right)f^{-1}\left(\bigcap_{s\in S}B_s\right) = \bigcap_{s\in S} f^{-1}\left(B_s\right)
(Here, S can be infinite, even uncountably infinite.)
With respect to the algebra of subsets described above, the inverse image function is a lattice homomorphism, while the image function is only a semilattice homomorphism (that is, it does not always preserve intersections).
Notes
- ^ "5.4: Onto Functions and Images/Preimages of Sets". Mathematics LibreTexts. 2019-11-05. Retrieved 2020-08-28.
- ^ Paul R. Halmos (1968). Naive Set Theory. Princeton: Nostrand. Here: Sect.8
- ^ Weisstein, Eric W. "Image". mathworld.wolfram.com. Retrieved 2020-08-28.
- ^ Dolecki & Mynard 2016, pp. 4–5.
- ^ Blyth 2005, p. 5.
- ^ Jean E. Rubin (1967). Set Theory for the Mathematician. Holden-Day. p. xix. ASIN B0006BQH7S.
- ^ M. Randall Holmes: Inhomogeneity of the urelements in the usual models of NFU, December 29, 2005, on: Semantic Scholar, p. 2
- ^ Hoffman, Kenneth (1971). Linear Algebra. 2nd ed. Prentice-Hall. p. 388.
- ^ See Halmos 1960, p. 31
- ^ See Munkres 2000, p. 19
- ^ See p.388 of Lee, John M. (2010). Introduction to Topological Manifolds, 2nd Ed.
- ^ Kelley 1985, p. [ 85]
- ^ See Munkres 2000, p. 21
References
- Artin, Michael (1991). Algebra. Prentice Hall. ISBN 81-203-0871-9.
- Blyth, T.S. (2005). Lattices and Ordered Algebraic Structures. Springer. ISBN 1-85233-905-5..
- Halmos, Paul R. (1960). Naive set theory. The University Series in Undergraduate Mathematics. van Nostrand Company. ISBN 9780442030643. Zbl 0087.04403.
- Kelley, John L. (1985). General Topology. Vol. 27. Graduate Texts in Mathematics. 2 ed. Birkhäuser. ISBN 978-0-387-90125-1.