Cohomology in LaTeX (H^n)

HnH^n
LaTeX command
H^n
Package
No package needed: built into LaTeX
Mode
Math mode only

Where it is used

n-th cohomology group, the dual theory to homology, carrying a ring structure via the cup product.

De Rham cohomology H^n_{\mathrm{dR}}(M) classifies closed differential forms modulo exact ones, and the cup product \smile makes H^\ast(X) a graded ring. Combining a superscript and a subscript, as in H^n_{\mathrm{dR}}, stacks them neatly; use \mathrm for labels that are words, not variables. The superscript index distinguishes it from homology H_n, a convention worth respecting. Group cohomology H^n(G, M) and sheaf cohomology H^n(X, \mathcal{F}) use the same symbol with different arguments. Poincare duality relates H^k and H_{n-k} on closed oriented n-manifolds, which explains why both notations often appear together.

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

HdRn(M)=ker⁡d/im⁡dH^n_{\mathrm{dR}}(M) = \ker d / \operatorname{im} d
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Cohomology: $H^n$

\[ H^n_{\mathrm{dR}}(M) = \ker d / \operatorname{im} d \]
\end{document}

Related symbols

All Topologie & Abstracte Wiskunde →

Frequently asked questions

How do I write Cohomology in LaTeX?
Type H^n in math mode, for example $H^n_{\mathrm{dR}}(M) = \ker d / \operatorname{im} d$. It works in plain LaTeX without loading any package.
Which package do I need for H^n?
None. H^n is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use H^n in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $H^n$ in running text.
Math poweredSchrijf LaTeX met AI

Beste AI LaTeX Editor, Overleaf Alternatief

Octree helpt onderzoekers van 15+ universiteiten sneller onderzoeksartikelen schrijven met AI

  • Genereer mooie TikZ-diagrammen met AI
  • Upload afbeelding en converteer naadloos naar LaTeX
  • Krijg directe hulp bij het schrijven en opmaken van onderzoeksartikelen