Tensor in LaTeX (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.
\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
- Christoffel Symbol
\Gamma^{\lambda}_{\mu\nu} - Lambda
\lambda - Partial Time
\frac{\partial}{\partial t} - Omega
\omega - Vector Field
\vec{E} - Psi (Upper)
\Psi
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.
Editor LaTeX AI Terbaik, Alternatif Overleaf
Octree membantu peneliti dari 15+ universitas menulis makalah penelitian lebih cepat menggunakan AI
- Hasilkan diagram TikZ yang indah menggunakan AI
- Unggah gambar dan konversi ke LaTeX dengan mulus
- Dapatkan bantuan instan untuk menulis dan memformat makalah penelitian