Tutorials › Linear Algebra › Complex Diagonalization Of Real 2×2 Matrices

Complex Eigenvalues and Complex Scalars · Tutorial 562 of 1000

Complex Diagonalization Of Real 2x2 Matrices

Learn how a conjugate pair of complex eigenvectors produces a diagonalization of a real \(2\times2\) matrix over \(\mathbb{C}\).

Intermediate 9 min read

What You'll Learn

  • Build the eigenvector matrix from an eigenvector and its complex conjugate.
  • Pair each eigenvector with its corresponding eigenvalue in the diagonal matrix.
  • Explain why the two conjugate eigenvectors are linearly independent.
  • Verify the factorization by checking the matrix products.
  • Recognize why the diagonalization is over the complex numbers, not the real numbers.

Diagonalization Over the Complex Numbers

A real \(2\times2\) matrix can have eigenvalues that are not real. In that case, it cannot be diagonalized using a real diagonal matrix: the diagonal entries of a real diagonal matrix are real eigenvalues. But over \(\mathbb{C}\), the two nonreal eigenvalues occur as a conjugate pair, and their eigenvectors can be placed as the columns of an invertible complex matrix. The resulting diagonalization is a change of coordinates that makes the action of the matrix simple: each eigenvector is scaled by its corresponding eigenvalue.

Here, \(\mathbf{A}\in\mathbb{R}^{2\times2}\) acts on complex columns in \(\mathbb{C}^2\) using the same matrix entries. An eigenvalue \(\lambda\in\mathbb{C}\) has an eigenvector \(\mathbf{z}\in\mathbb{C}^2\) when \(\mathbf{z}\ne\mathbf{0}\) and \(\mathbf{A}\mathbf{z}=\lambda\mathbf{z}\). A diagonalization over \(\mathbb{C}\) is a factorization \(\mathbf{A}=\mathbf{P}\mathbf{D}\mathbf{P}^{-1}\), where \(\mathbf{P}\) is an invertible complex matrix and \(\mathbf{D}\) is diagonal.

Construction: Suppose \(\mathbf{A}\in\mathbb{R}^{2\times2}\) has a nonreal eigenvalue \(\lambda=a+bi\), where \(a,b\in\mathbb{R}\) and \(b\ne0\), and let \(\mathbf{z}\ne\mathbf{0}\) satisfy \(\mathbf{A}\mathbf{z}=\lambda\mathbf{z}\). Then \(\overline{\lambda}=a-bi\) is also an eigenvalue, with eigenvector \(\overline{\mathbf{z}}\). Set \(\mathbf{P}=\begin{bmatrix}\mathbf{z}&\overline{\mathbf{z}}\end{bmatrix}\) and \(\mathbf{D}=\begin{bmatrix}\lambda&0\\0&\overline{\lambda}\end{bmatrix}\). These matrices satisfy \(\mathbf{A}=\mathbf{P}\mathbf{D}\mathbf{P}^{-1}\).

In this construction, the bar denotes complex conjugation, applied entry by entry to a vector or matrix. It is essential to pair each column of \(\mathbf{P}\) with its own eigenvalue in \(\mathbf{D}\). The first column \(\mathbf{z}\) is scaled by \(\lambda\), and the second column \(\overline{\mathbf{z}}\) is scaled by \(\overline{\lambda}\).

Why the Construction Works

We first justify the two facts the construction needs: conjugating an eigenpair of a real matrix gives another eigenpair, and eigenvectors for distinct eigenvalues are linearly independent.

Proposition: If \(\mathbf{A}\in\mathbb{R}^{2\times2}\), \(\lambda\in\mathbb{C}\) is nonreal, and \(\mathbf{A}\mathbf{z}=\lambda\mathbf{z}\) for \(\mathbf{z}\ne\mathbf{0}\), then \(\mathbf{A}\overline{\mathbf{z}}=\overline{\lambda}\,\overline{\mathbf{z}}\), and \(\mathbf{z},\overline{\mathbf{z}}\) are linearly independent in \(\mathbb{C}^2\).

