Cohomology in LaTeX (H^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.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Cohomology: $H^n$
\[ H^n_{\mathrm{dR}}(M) = \ker d / \operatorname{im} d \]
\end{document}Related symbols
- Calligraphic C (category)
\mathcal{C} - Homology
H_n - Calligraphic F (functor)
\mathcal{F} - Fundamental Group
\pi_1 - Quotient
A / B - Star
\star
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.
Editor LaTeX AI Terbaik, Alternatif Overleaf
Octree membantu penyelidik dari 15+ universiti menulis kertas penyelidikan dengan lebih cepat menggunakan AI
- Jana diagram TikZ yang cantik menggunakan AI
- Muat naik imej dan tukar ke LaTeX dengan lancar
- Dapatkan bantuan segera untuk menulis dan memformat kertas penyelidikan