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 الهندسة التفاضلية →

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 poweredاكتب LaTeX باستخدام الذكاء الاصطناعي

أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf

يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي

  • أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
  • ارفع صورة وحولها إلى LaTeX بسلاسة
  • احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث