Contravariant Index in LaTeX (T^{ij})

TijT^{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.

∂μTμν=0\partial_\mu T^{\mu\nu} = 0
\documentclass{article}
\begin{document}
Contravariant Index: $T^{ij}$

\[ \partial_\mu T^{\mu\nu} = 0 \]
\end{document}

Related symbols

All ترميز التنسور →

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

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

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

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