Chain complexes and cohomology
Compute cycles modulo boundaries and see why a differential squaring to zero does not make homology vanish.
On this page
The question for today
What you’ll understand
- Verify the chain-complex condition and its consequence for a quotient.
- Compute the first homology of a triangle with and without its face.
- Distinguish homology, cohomology, and the claim of exactness.
A local cancellation can encode a global obstruction. The oriented boundary of a filled triangle is a loop, but taking the boundary again cancels every vertex. Chain complexes abstract that cancellation into linear maps whose consecutive composition is zero. The condition makes a quotient possible; it does not say every loop bounds a filling. We will compute the difference directly, using only vector spaces and oriented edges, before connecting the same algebra to cochains and differential forms.
Zero consecutive composition makes a quotient meaningful
A chain complex over a field has vector spaces C_k and boundary maps ∂_k:C_k→C_{k−1} with ∂_{k−1}∂_k=0. A k-cycle lies in the kernel of ∂_k; a k-boundary lies in the image of ∂_{k+1}. The zero-composition condition says every boundary is a cycle. Therefore it is legitimate to quotient cycles by boundaries. Without that containment, the proposed quotient would not be defined as stated. This formal setup also works for abelian groups, where torsion adds information invisible to vector-space dimension.
The resulting homology group or vector space H_k measures cycles that remain after boundaries have been declared trivial. Exactness at C_k means the kernel equals the incoming image, so H_k is zero. Acyclicity means this vanishing holds in all relevant degrees. Neither exactness nor acyclicity follows from the chain-complex condition alone. As a simple warning, a complex with every boundary map zero satisfies ∂²=0 but has H_k=C_k. The condition permits a theory of obstructions; it does not remove those obstructions by definition.
Orientation turns geometry into linear algebra
Give a triangle vertices v₀,v₁,v₂ and oriented edges e₀₁,e₁₂,e₀₂. The boundary of an edge is its target minus its source. The oriented boundary of the face is e₁₂−e₀₂+e₀₁. Applying the edge boundary produces each vertex twice with opposite signs. Orientation is a sign convention designed to preserve this cancellation. Reversing an edge reverses its chain, rather than creating a new unrelated geometric path. Once the convention is fixed, kernels and images can be computed by ordinary matrix reduction.
Now remove the face while retaining the three edges and vertices. The same triangular edge cycle still has zero boundary, but there is no two-dimensional chain whose boundary produces it. Its first homology class survives. Filling in the face adds an incoming boundary map that kills precisely that class. Thus homology depends on which cells are actually present, not only on a drawing's visible outline. For finite-dimensional chain spaces over a field, rank-nullity gives a convenient dimension formula; a numerical rank calculation still requires care when data rather than exact integers determines the matrices.
Cochains reverse arrows and test cycles
A k-cochain is a linear functional on C_k. Pulling a cochain back along a boundary map gives the coboundary δ:C^k→C^{k+1}, with δφ(c)=φ(∂c). The chain identity implies δ²=0. Cohomology takes closed cochains modulo exact cochains, reversing the direction of the original complex. Integrating differential forms over chains is a motivating bridge: Stokes' theorem pairs exterior differentiation with taking a boundary. De Rham's theorem identifies particular cohomologies under its smooth-manifold hypotheses; that conclusion is not merely the notation d²=0.
To avoid confusing algebra and topology, keep three layers separate: the geometric model, its chosen chain complex, and the invariant obtained by taking kernels modulo images. Different complexes can compute the same invariant after a theorem relates them, but their individual vectors and matrices need not match. The wave lab demonstrates exact cancellation in a two-component sine sum when amplitudes match and phases oppose. It is only an analogy for sign cancellation; it does not construct a boundary matrix, detect holes, or compute homology from a picture.
Work it through
One triangular hole, then its filling
Work over R with the three vertices and oriented edges e₀₁,e₁₂,e₀₂. Compute H₁ before and after adding one triangular face.
For a chain ae₀₁+be₁₂+ce₀₂, the vertex coefficients of its boundary are (−a−c,a−b,b+c). Setting them to zero gives b=a and c=−a.
Therefore ker ∂₁ is the one-dimensional span of z=e₀₁+e₁₂−e₀₂. With no face, C₂=0 and im ∂₂=0, so H₁ has dimension one.
Add the face f with ∂₂f=z. Its image is now the entire one-dimensional cycle space. The quotient ker ∂₁/im ∂₂ is zero.
In both cases ∂₁∂₂=0. The different homology shows why that identity alone does not imply acyclicity.
The unfilled triangle has one independent first-homology class; adding its face kills that class exactly.
The living notebook
Explore the model
Interactive lab · waves
Cancellation as an analogy for signs
Predict the sum when amplitude ratio is one and phase difference is 180°, then set those controls in sin(2x−t)+a sin(2x−t+phase). Confirm that the two components cancel at every position and playback time. This illustrates why signs matter in exact relations, but is not a chain complex, boundary computation, or homology detector.
- Sum at x = 0
- 0.866
- Resultant amplitude
- 1.732
- Phase difference
- 60°
Two waves share the same frequency and wave number. Playback advances t in sin(2x − t) + a sin(2x − t + phase). Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forLocal cancellation enables the chain condition; a separate quotient determines whether global obstructions remain.
Pause & reason
Check your understanding
Your turn
Try it yourself
For a square graph with four vertices and four cyclically oriented edges, no diagonals, and no faces, find dim H₁ over R.
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
The incidence matrix of this connected graph has rank three. Use rank-nullity and the absence of two-chains.
Compare with the solution
C₁ has dimension four and ∂₁ has rank three, so its kernel has dimension one. Since C₂=0, there are no incoming boundaries. Hence H₁ is one-dimensional, represented by the oriented circuit around the square.
Keep the idea
Take it with you
- The chain condition makes boundaries into cycles and permits a quotient.
- Exactness, rather than ∂²=0 alone, forces homology to vanish.
- Cochains reverse arrows; geometric interpretations require explicit comparison theorems.
Read further
Original sources and deeper explanations to follow at your own pace.
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.