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 物理学 →

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 poweredAIでLaTeXを書く

最高のAI LaTeXエディタ、Overleaf代替

Octreeは15以上の大学の研究者がAIを使って論文をより速く書くのを支援

  • AIで美しいTikZダイアグラムを生成
  • 画像をアップロードしてシームレスにLaTeXに変換
  • 論文の執筆とフォーマットに即座にサポートを取得