In mathematics, in the fields of multilinear algebra and representation theory, the principal invariants of the second rank tensor A {\displaystyle \mathbf {A} } are the coefficients of the characteristic polynomial
where I {\displaystyle \mathbf {I} } is the identity operator and λ i ∈ C {\displaystyle \lambda _{i}\in \mathbb {C} } are the roots of the polynomial p {\displaystyle \ p} and the eigenvalues of A {\displaystyle \mathbf {A} } .
More broadly, any scalar-valued function f ( A ) {\displaystyle f(\mathbf {A} )} is an invariant of A {\displaystyle \mathbf {A} } if and only if f ( Q A Q T ) = f ( A ) {\displaystyle f(\mathbf {Q} \mathbf {A} \mathbf {Q} ^{T})=f(\mathbf {A} )} for all orthogonal Q {\displaystyle \mathbf {Q} } . This means that a formula expressing an invariant in terms of components, A i j {\displaystyle A_{ij}} , will give the same result for all Cartesian bases. For example, even though individual diagonal components of A {\displaystyle \mathbf {A} } will change with a change in basis, the sum of diagonal components will not change.