1. Home
  2. Explore
  3. Mathematics
  4. Introduction to Homology

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Introduction to Homology

Introduction to Homology

1. Homotopy Groups and the Motivation for Homology

The fundamental group studies loops in a topological space. It is especially useful for low-dimensional data because it detects one-dimensional structures such as holes that loops can go around.

A natural question is whether higher-dimensional analogues of loops can also be studied. The answer is provided by the higher homotopy groups

πn(X),n≥2.\pi_n(X), \qquad n \geq 2.πn​(X),n≥2.

These groups generalize the fundamental group.

Higher-dimensional loops

  • π1(X)\pi_1(X)π1​(X) is concerned with ordinary loops, which can be viewed as maps from a circle into XXX.

  • π2(X)\pi_2(X)π2​(X) is concerned roughly with “two-dimensional loops.”

  • A two-dimensional loop can be imagined as a continuously varying family of ordinary loops, sometimes described informally as a loop of loops.

  • Another model is a map from a square or disk into XXX whose boundary is held fixed or “pinned down.”

For example, a sphere contains a two-dimensional hole that ordinary loops do not detect in the same way. A family of loops can sweep across the sphere and capture this two-dimensional structure.

Difficulties with homotopy groups

Although homotopy groups are powerful, they are often difficult to compute and can behave irregularly.

For a kkk-dimensional sphere SkS^kSk, homotopy groups πn(Sk)\pi_n(S^k)πn​(Sk) can be nontrivial even when

n>k.n > k.n>k.

This means that a space may have higher homotopy information that is not directly suggested by its visible dimension. The resulting groups can be complicated and difficult to understand.

Homology is introduced as a more computationally manageable alternative.


2. The Basic Idea of Homology

Homology provides a commutative, algebraic alternative to homotopy.

For a topological space XXX, homology constructs groups

H0(X),H1(X),H2(X),…H_0(X), H_1(X), H_2(X), \ldotsH0​(X),H1​(X),H2​(X),…

called the homology groups of XXX.

Each homology group is commutative. In the context of homology, group operations are therefore usually written additively rather than multiplicatively.

In a loose but useful interpretation, Hn(X)H_n(X)Hn​(X) measures the number of independent nnn-dimensional holes in XXX.

Homology is useful because it can often be computed algorithmically, even when:

  • The space is too complicated to visualize.

  • The space has many dimensions.

  • The meaning of an nnn-dimensional hole is difficult to picture directly.

The first example focuses on a graph, where the relevant structures are vertices, edges, and loops.


Homology of a Directed Graph

3. The Example Graph

Consider a graph with:

  • Three vertices: XXX, YYY, and ZZZ.

  • Four directed edges: AAA, BBB, CCC, and DDD.

The edges are directed as follows:

  • AAA goes from XXX to YYY.

  • BBB goes from YYY to ZZZ.

  • CCC goes from ZZZ to XXX.

  • DDD also goes from ZZZ to XXX.

Thus, the graph contains several closed paths.

Examples of loops

The following combinations describe loops:

  • A+B+CA+B+CA+B+C: travel from XXX to YYY, then to ZZZ, then back to XXX.

  • B+C+AB+C+AB+C+A: the same loop, but viewed as starting at YYY.

  • C+A+BC+A+BC+A+B: the same loop, viewed as starting at ZZZ.

  • C−DC-DC−D: travel along CCC and then in the reverse direction of DDD.

  • A+B+DA+B+DA+B+D: travel from XXX to YYY, then to ZZZ, and return to XXX along DDD.

In a fundamental-group setting, the choice of starting point matters. In the commutative setting of homology, cyclic rearrangements are treated as equivalent:

A+B+C=B+C+A=C+A+B.A+B+C = B+C+A = C+A+B.A+B+C=B+C+A=C+A+B.

The order of addition also does not matter:

A+B+C=A+C+B.A+B+C = A+C+B.A+B+C=A+C+B.

This additive and commutative treatment allows loops to be combined algebraically.


4. Cycles and Relations Among Loops

A closed loop is called a cycle when viewed algebraically as a combination of edges whose total boundary is zero.

Three important cycles in the graph are:

  1. A+B+CA+B+CA+B+C

  2. C−DC-DC−D

  3. A+B+DA+B+DA+B+D

These cycles are not all independent. They satisfy the relation

A+B+C=(A+B+D)+(C−D).A+B+C = (A+B+D)+(C-D).A+B+C=(A+B+D)+(C−D).

Expanding the right-hand side gives

