Remember these four trace identities:
\[
tr(A+B)=tr(A)+tr(B)
\]
\[
tr(kA)=k\,tr(A)
\]
\[
tr(AB)=tr(BA)
\]
\[
tr(I_n)=n
\]
Also,
\[
tr\!\left((A-I)^2\right)
=
tr(A^2)-2tr(A)+n,
\]
where \(n\) is the order of the identity matrix.
These formulas are frequently asked in GATE, CUET(PG), NET and Engineering Mathematics examinations.