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.
최고의 AI LaTeX 편집기, Overleaf 대안
Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움
- AI로 아름다운 TikZ 다이어그램 생성
- 이미지를 업로드하고 LaTeX로 원활하게 변환
- 논문 작성 및 서식에 대한 즉각적인 지원 받기