Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2020/ii/paper-2/21f/a/solution

Let be the canonical inclusion and define
This is well-defined because in the mapping cylinder, and continuity follows from the universal property of the quotient topology. Clearly .
Define
The formula respects the gluing relation at , so it descends from the disjoint union to a continuous homotopy. It satisfies and . Thus
indeed is a deformation retract of .

New to topics? Read the docs here!