[step:Fix a homotopy inverse and the two free homotopies]
Since $f: X \to Y$ is a homotopy equivalence, by definition there exist a continuous map $g: Y \to X$ and continuous homotopies
\begin{align*}
H: Y \times I &\to Y, & H(y, 0) &= f(g(y)), & H(y, 1) &= y, \\
H': X \times I &\to X, & H'(x, 0) &= g(f(x)), & H'(x, 1) &= x,
\end{align*}
so $f \circ g \simeq_{H} \operatorname{id}_Y$ and $g \circ f \simeq_{H'} \operatorname{id}_X$. Fix the basepoint $x_0 \in X$ and write
\begin{align*}
y_0 := f(x_0), \qquad x_1 := g(y_0) = g(f(x_0)), \qquad y_1 := f(x_1) = f(g(f(x_0))).
\end{align*}
Define the two tracking paths recording how the basepoint drifts under $H'$ and $H$:
\begin{align*}
u': I &\to X & u'(t) &:= H'(x_0, t), & u'(0) &= x_1, \ u'(1) = x_0, \\
u: I &\to Y & u(t) &:= H(y_0, t), & u(0) &= y_1, \ u(1) = y_0.
\end{align*}
Both $u'$ and $u$ are continuous (restrictions of continuous homotopies).
The induced maps on fundamental groups and the three change-of-basepoint isomorphisms we will use are:
\begin{align*}
f_*: \pi_1(X, x_0) &\to \pi_1(Y, y_0), & g_*: \pi_1(Y, y_0) &\to \pi_1(X, x_1), \\
f_*^{x_1}: \pi_1(X, x_1) &\to \pi_1(Y, y_1), & u'_\#: \pi_1(X, x_1) &\to \pi_1(X, x_0), \\
u_\#: \pi_1(Y, y_1) &\to \pi_1(Y, y_0). & &
\end{align*}
The superscript on $f_*^{x_1}$ records that we take the map induced by $f$ at the basepoint $x_1$; the subscript-free $f_*$ always means the induced map at $x_0$. By the [change-of-basepoint isomorphism theorem](/theorems/???), $u'_\#$ and $u_\#$ are group isomorphisms (a path induces an isomorphism of fundamental groups between its endpoints).
[/step]