Maths WorkshopMaths problems with full solutions
Exercise 1642Linear algebra › DeterminantsL1Added 3 Nov 2026

Trace and determinant via eigenvalues

#characteristic polynomial#trace#determinant#eigenvalues

Statement

Let AA be an n×nn\times n matrix with characteristic polynomial χA(λ)=det⁡(λI−A)\chi_A(\lambda)=\det(\lambda I-A). Show that
χA(λ)=λn−tr⁡(A)λn−1+⋯+(−1)ndet⁡A.\chi_A(\lambda)=\lambda^n-\operatorname{tr}(A)\lambda^{n-1}+\cdots+(-1)^n\det A.

Hint

Expand the determinant using the Leibniz formula and identify the coefficient of λn−1\lambda^{n-1} and the constant term.

Show solutionHide solution

Solution

Leibniz formula.
χA(λ)=det⁡(λI−A)=∑σ∈Snε(σ)∏i(λδi,σ(i)−ai,σ(i)).\chi_A(\lambda)=\det(\lambda I-A)=\sum_{\sigma\in S_n}\varepsilon(\sigma)\prod_i(\lambda\delta_{i,\sigma(i)}-a_{i,\sigma(i)}).

Leading term. The highest power of λ\lambda comes from the identity permutation, giving λn\lambda^n.

Coefficient of λn−1\lambda^{n-1}. The identity permutation contributes −(∑iaii)λn−1=−tr⁡(A)λn−1-(\sum_i a_{ii})\lambda^{n-1}=-\operatorname{tr}(A)\lambda^{n-1}. All other permutations contribute at most λn−2\lambda^{n-2} (since they have at most n−2n-2 fixed points, hence at most n−2n-2 diagonal entries).

Constant term. At λ=0\lambda=0, χA(0)=det⁡(−A)=(−1)ndet⁡A\chi_A(0)=\det(-A)=(-1)^n\det A.

Conclusion.
χA(λ)=λn−tr⁡(A)λn−1+⋯+(−1)ndet⁡A.\chi_A(\lambda)=\lambda^n-\operatorname{tr}(A)\lambda^{n-1}+\cdots+(-1)^n\det A.
In particular, the trace and determinant are coefficients (up to sign) of the characteristic polynomial, hence invariant under similarity.