This is LaTeX code:
[latex]
tr(B) = tr(T^{-1}AT) = tr(A TT^{-1})= tr(A)
[/latex]