ProofComplete

Proof: Composition of Continuous Maps is Continuous

The fact that a composition of continuous maps is continuous is one of the most basic yet important results in topology. It establishes that topological spaces and continuous maps form a category, and it is used implicitly in virtually every argument involving continuous functions.


Statement

Theorem2.12Composition of Continuous Maps

Let f:XYf: X \to Y and g:YZg: Y \to Z be continuous maps between topological spaces. Then the composition gf:XZg \circ f: X \to Z is continuous.


Proof via Open Sets

Proof

Let WZW \subseteq Z be an open set. We must show that (gf)1(W)(g \circ f)^{-1}(W) is open in XX.

By the definition of preimage under composition: (gf)1(W)=f1(g1(W)).(g \circ f)^{-1}(W) = f^{-1}(g^{-1}(W)).

Since gg is continuous and WW is open in ZZ, the set g1(W)g^{-1}(W) is open in YY.

Since ff is continuous and g1(W)g^{-1}(W) is open in YY, the set f1(g1(W))f^{-1}(g^{-1}(W)) is open in XX.

Therefore (gf)1(W)(g \circ f)^{-1}(W) is open in XX, and gfg \circ f is continuous.


Alternative Proof via Closed Sets

Proof

Let CZC \subseteq Z be a closed set. Then (gf)1(C)=f1(g1(C))(g \circ f)^{-1}(C) = f^{-1}(g^{-1}(C)). Since gg is continuous, g1(C)g^{-1}(C) is closed in YY. Since ff is continuous, f1(g1(C))f^{-1}(g^{-1}(C)) is closed in XX. Thus gfg \circ f maps closed sets to closed preimages, hence is continuous.


Alternative Proof via Closure

Proof

We use the characterization that ff is continuous if and only if f(A)f(A)f(\overline{A}) \subseteq \overline{f(A)} for all AA.

Let AXA \subseteq X. We need (gf)(A)(gf)(A)(g \circ f)(\overline{A}) \subseteq \overline{(g \circ f)(A)}.

Since ff is continuous: f(A)f(A)f(\overline{A}) \subseteq \overline{f(A)}.

Since gg is continuous: g(B)g(B)g(\overline{B}) \subseteq \overline{g(B)} for any BYB \subseteq Y. Taking B=f(A)B = f(A):

g(f(A))g(f(A))g(f(A))=(gf)(A).g(f(\overline{A})) \subseteq g(\overline{f(A)}) \subseteq \overline{g(f(A))} = \overline{(g \circ f)(A)}.

Thus (gf)(A)(gf)(A)(g \circ f)(\overline{A}) \subseteq \overline{(g \circ f)(A)}, and gfg \circ f is continuous.


The Category of Topological Spaces

Remark$\mathbf{Top}$ as a Category

The composition theorem, together with the fact that identity maps are continuous, establishes that topological spaces and continuous maps form a category, denoted Top\mathbf{Top}:

  • Objects: Topological spaces (X,τ)(X, \tau).
  • Morphisms: Continuous functions f:XYf: X \to Y.
  • Composition: The composition gfg \circ f as defined above.
  • Identity: The identity map idX:XX\operatorname{id}_X: X \to X.

The category axioms are satisfied:

  • Associativity: (hg)f=h(gf)(h \circ g) \circ f = h \circ (g \circ f) (this is a property of functions).
  • Identity law: fidX=f=idYff \circ \operatorname{id}_X = f = \operatorname{id}_Y \circ f.

Isomorphisms in Top\mathbf{Top} are precisely the homeomorphisms.


Generalizations

ExampleFinite Compositions

By induction, if f1:X1X2,f2:X2X3,,fn:XnXn+1f_1: X_1 \to X_2, f_2: X_2 \to X_3, \ldots, f_n: X_n \to X_{n+1} are continuous, then fnf1:X1Xn+1f_n \circ \cdots \circ f_1: X_1 \to X_{n+1} is continuous.

This is used repeatedly in analysis: for example, if f:RnRmf: \mathbb{R}^n \to \mathbb{R}^m is continuous and g:RmRkg: \mathbb{R}^m \to \mathbb{R}^k is continuous, then gfg \circ f is continuous.

Theorem2.13Composition Preserves Open/Closed Maps

If f:XYf: X \to Y and g:YZg: Y \to Z are both open maps, then gfg \circ f is an open map. Similarly for closed maps.

Proof

Let UU be open in XX. Since ff is open, f(U)f(U) is open in YY. Since gg is open, g(f(U))g(f(U)) is open in ZZ. Thus (gf)(U)=g(f(U))(g \circ f)(U) = g(f(U)) is open. The argument for closed maps is identical.

ExampleComposition of Homeomorphisms

If f:XYf: X \to Y and g:YZg: Y \to Z are homeomorphisms, then gf:XZg \circ f: X \to Z is a homeomorphism. Indeed:

  • gfg \circ f is a bijection (composition of bijections).
  • gfg \circ f is continuous (composition of continuous maps).
  • (gf)1=f1g1(g \circ f)^{-1} = f^{-1} \circ g^{-1} is continuous (composition of continuous maps).

This proves that the homeomorphism relation is transitive.

RemarkContinuity and Restrictions

If f:XYf: X \to Y is continuous and AXA \subseteq X, then the restriction fA:AYf|_A: A \to Y is continuous (with the subspace topology on AA), since fA=fιf|_A = f \circ \iota where ι:AX\iota: A \hookrightarrow X is the continuous inclusion.

Similarly, if f(X)BYf(X) \subseteq B \subseteq Y, then f:XBf: X \to B (viewed as a map to BB with its subspace topology) is continuous. The proof uses the fact that open sets in BB are of the form VBV \cap B with VV open in YY, and f1(VB)=f1(V)f^{-1}(V \cap B) = f^{-1}(V) when f(X)Bf(X) \subseteq B.