Contravariant Index in LaTeX (T^{ij})
- LaTeX command
T^{ij}- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Tensor with two upper indices: a contravariant rank-2 tensor such as an inverse metric or a stress-energy tensor.
Upper indices transform like vector components, T'^{ij} = \frac{\partial x'^i}{\partial x^k}\frac{\partial x'^j}{\partial x^l} T^{kl}. The stress-energy tensor T^{\mu\nu} is the standard physics example, with conservation law \partial_\mu T^{\mu\nu} = 0 in flat spacetime. Put both indices inside one brace group, T^{ij}; T^i^j is a double-superscript error. When a prime is also needed, T'^{ij} works because LaTeX merges the prime with the following superscript. Contracting with two covectors, T^{ij}\alpha_i\beta_j, produces a scalar, and the inverse metric g^{ij} is the most common example in geometry.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
Contravariant Index: $T^{ij}$
\[ \partial_\mu T^{\mu\nu} = 0 \]
\end{document}Related symbols
- Mixed Tensor
T^i_j - Covariant Index
T_{ij} - Kronecker Delta
\delta^i_j - Tensor
T^{ij}_{kl} - Levi-Civita
\epsilon_{ijk} - Einstein Summation
A^i B_i
Frequently asked questions
- How do I write Contravariant Index in LaTeX?
- Type T^{ij} in math mode, for example $\partial_\mu T^{\mu\nu} = 0$. It works in plain LaTeX without loading any package.
- Which package do I need for T^{ij}?
- None. T^{ij} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use T^{ij} in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $T^{ij}$ in running text.
Editor LaTeX AI Terbaik, Alternatif Overleaf
Octree membantu penyelidik dari 15+ universiti menulis kertas penyelidikan dengan lebih cepat menggunakan AI
- Jana diagram TikZ yang cantik menggunakan AI
- Muat naik imej dan tukar ke LaTeX dengan lancar
- Dapatkan bantuan segera untuk menulis dan memformat kertas penyelidikan