Steply

Diagonalize [2, 1; 0, 2]

Step by step, with the reason for every step · Diagonalizing a matrix · Linear Algebra

Step by step

The question

Question: diagonalize A.

A = [2, 1; 0, 2]

Diagonalizing means writing A as P times D times P inverse.

The columns of P are eigenvectors.

D is diagonal: the eigenvalues down the diagonal, 0s elsewhere.

A = P D P−1
P: eigenvectors as columns
D: their λs down the diagonal

1 Find the eigenvalues

As in the eigenvalue lesson: take λ off the diagonal of A.

A − λI = [2 − λ, 1; 0, 2 − λ]

Its determinant, down minus up, must be 0.

So (2 − λ)(2 − λ) − 0 × 1 = 0.

(2 − λ)(2 − λ) − 0 × 1 = 0

Multiply out the brackets.

4 − 2λ − 2λ + λ2 = 0

Like terms together, the highest power first: λ² − 4λ + 4 = 0.

λ2 − 4λ + 4 = 0

It factors, as in the factoring lesson.

(λ − 2)2 = 0

So λ = 2.

λ = 2

2 Eigenvector for λ = 2

We take 2 off the diagonal: 2 − 2 = 0 and 2 − 2 = 0.

A − 2I = [0, 1; 0, 0]

A row of 0s: the letter x is free.

That is why there are eigenvectors.

Row 1 as an equation: y = 0.

So y = 0.

y = 0

We pick x = 1.

So an eigenvector for λ = 2 is (1, 0).

v = [1; 0]

There is only one λ, and its eigenvectors are all numbers times (1, 0): one direction.

P needs two directions, so A cannot be diagonalized.

= only one direction: cannot be diagonalized

Let's look back.

First: find the eigenvalues.

Last: eigenvector for λ = 2.

Answer
= only one direction: cannot be diagonalized

More from Diagonalizing a matrix

The whole lesson: Diagonalizing a matrix →