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.
Math poweredAI로 LaTeX 작성
최고의 AI LaTeX 편집기, Overleaf 대안
Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움
- AI로 아름다운 TikZ 다이어그램 생성
- 이미지를 업로드하고 LaTeX로 원활하게 변환
- 논문 작성 및 서식에 대한 즉각적인 지원 받기