(A+B+D)+(C−D)=A+B+C+D−D=A+B+C.(A+B+D)+(C-D)=A+B+C+D-D=A+B+C.(A+B+D)+(C−D)=A+B+C+D−D=A+B+C.

The terms DDD and −D-D−D cancel.

Therefore, although the graph visibly contains three loops, only two of them are independent. The third is obtained by combining the other two:

C−D=(A+B+C)−(A+B+D).C-D=(A+B+C)-(A+B+D).C−D=(A+B+C)−(A+B+D).

This illustrates an important principle:

Homology counts independent holes, not merely the total number of visible loops.


Chains and the Boundary Operator

5. Zero-Dimensional and One-Dimensional Chains

To describe cycles algebraically, homology first organizes vertices and edges into abelian groups.

The group C0C_0C0​

Let C0C_0C0​ be the free abelian group generated by the vertices XXX, YYY, and ZZZ.

An element of C0C_0C0​ is any integer linear combination of these vertices, such as

2X−3Y+4Z.2X-3Y+4Z.2X−3Y+4Z.

These elements are called zero-dimensional chains, or simply 0-chains.

The coefficients must be integers. Thus, C0C_0C0​ behaves like an integer version of a vector space whose basis is

{X,Y,Z}.\{X,Y,Z\}.{X,Y,Z}.

The group C1C_1C1​

Let C1C_1C1​ be the free abelian group generated by the directed edges AAA, BBB, CCC, and DDD.

An element of C1C_1C1​ is any integer combination of these edges, such as

A+B+DA+B+DA+B+D

or

2A+B−5C+4D.2A+B-5C+4D.2A+B−5C+4D.

These are called one-dimensional chains, or 1-chains.

Not every 1-chain is a cycle. For example, A+B+DA+B+DA+B+D is a cycle, while a random combination such as

2A+B−5C+4D2A+B-5C+4D2A+B−5C+4D

usually does not represent a closed loop.


6. The Boundary of an Edge

The relationship between edges and vertices is described by a boundary operator, denoted by

∂.\partial.∂.

The boundary of a directed edge is its final vertex minus its initial vertex:

∂(edge)=final point−initial point.\partial(\text{edge})=\text{final point}-\text{initial point}.∂(edge)=final point−initial point.

For the example graph:

  • AAA goes from XXX to YYY, so

    ∂A=Y−X.\partial A=Y-X.∂A=Y−X.
  • BBB goes from YYY to ZZZ, so

    ∂B=Z−Y.\partial B=Z-Y.∂B=Z−Y.
  • CCC goes from ZZZ to XXX, so

    ∂C=X−Z.\partial C=X-Z.∂C=X−Z.
  • DDD also goes from ZZZ to XXX, so

    ∂D=X−Z.\partial D=X-Z.∂D=X−Z.

The orientation is essential. Reversing an edge changes the sign of its boundary.

The boundary operator maps 1-chains to 0-chains:

∂:C1→C0.\partial:C_1\to C_0.∂:C1​→C0​.

Because C1C_1C1​ and C0C_0C0​ are abelian groups, the map extends additively to all integer combinations of edges.


7. Applying the Boundary Operator to a General 1-Chain

Consider a general 1-chain

T=αA+βB+γC+δD,T=\alpha A+\beta B+\gamma C+\delta D,T=αA+βB+γC+δD,

where α,β,γ,δ∈Z\alpha,\beta,\gamma,\delta\in\mathbb Zα,β,γ,δ∈Z.

By additivity,

∂T=α∂A+β∂B+γ∂C+δ∂D.\partial T = \alpha\partial A+\beta\partial B+\gamma\partial C+\delta\partial D.∂T=α∂A+β∂B+γ∂C+δ∂D.

Substituting the individual boundaries gives

∂T=α(Y−X)+β(Z−Y)+γ(X−Z)+δ(X−Z).\partial T = \alpha(Y-X)+\beta(Z-Y)+\gamma(X-Z)+\delta(X-Z).∂T=α(Y−X)+β(Z−Y)+γ(X−Z)+δ(X−Z).

Collecting the coefficients of XXX, YYY, and ZZZ gives

∂T=(−α+γ+δ)X+(α−β)Y+(β−γ−δ)Z.\partial T = (-\alpha+\gamma+\delta)X + (\alpha-\beta)Y + (\beta-\gamma-\delta)Z.∂T=(−α+γ+δ)X+(α−β)Y+(β−γ−δ)Z.

