Inverse Metric in LaTeX (g^{ij})
- LaTeX command
g^{ij}- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Inverse metric: the matrix inverse of g_{ij}, used to raise indices and form traces and gradients.
It is defined by g^{ij} g_{jk} = \delta^i_k, so in an orthonormal frame it equals the identity. Raising an index uses it directly, v^i = g^{ij} v_j, and the gradient of a function has components (\nabla f)^i = g^{ij}\partial_j f. The Laplace-Beltrami operator is \frac{1}{\sqrt{g}}\partial_i(\sqrt{g}\, g^{ij}\partial_j f). Do not confuse g^{ij} with the reciprocal of a single component; it is an entry of the inverse matrix, so g^{11} \ne 1/g_{11} unless the metric is diagonal.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
Inverse Metric: $g^{ij}$
\[ g^{ij} g_{jk} = \delta^i_k \]
\end{document}Related symbols
- Exterior Derivative
d\omega - Metric Tensor
g_{ij} - Wedge Product
\alpha \wedge \beta - Scalar Curvature
R - Lie Derivative
\mathcal{L}_X - Ricci Tensor
R_{ij}
Frequently asked questions
- How do I write Inverse Metric in LaTeX?
- Type g^{ij} in math mode, for example $g^{ij} g_{jk} = \delta^i_k$. It works in plain LaTeX without loading any package.
- Which package do I need for g^{ij}?
- None. g^{ij} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use g^{ij} in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $g^{ij}$ in running text.
Beste AI LaTeX Editor, Overleaf Alternatief
Octree helpt onderzoekers van 15+ universiteiten sneller onderzoeksartikelen schrijven met AI
- Genereer mooie TikZ-diagrammen met AI
- Upload afbeelding en converteer naadloos naar LaTeX
- Krijg directe hulp bij het schrijven en opmaken van onderzoeksartikelen