Transpose in LaTeX (A^{\top})
- LaTeX command
A^{\top}- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Transpose of matrix A written with the \top symbol, flipping rows and columns.
Using \top as the superscript gives a clean upright T-shaped mark that cannot be confused with a variable named T, which is why many machine-learning and statistics papers write \mathbf{x}^{\top}\mathbf{y} or (AB)^{\top} = B^{\top}A^{\top}. A^T looks similar but uses an italic T, and \intercal is a third option that sits lower and is narrower. Whatever you choose, define a short macro for it so switching styles later is a one-line edit. For complex matrices, the conjugate transpose is usually A^{*} or A^{H}, with \dagger common in physics.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
Transpose: $A^{\top}$
\[ (AB)^{\top} = B^{\top} A^{\top} \]
\end{document}Related symbols
All Algebra Linear →Frequently asked questions
- How do I write Transpose in LaTeX?
- Type A^{\top} in math mode, for example $(AB)^{\top} = B^{\top} A^{\top}$. It works in plain LaTeX without loading any package.
- Which package do I need for A^{\top}?
- None. A^{\top} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use A^{\top} in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $A^{\top}$ in running text.
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