The boundary records the net imbalance of edges at each vertex.

  • The coefficient of XXX measures the net contribution at XXX.

  • The coefficient of YYY measures the net contribution at YYY.

  • The coefficient of ZZZ measures the net contribution at ZZZ.

This is analogous to linear algebra, except the coefficients are integers rather than arbitrary real numbers.


Cycles as the Kernel of the Boundary Map

8. Why Closed Loops Have Zero Boundary

Consider the cycle A+B+CA+B+CA+B+C. Its boundary is

∂(A+B+C)=∂A+∂B+∂C.\partial(A+B+C) = \partial A+\partial B+\partial C.∂(A+B+C)=∂A+∂B+∂C.

Substituting gives

∂(A+B+C)=(Y−X)+(Z−Y)+(X−Z).\partial(A+B+C) = (Y-X)+(Z-Y)+(X-Z).∂(A+B+C)=(Y−X)+(Z−Y)+(X−Z).

All terms cancel:

(Y−X)+(Z−Y)+(X−Z)=0.(Y-X)+(Z-Y)+(X-Z)=0.(Y−X)+(Z−Y)+(X−Z)=0.

This cancellation occurs because every intermediate vertex appears once as an endpoint and once as a starting point. In a closed loop, the final point of one edge is balanced by the initial point of another.

The same principle applies to every closed path: the total boundary is zero.

Definition of a cycle

A 1-chain T∈C1T\in C_1T∈C1​ is a cycle precisely when

∂T=0.\partial T=0.∂T=0.

Thus, cycles are exactly the elements of the kernel of the boundary map:

Z1(X)=ker⁡(∂:C1→C0).Z_1(X)=\ker(\partial:C_1\to C_0).Z1​(X)=ker(∂:C1​→C0​).

Here, Z1(X)Z_1(X)Z1​(X) denotes the group of 1-cycles.


9. Solving for All Cycles

For

T=αA+βB+γC+δD,T=\alpha A+\beta B+\gamma C+\delta D,T=αA+βB+γC+δD,

the condition ∂T=0\partial T=0∂T=0 requires every vertex coefficient to vanish:

−α+γ+δ=0,-\alpha+\gamma+\delta=0,−α+γ+δ=0,
α−β=0,\alpha-\beta=0,α−β=0,
β−γ−δ=0.\beta-\gamma-\delta=0.β−γ−δ=0.

These equations describe all possible cycles.

The system can be represented by the matrix equation

M(αβγδ)=(000),M \begin{pmatrix} \alpha\\ \beta\\ \gamma\\ \delta \end{pmatrix} = \begin{pmatrix} 0\\ 0\\ 0 \end{pmatrix},M​αβγδ​​=​000​​,

where

M=(−10111−10001−1−1).M= \begin{pmatrix} -1&0&1&1\\ 1&-1&0&0\\ 0&1&-1&-1 \end{pmatrix}.M=​−110​0−11​10−1​10−1​​.

Solving the system over the integers gives

α=β=γ+δ.\alpha=\beta=\gamma+\delta.α=β=γ+δ.

Let

γ=R,δ=S.\gamma=R,\qquad \delta=S.γ=R,δ=S.

Then

α=R+S,β=R+S,γ=R,δ=S.\alpha=R+S,\qquad \beta=R+S,\qquad \gamma=R,\qquad \delta=S.α=R+S,β=R+S,γ=R,δ=S.

Therefore,

(αβγδ)=R(1110)+S(1101).\begin{pmatrix} \alpha\\ \beta\\ \gamma\\ \delta \end{pmatrix} = R \begin{pmatrix} 1\\ 1\\ 1\\ 0 \end{pmatrix} + S \begin{pmatrix} 1\\ 1\\ 0\\ 1 \end{pmatrix}.​αβγδ​​=R​1110​​+S​1101​​.

The null space is therefore generated by the two vectors

(1,1,1,0)and(1,1,0,1).(1,1,1,0) \qquad\text{and}\qquad (1,1,0,1).(1,1,1,0)and(1,1,0,1).

Interpreted as edge combinations, these correspond to:

  • (1,1,1,0)(1,1,1,0)(1,1,1,0):

    A+B+C.A+B+C.A+B+C.
  • (1,1,0,1)(1,1,0,1)(1,1,0,1):

    A+B+D.A+B+D.A+B+D.

Hence, every cycle is an integer linear combination of these two cycles:

T=R(A+B+C)+S(A+B+D).T=R(A+B+C)+S(A+B+D).T=R(A+B+C)+S(A+B+D).

The cycle group is therefore