Proof. Since every entry of \(\mathbf{A}\) is real, conjugating each entry of \(\mathbf{A}\mathbf{z}=\lambda\mathbf{z}\) gives \(\mathbf{A}\overline{\mathbf{z}}=\overline{\lambda}\,\overline{\mathbf{z}}\). Both vectors are nonzero: \(\mathbf{z}\ne\mathbf{0}\), so its conjugate is nonzero as well. Also \(\lambda\ne\overline{\lambda}\), because \(\lambda=a+bi\) with \(b\ne0\). Suppose the two vectors were linearly dependent. Since both are nonzero, one would be a nonzero scalar multiple of the other, so \(\overline{\mathbf{z}}=c\mathbf{z}\) for some \(c\ne0\). Applying \(\mathbf{A}\) to this equation gives \(\mathbf{A}\overline{\mathbf{z}}=c\lambda\mathbf{z}\), while the conjugate eigenpair equation gives \(\mathbf{A}\overline{\mathbf{z}}=\overline{\lambda}c\mathbf{z}\). Thus \((\lambda-\overline{\lambda})c\mathbf{z}=\mathbf{0}\). Each of \(\lambda-\overline{\lambda}\), \(c\), and \(\mathbf{z}\) is nonzero, a contradiction. Therefore the vectors are independent. \(\square\)

For a \(2\times2\) matrix, two independent columns form an invertible matrix. Thus \(\mathbf{P}\) in the construction is invertible. The key multiplication is then short: its \(j\)th column says that \(\mathbf{A}\) applied to the \(j\)th column of \(\mathbf{P}\) equals that column multiplied by the \(j\)th diagonal entry of \(\mathbf{D}\).

Theorem (Complex diagonalization of a real \(2\times2\) matrix): Let \(\mathbf{A}\in\mathbb{R}^{2\times2}\) have a nonreal eigenvalue \(\lambda\), and choose a nonzero eigenvector \(\mathbf{z}\in\mathbb{C}^2\) for \(\lambda\). With \(\mathbf{P}=\begin{bmatrix}\mathbf{z}&\overline{\mathbf{z}}\end{bmatrix}\) and \(\mathbf{D}=\begin{bmatrix}\lambda&0\\0&\overline{\lambda}\end{bmatrix}\), the matrix \(\mathbf{P}\) is invertible and \(\mathbf{A}=\mathbf{P}\mathbf{D}\mathbf{P}^{-1}\).

Proof. The proposition shows that \(\overline{\lambda}\) is an eigenvalue with eigenvector \(\overline{\mathbf{z}}\), and that \(\mathbf{z}\) and \(\overline{\mathbf{z}}\) are independent. Hence \(\mathbf{P}\) is invertible. By the two eigenvector equations, the columns of \(\mathbf{A}\mathbf{P}\) are \(\lambda\mathbf{z}\) and \(\overline{\lambda}\,\overline{\mathbf{z}}\), respectively. These are precisely the columns of \(\mathbf{P}\mathbf{D}\), so \(\mathbf{A}\mathbf{P}=\mathbf{P}\mathbf{D}\). Multiplying on the right by \(\mathbf{P}^{-1}\) gives \(\mathbf{A}=\mathbf{P}\mathbf{D}\mathbf{P}^{-1}\). \(\square\)

This proof explains why the procedure works rather than just supplying a recipe. The eigenvector equations establish \(\mathbf{A}\mathbf{P}=\mathbf{P}\mathbf{D}\); independence ensures the inverse exists, so the equation can be rearranged into the desired factorization.

Worked Diagonalizations

Worked Example: A Rotation-Scaling Matrix

Diagonalize \(\mathbf{A}=\begin{bmatrix}0&-2\\2&0\end{bmatrix}\) over \(\mathbb{C}\), using the eigenvalue \(\lambda=2i\).

For \(\mathbf{z}=\begin{bmatrix}1\\-i\end{bmatrix}\), direct multiplication gives

$$ \mathbf{A}\mathbf{z} =\begin{bmatrix}0&-2\\2&0\end{bmatrix} \begin{bmatrix}1\\-i\end{bmatrix} =\begin{bmatrix}2i\\2\end{bmatrix} =2i\begin{bmatrix}1\\-i\end{bmatrix}. $$

Thus \(\mathbf{z}\) is an eigenvector for \(2i\). Its conjugate is \(\overline{\mathbf{z}}=\begin{bmatrix}1\\i\end{bmatrix}\), paired with \(-2i\). Therefore

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

The determinant of \(\mathbf{P}\) is \(i-(-i)=2i\), so it is nonzero. The inverse is

