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 Topology at Abstract Math →

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 poweredSumulat ng LaTeX gamit ang AI

Pinakamahusay na AI LaTeX Editor, Alternatibo sa Overleaf

Tinutulungan ng Octree ang mga researcher mula sa 15+ na unibersidad na sumulat ng research papers nang mas mabilis gamit ang AI

  • Gumawa ng magagandang TikZ diagrams gamit ang AI
  • Mag-upload ng larawan at i-convert ito sa LaTeX nang walang problema
  • Makakuha ng instant na tulong sa pagsulat at pag-format ng research papers