Images and Inverse Images

Chapter 5: Functions

Learning objectives

  • Compute the image f(S)f(S) of a subset of the domain
  • Compute the inverse image (preimage) f1(T)f^{-1}(T) of a subset of the codomain
  • Prove the union/intersection laws for images and preimages
  • Identify when image preserves intersections (only when ff is injective)

Functions act on individual elements — can we lift them to act on whole sets? Yes, in two natural ways. Push a subset of the domain forward: collect every output you reach. That is the image. Pull a subset of the codomain back: collect every input that lands there. That is the inverse image. The two operations look symmetric but are not: preimages behave perfectly under all set operations, while images preserve unions but only partially preserve intersections. This asymmetry, once you see it, explains a small but persistent collection of "obvious" facts that turn out to be false.

Image of a set

For f:ABf: A \to B and SAS \subseteq A, the image of SS is

f(S)={f(a)aS}={bBaS,f(a)=b}B.f(S) = \{f(a) \mid a \in S\} = \{b \in B \mid \exists a \in S,\, f(a) = b\} \subseteq B.

It is the set of all outputs you get by feeding elements of SS to ff.

Inverse image (preimage)

For TBT \subseteq B, the inverse image (or preimage) of TT is

f1(T)={aAf(a)T}A.f^{-1}(T) = \{a \in A \mid f(a) \in T\} \subseteq A.

Crucial: f1(T)f^{-1}(T) is defined for every function, no bijection required — this f1f^{-1} is set-valued, not the inverse function of §5.3.

Preimage commutes with everything

Preimages preserve union, intersection, and complement perfectly:

f1(T1T2)=f1(T1)f1(T2)f^{-1}(T_1 \cup T_2) = f^{-1}(T_1) \cup f^{-1}(T_2)
f1(T1T2)=f1(T1)f1(T2)f^{-1}(T_1 \cap T_2) = f^{-1}(T_1) \cap f^{-1}(T_2)
f1(BT)=Af1(T)f^{-1}(B \setminus T) = A \setminus f^{-1}(T)

Image commutes only with union

Images preserve unions:

f(S1S2)=f(S1)f(S2).f(S_1 \cup S_2) = f(S_1) \cup f(S_2).

But for intersections, only one direction holds:

f(S1S2)f(S1)f(S2)f(S_1 \cap S_2) \subseteq f(S_1) \cap f(S_2)

and equality can fail. Example: f(x)=x2f(x) = x^2 with S1={1},S2={1}S_1 = {-1}, S_2 = {1}. Then S1S2=S_1 \cap S_2 = \emptyset so f(S1S2)=f(S_1 \cap S_2) = \emptyset, but f(S1)f(S2)={1}{1}={1}f(S_1) \cap f(S_2) = {1} \cap {1} = {1}. Equality of f(S1S2)f(S_1 \cap S_2) and f(S1)f(S2)f(S_1) \cap f(S_2) holds for every S1,S2S_1, S_2 iff ff is injective.

Mapping ArrowsInteractive figure — enable JavaScript to interact.

(The widget above shows the arrows of a function. To visualise an image, highlight the source elements in SS and trace their arrow heads; the set of distinct heads IS f(S)f(S). For a preimage of TT, highlight target elements in TT and trace arrows backwards.)

Pause and think: If ff is injective, can you prove f(S1S2)=f(S1)f(S2)f(S_1 \cap S_2) = f(S_1) \cap f(S_2)? Where does injectivity get used? (Hint: start with yf(S1)f(S2)y \in f(S_1) \cap f(S_2), write y=f(a1)=f(a2)y = f(a_1) = f(a_2), apply injectivity to conclude a1=a2S1S2a_1 = a_2 \in S_1 \cap S_2.)

Try it

  • For f(x)=x2f(x) = x^2 on R\mathbb{R}, compute f({2,1,0,1,3})f({-2, -1, 0, 1, 3}). Predict the size before listing.
  • For f(x)=2x+1f(x) = 2x + 1 on R\mathbb{R}, compute f1({3,7,11})f^{-1}({3, 7, 11}).
  • For f(x)=xf(x) = |x| on R\mathbb{R}, exhibit subsets S1,S2S_1, S_2 where f(S1S2)f(S1)f(S2)f(S_1 \cap S_2) \subsetneq f(S_1) \cap f(S_2).
  • Prove f1(T1T2)=f1(T1)f1(T2)f^{-1}(T_1 \cap T_2) = f^{-1}(T_1) \cap f^{-1}(T_2) by element-chasing.
  • True or false: f(f1(T))=Tf(f^{-1}(T)) = T for every TBT \subseteq B. (Answer: only one inclusion holds in general — which one?)

A trap to watch for

"Image preserves intersection" is the most common false friend in this section. Students assume that f(S1S2)=f(S1)f(S2)f(S_1 \cap S_2) = f(S_1) \cap f(S_2) because preimages do this for free — but images only get a one-sided inclusion. Whenever you write that equality, you are silently using injectivity; if ff is not injective, you need a counterexample-ready mindset. The diagnostic question: "could two different inputs collide on the same output?"

What you now know

You can push subsets through a function in both directions, prove the union and intersection laws, and pinpoint exactly where the image-vs-preimage asymmetry breaks (intersection for images, fixed by injectivity). With images, preimages, functions, relations, equivalences, and orderings all in your toolkit, you have the full set-theoretic vocabulary that Chapter 6 will deploy to define the natural numbers from scratch and prove theorems by induction.

References

  • Velleman, D. J. (2019). How to Prove It (3rd ed.). Cambridge University Press, §5.5.
  • Halmos, P. R. (1960). Naive Set Theory. Springer, §8-9.
  • Hammack, R. (2018). Book of Proof, ch. 12.
  • Bloch, E. D. (2011). Proofs and Fundamentals (2nd ed.). Springer, ch. 4.
  • Goodfellow, I., Shlens, J., Szegedy, C. (2015). "Explaining and harnessing adversarial examples." ICLR 2015 (preimages and adversarial inputs).

This page is prerendered for SEO and accessibility. The interactive widgets above hydrate on JavaScript load.