Tutorials › Linear Algebra › Evaluating Polynomials Using Jordan Form

Generalized Eigenvectors and Jordan Form · Tutorial 850 of 1000

Evaluating Polynomials Using Jordan Form

Use similarity and the polynomial formula for a Jordan block to evaluate a polynomial of a matrix block by block.

Advanced 10 min read

What You'll Learn

  • Express a matrix polynomial through a Jordan decomposition.
  • Use the derivatives of a polynomial to evaluate it on one Jordan block.
  • Evaluate a polynomial on a block-diagonal Jordan matrix.
  • See how different block sizes affect the polynomial of a matrix.
  • Check a Jordan-form calculation by direct matrix multiplication.
  • Recognize and correct the mistake of replacing a Jordan block by its eigenvalue alone.

From a Matrix to Its Jordan Form

Evaluating a polynomial at a matrix means substituting the matrix for the polynomial’s variable, with the constant term interpreted as a multiple of the identity matrix. For a matrix in Jordan form, this substitution has a useful structure: each Jordan block can be evaluated separately. The result on a block depends not only on its eigenvalue, but also on its size.

We work over \(\mathbb{C}\), so every square matrix has a Jordan form. When a real matrix has a real Jordan form, the same computations apply over \(\mathbb{R}\). Let \(p(x)=a_0+a_1x+\cdots+a_dx^d\) be a polynomial. For a square matrix \(\mathbf{A}\) of the same size, define \[ p(\mathbf{A})=a_0\mathbf{I}+a_1\mathbf{A}+\cdots+a_d\mathbf{A}^d. \] Here \(\mathbf{A}^0=\mathbf{I}\). A Jordan block of size \(r\) with eigenvalue \(\lambda\) is \(\mathbf{J}_r(\lambda)=\lambda\mathbf{I}_r+\mathbf{N}_r\), where \(\mathbf{N}_r\) has ones on the superdiagonal and zeros elsewhere. In particular, \(\mathbf{N}_r^r=\mathbf{O}\).

Definition: A Jordan form of \(\mathbf{A}\) is a block-diagonal matrix \(\mathbf{J}\), whose blocks are Jordan blocks, for which \(\mathbf{A}=\mathbf{S}\mathbf{J}\mathbf{S}^{-1}\) for an invertible matrix \(\mathbf{S}\). The columns of \(\mathbf{S}\) express the Jordan-basis vectors in the original coordinates. We use the Jordan Form Existence Theorem, established earlier in the course, to assume such a form is available.

The purpose of the calculation is to find \(p(\mathbf{A})\), not merely \(p(\mathbf{J})\). The Jordan form makes the calculation manageable, and similarity then transfers the result back to the original coordinates.

The Polynomial Formula on One Block

For a polynomial \(p\), let \(p^{(j)}(\lambda)\) denote its \(j\)th derivative evaluated at \(\lambda\), with \(p^{(0)}(\lambda)=p(\lambda)\). The Taylor expansion of a polynomial about \(\lambda\) is an exact finite identity. Since \(\mathbf{N}_r^r=\mathbf{O}\), only its first \(r\) terms can contribute when the variable offset is replaced by \(\mathbf{N}_r\).

Theorem (Polynomial of a Jordan block): For a polynomial \(p\) and a Jordan block \(\mathbf{J}_r(\lambda)=\lambda\mathbf{I}_r+\mathbf{N}_r\), \[ p(\mathbf{J}_r(\lambda))=\sum_{j=0}^{r-1}\frac{p^{(j)}(\lambda)}{j!}\mathbf{N}_r^j. \] The formula holds over \(\mathbb{C}\), and over \(\mathbb{R}\) whenever the block and polynomial are real.

