A homotopy class is an equivalence class of continuous maps between topological
spaces
and
under homotopy. Write
if
is homotopic to
. The equivalence
relation is transitive because homotopies
can be performed one after another. The set of homotopy classes
is denoted
.
For pointed spaces and
, the based homotopy classes
use pointed
maps and homotopies that keep the image
of the basepoint
at
. Ordinary (free) homotopy
allows the image of
to move. If
is pathwise-connected,
the free homotopy classes
correspond to the conjugacy
classes in the fundamental group
(Hatcher 2002, p. 38). A path
from
to the image of
turns a free loop into
a based representative by preceding the loop with the path and following it with the reverse path.
A different choice of path changes the based class by conjugation.
For example, the homotopy classes of maps from the unit circle to itself are indexed by the integers, with
representatives
for
(Hatcher 2002, pp. 29-31). For positive
the representative winds
times counterclockwise, and for negative
it winds
times clockwise. The case
gives a constant map.