In linear algebra, the characteristic polynomial of a square matrix is a polynomial which is invariant under matrix similarity and has the eigenvalues as roots. It has the determinant and the trace of the matrix among its coefficients. The characteristic polynomial of an endomorphism of a finite-dimensional vector space is the characteristic polynomial of the matrix of that endomorphism over any base (that is, the characteristic polynomial does not depend on the choice of a basis). The characteristic equation, also known as the determinantal equation,[1][2][3] is the equation obtained by equating the characteristic polynomial to zero.

In spectral graph theory, the characteristic polynomial of a graph is the characteristic polynomial of its adjacency matrix.[4]

## Motivation

In linear algebra, eigenvalues and eigenvectors play a fundamental role, since, given a linear transformation, an eigenvector is a vector whose direction is not changed by the transformation, and the corresponding eigenvalue is the measure of the resulting change of magnitude of the vector.

More precisely, if the transformation is represented by a square matrix ${\displaystyle A,}$ an eigenvector ${\displaystyle \mathbf {v} ,}$ and the corresponding eigenvalue ${\displaystyle \lambda }$ must satisfy the equation

${\displaystyle A\mathbf {v} =\lambda \mathbf {v} ,}$
or, equivalently,
${\displaystyle (\lambda I-A)\mathbf {v} =0}$
where ${\displaystyle I}$ is the identity matrix, and ${\displaystyle \mathbf {v} \neq \mathbf {0} }$ (although the zero vector satisfies this equation for every ${\displaystyle \lambda ,}$ it is not considered an eigenvector).

It follows that the matrix ${\displaystyle (\lambda I-A)}$ must be singular, and its determinant

${\displaystyle \det(\lambda I-A)=0}$
must be zero.

In other words, the eigenvalues of A are the roots of

${\displaystyle \det(xI-A),}$
which is a monic polynomial in x of degree n if A is a n×n matrix. This polynomial is the characteristic polynomial of A.

## Formal definition

Consider an ${\displaystyle n\times n}$ matrix ${\displaystyle A.}$ The characteristic polynomial of ${\displaystyle A,}$ denoted by ${\displaystyle p_{A}(t),}$ is the polynomial defined by[5]

${\displaystyle p_{A}(t)=\det(tI-A)}$
where ${\displaystyle I}$ denotes the ${\displaystyle n\times n}$ identity matrix.

Some authors define the characteristic polynomial to be ${\displaystyle \det(A-tI).}$ That polynomial differs from the one defined here by a sign ${\displaystyle (-1)^{n},}$ so it makes no difference for properties like having as roots the eigenvalues of ${\displaystyle A}$; however the definition above always gives a monic polynomial, whereas the alternative definition is monic only when ${\displaystyle n}$ is even.

## Examples

To compute the characteristic polynomial of the matrix

${\displaystyle A={\begin{pmatrix}2&1\\-1&0\end{pmatrix)).}$
the determinant of the following is computed:
${\displaystyle tI-A={\begin{pmatrix}t-2&-1\\1&t-0\end{pmatrix))}$
and found to be ${\displaystyle (t-2)t-1(-1)=t^{2}-2t+1\,\!,}$ the characteristic polynomial of ${\displaystyle A.}$

Another example uses hyperbolic functions of a hyperbolic angle φ. For the matrix take

${\displaystyle A={\begin{pmatrix}\cosh(\varphi )&\sinh(\varphi )\\\sinh(\varphi )&\cosh(\varphi )\end{pmatrix)).}$
Its characteristic polynomial is
${\displaystyle \det(tI-A)=(t-\cosh(\varphi ))^{2}-\sinh ^{2}(\varphi )=t^{2}-2t\ \cosh(\varphi )+1=(t-e^{\varphi })(t-e^{-\varphi }).}$

## Properties

