Tensor in LaTeX (T^{\mu\nu})

TμνT^{\mu\nu}
LaTeX command
T^{\mu\nu}
Package
No package needed: built into LaTeX
Mode
Math mode only

Where it is used

A rank-2 contravariant tensor such as the stress-energy tensor, written with two upper Greek indices.

General relativity couples geometry to matter through G_{\mu\nu} = 8\pi G\, T_{\mu\nu}, and conservation reads \nabla_\mu T^{\mu\nu} = 0. Braces group both indices into one superscript; T^\mu\nu would put \nu on the baseline. For mixed tensors, keep horizontal order visible with an empty group: T^{\mu}{}_{\nu} places the lower index after the upper one rather than beneath it. Repeated upper and lower indices follow the Einstein summation convention. Greek indices conventionally run over spacetime, Latin indices over space only.

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

∂μTμν=0,  Tμν=gνλTμλ\partial_\mu T^{\mu\nu} = 0, \; T^{\mu}{}_{\nu} = g_{\nu\lambda} T^{\mu\lambda}
\documentclass{article}
\begin{document}
Tensor: $T^{\mu\nu}$

\[ \partial_\mu T^{\mu\nu} = 0, \; T^{\mu}{}_{\nu} = g_{\nu\lambda} T^{\mu\lambda} \]
\end{document}

Related symbols

All Fysica →

Frequently asked questions

How do I write Tensor in LaTeX?
Type T^{\mu\nu} in math mode, for example $\partial_\mu T^{\mu\nu} = 0, \; T^{\mu}{}_{\nu} = g_{\nu\lambda} T^{\mu\lambda}$. It works in plain LaTeX without loading any package.
Which package do I need for T^{\mu\nu}?
None. T^{\mu\nu} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use T^{\mu\nu} in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $T^{\mu\nu}$ 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