$$ \mathbf{P}^{-1} =\begin{bmatrix}\tfrac12&\tfrac{i}{2}\\[2pt]\tfrac12&-\tfrac{i}{2}\end{bmatrix}. $$

For a direct check, multiplying \(\mathbf{P}\) by this proposed inverse gives \(\begin{bmatrix}1&0\\0&1\end{bmatrix}\). Also, multiplying the columns of \(\mathbf{P}\) by their eigenvalues gives

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

Therefore \(\mathbf{P}\mathbf{D}\mathbf{P}^{-1}=\mathbf{A}\mathbf{P}\mathbf{P}^{-1}=\mathbf{A}\). This verifies the diagonalization.

Worked Example: A Matrix with Less Immediate Eigenvectors

Diagonalize \(\mathbf{A}=\begin{bmatrix}3&-2\\5&1\end{bmatrix}\) over \(\mathbb{C}\). First, its characteristic equation is

$$ \det(\mathbf{A}-\lambda\mathbf{I}_2) =\det\begin{bmatrix}3-\lambda&-2\\5&1-\lambda\end{bmatrix} =(3-\lambda)(1-\lambda)+10 =\lambda^2-4\lambda+13=0. $$

Completing the square gives \((\lambda-2)^2=-9\), so the eigenvalues are \(2+3i\) and \(2-3i\). For \(\lambda=2+3i\), the vector \(\mathbf{z}=\begin{bmatrix}1+i\\2-i\end{bmatrix}\) satisfies the eigenvector equation. In detail,

$$ \mathbf{A}\mathbf{z} =\begin{bmatrix}3(1+i)-2(2-i)\\5(1+i)+(2-i)\end{bmatrix} =\begin{bmatrix}-1+5i\\7+4i\end{bmatrix} =(2+3i)\begin{bmatrix}1+i\\2-i\end{bmatrix}. $$

Its conjugate is \(\overline{\mathbf{z}}=\begin{bmatrix}1-i\\2+i\end{bmatrix}\). The matrices formed from this conjugate pair are

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

The determinant of \(\mathbf{P}\) is \((1+i)(2+i)-(1-i)(2-i)=(1+3i)-(1-3i)=6i\). Hence

$$ \mathbf{P}^{-1} =\frac16\begin{bmatrix}1-2i&1+i\\1+2i&1-i\end{bmatrix}. $$

Multiplying \(\mathbf{P}\mathbf{P}^{-1}\) gives the identity: the diagonal entries are \(\big((1+i)(1-2i)+(1-i)(1+2i)\big)/6=6/6=1\) and \(\big((2-i)(1+i)+(2+i)(1-i)\big)/6=6/6=1\); the off-diagonal entries are \(\big((1+i)(1+i)+(1-i)(1-i)\big)/6=0\) and \(\big((2-i)(1-2i)+(2+i)(1+2i)\big)/6=0\).

Finally, the eigenvector equation and its conjugate give the multiplication check

$$ \mathbf{A}\mathbf{P} =\begin{bmatrix}-1+5i&-1-5i\\7+4i&7-4i\end{bmatrix} =\mathbf{P}\mathbf{D}. $$

Since \(\mathbf{P}\mathbf{P}^{-1}=\mathbf{I}_2\), it follows that \(\mathbf{P}\mathbf{D}\mathbf{P}^{-1}=\mathbf{A}\mathbf{P}\mathbf{P}^{-1}=\mathbf{A}\).

Worked Example: Finding an Eigenvector from the Equation

For \(\mathbf{A}=\begin{bmatrix}0&-1\\4&0\end{bmatrix}\), find a diagonalization over \(\mathbb{C}\). Its characteristic equation is \(\lambda^2+4=0\), so take \(\lambda=2i\). To find an eigenvector, solve \((\mathbf{A}-2i\mathbf{I}_2)\mathbf{z}=\mathbf{0}\):

$$ \begin{bmatrix}-2i&-1\\4&-2i\end{bmatrix} \begin{bmatrix}z_1\\z_2\end{bmatrix} =\begin{bmatrix}0\\0\end{bmatrix}. $$

The first row gives \(z_2=-2iz_1\). Choosing \(z_1=1\) gives \(\mathbf{z}=\begin{bmatrix}1\\-2i\end{bmatrix}\). The second row is satisfied because \(4+(-2i)(-2i)=4-4=0\). Conjugating gives the other eigenvector, so

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