Z1(X)≅Z⊕Z.Z_1(X)\cong\mathbb Z\oplus\mathbb Z.Z1​(X)≅Z⊕Z.

This means that there are two independent generators of the cycle group.


10. Interpreting the First Homology in the Graph Example

The two independent cycles can be chosen as

A+B+CandA+B+D.A+B+C \qquad\text{and}\qquad A+B+D.A+B+CandA+B+D.

The third cycle satisfies

C−D=(A+B+C)−(A+B+D),C-D=(A+B+C)-(A+B+D),C−D=(A+B+C)−(A+B+D),

so it does not provide a new independent generator.

The graph therefore has:

  • Three visibly identifiable loops.

  • Two independent cycles.

  • A first cycle group isomorphic to Z2\mathbb Z^2Z2.

In this introductory graph example, the cycle group is being used as the first homology group. In the full definition of homology, one later factors out cycles that arise as boundaries of higher-dimensional cells. For a graph with no 2-dimensional cells, there are no such higher-dimensional boundaries, so the cycle group gives the same result.

The first homology group records independent one-dimensional holes after accounting for algebraic relationships among loops.


Homology of a General Connected Graph

11. Counting Independent Cycles Using a Spanning Tree

Suppose a connected graph has:

  • VVV vertices.

  • EEE edges.

One could compute all cycles by constructing the boundary matrix and finding its integer null space. However, a spanning-tree argument gives the answer more efficiently.

Spanning trees

A spanning tree is a subgraph that:

  • Contains every vertex of the original graph.

  • Is connected.

  • Contains no circuits.

A connected graph always has at least one spanning tree.

A tree with VVV vertices has exactly

V−1V-1V−1

edges.

Why a tree has V−1V-1V−1 edges

Begin with one vertex. Each time an edge is added to a tree:

  • It connects a new vertex to the existing structure.

  • It increases the number of edges by one.

  • It also increases the number of vertices by one.

The initial vertex is not paired with an edge. Every later vertex is paired with the edge that first connects it to the tree. Therefore, the tree always has one fewer edge than vertices.


12. Non-Tree Edges and Independent Cycles

The original graph has EEE edges, while a spanning tree contains V−1V-1V−1 edges. Therefore, the number of edges not included in the spanning tree is

E−(V−1)=E−V+1.E-(V-1)=E-V+1.E−(V−1)=E−V+1.

Each edge outside the spanning tree creates exactly one independent cycle:

  1. Add a non-tree edge to the spanning tree.

  2. Because the tree already contains a unique path between the endpoints of that edge, the added edge completes a unique circuit.

  3. The resulting cycle is associated with that non-tree edge.

  4. Different non-tree edges produce independent cycles because each cycle contains a distinct edge not in the spanning tree.

Thus, for a connected graph,

H1(X)≅ZE−V+1.H_1(X)\cong \mathbb Z^{E-V+1}.H1​(X)≅ZE−V+1.

The quantity

E−V+1E-V+1E−V+1

is the number of independent one-dimensional holes in the graph.

Consequences

  • A tree has E=V−1E=V-1E=V−1, so

    E−V+1=0.E-V+1=0.E−V+1=0.

    Therefore, a tree has no one-dimensional holes.

  • Adding an edge that creates a circuit increases the number of independent cycles by one.

  • A graph may contain many visible loops, but only E−V+1E-V+1E−V+1 of them are independent.

The number E−V+1E-V+1E−V+1 is also the graph’s cycle rank or first Betti number in the connected case.


13. Summary of the Graph Construction

The graph-based construction proceeds as follows:

  1. Form C0C_0C0​, the free abelian group generated by vertices.

  2. Form C1C_1C1​, the free abelian group generated by directed edges.

  3. Define the boundary of each directed edge as

    ∂(edge)=final vertex−initial vertex.\partial(\text{edge})=\text{final vertex}-\text{initial vertex}.∂(edge)=final vertex−initial vertex.
  4. Extend the boundary map additively to all 1-chains.

  5. Identify cycles as the elements satisfying

    ∂T=0.\partial T=0.∂T=0.
  6. Compute the kernel of the boundary map using integer linear algebra.

  7. Alternatively, for a connected graph, choose a spanning tree and count the edges outside it.

  8. The number of independent cycles is

    E−V+1.E-V+1.E−V+1.

In higher-dimensional homology, the same ideas are extended by adding 2-dimensional cells, 3-dimensional cells, and higher-dimensional structures. These higher-dimensional cells introduce boundaries of their own, and the full homology groups distinguish cycles from cycles that are themselves boundaries.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent