Metric Raising in LaTeX (v^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.
\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
- Partial Derivative
\partial_i - Metric Lowering
v_i = g_{ij} v^j - Covariant Derivative
\nabla_i - Contraction
T^i_i - Symmetrization
T_{(ij)} - Tensor Product
A \otimes B
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.
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