The determinant of \(\mathbf{P}\) is \(2i-(-2i)=4i\), and its inverse is \(\mathbf{P}^{-1}=\begin{bmatrix}\tfrac12&\tfrac{i}{4}\\[2pt]\tfrac12&-\tfrac{i}{4}\end{bmatrix}\). Their product is the identity: the first row of \(\mathbf{P}\mathbf{P}^{-1}\) is \((1,0)\), and the second is \(((-2i)/2+(2i)/2,\;(-2i)(i/4)+(2i)(-i/4))=(0,1)\).

The final check is

$$ \mathbf{A}\mathbf{P} =\begin{bmatrix}2i&-2i\\4&4\end{bmatrix} =\mathbf{P}\mathbf{D}. $$

Thus \(\mathbf{P}\mathbf{D}\mathbf{P}^{-1}=\mathbf{A}\mathbf{P}\mathbf{P}^{-1}=\mathbf{A}\).

Common Pitfalls and What the Diagonalization Means

Do not repeat the same eigenvector in both columns. In the second example, taking \(\mathbf{P}=\begin{bmatrix}\mathbf{z}&\mathbf{z}\end{bmatrix}\) gives two identical columns, so \(\det\mathbf{P}=0\) and \(\mathbf{P}^{-1}\) does not exist. The second column must be the conjugate eigenvector \(\overline{\mathbf{z}}\), not another copy of \(\mathbf{z}\).

Do not repeat the same eigenvalue in both diagonal entries. For that example, \(\mathbf{A}\overline{\mathbf{z}}=(2-3i)\overline{\mathbf{z}}\), not \((2+3i)\overline{\mathbf{z}}\). Pairing \(\overline{\mathbf{z}}\) with \(2+3i\) would make the second columns of \(\mathbf{A}\mathbf{P}\) and \(\mathbf{P}\mathbf{D}\) unequal. Conjugate both the eigenvector and the eigenvalue for the second column.

The construction is a diagonalization over \(\mathbb{C}\), even though \(\mathbf{A}\) has real entries. The entries of \(\mathbf{P}\) and \(\mathbf{D}\) need not be real. In fact, a real diagonal matrix can have only real eigenvalues: if a real diagonal matrix is \(\operatorname{diag}(d_1,d_2)\), its characteristic equation is \((d_1-\lambda)(d_2-\lambda)=0\), so its eigenvalues are \(d_1,d_2\in\mathbb{R}\). It therefore cannot be similar to a real matrix whose eigenvalues are nonreal.

There is also a useful real-coordinate interpretation. Writing \(\mathbf{z}=\mathbf{x}+i\mathbf{y}\) with real columns \(\mathbf{x},\mathbf{y}\), the eigenvector equation for \(\lambda=a+bi\) gives, by equating real and imaginary parts, \(\mathbf{A}\mathbf{x}=a\mathbf{x}-b\mathbf{y}\) and \(\mathbf{A}\mathbf{y}=b\mathbf{x}+a\mathbf{y}\). The complex diagonalization records these same paired relationships using conjugate columns and diagonal entries. The complex form is particularly useful when calculations involve eigenvalues or powers of \(\mathbf{A}\): in the eigenvector coordinates, each diagonal entry acts separately.

Check Your Understanding

For each question, keep the column-eigenvalue pairing consistent and verify any proposed factorization by multiplication.

  1. For a real \(2\times2\) matrix with eigenvalue \(1+2i\) and eigenvector \(\mathbf{z}\), write the conjugate eigenpair and the corresponding forms of \(\mathbf{P}\) and \(\mathbf{D}\).
  2. Explain why \(\mathbf{P}=\begin{bmatrix}\mathbf{z}&\overline{\mathbf{z}}\end{bmatrix}\) is invertible when the eigenvalues are nonreal and \(\mathbf{z}\ne\mathbf{0}\).
  3. For \(\mathbf{A}=\begin{bmatrix}0&-3\\3&0\end{bmatrix}\), verify that \(\begin{bmatrix}1\\-i\end{bmatrix}\) is an eigenvector and construct \(\mathbf{P}\) and \(\mathbf{D}\).
  4. In the second worked example, what fails if the diagonal matrix is changed to \(\begin{bmatrix}2+3i&0\\0&2+3i\end{bmatrix}\)?
  5. Why can a real diagonal matrix not be similar to a real \(2\times2\) matrix with nonreal eigenvalues?

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