Linear Algebra for Engineers lecture 27: Diagonalization and Complex Eigenvalues
Overview
Alex Townsend explains diagonalization as writing a square matrix as A = P D P⁻¹, where P contains linearly independent eigenvectors and D contains their matching eigenvalues. He illustrates non-uniqueness with identity, reflection, and projection matrices, extends the method to complex eigenvalues using a 90-degree rotation, and interprets diagonalization as a change of coordinates that makes matrix powers straightforward.
Key takeaways
- A = P D P⁻¹ pairs each eigenvector column of P with the corresponding eigenvalue on the diagonal of D; reordering or rescaling those columns creates other valid decompositions.
- The identity matrix has every nonzero vector as an eigenvector with eigenvalue 1, while projection onto y = x has eigenvalues 1 along the line and 0 perpendicular to it.
- The 90-degree rotation matrix has characteristic polynomial λ² + 1 and eigenvalues i and −i, so it can be diagonalized over the complex numbers even though it has no real eigenvectors.
- An n × n matrix with n distinct eigenvalues is diagonalizable; repeated eigenvalues require checking whether the eigenspaces supply enough linearly independent eigenvectors.
- Diagonalization gives Aⁿ = P Dⁿ P⁻¹, reducing a high matrix power to powers of the individual eigenvalues.
- Floating-point perturbations commonly split exact repeated roots into nearby distinct roots, which helps explain why exactly non-diagonalizable matrices are unusual in numerical computations.
Chapters
- Alex Townsend defines an eigenvalue decomposition as A = P D P⁻¹, with square A, invertible P, and diagonal D.
- Each column of P is an eigenvector, and its matching diagonal entry in D is the eigenvalue.
- The lecture is scheduled around sections 5.3 and 5.5; Townsend also notes that Homework 11 is due on the final class day.
- Eigenvector columns and diagonal entries can be reordered together without changing A = P D P⁻¹.
- Multiplying an eigenvector by any nonzero scalar preserves its eigenvalue and gives another valid column for P.
- The eigenspace is fixed by the matrix, but its basis is not; P can therefore have many valid choices.
- For the identity matrix, every nonzero vector is an eigenvector with eigenvalue 1, so any invertible P works when D = I.
- Reflection across y = x has eigenvalue 1 along the line and −1 perpendicular to it.
- Projection onto y = x has eigenvalue 1 along the line and 0 in the perpendicular direction, making the projection matrix non-invertible.
- Invertibility and diagonalizability are separate properties: the projection is non-invertible yet diagonalizable.
- The matrix shown for a 90-degree rotation has no real eigenvectors because every nonzero real vector changes direction.
- Its characteristic polynomial is λ² + 1, whose roots are i and −i rather than real numbers.
- A real matrix can have complex eigenvalues because its real characteristic polynomial can have complex roots.
- For λ = i, solving the null-space system (A − iI)v = 0 gives a one-dimensional complex eigenspace; one valid eigenvector is (1, i).
- For λ = −i, solving (A + iI)v = 0 gives the paired eigenspace; one valid eigenvector is (1, −i).
- Scaling either vector by a nonzero complex number gives another valid basis vector, so the complex P matrix is not unique.
- The two distinct eigenvalues i and −i provide the eigenvector columns and matching diagonal entries for a decomposition over the complex numbers.
- An n × n matrix with n distinct eigenvalues is diagonalizable because the corresponding eigenvectors are linearly independent.
- A characteristic polynomial with no repeated roots therefore guarantees diagonalizability.
- Repeated eigenvalues do not settle the question: Townsend says to compute eigenspaces and check whether there are enough independent eigenvectors.
- Townsend interprets P as a change-of-basis matrix whose columns are the eigenvectors forming a new coordinate system.
- For the example matrix [[4, −3], [2, −1]], the eigenvector coordinates turn the transformation into diagonal scaling with eigenvalues 2 and 1.
- The equivalent routes are applying A directly in standard coordinates or changing coordinates with P⁻¹, applying D, and changing back with P.
- A matrix is diagonalizable when its eigenvectors form a complete basis, so its transformation is diagonal in that basis.
- If A = P D P⁻¹, adjacent factors P⁻¹P cancel in repeated products, giving Aⁿ = P Dⁿ P⁻¹.
- Computing D⁵⁰ only requires raising each diagonal eigenvalue to the 50th power.
- For A⁵⁰x, one can convert x to eigenvector coordinates once, scale by the eigenvalues to the 50th power, then convert back.
- This avoids applying A to x 50 times and is useful for repeated transitions such as the Markov-chain example Townsend recalls.
- Townsend argues that floating-point rounding perturbs repeated roots, often splitting an exact repeated eigenvalue into nearby distinct values.
- A small perturbation can also turn a repeated real root into distinct complex roots, which still satisfies the distinct-eigenvalue criterion.
- He cautions that, in numerical computation, exact repeated roots and non-diagonalizable cases are uncommon, even though eigenvalues may be very close.
Transcript excerpt
0:00 Primitive final which is our last exam or called prelim 2 if you want to call it that is uh is on the 13th of December. Yeah. So we still have classes after the final which is now really awkward. So uh I don't know. I will try to make them really fun and maybe don't expect anyone to turn up. I will just record and then if anybody wants to watch them over the winter break, they're welcome to watch them. And there'll just be some I'll just try to make them super fun and application driven and you can watch them at your leisure. There will still be a homework 11 due on the Wednesday, the last day of the class. Okay. Anyway, uh the the pain and suffering today is in uh section 5.3 and 5.5.
0:50 Just suffering seems to be the the theme that you guys have gone for over the over the course of the zoom chat. Anyway, so I value composition. So every not every so square matrices may be able to be composed of simpler matrices. If they can and it looks like this, then we call this an value decomposition of A. So what is it made up of? It's made up of a square. So A has to be square. P has to be square. D has to be square. P has to be a square invertible matrix. And D has to be a diagonal matrix. Okay. And it's a special it's a special matrix. These are special matrices because this P here for to be to be an vectors the columns of P will be on vectors of A.
1:42 The entries along the diagonal of D will be the igen values of A. So um if you can do this if you can
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Alex Townsend.