Steply

Diagonalize [2, 3; 0, 0]

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

Step by step

The question

Question: diagonalize A.

A = [2, 3; 0, 0]

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 − λ, 3; 0, −λ]

Its determinant, down minus up, must be 0.

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

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

Multiply out the brackets.

−2λ + λ2 = 0

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

λ2 − 2λ = 0

It factors, as in the factoring lesson.

(λ)(λ − 2) = 0

So λ = 0 or λ = 2.

λ = 0 or λ = 2

2 Eigenvector for λ = 0

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

A − 0I = [2, 3; 0, 0]
→ [1, 3 over 2; 0, 0]

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

That is why there are eigenvectors.

Row 1 as an equation: x + 3y/2 = 0.

x + 3y2 = 0

We want x alone.

To remove + 3y/2, we take away 3y/2 on both sides.

x + 3y2 − 3y2 = −3y2

They cancel on the left.

So x = −3y/2.

x = −3y2

We pick y = 2 to keep whole numbers.

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

v = [−3; 2]

3 Eigenvector for λ = 2

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

A − 2I = [0, 3; 0, −2]
→ [0, 1; 0, −2]
→ [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]

4 Build P and D

P: the eigenvector for λ = 0 is column 1, the one for λ = 2 is column 2.

D: 0 first, then 2, in the same order.

P = [−3, 1; 2, 0], D = [0, 0; 0, 2]

Careful!

The order matters.

The first λ in D goes with the first column of P.

Careful: D in the same order as the columns of P

So A = P D P⁻¹, with this P and D.

A = P D P−1

5 Check

Let's check without the inverse: A = P D P⁻¹ means A P = P D.

We work out both sides.

First A times P.

A P = [2, 3; 0, 0] × [−3, 1; 2, 0]
A P = [2 × (−3) + 3 × 2, 2 × 1 + 3 × 0; 0 × (−3) + 0 × 2, 0 × 1 + 0 × 0]
A P = [0, 2; 0, 0]

Now P times D.

P D = [−3, 1; 2, 0] × [0, 0; 0, 2]
P D = [−3 × 0 + 1 × 0, −3 × 0 + 1 × 2; 2 × 0 + 0 × 0, 2 × 0 + 0 × 2]
P D = [0, 2; 0, 0]

Both give rows 0, 2 and 0, 0.

So A P = P D, and the answer is right!

Let's look back.

First: find the eigenvalues.

Then: eigenvector for λ = 0.

Then: eigenvector for λ = 2.

Then: build P and D.

Last: check.

Answer
A = P D P−1

Your turn

Try this one yourself, then check:

Diagonalize [3, 1; 0, 0]
Show the answer
P = [−1, 1; 3, 0], D = [0, 0; 0, 3]

More from Diagonalizing a matrix

The whole lesson: Diagonalizing a matrix →