The characteristic polynomial ${\displaystyle p_{A}(t)}$ of a ${\displaystyle n\times n}$ matrix is monic (its leading coefficient is ${\displaystyle 1}$) and its degree is ${\displaystyle n.}$ The most important fact about the characteristic polynomial was already mentioned in the motivational paragraph: the eigenvalues of ${\displaystyle A}$ are precisely the roots of ${\displaystyle p_{A}(t)}$ (this also holds for the minimal polynomial of ${\displaystyle A,}$ but its degree may be less than ${\displaystyle n}$). All coefficients of the characteristic polynomial are polynomial expressions in the entries of the matrix. In particular its constant coefficient ${\displaystyle p_{A}(0)}$ is ${\displaystyle \det(-A)=(-1)^{n}\det(A),}$ the coefficient of ${\displaystyle t^{n))$ is one, and the coefficient of ${\displaystyle t^{n-1))$ is tr(−A) = −tr(A), where tr(A) is the trace of ${\displaystyle A.}$ (The signs given here correspond to the formal definition given in the previous section;[6] for the alternative definition these would instead be ${\displaystyle \det(A)}$ and (−1)n – 1 tr(A) respectively.[7])

For a ${\displaystyle 2\times 2}$ matrix ${\displaystyle A,}$ the characteristic polynomial is thus given by

${\displaystyle t^{2}-\operatorname {tr} (A)t+\det(A).}$

Using the language of exterior algebra, the characteristic polynomial of an ${\displaystyle n\times n}$ matrix ${\displaystyle A}$ may be expressed as

${\displaystyle p_{A}(t)=\sum _{k=0}^{n}t^{n-k}(-1)^{k}\operatorname {tr} \left(\textstyle \bigwedge ^{k}A\right)}$
where ${\textstyle \operatorname {tr} \left(\bigwedge ^{k}A\right)}$ is the trace of the ${\displaystyle k}$th exterior power of ${\displaystyle A,}$ which has dimension ${\textstyle {\binom {n}{k)).}$ This trace may be computed as the sum of all principal minors of ${\displaystyle A}$ of size ${\displaystyle k.}$ The recursive Faddeev–LeVerrier algorithm computes these coefficients more efficiently.

When the characteristic of the field of the coefficients is ${\displaystyle 0,}$ each such trace may alternatively be computed as a single determinant, that of the ${\displaystyle k\times k}$ matrix,

${\displaystyle \operatorname {tr} \left(\textstyle \bigwedge ^{k}A\right)={\frac {1}{k!)){\begin{vmatrix}\operatorname {tr} A&k-1&0&\cdots &\\\operatorname {tr} A^{2}&\operatorname {tr} A&k-2&\cdots &\\\vdots &\vdots &&\ddots &\vdots \\\operatorname {tr} A^{k-1}&\operatorname {tr} A^{k-2}&&\cdots &1\\\operatorname {tr} A^{k}&\operatorname {tr} A^{k-1}&&\cdots &\operatorname {tr} A\end{vmatrix))~.}$

The Cayley–Hamilton theorem states that replacing ${\displaystyle t}$ by ${\displaystyle A}$ in the characteristic polynomial (interpreting the resulting powers as matrix powers, and the constant term ${\displaystyle c}$ as ${\displaystyle c}$ times the identity matrix) yields the zero matrix. Informally speaking, every matrix satisfies its own characteristic equation. This statement is equivalent to saying that the minimal polynomial of ${\displaystyle A}$ divides the characteristic polynomial of ${\displaystyle A.}$

Two similar matrices have the same characteristic polynomial. The converse however is not true in general: two matrices with the same characteristic polynomial need not be similar.

The matrix ${\displaystyle A}$ and its transpose have the same characteristic polynomial. ${\displaystyle A}$ is similar to a triangular matrix if and only if its characteristic polynomial can be completely factored into linear factors over ${\displaystyle K}$ (the same is true with the minimal polynomial instead of the characteristic polynomial). In this case ${\displaystyle A}$ is similar to a matrix in Jordan normal form.

## Characteristic polynomial of a product of two matrices

If ${\displaystyle A}$ and ${\displaystyle B}$ are two square ${\displaystyle n\times n}$ matrices then characteristic polynomials of ${\displaystyle AB}$ and ${\displaystyle BA}$ coincide:

${\displaystyle p_{AB}(t)=p_{BA}(t).\,}$

