The Mapping Cylinder Separates a Map into Two Stages
A continuous map \(f:X\to Y\) may fail to be injective, surjective, or a homeomorphism. Its mapping cylinder provides a space in which the domain and codomain occupy different ends of a cylinder: the domain is represented at the bottom, while the top is attached to the codomain using \(f\). This construction turns \(f\) into a composite of an embedding and a retraction. The factorization is useful because it separates the way points enter the construction from the way the construction returns to \(Y\).
Let \((X,\mathcal{T}_X)\) and \((Y,\mathcal{T}_Y)\) be topological spaces, let \(I=[0,1]\) have its standard topology, and let \(f:X\to Y\) be continuous. Give \(X\times I\) the product topology and \(X\times I\bigsqcup Y\) the disjoint union topology. Write \(q\) for the quotient map in the definition below.
Thus \([x,1]=k(f(x))\). Points of the cylinder with height less than \(1\) are not identified with points of \(Y\), and two top points \((x,1)\) and \((x',1)\) are identified precisely when \(f(x)=f(x')\). The map \(k\) names the copy of \(Y\) in the quotient; the theorem below verifies that this copy has the original topology of \(Y\).
The Canonical Factorization
Here an embedding means a continuous injective map that is a homeomorphism onto its image with the subspace topology. A retraction onto \(k(Y)\) means a continuous map \(r:M_f\to Y\) satisfying \(r\circ k=\operatorname{id}_Y\); its image, viewed in \(M_f\), is \(k(Y)\). We prove the claims, including that \(k\) is an embedding.
We will use the quotient test for continuity. If \(g:M_f\to Z\) is a map into a topological space \(Z\), then \(g\) is continuous if and only if \(g\circ q\) is continuous. Indeed, for every open \(W\subseteq Z\), \(q^{-1}(g^{-1}(W))=(g\circ q)^{-1}(W)\). If \(g\circ q\) is continuous, this preimage is open, so the definition of the quotient topology makes \(g^{-1}(W)\) open. The other implication follows by composition of continuous maps.
Proof. Define \(j(x)=[x,0]\). The map \(x\mapsto(x,0)\) from \(X\) to \(X\times I\) is continuous, so \(j\), its composite with \(q\), is continuous. No bottom points are identified with one another, so \(j\) is injective. To check its image topology, take any open \(U\subseteq X\). The set \(U\times[0,1/2)\) is open in \(X\times I\) and, regarded as a subset of the disjoint union, is open and saturated for the quotient: none of its points lies at height \(1\), where identifications occur. Therefore its image under \(q\) is open in \(M_f\), and that image intersects \(j(X)\) in exactly \(j(U)\). Thus every \(j(U)\) is open in \(j(X)\). Together with continuity and injectivity of \(j\), this proves that \(j\) is an embedding.
Next, \(k\) is continuous as the composite of the inclusion of the \(Y\)-summand into the disjoint union with \(q\), and is injective because no two points of \(Y\) are identified. For an open \(V\subseteq Y\), the set \(\bigl(f^{-1}(V)\times(1/2,1]\bigr)\bigsqcup V\) is open and saturated: its cylinder points at height \(1\) are identified only with points of \(V\), and it includes every such identified point. Its image under \(q\) is open and intersects \(k(Y)\) in \(k(V)\). Hence \(k\) is an embedding.
It remains to prove that \(r\) is well-defined and continuous. On the disjoint union, define a map to \(Y\) by \((x,t)\mapsto f(x)\) on \(X\times I\) and \(y\mapsto y\) on \(Y\). Both restrictions are continuous, so the map on the disjoint union is continuous. Its values agree on each identified pair because \((x,1)\) is sent to \(f(x)\), as is the point \(f(x)\) in the \(Y\)-summand. It therefore induces a well-defined map \(r:M_f\to Y\); the quotient test shows that \(r\) is continuous. By its definition, \(r(k(y))=y\), so \(r\circ k=\operatorname{id}_Y\). Finally, for every \(x\in X\), \((r\circ j)(x)=r([x,0])=f(x)\). Thus \(f=r\circ j\), as required. If \(X\) is empty, these same definitions give \(M_f=Y\), \(j\) the empty embedding and \(r=\operatorname{id}_Y\); if a map to \(Y=\varnothing\) exists, then \(X=\varnothing\), so this also covers that case. \(\square\)
The map \(j\) places the domain at height \(0\), not at the attached end. Meanwhile, \(r\) sends every point on the cylinder over \(x\) to \(f(x)\), and fixes the copy of \(Y\). The construction therefore preserves the original map when the domain first enters the cylinder and then retracts to the codomain.
Worked Factorizations
Worked Example: The Identity Map on the Unit Interval
Take \(X=Y=I=[0,1]\), with the standard topology, and \(f=\operatorname{id}_I\). At the top of the cylinder, \([x,1]=k(x)\). In this case the mapping cylinder is homeomorphic to the square \(I\times I\): define \(H:M_f\to I\times I\) by \(H([x,t])=(x,t)\) and \(H(k(y))=(y,1)\).
The formulas agree on the identified points, since \(H([x,1])=(x,1)=H(k(x))\). The quotient test proves \(H\) is continuous: on \(I\times I\) before taking the quotient it is the identity, and on the \(Y\)-summand it is \(y\mapsto(y,1)\), both continuous. Define \(G:I\times I\to M_f\) by \(G(x,t)=[x,t]\). This is continuous as the composite of the inclusion into the disjoint union and \(q\). Direct substitution gives \(H(G(x,t))=(x,t)\) and \(G(H([x,t]))=[x,t]\); also \(G(H(k(y)))=G(y,1)=[y,1]=k(y)\). Thus \(G\) and \(H\) are continuous inverses.
Under this homeomorphism, \(j(x)=(x,0)\) and \(r(x,t)=x\). For example, \(j(2/5)=(2/5,0)\) and \(r(2/5,0)=2/5\), as required for the identity map. For any \(x\in I\), \(r(j(x))=r(x,0)=x\). The copy \(k(I)\) is the top edge \(\{(y,1):y\in I\}\), and \(r(y,1)=y\), so the retraction fixes that edge.
Worked Example: A Constant Map on the Unit Interval
Let \(X=Y=I\) with the standard topology, and define \(f:I\to I\) by \(f(x)=1/3\) for every \(x\). In \(M_f\), every point at the cylinder’s top is identified with the same point \(k(1/3)\): for all \(x\in I\), \([x,1]=k(1/3)\). No other points of \(Y\) are identified with it.
The factorization is \(j(x)=[x,0]\), followed by \(r([x,t])=1/3\) and \(r(k(y))=y\). For instance, \(j(2/5)=[2/5,0]\), and \(r(j(2/5))=r([2/5,0])=1/3=f(2/5)\). At the top, \(r([2/5,1])=r(k(1/3))=1/3\), consistent with the identification. On the codomain copy, \(r(k(2/3))=2/3\) and \(r(k(1/3))=1/3\). Thus \(r\) fixes every point of \(k(I)\), even though it sends every point of the cylinder to \(1/3\).
Check: for every \(x\in I\), \(r(j(x))=r([x,0])=1/3\), so \(r\circ j=f\). For every \(y\in I\), \(r(k(y))=y\), so the retraction condition holds on the entire copy of \(Y\), not only at \(1/3\).
Worked Example: A Map Between Two Discrete Spaces
Give \(X=\{a,b\}\) and \(Y=\{0,1\}\) the discrete topologies, and define \(f(a)=0\), \(f(b)=1\). This map is continuous because every subset of either space is open, so every preimage of an open set is open. The mapping cylinder has two cylinder segments: \([a,t]\) runs from \([a,0]\) to \(k(0)\), and \([b,t]\) runs from \([b,0]\) to \(k(1)\). The only identifications are \([a,1]=k(0)\) and \([b,1]=k(1)\).
The inclusion is \(j(a)=[a,0]\), \(j(b)=[b,0]\). The retraction is \(r([a,t])=0\), \(r([b,t])=1\), \(r(k(0))=0\), and \(r(k(1))=1\). For the two domain points, \(r(j(a))=r([a,0])=0=f(a)\) and \(r(j(b))=r([b,0])=1=f(b)\). On the codomain copy, \(r(k(0))=0\) and \(r(k(1))=1\). These computations verify both \(r\circ j=f\) and \(r\circ k=\operatorname{id}_Y\) point by point.
A Common Mistake: Choosing the Attached End
One might try to represent the domain by the top of the cylinder, defining \(j_{\mathrm{top}}(x)=[x,1]\). This can produce the correct composite with the retraction, but it need not be an inclusion. For the constant map in the previous example, \(j_{\mathrm{top}}(0)=[0,1]=k(1/3)\) and \(j_{\mathrm{top}}(1)=[1,1]=k(1/3)\). The two distinct points \(0\) and \(1\) therefore have the same image. The calculation \(r(j_{\mathrm{top}}(x))=1/3=f(x)\) is correct, but it does not give the required factorization through an embedding: \(j_{\mathrm{top}}\) is not injective. Using the bottom instead gives \(j(0)=[0,0]\) and \(j(1)=[1,0]\), distinct points, while still satisfying \(r(j(x))=f(x)\).
The distinction between the two ends is structural. The top is where points are identified according to the values of \(f\), so it records the identifications made by the map. The bottom retains a separate point for each element of \(X\), which is why it gives an embedded copy of the domain. The retraction then records the value of \(f\) along each cylinder segment while leaving the codomain copy fixed.
Check Your Understanding
Use the quotient description of the mapping cylinder to justify your answers.
- For a continuous map \(f:X\to Y\), write the formulas for \(j\), \(r\), and \(k\), and verify \(r\circ j=f\) and \(r\circ k=\operatorname{id}_Y\).
- In the mapping cylinder of the identity map on \(I\), identify the images of \(j(x)\) and \(k(x)\) under the homeomorphism with \(I\times I\).
- For a constant map \(f:X\to Y\) with value \(y_0\), which cylinder points are identified with \(k(y_0)\)? Are other points of \(Y\) identified with it?
- Explain why the map \(x\mapsto[x,1]\) need not be an embedding when \(f\) is not injective.
- If \(X=\varnothing\), describe \(M_f\), \(j\), and \(r\).