Proof. Expand \(p(\lambda+t)\) as a polynomial in \(t\): \[ p(\lambda+t)=\sum_{j=0}^{d}\frac{p^{(j)}(\lambda)}{j!}t^j. \] This is an identity of polynomials, so substituting \(\mathbf{N}_r\) for \(t\) gives \(p(\lambda\mathbf{I}_r+\mathbf{N}_r)=\sum_{j=0}^{d}\frac{p^{(j)}(\lambda)}{j!}\mathbf{N}_r^j\). For every \(j\ge r\), \(\mathbf{N}_r^j=\mathbf{O}\), since \(\mathbf{N}_r^r=\mathbf{O}\). Removing these zero terms leaves precisely the sum from \(j=0\) to \(r-1\). \(\square\)

This formula explains what block size changes: a larger block may retain more derivative terms. The eigenvalue supplies the evaluation point, while the nilpotent part \(\mathbf{N}_r\) supplies the terms that sit above the diagonal. The formula does not require \(p(\lambda)\ne0\); if some derivative values vanish, their terms are simply zero.

Worked Example: A Polynomial on a Size-Three Block

Let \(p(x)=(x-2)^2+3(x-2)+4\), and evaluate \(p(\mathbf{J}_3(2))\). The block and its nilpotent part are \[ \mathbf{J}_3(2)=\begin{bmatrix}2&1&0\\0&2&1\\0&0&2\end{bmatrix}, \qquad \mathbf{N}_3=\begin{bmatrix}0&1&0\\0&0&1\\0&0&0\end{bmatrix}. \] The polynomial values needed are \(p(2)=4\), \(p'(x)=2(x-2)+3\), so \(p'(2)=3\), and \(p''(x)=2\), so \(p''(2)/2!=1\). The block formula gives

$$ p(\mathbf{J}_3(2))=4\mathbf{I}_3+3\mathbf{N}_3+\mathbf{N}_3^2 =\begin{bmatrix}4&3&1\\0&4&3\\0&0&4\end{bmatrix}. $$

Check: Since \(\mathbf{J}_3(2)-2\mathbf{I}_3=\mathbf{N}_3\), direct substitution into the stated polynomial gives \(p(\mathbf{J}_3(2))=\mathbf{N}_3^2+3\mathbf{N}_3+4\mathbf{I}_3\). The matrices \[ \mathbf{N}_3^2=\begin{bmatrix}0&0&1\\0&0&0\\0&0&0\end{bmatrix}, \qquad 3\mathbf{N}_3=\begin{bmatrix}0&3&0\\0&0&3\\0&0&0\end{bmatrix} \] sum with \(4\mathbf{I}_3\) to give the displayed answer.

Evaluating Every Block and Returning to the Original Matrix

Suppose a Jordan form is \(\mathbf{J}=\operatorname{diag}(\mathbf{J}_{r_1}(\lambda_1),\dots,\mathbf{J}_{r_k}(\lambda_k))\). A polynomial in a block-diagonal matrix remains block diagonal: each power of \(\mathbf{J}\) has the corresponding powers of its blocks on the diagonal. The next result states this fact together with the change back to the original matrix.

Theorem (Polynomial evaluation in Jordan form): Let \(\mathbf{A}=\mathbf{S}\mathbf{J}\mathbf{S}^{-1}\), where \(\mathbf{S}\) is invertible and \(\mathbf{J}\) is block diagonal with Jordan blocks \(\mathbf{J}_{r_i}(\lambda_i)\). For every polynomial \(p\), \[ p(\mathbf{A})=\mathbf{S}\,p(\mathbf{J})\,\mathbf{S}^{-1}, \qquad p(\mathbf{J})=\operatorname{diag}\bigl(p(\mathbf{J}_{r_1}(\lambda_1)),\dots,p(\mathbf{J}_{r_k}(\lambda_k))\bigr). \] Each diagonal block is given by the Polynomial of a Jordan Block formula.

