Metric Raising in LaTeX (v^i = g^{ij} v_j)

vi=gijvjv^i = g^{ij} v_j
LaTeX command
v^i = g^{ij} v_j
Package
No package needed: built into LaTeX
Mode
Math mode only

Where it is used

Index raising: the inverse metric turns covariant components v_j back into contravariant components v^i.

Raising is the sharp musical isomorphism, \alpha^\sharp, and it is how the gradient vector is built from the differential: (\operatorname{grad} f)^i = g^{ij}\partial_j f. Raising then lowering returns the original components because g^{ij} g_{jk} = \delta^i_k. In relativity, p^\mu = g^{\mu\nu} p_\nu converts a four-momentum covector to a vector. Write the inverse metric with upper indices, never as g^{-1}_{ij}, which suggests the wrong index placement. The \sharp command gives the matching sharp sign, and for a diagonal metric only the j = i term survives.

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

(grad⁡f)i=gij ∂jf(\operatorname{grad} f)^i = g^{ij}\, \partial_j f
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Metric Raising: $v^i = g^{ij} v_j$

\[ (\operatorname{grad} f)^i = g^{ij}\, \partial_j f \]
\end{document}

Related symbols

All Notasi Tensor →

Frequently asked questions

How do I write Metric Raising in LaTeX?
Type v^i = g^{ij} v_j in math mode, for example $(\operatorname{grad} f)^i = g^{ij}\, \partial_j f$. It works in plain LaTeX without loading any package.
Which package do I need for v^i = g^{ij} v_j?
None. v^i = g^{ij} v_j is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use v^i = g^{ij} v_j in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $v^i = g^{ij} v_j$ in running text.
Math poweredTulis LaTeX menggunakan AI

Editor LaTeX AI Terbaik, Alternatif Overleaf

Octree membantu peneliti dari 15+ universitas menulis makalah penelitian lebih cepat menggunakan AI

  • Hasilkan diagram TikZ yang indah menggunakan AI
  • Unggah gambar dan konversi ke LaTeX dengan mulus
  • Dapatkan bantuan instan untuk menulis dan memformat makalah penelitian