[guided]We must prove the chain map identity for $q$, namely that applying the mapping cylinder differential first and then $q$ gives the same result as applying $q$ first and then the differential of $D$. Fix $n \in \mathbb{Z}$ and take an arbitrary element
\begin{align*}
(y,x,s) \in \operatorname{Cyl}(f)_n = D_n \oplus C_n \oplus C_{n-1}.
\end{align*}
This means $y \in D_n$, $x \in C_n$, and $s \in C_{n-1}$.
First apply the mapping cylinder differential:
\begin{align*}
d_{\operatorname{Cyl}(f)}(y,x,s)
=
\bigl(d_D y - f_{n-1}(s),\, d_C x + s,\, -d_C s\bigr).
\end{align*}
This element lies in
\begin{align*}
D_{n-1} \oplus C_{n-1} \oplus C_{n-2}
=
\operatorname{Cyl}(f)_{n-1},
\end{align*}
so we may apply $q_{n-1}: \operatorname{Cyl}(f)_{n-1} \to D_{n-1}$. By definition, $q_{n-1}(a,b,t) = a + f_{n-1}(b)$ for $a \in D_{n-1}$, $b \in C_{n-1}$, and $t \in C_{n-2}$. Therefore
\begin{align*}
q_{n-1}\bigl(d_{\operatorname{Cyl}(f)}(y,x,s)\bigr)
&= q_{n-1}\bigl(d_D y - f_{n-1}(s),\, d_C x + s,\, -d_C s\bigr) \\
&= d_D y - f_{n-1}(s) + f_{n-1}(d_C x + s).
\end{align*}
Now use $R$-linearity of $f_{n-1}: C_{n-1} \to D_{n-1}$:
\begin{align*}
f_{n-1}(d_C x + s) = f_{n-1}(d_C x) + f_{n-1}(s).
\end{align*}
Substituting this into the previous expression gives the cancellation of the two $s$-terms:
\begin{align*}
q_{n-1}\bigl(d_{\operatorname{Cyl}(f)}(y,x,s)\bigr)
&= d_D y - f_{n-1}(s) + f_{n-1}(d_C x) + f_{n-1}(s) \\
&= d_D y + f_{n-1}(d_C x).
\end{align*}
The remaining term is where the hypothesis that $f$ is a chain map is used. The chain map identity says
\begin{align*}
d_D \circ f_n = f_{n-1} \circ d_C,
\end{align*}
so, evaluated at $x \in C_n$,
\begin{align*}
f_{n-1}(d_C x) = d_D(f_n(x)).
\end{align*}
Thus
\begin{align*}
q_{n-1}\bigl(d_{\operatorname{Cyl}(f)}(y,x,s)\bigr)
&= d_D y + d_D(f_n(x)) \\
&= d_D\bigl(y + f_n(x)\bigr) \\
&= d_D(q_n(y,x,s)).
\end{align*}
Since this holds for every degree $n$ and every element $(y,x,s) \in \operatorname{Cyl}(f)_n$, the map $q: \operatorname{Cyl}(f) \to D$ is a chain map.[/guided]