Inverse Metric in LaTeX (g^{ij})

gijg^{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.

gijgjk=δkig^{ij} g_{jk} = \delta^i_k
\documentclass{article}
\begin{document}
Inverse Metric: $g^{ij}$

\[ g^{ij} g_{jk} = \delta^i_k \]
\end{document}

Related symbols

All Differential Geometry →

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 poweredSumulat ng LaTeX gamit ang AI

Pinakamahusay na AI LaTeX Editor, Alternatibo sa Overleaf

Tinutulungan ng Octree ang mga researcher mula sa 15+ na unibersidad na sumulat ng research papers nang mas mabilis gamit ang AI

  • Gumawa ng magagandang TikZ diagrams gamit ang AI
  • Mag-upload ng larawan at i-convert ito sa LaTeX nang walang problema
  • Makakuha ng instant na tulong sa pagsulat at pag-format ng research papers