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 poweredاكتب LaTeX باستخدام الذكاء الاصطناعي

أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf

يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي

  • أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
  • ارفع صورة وحولها إلى LaTeX بسلاسة
  • احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث