Tutorials › Linear Algebra › Proof: Powers of a Diagonalizable Matrix

Diagonalization · Tutorial 539 of 1000

Proof: Powers of a Diagonalizable Matrix

See why the inverse factors cancel in matrix powers, and prove the formula for every nonnegative integer exponent.

Intermediate 9 min read

What You'll Learn

  • State the conditions on \(P\), \(D\), and \(A\) needed for the power formula.
  • Prove the formula for every nonnegative integer exponent by induction.
  • Handle the exponent zero using the identity matrix.
  • Compute and check examples with distinct and zero diagonal entries.
  • Identify and correct a mistaken rule for multiplying matrix powers.

Why Diagonalization Simplifies Powers

Repeatedly multiplying a matrix by itself can become cumbersome, even when the matrix has a simple structure hidden by its entries. A diagonalization expresses that structure as a change of coordinates: the diagonal matrix records how the matrix acts along eigenvector directions, while the invertible matrix \(P\) changes between those directions and the original coordinates. This tutorial proves that the change of coordinates can be kept outside any nonnegative integer power.

Throughout, matrices and vectors have real entries. Let \(\mathbf{A}\in\mathbb{R}^{n\times n}\). For an integer \(k\ge 1\), define \(\mathbf{A}^k\) to be the product of \(k\) copies of \(\mathbf{A}\), and define \(\mathbf{A}^0=\mathbf{I}_n\). A matrix is diagonalizable over \(\mathbb{R}\) if it has a representation \(\mathbf{A}=\mathbf{P}\mathbf{D}\mathbf{P}^{-1}\), where \(\mathbf{P}\in\mathbb{R}^{n\times n}\) is invertible and \(\mathbf{D}\in\mathbb{R}^{n\times n}\) is diagonal. In the usual eigenvector interpretation, the columns of \(\mathbf{P}\) are a basis of eigenvectors and the corresponding eigenvalues appear in the same order along the diagonal of \(\mathbf{D}\).

Theorem (Powers of a diagonalizable matrix): If \(\mathbf{A}=\mathbf{P}\mathbf{D}\mathbf{P}^{-1}\), with \(\mathbf{P}\) invertible and \(\mathbf{D}\) diagonal, then for every integer \(k\ge 0\), $$ \mathbf{A}^k=\mathbf{P}\mathbf{D}^k\mathbf{P}^{-1}. $$

The theorem concerns nonnegative integer powers. It does not require \(\mathbf{A}\) to be invertible: \(\mathbf{P}\) must be invertible, but diagonal entries of \(\mathbf{D}\) may be zero. The exponent-zero case is included, and it is important because the definition gives \(\mathbf{A}^0=\mathbf{I}_n\), not a zero matrix.

Proof by Induction

Proof. Fix an integer \(k\ge 0\) and use induction. For the base case \(k=0\), the definitions of zeroth powers and the inverse give \(\mathbf{A}^0=\mathbf{I}_n=\mathbf{P}\mathbf{I}_n\mathbf{P}^{-1}=\mathbf{P}\mathbf{D}^0\mathbf{P}^{-1}\). Now suppose, for some \(k\ge 0\), that \(\mathbf{A}^k=\mathbf{P}\mathbf{D}^k\mathbf{P}^{-1}\). Then, using the definition of the next power and associativity of matrix multiplication, \(\mathbf{A}^{k+1}=\mathbf{A}^k\mathbf{A}=(\mathbf{P}\mathbf{D}^k\mathbf{P}^{-1})(\mathbf{P}\mathbf{D}\mathbf{P}^{-1})=\mathbf{P}\mathbf{D}^k(\mathbf{P}^{-1}\mathbf{P})\mathbf{D}\mathbf{P}^{-1}=\mathbf{P}\mathbf{D}^k\mathbf{D}\mathbf{P}^{-1}=\mathbf{P}\mathbf{D}^{k+1}\mathbf{P}^{-1}\). The cancellation is valid because \(\mathbf{P}^{-1}\mathbf{P}=\mathbf{I}_n\), and multiplication by the identity leaves a matrix unchanged. Thus the statement holds at \(k=0\), and its truth at any \(k\ge0\) implies its truth at \(k+1\). By induction, it holds for every integer \(k\ge0\). \(\square\)

The proof relies on the neighboring factors \(\mathbf{P}^{-1}\mathbf{P}\) becoming the identity at each multiplication step. It does not move the factors past one another: matrix multiplication is generally not commutative. The diagonal factors combine as \(\mathbf{D}^k\mathbf{D}=\mathbf{D}^{k+1}\) because they are consecutive copies of the same matrix.

Worked Example: Squaring a Nondiagonal Matrix

Let \(\mathbf{P}=\begin{bmatrix}1&1\\0&1\end{bmatrix}\), \(\mathbf{D}=\begin{bmatrix}2&0\\0&3\end{bmatrix}\), and \(\mathbf{P}^{-1}=\begin{bmatrix}1&-1\\0&1\end{bmatrix}\). First compute the matrix \(\mathbf{A}\) represented by this diagonalization:

$$ \mathbf{P}\mathbf{D} = \begin{bmatrix}1&1\\0&1\end{bmatrix} \begin{bmatrix}2&0\\0&3\end{bmatrix} = \begin{bmatrix}2&3\\0&3\end{bmatrix}, \qquad \mathbf{A} = \begin{bmatrix}2&3\\0&3\end{bmatrix} \begin{bmatrix}1&-1\\0&1\end{bmatrix} = \begin{bmatrix}2&1\\0&3\end{bmatrix}. $$

For \(k=2\), the theorem predicts \(\mathbf{A}^2=\mathbf{P}\mathbf{D}^2\mathbf{P}^{-1}\). Direct multiplication of \(\mathbf{A}\) gives

$$ \mathbf{A}^2 = \begin{bmatrix}2&1\\0&3\end{bmatrix} \begin{bmatrix}2&1\\0&3\end{bmatrix} = \begin{bmatrix}4&5\\0&9\end{bmatrix}. $$

Meanwhile, \(\mathbf{D}^2=\begin{bmatrix}4&0\\0&9\end{bmatrix}\), so the right-hand side of the formula is

$$ \mathbf{P}\mathbf{D}^2\mathbf{P}^{-1} = \begin{bmatrix}1&1\\0&1\end{bmatrix} \begin{bmatrix}4&0\\0&9\end{bmatrix} \begin{bmatrix}1&-1\\0&1\end{bmatrix} = \begin{bmatrix}4&9\\0&9\end{bmatrix} \begin{bmatrix}1&-1\\0&1\end{bmatrix} = \begin{bmatrix}4&5\\0&9\end{bmatrix}. $$

Check: both calculations give \(\begin{bmatrix}4&5\\0&9\end{bmatrix}\). Multiplying this result by \(\mathbf{A}\) also gives \(\begin{bmatrix}4&5\\0&9\end{bmatrix}\begin{bmatrix}2&1\\0&3\end{bmatrix}=\begin{bmatrix}8&19\\0&27\end{bmatrix}=\mathbf{A}^3\), as the next power should.

What the Diagonal Power Means

For a diagonal matrix, taking a nonnegative integer power acts entry by entry. The convention for the zeroth power is that every diagonal entry becomes \(1\), including an entry that was \(0\). Thus, if \(\mathbf{D}=\operatorname{diag}(d_1,\dots,d_n)\), then \(\mathbf{D}^k=\operatorname{diag}(d_1^k,\dots,d_n^k)\) for \(k\ge1\), while \(\mathbf{D}^0=\mathbf{I}_n\). Here \(\operatorname{diag}(d_1,\dots,d_n)\) denotes the diagonal matrix with those diagonal entries in that order.

Proposition: If \(\mathbf{D}=\operatorname{diag}(d_1,\dots,d_n)\), then for every integer \(k\ge0\), \(\mathbf{D}^k\) is diagonal. For \(k\ge1\), its diagonal entries are \(d_1^k,\dots,d_n^k\); for \(k=0\), it is \(\mathbf{I}_n\).

Proof. For \(k=0\), the definition gives \(\mathbf{D}^0=\mathbf{I}_n\), which is diagonal with every diagonal entry equal to \(1\). Now let \(k\ge1\). A product of two diagonal matrices \(\operatorname{diag}(x_1,\dots,x_n)\) and \(\operatorname{diag}(y_1,\dots,y_n)\) is \(\operatorname{diag}(x_1y_1,\dots,x_ny_n)\): in row \(i\), the only potentially nonzero entry in the first matrix is in column \(i\), and the only potentially nonzero entry in column \(j\) of the second is in row \(j\), so the product has zero entries when \(i\ne j\) and entry \(x_i y_i\) when \(i=j\). Starting from \(\mathbf{D}\), this multiplication rule shows by induction on \(k\) that each successive product remains diagonal and multiplies each diagonal entry by itself once more. Its entries are therefore \(d_i^k\), as claimed. \(\square\)

