
In
topology, a branch of
mathematics
Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
, two
continuous function
In mathematics, a continuous function is a function such that a continuous variation (that is a change without jump) of the argument induces a continuous variation of the value of the function. This means that there are no abrupt changes in value ...
s from one
topological space to another are called homotopic (from grc, ὁμός "same, similar" and "place") if one can be "continuously deformed" into the other, such a deformation being called a homotopy (, ; , ) between the two functions. A notable use of homotopy is the definition of
homotopy groups and
cohomotopy groups, important
invariant
Invariant and invariance may refer to:
Computer science
* Invariant (computer science), an expression whose value doesn't change during program execution
** Loop invariant, a property of a program loop that is true before (and after) each iteratio ...
s in
algebraic topology.
In practice, there are technical difficulties in using homotopies with certain spaces. Algebraic topologists work with
compactly generated spaces,
CW complexes, or
spectra.
Formal definition

Formally, a homotopy between two
continuous function
In mathematics, a continuous function is a function such that a continuous variation (that is a change without jump) of the argument induces a continuous variation of the value of the function. This means that there are no abrupt changes in value ...
s ''f'' and ''g'' from a
topological space ''X'' to a topological space ''Y'' is defined to be a continuous function
from the
product of the space ''X'' with the
unit interval , 1to ''Y'' such that
and
for all
.
If we think of the second
parameter of ''H'' as time then ''H'' describes a ''continuous deformation'' of ''f'' into ''g'': at time 0 we have the function ''f'' and at time 1 we have the function ''g''. We can also think of the second parameter as a "slider control" that allows us to smoothly transition from ''f'' to ''g'' as the slider moves from 0 to 1, and vice versa.
An alternative notation is to say that a homotopy between two continuous functions
is a family of continuous functions
for