Contraction in LaTeX (T^i_i)
- LaTeX command
T^i_i- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Contraction of a mixed tensor: summing over a repeated upper and lower index, which gives its trace.
Setting an upper index equal to a lower one and summing removes both, lowering the rank by two; for a (1,1) tensor the result T^i_i = \operatorname{tr} T is a scalar. The Ricci tensor is a contraction of the Riemann tensor, and scalar curvature contracts again with the metric, R = g^{ij}R_{ij}. Only an upper index may be contracted with a lower one; contracting two lower indices requires the metric. Write \operatorname{tr} rather than plain tr so the trace is upright with operator spacing.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Contraction: $T^i_i$
\[ T^i_i = \operatorname{tr} T \]
\end{document}Related symbols
- Metric Lowering
v_i = g_{ij} v^j - Tensor Product
A \otimes B - Metric Raising
v^i = g^{ij} v_j - Einstein Summation
A^i B_i - Partial Derivative
\partial_i - Levi-Civita
\epsilon_{ijk}
Frequently asked questions
- How do I write Contraction in LaTeX?
- Type T^i_i in math mode, for example $T^i_i = \operatorname{tr} T$. It works in plain LaTeX without loading any package.
- Which package do I need for T^i_i?
- None. T^i_i is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use T^i_i in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $T^i_i$ in running text.