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 位相・抽象数学 →

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 poweredAIでLaTeXを書く

最高のAI LaTeXエディタ、Overleaf代替

Octreeは15以上の大学の研究者がAIを使って論文をより速く書くのを支援

  • AIで美しいTikZダイアグラムを生成
  • 画像をアップロードしてシームレスにLaTeXに変換
  • 論文の執筆とフォーマットに即座にサポートを取得