Proof. From \(\mathbf{A}=\mathbf{S}\mathbf{J}\mathbf{S}^{-1}\), induction on \(m\ge1\) gives \(\mathbf{A}^m=\mathbf{S}\mathbf{J}^m\mathbf{S}^{-1}\): multiplying the expression for the \(m\)th power by \(\mathbf{A}\) gives \(\mathbf{S}\mathbf{J}^m(\mathbf{S}^{-1}\mathbf{S})\mathbf{J}\mathbf{S}^{-1}=\mathbf{S}\mathbf{J}^{m+1}\mathbf{S}^{-1}\). For \(m=0\), the same identity holds because \(\mathbf{I}=\mathbf{S}\mathbf{I}\mathbf{S}^{-1}\). Thus, writing \(p(x)=\sum_{m=0}^{d}a_mx^m\), we obtain \[ p(\mathbf{A})=\sum_{m=0}^{d}a_m\mathbf{S}\mathbf{J}^m\mathbf{S}^{-1} =\mathbf{S}\left(\sum_{m=0}^{d}a_m\mathbf{J}^m\right)\mathbf{S}^{-1} =\mathbf{S}p(\mathbf{J})\mathbf{S}^{-1}. \] For the block statement, each \(\mathbf{J}^m\) has diagonal blocks equal to the \(m\)th powers of the corresponding Jordan blocks and zero off-diagonal blocks. Taking the indicated linear combination of these powers gives the asserted diagonal blocks of \(p(\mathbf{J})\). \(\square\)

Worked Example: Block Size Changes the Output

Evaluate \(q(\mathbf{J})\) for \(q(x)=(x-1)^2\) and \(\mathbf{J}=\operatorname{diag}(\mathbf{J}_3(1),\mathbf{J}_2(1))\). The two block sizes are different, even though the eigenvalue is \(1\) in both blocks. Here \[ \mathbf{J}-\mathbf{I}_5= \begin{bmatrix} 0&1&0&0&0\\ 0&0&1&0&0\\ 0&0&0&0&0\\ 0&0&0&0&1\\ 0&0&0&0&0 \end{bmatrix}. \] Because \(q(\mathbf{J})=(\mathbf{J}-\mathbf{I}_5)^2\), multiply this matrix by itself. In the size-three block, the only nonzero entry of the square is the entry in row 1, column 3; the size-two block squares to zero. Therefore \[ q(\mathbf{J})= \begin{bmatrix} 0&0&1&0&0\\ 0&0&0&0&0\\ 0&0&0&0&0\\ 0&0&0&0&0\\ 0&0&0&0&0 \end{bmatrix}. \]

Check: The block formula gives \(q(1)=0\), \(q'(1)=0\), and \(q''(1)/2!=1\). On the size-three block it therefore gives \(\mathbf{N}_3^2\); on the size-two block the formula stops at \(\mathbf{N}_2\), whose coefficient is \(q'(1)=0\). These are exactly the two blocks shown above.

Worked Example: Transforming Back from Jordan Form

Let \[ \mathbf{J}=\begin{bmatrix}2&1\\0&2\end{bmatrix}, \qquad \mathbf{S}=\begin{bmatrix}1&0\\1&1\end{bmatrix}, \qquad \mathbf{S}^{-1}=\begin{bmatrix}1&0\\-1&1\end{bmatrix}. \] For \(p(x)=x^2\), first find the original matrix \(\mathbf{A}=\mathbf{S}\mathbf{J}\mathbf{S}^{-1}\). The products are \[ \mathbf{S}\mathbf{J}=\begin{bmatrix}2&1\\2&3\end{bmatrix}, \qquad \mathbf{A}=\begin{bmatrix}2&1\\2&3\end{bmatrix} \begin{bmatrix}1&0\\-1&1\end{bmatrix} =\begin{bmatrix}1&1\\-1&3\end{bmatrix}. \] In Jordan coordinates, \[ p(\mathbf{J})=\mathbf{J}^2=\begin{bmatrix}4&4\\0&4\end{bmatrix}. \] Transform this result back: \[ \mathbf{S}p(\mathbf{J})=\begin{bmatrix}4&4\\4&8\end{bmatrix}, \qquad p(\mathbf{A})=\mathbf{S}p(\mathbf{J})\mathbf{S}^{-1} =\begin{bmatrix}0&4\\-4&8\end{bmatrix}. \]

