Image of a Function
Definition
For f:A→B, the image (or range) is:
Im(f)={b∈B:∃a∈A.f(a)=b}={f(a):a∈A}
Image as a Surjection
Define f~:A↠Im(f) by f~(a)=f(a).
This is surjective: for every b∈Im(f), there exists a with f(a)=b.
Image Factorisation
Theorem
Every function f:A→B factors uniquely as:
f=mf∘f~
where:
- f~:A↠Im(f) is surjective
- mf:Im(f)↪B is injective (the inclusion)

Verification
For a∈A: mf(f~(a))=mf(f(a))=f(a) (since mf is inclusion).
Uniqueness
If f=m∘s with s surjective and m injective, then Im(s)=Im(f) and m=mf up to isomorphism.
Relational Images
Direct Image
For a relation R:A↛B and X⊆A:
R∗(X)={b∈B:∃x∈X.xRb}
This is the direct image of X under R.
Inverse Image
For Y⊆B:
R∗(Y)={a∈A:∀b.(aRb⇒b∈Y)}
This is the inverse image (or preimage) under R.
For Functions
For f:A→B:
- f∗(X)={f(x):x∈X} (forward image)
- f∗(Y)=f−1(Y)={a:f(a)∈Y} (inverse image)
Properties of Inverse Images
Preservation of Set Operations
For f:A→B:
f−1(Y1∩Y2)=f−1(Y1)∩f−1(Y2)
f−1(Y1∪Y2)=f−1(Y1)∪f−1(Y2)
f−1(Yc)=(f−1(Y))c
f−1(∅)=∅
f−1(B)=A
Galois Connection
There is a Galois connection between f∗ and f∗:
f∗(X)⊆Y⟺X⊆f∗(Y)
Applications
Surjectivity Characterisation
f is surjective iff Im(f)=B iff f∗(A)=B.
Injectivity Characterisation
f is injective iff f∗(f∗(X))=X for all X⊆A.
Bijection Characterisation
f is bijective iff f∗ and f∗ are mutually inverse bijections between P(A) and P(B).
Summary
- Im(f)={f(a):a∈A}
- Every f:A→B factors as A↠Im(f)↪B
- Direct image f∗(X)={f(x):x∈X}
- Inverse image f∗(Y)=f−1(Y)={a:f(a)∈Y}
- Inverse images preserve all Boolean operations