This proposition explains why diagonalization is useful for powers: the matrix multiplication in the diagonal coordinates reduces to separate scalar powers. It also makes explicit that the eigenvalue \(0\) causes no difficulty for \(k\ge1\), since \(0^k=0\). For \(k=0\), one uses the identity matrix by definition rather than applying a scalar-power rule at zero.

Worked Example: A Zero Diagonal Entry

Take \(\mathbf{P}=\begin{bmatrix}1&1\\0&1\end{bmatrix}\), \(\mathbf{D}=\begin{bmatrix}0&0\\0&2\end{bmatrix}\), and \(\mathbf{P}^{-1}=\begin{bmatrix}1&-1\\0&1\end{bmatrix}\). Then

$$ \mathbf{A} = \mathbf{P}\mathbf{D}\mathbf{P}^{-1} = \begin{bmatrix}0&2\\0&2\end{bmatrix} \begin{bmatrix}1&-1\\0&1\end{bmatrix} = \begin{bmatrix}0&2\\0&2\end{bmatrix}. $$

Calculate the third power directly, showing each multiplication:

$$ \mathbf{A}^2 = \begin{bmatrix}0&2\\0&2\end{bmatrix} \begin{bmatrix}0&2\\0&2\end{bmatrix} = \begin{bmatrix}0&4\\0&4\end{bmatrix}, \qquad \mathbf{A}^3 = \begin{bmatrix}0&4\\0&4\end{bmatrix} \begin{bmatrix}0&2\\0&2\end{bmatrix} = \begin{bmatrix}0&8\\0&8\end{bmatrix}. $$

The diagonal power is \(\mathbf{D}^3=\begin{bmatrix}0&0\\0&8\end{bmatrix}\), so the theorem's expression gives

$$ \mathbf{P}\mathbf{D}^3\mathbf{P}^{-1} = \begin{bmatrix}0&8\\0&8\end{bmatrix} \begin{bmatrix}1&-1\\0&1\end{bmatrix} = \begin{bmatrix}0&8\\0&8\end{bmatrix}. $$

Check: the direct product for \(\mathbf{A}^3\) and the diagonalization formula both give \(\begin{bmatrix}0&8\\0&8\end{bmatrix}\). The zero diagonal entry remains zero in the third power; it does not prevent the formula from applying.

The Exponent-Zero Case and Eigenvectors

Worked Example: Checking the Zeroth Power

Use \(\mathbf{P}=\begin{bmatrix}1&1\\1&-1\end{bmatrix}\), \(\mathbf{D}=\begin{bmatrix}1&0\\0&3\end{bmatrix}\), and \(\mathbf{P}^{-1}=\tfrac12\begin{bmatrix}1&1\\1&-1\end{bmatrix}\). The inverse can be checked by multiplication:

$$ \mathbf{P}\mathbf{P}^{-1} = \frac12 \begin{bmatrix}1&1\\1&-1\end{bmatrix} \begin{bmatrix}1&1\\1&-1\end{bmatrix} = \frac12 \begin{bmatrix}2&0\\0&2\end{bmatrix} = \mathbf{I}_2. $$

By definition, \(\mathbf{A}^0=\mathbf{I}_2\) and \(\mathbf{D}^0=\mathbf{I}_2\). The right-hand side of the power formula is

$$ \mathbf{P}\mathbf{D}^0\mathbf{P}^{-1} = \begin{bmatrix}1&1\\1&-1\end{bmatrix} \mathbf{I}_2 \left(\frac12\begin{bmatrix}1&1\\1&-1\end{bmatrix}\right) = \frac12 \begin{bmatrix}2&0\\0&2\end{bmatrix} = \mathbf{I}_2. $$

Check: the left-hand side and right-hand side both equal \(\mathbf{I}_2\). This verifies the formula at \(k=0\), including the identity factors in the diagonalization.

The same representation also describes what powers do to the eigenvectors that form the columns of \(\mathbf{P}\). Write \(\mathbf{P}=\begin{bmatrix}\mathbf{v}_1&\cdots&\mathbf{v}_n\end{bmatrix}\) and \(\mathbf{D}=\operatorname{diag}(d_1,\dots,d_n)\). From \(\mathbf{A}\mathbf{P}=\mathbf{P}\mathbf{D}\), the \(i\)-th columns on the two sides give \(\mathbf{A}\mathbf{v}_i=d_i\mathbf{v}_i\). Thus \(d_i\) is the eigenvalue corresponding to the nonzero eigenvector \(\mathbf{v}_i\).

Corollary: Under the hypotheses of the theorem, if \(\mathbf{A}\mathbf{v}=\lambda\mathbf{v}\) for a nonzero vector \(\mathbf{v}\), then \(\mathbf{A}^k\mathbf{v}=\lambda^k\mathbf{v}\) for every integer \(k\ge0\), where the \(k=0\) case means \(\mathbf{A}^0\mathbf{v}=\mathbf{v}\).

Proof. For \(k=0\), \(\mathbf{A}^0\mathbf{v}=\mathbf{I}_n\mathbf{v}=\mathbf{v}\), which is the stated zeroth-power case. Suppose the claim holds for some \(k\ge0\). Then \(\mathbf{A}^{k+1}\mathbf{v}=\mathbf{A}(\mathbf{A}^k\mathbf{v})=\mathbf{A}(\lambda^k\mathbf{v})=\lambda^k\mathbf{A}\mathbf{v}=\lambda^k(\lambda\mathbf{v})=\lambda^{k+1}\mathbf{v}\). The induction proves the assertion for every nonnegative integer \(k\). \(\square\)

Common Mistake: Moving Factors Past One Another

A tempting but incorrect step is to treat each factor in \(\mathbf{P}\mathbf{D}\mathbf{P}^{-1}\) as though it can be powered independently. For the matrices in the first example, this would give the false rule \((\mathbf{P}\mathbf{D}\mathbf{P}^{-1})^2=\mathbf{P}^2\mathbf{D}^2(\mathbf{P}^{-1})^2\). In fact, \(\mathbf{P}^2=\begin{bmatrix}1&2\\0&1\end{bmatrix}\) and \((\mathbf{P}^{-1})^2=\begin{bmatrix}1&-2\\0&1\end{bmatrix}\), so that incorrect expression evaluates to

$$ \begin{bmatrix}1&2\\0&1\end{bmatrix} \begin{bmatrix}4&0\\0&9\end{bmatrix} \begin{bmatrix}1&-2\\0&1\end{bmatrix} = \begin{bmatrix}4&18\\0&9\end{bmatrix} \begin{bmatrix}1&-2\\0&1\end{bmatrix} = \begin{bmatrix}4&10\\0&9\end{bmatrix}. $$

This disagrees with the correct square \(\begin{bmatrix}4&5\\0&9\end{bmatrix}\). The correction is to preserve the order of the factors and group only adjacent terms: \((\mathbf{P}\mathbf{D}\mathbf{P}^{-1})(\mathbf{P}\mathbf{D}\mathbf{P}^{-1})=\mathbf{P}\mathbf{D}(\mathbf{P}^{-1}\mathbf{P})\mathbf{D}\mathbf{P}^{-1}=\mathbf{P}\mathbf{D}^2\mathbf{P}^{-1}\). The inverse factors cancel because they are adjacent, not because matrix factors may be rearranged.

Another important distinction is between the assumptions on \(\mathbf{P}\) and \(\mathbf{A}\). The proof uses the inverse of \(\mathbf{P}\), so \(\mathbf{P}\) must be invertible. It does not use an inverse of \(\mathbf{A}\); therefore, the theorem remains valid when \(\mathbf{A}\) is singular, as the example with a zero diagonal entry demonstrates. The formula is a consequence of the given diagonalization, not a claim that every square matrix has one.

Check Your Understanding

For each question, state the relevant hypothesis and check any numerical conclusion by multiplication.

  1. In the induction step, identify the adjacent product that becomes the identity matrix.
  2. Why does the power formula still apply when one diagonal entry of \(\mathbf{D}\) is zero?
  3. If \(\mathbf{D}=\operatorname{diag}(4,0)\), write \(\mathbf{D}^0\), \(\mathbf{D}^1\), and \(\mathbf{D}^2\).
  4. Suppose \(\mathbf{A}\mathbf{v}=-2\mathbf{v}\). What does the corollary give for \(\mathbf{A}^3\mathbf{v}\)?
  5. Explain why replacing \((\mathbf{P}\mathbf{D}\mathbf{P}^{-1})^2\) by \(\mathbf{P}^2\mathbf{D}^2(\mathbf{P}^{-1})^2\) is not justified.

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