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 ترميز التنسور →

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

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

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

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