Contraction in LaTeX (T^i_i)

TiiT^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.

Tii=tr⁡TT^i_i = \operatorname{tr} T
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Contraction: $T^i_i$

\[ T^i_i = \operatorname{tr} T \]
\end{document}

Related symbols

All Tensor Notation →

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.
Math poweredSumulat ng LaTeX gamit ang AI

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