Homology 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 homology group of a space or chain complex, measuring n-dimensional holes.
For spheres H_n(S^n) \cong \mathbb{Z} while H_k(S^n) = 0 for 0 < k < n, and the Euler characteristic is the alternating sum of ranks of H_n. Coefficients are written after a semicolon, H_n(X; \mathbb{Z}/2), and relative homology as H_n(X, A). Subscripts mark homology, superscripts cohomology, so keep them straight. Variants are marked with decorations: reduced homology \tilde{H}_n, singular homology H_n^{\mathrm{sing}}. In homological algebra it is defined as \ker \partial_n / \operatorname{im} \partial_{n+1}. Long exact sequences of these groups are usually drawn as commutative diagrams.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Homology: $H_n$
\[ H_n(X) = \ker \partial_n / \operatorname{im} \partial_{n+1} \]
\end{document}Related symbols
- Cohomology
H^n - Fundamental Group
\pi_1 - Calligraphic C (category)
\mathcal{C} - Quotient
A / B - Calligraphic F (functor)
\mathcal{F} - Star
\star
Frequently asked questions
- How do I write Homology in LaTeX?
- Type H_n in math mode, for example $H_n(X) = \ker \partial_n / \operatorname{im} \partial_{n+1}$. 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.