[step:Apply Seifert–van Kampen and identify the result with $\pi_1(X, x_0) / \langle\langle [f] \rangle\rangle$]
The hypotheses of [Seifert–van Kampen](/theorems/1905) are verified in Step 1: $Y = A \cup B$, both open, and all three of $A, B, A \cap B$ path-connected (each is homotopy equivalent to a path-connected space). The theorem gives
\begin{align*}
\pi_1(Y, y_1) \cong \pi_1(A, y_1) *_{\pi_1(A \cap B, y_1)} \pi_1(B, y_1).
\end{align*}
Substituting $\pi_1(B, y_1) = \{e\}$ and $\pi_1(A \cap B, y_1) \cong \mathbb{Z}$ with generator $[c_r]$,
\begin{align*}
\pi_1(Y, y_1) \cong \pi_1(A, y_1) *_{\mathbb{Z}} \{e\}.
\end{align*}
We evaluate the right-hand side. The [Universal Property of the Free Product with Amalgamation](/theorems/1904) with $K = \pi_1(A, y_1) / \langle\langle (i_A)_* [c_r] \rangle\rangle$ shows that $\pi_1(A, y_1) *_\mathbb{Z} \{e\}$ is precisely this quotient:
[claim:For any group $G$ with a homomorphism $\psi: \mathbb{Z} \to G$, the amalgamation $G *_\mathbb{Z} \{e\}$ (over $\psi$ on one side and the trivial map on the other) is isomorphic to $G / \langle\langle \psi(1) \rangle\rangle$]
[proof]
Let $N = \langle\langle \psi(1) \rangle\rangle \trianglelefteq G$ and $K = G/N$. Let $p: G \to K$ be the quotient and $q: \{e\} \to K$ the trivial map. The compatibility $p \circ \psi = q \circ 0$ holds: $p(\psi(1)) = 0$ in $K$ since $\psi(1) \in N = \ker p$, and by multiplicativity $p \circ \psi \equiv 0$; similarly $q \circ 0 \equiv 0$. By the universal property of $G *_\mathbb{Z} \{e\}$, there is a unique homomorphism $\Psi: G *_\mathbb{Z} \{e\} \to K$ with $\Psi \circ j_G = p$.
Conversely, the inclusion $G \hookrightarrow G *_\mathbb{Z} \{e\}$ as $j_G$ sends $\psi(1)$ to $j_G(\psi(1)) = j_{\{e\}}(0) = e$ (using the amalgamation relation). Hence $N \subseteq \ker j_G$, so $j_G$ descends to $\bar j_G: K = G/N \to G *_\mathbb{Z} \{e\}$. The compositions $\bar j_G \circ \Psi$ and $\Psi \circ \bar j_G$ agree with the identity on the generating sets $j_G(G)$ and $p(G)$ respectively, hence are identities. Thus $G *_\mathbb{Z} \{e\} \cong G/N$.
[/proof]
[/claim]
Applying the claim with $G = \pi_1(A, y_1)$ and $\psi = (i_A)_*$, where $\psi(1) = (i_A)_*[c_r]$:
\begin{align*}
\pi_1(A, y_1) *_\mathbb{Z} \{e\} \cong \pi_1(A, y_1) / \langle\langle (i_A)_*[c_r] \rangle\rangle.
\end{align*}
By Step 2, the homotopy equivalence $A \simeq X$ together with a [change of basepoint](/theorems/1880) identifies $\pi_1(A, y_1) \cong \pi_1(X, x_0)$ and sends $(i_A)_*[c_r]$ to $[f]$. Normal closures transport under isomorphisms, so
\begin{align*}
\pi_1(A, y_1) / \langle\langle (i_A)_*[c_r] \rangle\rangle \cong \pi_1(X, x_0) / \langle\langle [f] \rangle\rangle.
\end{align*}
Finally, using [change of basepoint](/theorems/1880) to pass from $y_1$ to $x_0$ on $Y$:
\begin{align*}
\pi_1(Y, x_0) \cong \pi_1(Y, y_1) \cong \pi_1(X, x_0) / \langle\langle [f] \rangle\rangle.
\end{align*}
[/step]