Skip to content

De Rham Cohomology

The exterior derivative dd from differential forms satisfies d2=0d^2 = 0. That single identity, which takes one line to verify, is the reason a branch of topology exists: any operator that squares to zero lets you form the quotient of the things it kills by the things that come from it, and the result is an invariant. For dd on differential forms the quotient is the de Rham cohomology of the manifold, and de Rham’s theorem says this algebraic object, built from calculus, is the same as the singular cohomology built from combinatorics.

The subject is the exact structural mirror of the measure theory in the algebraic topology page: there, chains and a boundary operator with ∂2=0\partial^2 = 0; here, forms and an exterior derivative with d2=0d^2 = 0. The duality between them is why integration of forms is possible at all; Stokes’ theorem is the statement that ∫Mdω\int_M d\omega depends only on the boundary of MM, which is the statement that dd and ∂\partial are adjoint.

A form ω\omega with dω=0d\omega = 0 is closed: nothing leaks. A form ω=dη\omega = d\eta is exact: it is the derivative of something, and so by Stokes its integral over any closed region is zero.

Every exact form is closed, because d2=0d^2 = 0. The interesting question is the converse: is every closed form exact? Locally yes; the Poincaré lemma below. Globally, sometimes no, and when it fails, the manifold has a hole. On R2∖{0}\mathbb{R}^2 \setminus \{0\}, the form ω=−y dx+x dyx2+y2\omega = \frac{-y\,dx + x\,dy}{x^2+y^2} is closed but not exact, and the obstruction is the puncture: integrating ω\omega around a circle enclosing the origin gives 2π2\pi, while Stokes would force 00 if ω\omega were dηd\eta. The integral sees the hole.

That is the entire subject in one example. Cohomology is the bookkeeping of which closed forms fail to be exact, and it is a topological invariant because the failure is caused by the shape of the space, not by the calculus.

Definition. Let MM be a smooth manifold. The space of closed kk-forms is Zk(M)=ker⁡(d:Ωk(M)→Ωk+1(M))Z^k(M) = \ker(d : \Omega^k(M) \to \Omega^{k+1}(M)); the space of exact kk-forms is Bk(M)=im⁡(d:Ωk−1(M)→Ωk(M))B^k(M) = \operatorname{im}(d : \Omega^{k-1}(M) \to \Omega^k(M)) with B0=0B^0 = 0. The kk-th de Rham cohomology group is

HdRk(M)=Zk(M) / Bk(M).H^k_{\mathrm{dR}}(M) = Z^k(M)\, /\, B^k(M).

Proposition. HdRk(M)H^k_{\mathrm{dR}}(M) is a vector space over R\mathbb{R}, and it is a diffeomorphism invariant: if f:M→Nf : M \to N is a diffeomorphism then f∗:HdRk(N)→HdRk(M)f^* : H^k_{\mathrm{dR}}(N) \to H^k_{\mathrm{dR}}(M) is an isomorphism.

Proof. Ωk(M)\Omega^k(M) is a vector space and dd is linear, so kernels, images and quotients are vector spaces. For invariance: d(f∗ω)=f∗(dω)d(f^*\omega) = f^*(d\omega) by naturality of dd, so f∗f^* carries closed to closed and exact to exact - f∗(dη)=d(f∗η)f^*(d\eta) = d(f^*\eta); and therefore descends to the quotient. With g=f−1g = f^{-1}, g∗∘f∗=(f∘g)∗=idg^* \circ f^* = (f \circ g)^* = \mathrm{id}, so f∗f^* is an isomorphism. ■\blacksquare

Naturality of dd is doing all the work, and it is worth noticing: the invariance does not need ff to be a diffeomorphism, only smooth, so every smooth map induces a pullback on cohomology; which is what makes cohomology functorial rather than merely invariant.

Degree zero. HdR0(M)H^0_{\mathrm{dR}}(M) is the space of smooth functions with df=0df = 0, i.e. locally constant functions. It is Rc\mathbb{R}^c where cc is the number of connected components; the zeroth invariant, again matching H0H_0 on the topology page.

Theorem (Poincaré lemma). On Rn\mathbb{R}^n, every closed form of positive degree is exact. Equivalently HdRk(Rn)=0H^k_{\mathrm{dR}}(\mathbb{R}^n) = 0 for k≥1k \geq 1, and H0=RH^0 = \mathbb{R}.

Proof. Define the radial contraction operator KK on forms by

Kω(x)=∫01tk−1 ιx(ω(tx)) dtfor ω∈Ωk,K\omega(x) = \int_0^1 t^{k-1}\, \iota_x\big(\omega(tx)\big)\, dt \quad\text{for } \omega \in \Omega^k,

where ιx\iota_x is contraction with the radial vector field xx. A direct computation with Cartan’s magic formula Lx=dιx+ιxd\mathcal{L}_x = d\iota_x + \iota_x d gives the homotopy identity

