What is the relation between the definition of homotopy of two functions
"A homotopy between two continuous functions $f$ and $g$ from a topological space $X$ to a topological space $Y$ is defined to be a continuous function $H : X × [0,1] → Y$ from the product of the space $X$ with the unit interval $[0,1]$ to $Y$ such that, if $x \in X$ then $H(x,0) = f(x)$ and $H(x,1) = g(x)$".
and the definition of the homotopy between two morphisms of chain complexes
"Let $A$ be an additive category. The homotopy category $K(A)$ is based on the following definition: if we have complexes $A, B$ and maps $f, g$ from $A$ to $B$, a chain homotopy from $f$ to $g$ is a collection of maps $h^n \colon A^n \to B^{n - 1}$ (not a map of complexes) such that $f^n - g^n = d_B^{n - 1} h^n + h^{n + 1} d_A^n$, or simply $f - g = d_B h + h d_A$."
Please help me. Thank you!
A homotopy $H : f \to g$ induces a homotopy $H_* : f_* \to g_*$ between the morphisms of singular chain complexes induced by $f$ and $g$. The construction is standard and can be found in Hatcher's book, for instance.
Hatcher uses simplices for the construction of the singular chain complex. This has the disadvantage of making the construction of $H_*$ not so transparent, as it requires the construction of an intermediate "prism operator" in order to decompose $I \times \Delta^n$ as a union of $\Delta^{n+1}$'s. If you want to really understand how $H_*$ is constructed, I recommend replacing simplices by cubes, because then $I\times I^n$ is already $I^{n+1}$, and the definiton of $H_*$ becomes much more transparent. It is an excellent exercise!