Linear Algebra I · Eigenvector coordinates, diagonalization, and matrix powers
Prerequisites: the eigenvalue lesson, eigenspace bases, matrix products, inverse matrices, and coordinates in an ordered basis. Use real matrices and real eigenvector bases here. Goals: distinguish standard and eigenvector coordinates, prove the diagonalization criterion, calculate nonnegative integer powers, check a proposed factorization, and recognize repeated-root failures. Reproduce the examples and lab, then attempt the open-book assessment with your own reasoning before opening its rubric.
The columns of P define the coordinate system
Let v₁,…,vₙ be an ordered basis of eigenvectors of an n×n matrix A, with matching eigenvalues λ₁,…,λₙ. Form P=[v₁ … vₙ] and D=diag(λ₁,…,λₙ). For a coordinate column c, the standard vector is x=Pc=∑cᵢvᵢ. Conversely c=P⁻¹x. P changes coordinates into the original space; P⁻¹ changes them back. The numerical columns c and x describe the same vector relative to different bases; they need not be equal.
Column by column, AP=[Av₁ … Avₙ]=[λ₁v₁ … λₙvₙ]=PD. Since the basis makes P invertible, P⁻¹AP=D and A=PDP⁻¹. Thus one application of A can be read as x → P⁻¹x → D(P⁻¹x) → P D(P⁻¹x): change basis, scale coordinates, return. The order of each eigenvalue in D must match its column in P. Rescaling a column by a nonzero number is allowed; reordering requires reordering D as well.
When diagonalization exists
An n×n real matrix is diagonalizable over ℝ if and only if it has n linearly independent real eigenvectors. The forward construction was just proved. Conversely, if A=PDP⁻¹ with real invertible P and diagonal D, multiply by P to get AP=PD. Each column of P is then an eigenvector with its corresponding diagonal eigenvalue, and invertibility makes the columns independent. This proves both directions rather than assuming that finding roots is enough.
Practical criterion: the characteristic polynomial must split into real linear factors, and for each eigenvalue the eigenspace dimension must equal its algebraic multiplicity. Bases from distinct eigenspaces together are independent; summing their dimensions must give n. Distinct real eigenvalues are sufficient, not necessary: 2I has a repeated root yet every basis is an eigenvector basis. By contrast [2 1;0 2] is invertible but has only one independent eigenvector, so it is not diagonalizable. Invertibility requires nonzero eigenvalues, a different condition.
The scalar field matters. A quarter-turn rotation has no real eigenvector basis and cannot be diagonalized over ℝ; it does have a complex eigenbasis over ℂ. Computing with complex bases is reserved for a later lesson. Also, a general eigenvector matrix P is not orthogonal: do not replace P⁻¹ with Pᵀ unless its columns are orthonormal.
Matrix powers and repeated updates
If A=PDP⁻¹, adjacent inverse factors cancel in A²=P D(P⁻¹P)D P⁻¹=PD²P⁻¹. Induction gives Aᵐ=PDᵐP⁻¹ for every integer m≥0. Define A⁰=D⁰=I, including when an eigenvalue is zero. For m≥1, Dᵐ has diagonal entries λᵢᵐ. Negative powers are allowed only if A is invertible, hence no diagonal eigenvalue is zero. The lab deliberately restricts m to nonnegative integers.
For the discrete model xₘ₊₁=Axₘ, start with c₀=P⁻¹x₀, compute cₘ=Dᵐc₀, then return xₘ=Pcₘ. This separates modes: |λ|<1 decays, |λ|>1 grows for a nonzero coefficient, and negative λ alternates sign. A unit-magnitude eigenvalue need not decay. These statements concern this linear model in an eigenbasis; they are not a general stability theorem for nonlinear or non-diagonalizable systems.
Worked examples
- Coordinates and a cube: A=[2 1;0 3], P=[1 1;0 1], D=diag(2,3), P⁻¹=[1 −1;0 1]. Verify AP=PD=[2 3;0 3]. For x₀=(2,1), c₀=(1,1), c₃=(8,27), hence x₃=(35,27). Equivalently A³=[8 19;0 27]. Direct updates (5,3),(13,9),(35,27) independently confirm it.
- Diagonalizable need not mean invertible: C=diag(1,0) already has an eigenbasis. C⁰=I and Cᵐ=C for every m≥1, but C⁻¹ does not exist. Repetition alone is not a failure either: 2I is diagonalizable with every real basis. Test these statements using basis vectors instead of conflating the two definitions.
- Three-dimensional modes: A=[1 1 0;0 2 0;0 0 −1]. Take P=[1 1 0;0 1 0;0 0 1], P⁻¹=[1 −1 0;0 1 0;0 0 1], D=diag(1,2,−1). For x₀=(0,1,1), coordinates are (−1,1,1), so xₘ=(2ᵐ−1,2ᵐ,(−1)ᵐ). At m=2 this is (3,4,1), and at m=3 it is (7,8,−1). The third mode alternates while the second grows.
- A repeated-root failure and a valid alternative: J=[2 1;0 2] has only E₂=span{(1,0)}, so two eigenvector columns cannot make an invertible P. Write J=2I+N with N=[0 1;0 0], N²=0. For m≥1, Jᵐ=2ᵐI+m2^(m−1)N. Induction: multiplication by 2I+N gives 2ᵐ⁺¹I+(2ᵐ+m2ᵐ)N because N²=0, which is the next formula. Set J⁰=I separately. Thus J³(0,1)=(12,8), not (0,8). This special formula is not a diagonalization of J or a general treatment of Jordan form.
Common mistakes and checks
Do not use P instead of P⁻¹ to extract coordinates, invert a dependent eigenvector list, mismatch the ordering in P and D, or raise a matrix entry by entry. Check P⁻¹P=I and AP=PD before taking powers. Check m=0 and m=1, then compare a small power with direct multiplication. The m=0 check alone cannot reveal an incorrectly ordered D, because D⁰=I regardless of that ordering. A general P is not orthogonal, and a repeated eigenvalue is not by itself evidence for or against diagonalizability.
Practice
- For A=[3 1;0 1], use ordered eigenvectors (1,0),(1,−2) to find P⁻¹, the coordinates of (1,2), and A²(1,2).
- For A=[3 1;1 3], use P=[1 1;1 −1] and D=diag(4,2) to compute A²(3,1). Verify directly.
- For the P in question 2, a solver uses c=Px instead of P⁻¹x. Use x=(3,1) to detect the error at m=0 and m=1.
- Can a 2×2 matrix with a repeated real eigenvalue be diagonalizable? Compare 2I with J in example 4 and state the decisive criterion.
Fully worked solutions
- P=[1 1;0 −2], P⁻¹=[1 1/2;0 −1/2]. Coordinates are (2,−1); D²c=(18,−1), hence A²x=(17,2). Directly Ax=(5,2), then A(Ax)=(17,2).
- P⁻¹=(1/2)P, giving c=(2,1). D²c=(32,4), so P(32,4)=(36,28). Directly Ax=(10,6) and the next update is (36,28).
- Wrong coordinates are (4,2). At m=0 returning with P gives (6,2)=2x, not x. At m=1, P D(4,2)=P(16,4)=(20,12), twice the correct (10,6). The missing factor 1/2 in P⁻¹ caused the error.
- Yes: 2I has eigenspace ℝ² and two independent directions. J has eigenspace dimension 1. What matters is a full independent eigenvector basis, not repetition alone.
Assessment · Open book · 18 points
Open book: use books, lesson notes, cited readings, calculators, and relevant free software. Explain your own reasoning, assumptions, units, and checks; identify references or software you use. Attempt the questions before opening the answer key. Suggested study time: 40–60 minutes; this is a self-study guide, not a timed restriction.
Use references and free software, but show the factorization and validation rather than only a numerical output. The application problem below adds 6 points to these 12.
- For B=[1 2;0 3], construct P,D,P⁻¹, find coordinates of x₀=(0,1), and compute B²x₀. Verify by direct updates. (5)
- For C=diag(0,−1), give C⁰ and Cᵐ for m≥1. Decide whether negative powers exist and whether C is diagonalizable. (3)
- For J=[3 1;0 3], explain why it is invertible but not diagonalizable. Why does selecting two scalar multiples of its eigenvector not repair this? (4)
Application and reasoning · 6 points
For A=[2 1;0 3], a solver uses P=[1 1;0 1] but D=diag(3,2). Diagnose the mismatch using AP and PD (2). Repair it and compute A²(1,1) (2). Explain why checking the formula only at power zero would miss the error, and give a decisive additional check (2).
Complete answer key and scoring rubric
- P=[1 1;0 1], D=diag(1,3) (1). P⁻¹=[1 −1;0 1] (1). c₀=(−1,1) (1). D²c₀=(−1,9), giving x₂=(8,9) (1). Direct Bx₀=(2,3), B(2,3)=(8,9) (1).
- C⁰=I (1). For m≥1, Cᵐ=diag(0,(−1)ᵐ) (1). It is diagonalizable with P=I but has no inverse, hence no negative powers (1).
- The only eigenvalue is 3, repeated twice, and (J−3I)v=0 forces y=0 (1). E₃ has dimension 1, so no two-vector eigenbasis exists (1). det(J)=9≠0, hence invertible (1). Two multiples give dependent columns and a singular P, so P⁻¹ cannot be used (1).
Application and reasoning · 6 points
AP has first column (2,0), whereas PD has (3,0), so AP≠PD (2). Keep P and replace D by diag(2,3), or swap P columns to match the old D; then (1,1) has eigenvalue 3, so A²(1,1)=(9,9) (1 repair, 1 result). At zero, PD⁰P⁻¹=I for either ordering (1); at power one the wrong factorization maps (1,1) to (2,2), while direct A gives (3,3), exposing the error (1).
Scoring: existing questions 12 + application problem 6 = 18 points. Award the stated method and reasoning marks, not only final answers.
Download the coordinate-and-powers lab
Download the exact-arithmetic Python lab
Objective: for A=[2 s;0 k], compare repeated updates with eigenvector coordinates, and detect the exceptional repeated-root case. Install free Python 3 for Windows, macOS, or Linux from the official link below. Save the file and open a terminal in its folder; Windows may use py -3 instead of python3. No account or additional packages are needed, and it works offline after installation. Arguments are k,s,m,x,y; k,s,x,y lie in [−4,6] in half-unit steps, and integer m is from 0 to 8. Negative fractions such as −1/2 are accepted.
python3 ee-diagonalization.py 3 1 3 2 1
python3 ee-diagonalization.py 2 0 3 2 1
python3 ee-diagonalization.py 2 1 3 2 1
python3 ee-diagonalization.py 0 1 3 2 1
python3 ee-diagonalization.py -1 1 4 2 1
python3 ee-diagonalization.py 0 1 0 2 1
Procedure: predict whether a full eigenbasis exists, then predict the final vector before running each case. For k≠2 the lab uses P=[1 s;0 k−2], D=diag(2,k); at k=2,s=0 it uses P=I. At k=2,s≠0 it refuses diagonalization and uses the proved special N²=0 formula instead. Expected final vectors in order are (35,27),(16,8),(28,8),(20,0),(37,1),(2,1). Compare with the browser alternative. Python checks AP=PD and PP⁻¹=I when applicable, then compares the power formula and result against independent direct multiplication exactly.
Questions: why is k=2 alone not enough to decide failure? s=0 supplies a full eigenspace, while s≠0 leaves one direction. Why can a singular k=0 matrix still be diagonalized? The two distinct eigenvalues 2 and 0 give a full basis; only negative powers are blocked. Browser calculations use floating point and round displays to six decimals; agreement uses |difference|≤10⁻⁹·max(1,|reference|), checked entry by entry. A rounded zero error is not an exact proof. This bounded synthetic model is not a general diagonalization algorithm, a physical circuit simulator, or a stability certificate for measured systems.
Free primary readings and next step
Read Georgia Tech §5.3 for coordinate interpretation and powers, then §5.4.1 for the diagonalization theorem and §5.4.3 for multiplicity criteria. MIT supplies a second lecture, summary, and worked exercises. All linked material is public, with no university login or textbook purchase required. Complex eigenvector calculations and real symmetric matrices remain later topics; this unit does not complete Linear Algebra I.
- Georgia Tech · Interactive Linear Algebra §5.3: similarity, coordinates, powers
- Georgia Tech · §5.4.1 and §5.4.3: diagonalization theorem and multiplicities
- MIT 18.06SC · Diagonalization and Powers of A: lecture, summary, exercises
- Python Software Foundation · Free Python 3 downloads
- Python documentation · Exact rational arithmetic
Coordinate lab · Compare modes and repeated updates
For A=[2 s;0 k], compute Aᵐx using a valid eigenbasis or explain why none exists.
Free tool built into this page. Use it in your browser without an account or download.
Procedure
Try (k,s,m,x,y)=(3,1,3,2,1),(2,0,3,2,1),(2,1,3,2,1),(0,1,3,2,1),(−1,1,4,2,1),(0,1,0,2,1). Predict diagonalizability, coordinates, and the final vector, then compare with Python.
Expected results and answer check
The final vectors are (35,27),(16,8),(28,8),(20,0),(37,1),(2,1). The third case has no eigenbasis and uses the proved special formula. At zero steps the result is always the initial vector, including when k=0.
Python verifies exact fraction identities. Browser arithmetic is floating point, with entrywise scaled tolerance 1e−9 and rounded displays. The fixed 2×2 family is not a general eigensolver or a physical stability experiment.