dK+Kd=id−j0∗,dK + Kd = \mathrm{id} - j_0^*,

where j0∗j_0^* pulls a form back along the inclusion of the origin; zero on positive-degree forms, evaluation at 00 on functions. (The verification is mechanical: apply both sides to a kk-vector at a point and compare terms, using the Leibniz rule for ιx\iota_x and the fundamental theorem of calculus on the tt-integral.)

Now let ω\omega be closed with k≥1k \geq 1. Applying the identity,

ω=d(Kω)+K(dω)=d(Kω)+0,\omega = d(K\omega) + K(d\omega) = d(K\omega) + 0,

so ω=d(Kω)\omega = d(K\omega) is exact, with the primitive given explicitly by KωK\omega. ■\blacksquare

The proof produces the primitive, not merely its existence, which is why the radial contraction is worth writing out. And the identity dK+Kd=id−j0∗dK + Kd = \mathrm{id} - j_0^* is the general shape of every cohomology argument: a chain homotopy between the identity and something degenerate, giving equality in cohomology where the two differ at chain level.

Where it fails. The lemma needs a star-shaped domain, so that the radial contraction is defined. On an annulus there is no contraction to a point, and the closed-but-not-exact form above is the obstruction. Cohomology measures exactly the failure of the Poincaré lemma.

Proposition. On M=R2∖{0}M = \mathbb{R}^2 \setminus \{0\}, the form

ω=−y dx+x dyx2+y2\omega = \frac{-y\,dx + x\,dy}{x^2 + y^2}

is closed but not exact. Hence HdR1(M)≠0H^1_{\mathrm{dR}}(M) \neq 0.

Proof. Closed. Writing r2=x2+y2r^2 = x^2+y^2, differentiate and collect:

dω=∂∂x(−yr2)dx∧dx+∂∂y(xr2)dy∧dy+[∂∂y(−yr2)−∂∂x(xr2)]dx∧dy.d\omega = \frac{\partial}{\partial x}\Big(\tfrac{-y}{r^2}\Big) dx\wedge dx + \frac{\partial}{\partial y}\Big(\tfrac{x}{r^2}\Big) dy \wedge dy + \left[\frac{\partial}{\partial y}\Big(\tfrac{-y}{r^2}\Big) - \frac{\partial}{\partial x}\Big(\tfrac{x}{r^2}\Big)\right] dx \wedge dy.

The middle two terms vanish because dx∧dx=dy∧dy=0dx \wedge dx = dy \wedge dy = 0, and the bracket is

−(r2)+2y2r4−r2−2x2r4=−r2+2y2−r2+2x2r4=−2r2+2r2r4=0.\frac{-(r^2) + 2y^2}{r^4} - \frac{r^2 - 2x^2}{r^4} = \frac{-r^2 + 2y^2 - r^2 + 2x^2}{r^4} = \frac{-2r^2 + 2r^2}{r^4} = 0.

Not exact. Parametrise the unit circle by γ(t)=(cos⁡t,sin⁡t)\gamma(t) = (\cos t, \sin t):

∫γω=∫02π−sin⁡t(−sin⁡t)+cos⁡tcos⁡t1 dt=∫02πdt=2π.\int_\gamma \omega = \int_0^{2\pi} \frac{-\sin t(-\sin t) + \cos t\cos t}{1}\,dt = \int_0^{2\pi} dt = 2\pi.

If ω=dη\omega = d\eta then by Stokes ∫γω=∫γdη=∫∂Ddη=0\int_\gamma \omega = \int_\gamma d\eta = \int_{\partial D} d\eta = 0, where DD is the unit disc; but γ=∂D\gamma = \partial D, and the integral is 2π≠02\pi \neq 0. Contradiction. ■\blacksquare

Note what the computation does not do: it does not compute H1H^1 exactly, only show it is nonzero. Doing better requires either the full de Rham theorem or a Mayer–Vietoris argument, and the answer is HdR1(M)=RH^1_{\mathrm{dR}}(M) = \mathbb{R}, generated by the class of ω\omega.

The angle subtlety. The form ω\omega is dθd\theta locally, where θ\theta is the polar angle; but θ\theta is not a globally defined smooth function on MM, which is exactly why ω\omega can be closed without being exact. The obstruction to writing down the primitive globally is the topology.

Theorem. If MM is a connected, orientable, compact nn-manifold, then HdRn(M)≅RH^n_{\mathrm{dR}}(M) \cong \mathbb{R}.

Proof sketch. A volume form exists exactly when MM is orientable, and two volume forms with the same total integral differ by the derivative of an (n−1)(n-1)-form; this is the statement that the “total integral” map Ωn(M)→R\Omega^n(M) \to \mathbb{R}, ω↦∫Mω\omega \mapsto \int_M \omega, has kernel exactly the exact forms, which follows from the fact that on a connected manifold any two points can be joined and the integral is unchanged by moving the support of the primitive along the path. Stokes says ∫Mdη=0\int_M d\eta = 0 for a closed MM, so Bn⊆ker⁡B^n \subseteq \ker; the content is the converse. ■\blacksquare

For non-orientable connected MM, Hn=0H^n = 0: there is no volume form to integrate, and the top class vanishes. So orientability is a cohomological property, which is why it can be detected algebraically.

The Euler characteristic link from Gauss–Bonnet comes from the alternating sum of the dimensions of these spaces:

χ(M)=∑k=0n(−1)kdim⁡HdRk(M),\chi(M) = \sum_{k=0}^{n} (-1)^k \dim H^k_{\mathrm{dR}}(M),

which is de Rham’s theorem plus the definition of Betti numbers, and it is why χ\chi can be computed either by triangulating or by solving PDE.

5. What de Rham’s theorem says, and what it does not

Section titled “5. What de Rham’s theorem says, and what it does not”

Theorem (de Rham, 1931). The natural map from de Rham cohomology to singular cohomology with real coefficients is an isomorphism:

HdRk(M)  ≅  Hsingk(M;R).H^k_{\mathrm{dR}}(M) \;\cong\; H^k_{\mathrm{sing}}(M; \mathbb{R}).

What it does. It says calculus sees topology. The closed form (−y dx+x dy)/r2(-y\,dx + x\,dy)/r^2 is a smooth object, defined with partial derivatives, and it detects a puncture. Every invariant of singular cohomology; Betti numbers, cup products, Poincaré duality; is available in the language of forms, where it can be computed by integration and PDE.

What it does not. It says nothing over Z\mathbb{Z}: torsion in singular cohomology is invisible to de Rham theory, since HdRkH^k_{\mathrm{dR}} is a real vector space and has none. The standard example is RP2\mathbb{R}P^2, whose Hsing1(⋅;Z)=Z/2H^1_{\mathrm{sing}}(\cdot; \mathbb{Z}) = \mathbb{Z}/2 collapses to 00 over R\mathbb{R}. So de Rham theory sees the free part and is blind to torsion; and a question whose answer involves torsion cannot be asked in the language of differential forms.

  • Concluding “closed hence exact” from the Poincaré lemma. The lemma is local, and on star-shaped domains. Applying it to R2∖{0}\mathbb{R}^2\setminus\{0\} is the canonical error, and the angle form is the canonical counterexample.
  • Verifying dω=0d\omega = 0 sloppily. Two of the four terms of dωd\omega for a 1-form in two variables vanish because dx∧dx=0dx\wedge dx = 0; forgetting the signs in the remaining pair gives the wrong conclusion. The computation in §3 keeps all four terms visible.
  • Citing Stokes where Stokes is not licensed. In §3 the contradiction uses Stokes on the punctured disc, which is not compact; the correct statement applies to the unit disc, with the circle as boundary, and needs η\eta to be defined on all of DD. Since MM excludes the origin, η\eta would be, and the argument is valid; but writing Stokes on M∖{0}M \setminus \{0\} directly would be wrong.
  • Confusing H0H^0 with functions. H0H^0 is locally constant functions, not all smooth functions. On a connected manifold it is R\mathbb{R}, on a disconnected one Rc\mathbb{R}^c.
  • Expecting de Rham classes to detect torsion. They cannot, by construction: real vector spaces have no torsion. RP2\mathbb{R}P^2 is the standard warning.
  • Treating the de Rham theorem as “de Rham cohomology is singular cohomology” without the coefficient group. The isomorphism is with R\mathbb{R} coefficients only.
  • Differential Forms; the exterior derivative and Stokes’ theorem, both used from the first line.
  • Smooth Manifolds; the definition of the underlying object and of pullback.
  • The Gauss–Bonnet Theorem; χ\chi as the alternating sum of Betti numbers.
  • Introduction to Algebraic Topology; the chain-level mirror: ∂2=0\partial^2 = 0 and singular homology, of which de Rham theory is the dual. Its §9.8 proves the Mayer–Vietoris sequence and computes H∗(S2)H^*(S^2) and H∗(Σ2)H^*(\Sigma_2) with it, which is the computation this page’s §3 shows is needed before H1H^1 can be pinned down.
  • Hodge Theory; every de Rham class has a unique harmonic representative; the dimension of the harmonic forms is the Betti number.
  • The Fundamental Theorems; the self-adjoint operator theory that the Hodge Laplacian rests on.
  • Applications of Differential Geometry; Maxwell’s equations in the language of dd, where dF=0dF = 0 and d∗F=Jd{*F} = J are the closed-form conditions.