Let f,g:C∙→D∙f,g:C_\bullet\to D_\bullet be between (C∙,dC)(C_\bullet,d^C) and (D∙,dD)(D_\bullet,d^D). A chain homotopy from ff to gg is a family of RR-linear maps

sn:Cn⟶Dn+1(n∈Z)s_n: C_n \longrightarrow D_{n+1}\qquad (n\in\mathbb Z)

such that, for every nn,

fn−gn  =  dn+1D∘sn  +  sn−1∘dnC.f_n - g_n \;=\; d^D_{n+1}\circ s_n \;+\; s_{n-1}\circ d^C_n.

One writes f≃gf\simeq g if such an ss exists.

Consequence

If f≃gf\simeq g, then the induced maps on homology agree:

Hn(f)=Hn(g)for all n,H_n(f)=H_n(g)\quad\text{for all }n,

where is used.

Remarks
  • Special case: a contracting homotopy id≃0\mathrm{id}\simeq 0 shows a complex is “contractible,” hence .
  • Chain homotopy is the basic equivalence relation behind chain-homotopy categories; compare .
Examples
  1. Degree-0 complexes: homotopy forces equality. If C∙C_\bullet and D∙D_\bullet are concentrated in degree 00, then any sns_n must be 00 (there is no D1D_{1}), so the homotopy identity becomes f0−g0=0f_0-g_0=0. Thus f≃gf\simeq g implies f=gf=g in this case.
  1. A contractible 2-term complex. Consider the complex C∙C_\bullet with C1=RC_1=R, C0=RC_0=R, and d1=idRd_1=\mathrm{id}_R (all other Cn=0C_n=0). This is a chain complex since d0=0d_0=0. Define s0:C0→C1s_0:C_0\to C_1 to be idR\mathrm{id}_R and all other sn=0s_n=0. Then for n=0n=0,
    (id−0)0=d1s0+s−1d0=id∘id+0,(\mathrm{id}-0)_{0} = d_1 s_0 + s_{-1} d_0 = \mathrm{id}\circ \mathrm{id} + 0,
    and for n=1n=1,
    (id−0)1=d2s1+s0d1=0+id∘id.(\mathrm{id}-0)_{1} = d_2 s_1 + s_0 d_1 = 0 + \mathrm{id}\circ \mathrm{id}.
    Hence idC∙≃0\mathrm{id}_{C_\bullet}\simeq 0. In particular Hn(C∙)=0H_n(C_\bullet)=0 for all nn, so C∙C_\bullet is .
  1. Split exact complexes admit contracting homotopies. If each short exact sequence
    0→im⁡(dn+1)→Cn→im⁡(dn)→00\to \operatorname{im}(d_{n+1}) \to C_n \to \operatorname{im}(d_n)\to 0
    splits (as in many algebraic settings), then one can choose splittings to build maps sn:Cn→Cn+1s_n:C_n\to C_{n+1} with id≃0\mathrm{id}\simeq 0. This provides a conceptual way to recognize contractible (hence exact) complexes.