When ${\displaystyle A}$ is non-singular this result follows from the fact that ${\displaystyle AB}$ and ${\displaystyle BA}$ are similar:

${\displaystyle BA=A^{-1}(AB)A.}$

For the case where both ${\displaystyle A}$ and ${\displaystyle B}$ are singular, the desired identity is an equality between polynomials in ${\displaystyle t}$ and the coefficients of the matrices. Thus, to prove this equality, it suffices to prove that it is verified on a non-empty open subset (for the usual topology, or, more generally, for the Zariski topology) of the space of all the coefficients. As the non-singular matrices form such an open subset of the space of all matrices, this proves the result.

More generally, if ${\displaystyle A}$ is a matrix of order ${\displaystyle m\times n}$ and ${\displaystyle B}$ is a matrix of order ${\displaystyle n\times m,}$ then ${\displaystyle AB}$ is ${\displaystyle m\times m}$ and ${\displaystyle BA}$ is ${\displaystyle n\times n}$ matrix, and one has

${\displaystyle p_{BA}(t)=t^{n-m}p_{AB}(t).\,}$

To prove this, one may suppose ${\displaystyle n>m,}$ by exchanging, if needed, ${\displaystyle A}$ and ${\displaystyle B.}$ Then, by bordering ${\displaystyle A}$ on the bottom by ${\displaystyle n-m}$ rows of zeros, and ${\displaystyle B}$ on the right, by, ${\displaystyle n-m}$ columns of zeros, one gets two ${\displaystyle n\times n}$ matrices ${\displaystyle A^{\prime ))$ and ${\displaystyle B^{\prime ))$ such that ${\displaystyle B^{\prime }A^{\prime }=BA}$ and ${\displaystyle A^{\prime }B^{\prime ))$ is equal to ${\displaystyle AB}$ bordered by ${\displaystyle n-m}$ rows and columns of zeros. The result follows from the case of square matrices, by comparing the characteristic polynomials of ${\displaystyle A^{\prime }B^{\prime ))$ and ${\displaystyle AB.}$

## Characteristic polynomial of Ak

If ${\displaystyle \lambda }$ is an eigenvalue of a square matrix ${\displaystyle A}$ with eigenvector ${\displaystyle \mathbf {v} ,}$ then ${\displaystyle \lambda ^{k))$ is an eigenvalue of ${\displaystyle A^{k))$ because

${\displaystyle A^{k}{\textbf {v))=A^{k-1}A{\textbf {v))=\lambda A^{k-1}{\textbf {v))=\dots =\lambda ^{k}{\textbf {v)).}$

The multiplicities can be shown to agree as well, and this generalizes to any polynomial in place of ${\displaystyle x^{k))$:[8]

Theorem —  Let ${\displaystyle A}$ be a square ${\displaystyle n\times n}$ matrix and let ${\displaystyle f(t)}$ be a polynomial. If the characteristic polynomial of ${\displaystyle A}$ has a factorization

${\displaystyle p_{A}(t)=(t-\lambda _{1})(t-\lambda _{2})\cdots (t-\lambda _{n})}$
then the characteristic polynomial of the matrix ${\displaystyle f(A)}$ is given by
${\displaystyle p_{f(A)}(t)=(t-f(\lambda _{1}))(t-f(\lambda _{2}))\cdots (t-f(\lambda _{n})).}$

