The LaTeX command for tr trace is \operatorname{tr} (trace of a matrix).
\operatorname{tr}Writing a paper? The table generator and the BibTeX cleaner are one click away, no account.
Write \operatorname{tr} inside math mode, that is between $…$ for inline math or in a \[ … \] or equation block for display math. This symbol needs the amsmath package, so add \usepackage{amsmath} to your preamble.
\operatorname{tr} sets the name upright with operator spacing; typed as plain letters it would print in italics, as a product of variables.
$\operatorname{tr}_{i=1}^{n} x_i$Open this example in the live preview: it renders as you type, with no compiler and no signup.
\dim\ker\gcd\deg\arg\hom\operatorname{sgn}\operatorname{rank}\operatorname{diag}\operatorname{span}\operatorname*{argmax}\operatorname*{argmin}\operatorname{lcm}\sinMath operators in LaTeX: the full table or search all 350+ LaTeX symbols.
Use \operatorname{tr} in math mode after adding \usepackage{amsmath} to your preamble. For example, $\operatorname{tr}_{i=1}^{n} x_i$.
It comes from the amsmath package: add \usepackage{amsmath} to your preamble.