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

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 poweredTulis LaTeX menggunakan AI

Editor LaTeX AI Terbaik, Alternatif Overleaf

Octree membantu penyelidik dari 15+ universiti menulis kertas penyelidikan dengan lebih cepat menggunakan AI

  • Jana diagram TikZ yang cantik menggunakan AI
  • Muat naik imej dan tukar ke LaTeX dengan lancar
  • Dapatkan bantuan segera untuk menulis dan memformat kertas penyelidikan