That is, the algebraic multiplicity of ${\displaystyle \lambda }$ in ${\displaystyle f(A)}$ equals the sum of algebraic multiplicities of ${\displaystyle \lambda '}$ in ${\displaystyle A}$ over ${\displaystyle \lambda '}$ such that ${\displaystyle f(\lambda ')=\lambda .}$ In particular, ${\displaystyle \operatorname {tr} (f(A))=\textstyle \sum _{i=1}^{n}f(\lambda _{i})}$ and ${\displaystyle \operatorname {det} (f(A))=\textstyle \prod _{i=1}^{n}f(\lambda _{i}).}$ Here a polynomial ${\displaystyle f(t)=t^{3}+1,}$ for example, is evaluated on a matrix ${\displaystyle A}$ simply as ${\displaystyle f(A)=A^{3}+1.}$

The theorem applies to matrices and polynomials over any field or commutative ring.[9] However, the assumption that ${\displaystyle p_{A}(t)}$ has a factorization into linear factors is not always true, unless the matrix is over an algebraically closed field such as the complex numbers.

Proof

This proof only applies to matrices and polynomials over complex numbers (or any algebraically closed field). In that case, the characteristic polynomial of any square matrix can be always factorized as

${\displaystyle p_{A}(t)=\left(t-\lambda _{1}\right)\left(t-\lambda _{2}\right)\cdots \left(t-\lambda _{n}\right)}$
where ${\displaystyle \lambda _{1},\lambda _{2},\ldots ,\lambda _{n))$ are the eigenvalues of ${\displaystyle A,}$ possibly repeated. Moreover, the Jordan decomposition theorem guarantees that any square matrix ${\displaystyle A}$ can be decomposed as ${\displaystyle A=S^{-1}US,}$ where ${\displaystyle S}$ is an invertible matrix and ${\displaystyle U}$ is upper triangular with ${\displaystyle \lambda _{1},\ldots ,\lambda _{n))$ on the diagonal (with each eigenvalue repeated according to its algebraic multiplicity). (The Jordan normal form has stronger properties, but these are sufficient; alternatively the Schur decomposition can be used, which is less popular but somewhat easier to prove).

Let ${\textstyle f(t)=\sum _{i}\alpha _{i}t^{i}.}$ Then

${\displaystyle f(A)=\textstyle \sum \alpha _{i}(S^{-1}US)^{i}=\textstyle \sum \alpha _{i}S^{-1}USS^{-1}US\cdots S^{-1}US=\textstyle \sum \alpha _{i}S^{-1}U^{i}S=S^{-1}(\textstyle \sum \alpha _{i}U^{i})S=S^{-1}f(U)S.}$
For an upper triangular matrix ${\displaystyle U}$ with diagonal ${\displaystyle \lambda _{1},\dots ,\lambda _{n},}$ the matrix ${\displaystyle U^{i))$ is upper triangular with diagonal ${\displaystyle \lambda _{1}^{i},\dots ,\lambda _{n}^{i))$ in ${\displaystyle U^{i},}$ and hence ${\displaystyle f(U)}$ is upper triangular with diagonal ${\displaystyle f\left(\lambda _{1}\right),\dots ,f\left(\lambda _{n}\right).}$ Therefore, the eigenvalues of ${\displaystyle f(U)}$ are ${\displaystyle f(\lambda _{1}),\dots ,f(\lambda _{n}).}$ Since ${\displaystyle f(A)=S^{-1}f(U)S}$ is similar to ${\displaystyle f(U),}$ it has the same eigenvalues, with the same algebraic multiplicities.

## Secular function and secular equation

### Secular function

The term secular function has been used for what is now called characteristic polynomial (in some literature the term secular function is still used). The term comes from the fact that the characteristic polynomial was used to calculate secular perturbations (on a time scale of a century, that is, slow compared to annual motion) of planetary orbits, according to Lagrange's theory of oscillations.

### Secular equation

Secular equation may have several meanings.

• In linear algebra it is sometimes used in place of characteristic equation.
• In astronomy it is the algebraic or numerical expression of the magnitude of the inequalities in a planet's motion that remain after the inequalities of a short period have been allowed for.[10]
• In molecular orbital calculations relating to the energy of the electron and its wave function it is also used instead of the characteristic equation.

## For general associative algebras

The above definition of the characteristic polynomial of a matrix ${\displaystyle A\in M_{n}(F)}$ with entries in a field ${\displaystyle F}$ generalizes without any changes to the case when ${\displaystyle F}$ is just a commutative ring. Garibaldi (2004) defines the characteristic polynomial for elements of an arbitrary finite-dimensional (associative, but not necessarily commutative) algebra over a field ${\displaystyle F}$ and proves the standard properties of the characteristic polynomial in this generality.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 156, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9736806750297546, "perplexity": 105.33154724699874}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2023-06/segments/1674764500058.1/warc/CC-MAIN-20230203154140-20230203184140-00858.warc.gz"}