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 Tensornotatie →

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 poweredSchrijf LaTeX met AI

Beste AI LaTeX Editor, Overleaf Alternatief

Octree helpt onderzoekers van 15+ universiteiten sneller onderzoeksartikelen schrijven met AI

  • Genereer mooie TikZ-diagrammen met AI
  • Upload afbeelding en converteer naadloos naar LaTeX
  • Krijg directe hulp bij het schrijven en opmaken van onderzoeksartikelen