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 poweredAIでLaTeXを書く

最高のAI LaTeXエディタ、Overleaf代替

Octreeは15以上の大学の研究者がAIを使って論文をより速く書くのを支援

  • AIで美しいTikZダイアグラムを生成
  • 画像をアップロードしてシームレスにLaTeXに変換
  • 論文の執筆とフォーマットに即座にサポートを取得