Check: Direct multiplication of \(\mathbf{A}\) gives \[ \mathbf{A}^2= \begin{bmatrix}1&1\\-1&3\end{bmatrix} \begin{bmatrix}1&1\\-1&3\end{bmatrix} =\begin{bmatrix}0&4\\-4&8\end{bmatrix}. \] This agrees with the similarity calculation, as required by \(p(\mathbf{A})=\mathbf{S}p(\mathbf{J})\mathbf{S}^{-1}\).

Common Mistake: Keeping Only the Eigenvalue

A Jordan block is not just its diagonal eigenvalue repeated. Replacing it by \(\lambda\mathbf{I}\) discards the nilpotent part, which can contribute nonzero terms to the polynomial. For example, for \(p(x)=x^2\) and \(\mathbf{J}_2(3)=\begin{bmatrix}3&1\\0&3\end{bmatrix}\), an incorrect calculation gives \(p(3)\mathbf{I}_2=9\mathbf{I}_2\). That would leave out the off-diagonal contribution.

The correction is to retain \(\mathbf{N}_2=\begin{bmatrix}0&1\\0&0\end{bmatrix}\). Since \(p(3)=9\), \(p'(3)=6\), and \(\mathbf{N}_2^2=\mathbf{O}\), the block formula gives \[ p(\mathbf{J}_2(3))=9\mathbf{I}_2+6\mathbf{N}_2 =\begin{bmatrix}9&6\\0&9\end{bmatrix}. \] Directly squaring the Jordan block confirms it: \[ \begin{bmatrix}3&1\\0&3\end{bmatrix}^2 =\begin{bmatrix}9&6\\0&9\end{bmatrix}. \] The eigenvalue determines the derivative values, but the block size determines which of those derivative terms may remain.

Why Block-by-Block Evaluation Is Useful

The procedure separates the work into two tasks. First, evaluate the polynomial on each Jordan block using only its eigenvalue, size, and the relevant derivative values. Second, if the question asks for the matrix in the original coordinates, apply the similarity transformation. When several blocks have the same eigenvalue, their polynomial values need not be identical: blocks of different sizes can retain different numbers of terms. Even when a term’s coefficient is zero, the block’s size still specifies the powers that could appear.

1
Write the Jordan blocks.
For each block, identify its eigenvalue \(\lambda\), size \(r\), and nilpotent part \(\mathbf{N}_r\).
2
Evaluate the derivatives.
Compute \(p^{(j)}(\lambda)/j!\) for \(0\le j<r\).
3
Assemble the block result.
Use \(\sum_{j=0}^{r-1}\frac{p^{(j)}(\lambda)}{j!}\mathbf{N}_r^j\), and place each result in its corresponding diagonal position.
4
Return to the original coordinates if needed.
For \(\mathbf{A}=\mathbf{S}\mathbf{J}\mathbf{S}^{-1}\), calculate \(p(\mathbf{A})=\mathbf{S}p(\mathbf{J})\mathbf{S}^{-1}\).

This method is especially useful when direct matrix powers would require many multiplications. It also makes the effect of each Jordan block visible rather than hiding it in a long calculation. The next question is how the largest block sizes relate to the minimal polynomial; that connection is developed separately.

Check Your Understanding

Use the block formula, and check each result by direct substitution or multiplication where practical.

  1. Evaluate \(p(\mathbf{J}_2(1))\) for \(p(x)=x^3\).
  2. For \(p(x)=(x-2)^2\), compare the results on \(\mathbf{J}_2(2)\) and \(\mathbf{J}_3(2)\).
  3. If \(\mathbf{A}=\mathbf{S}\mathbf{J}\mathbf{S}^{-1}\), explain why \(p(\mathbf{A})=\mathbf{S}p(\mathbf{J})\mathbf{S}^{-1}\).
  4. Find \(q(\mathbf{J}_2(0))\) for \(q(x)=1+2x+x^2\).
  5. For \(p(x)=x^2\) on \(\mathbf{J}_2(3)\), identify the incorrect step in replacing the block by \(3\mathbf{I}_2\), and give the correct result.

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon