Linear Algebra

Seven ideas from a second course in linear algebra, done the way Axler does it: operators first, determinants last. Drag vectors to test subspaces and change bases, bend the plane with a matrix, hunt for eigenvectors, project onto subspaces, watch circles become ellipses, then check yourself with concept questions, practice problems and exercises from the book.

Follows the chapter order of S. Axler, Linear Algebra Done Right, 4th ed. (Springer, 2024; open access), Chapters 1–3 and 5–9. Result numbers refer to that book; the questions and examples here are written for this page. Exercises from the book appear at the end of each module, with their numbers from the book and their statements restated in our own words. Exercises from the book appear at the end of each module, with their numbers from the book and their statements restated in our own words. For how this subject feeds the others on this site, see the roadmap.

InteractiveAxler, Ch. 1: Vector Spaces

Vector spaces and subspaces

A vector space is anywhere you can add things and scale them, with the usual rules. A subspace is a subset you can't leave by adding or scaling. That one closure condition rules out most sets you might draw.

The idea

Subspace (Axler 1.34). A subset U⊆V is a subspace if 0∈U, u+w∈U whenever u,w∈U, and λu∈U whenever λ∈F, u∈U.

Examples: {0}, V, lines and planes through the origin in R3, the polynomials of degree at most m inside all polynomials, the continuous functions inside all functions [0,1]→R. The space need not be made of arrows.

Sums and direct sums (Axler 1.36, 1.41). U1+⋯+Um={u1+⋯+um:uk∈Uk} is the smallest subspace containing every Uk. The sum is direct, written U1⊕⋯⊕Um, if each vector in it can be written as u1+⋯+um in only one way.
Two subspaces (Axler 1.46). U+W is a direct sum if and only if U∩W={0}. (For three or more subspaces, pairwise intersections being {0} is not enough.)

Explore

Subset of ℝ²
Drag the tips of u and w; they stay on the set. The figure draws u + w and λu, in teal if they stay in the set and red if they escape.

Worked example

Let U={(x,x,y,y)} and W={(x,y,x,y)} in F4. Is U+W a direct sum? What is U+W?

  1. Compute U∩W.

    (a,a,b,b)=(c,d,c,d) forces a=c=d=b. So U∩W={(t,t,t,t)}, a line, not {0}.

  2. So the sum is not direct. Exhibit a vector with two decompositions.

    (1,1,1,1)=(1,1,1,1)+0=0+(1,1,1,1), with the first term in U and the second in W both times.

  3. Find U+W.

    Every vector in either has v1−v2−v3+v4=0, so U+W⊆{v:v1−v2−v3+v4=0}, a 3-dimensional space. By Axler 2.43, dim⁡(U+W)=2+2−1=3, so they are equal.

Check your understanding

Which of these is a subspace of R3?

  1. {(x,y,z):x+y+z=1}It doesn't contain 0.
  2. {(x,y,z):x+y+z=0}
  3. {(x,y,z):xyz=0}(1,1,0)+(0,0,1)=(1,1,1) leaves the set.
Solution sets of homogeneous linear equations are subspaces (they are null spaces, module 3). Inhomogeneous ones are translates, not subspaces.

Is the set of polynomials of degree exactly 3 a subspace of P(R)?

  1. Yes.Add x3 and −x3+x.
  2. No.
It doesn't contain 0, and x3+(−x3+x)=x has degree 1. "Degree at most 3" is a subspace, P3(R).

Three lines through 0 in R2, pairwise intersecting only at 0. Is their sum direct?

  1. Yes, the pairwise intersections are {0}.That test is only valid for two subspaces.
  2. No: the sum is R2, and 0 can be written as a nonzero sum.
If u, v, w span the three lines, then w=au+bv with a,b≠0, so 0=au+bv−w is a second way to write 0. A sum is direct iff 0 has only the trivial decomposition (Axler 1.45).

Practice

Functions as vectorsA subspace you can't draw

Show that {f:[0,1]→R continuous: f(0)=2f(1)} is a subspace of R[0,1], but {f:f(0)=f(1)+1} is not.

Solution

The first condition is linear: if f(0)=2f(1) and g(0)=2g(1), then (f+λg)(0)=2(f+λg)(1); and 0 satisfies it, as do sums of continuous functions. The second fails at 0: 0≠0+1.

Even and oddA direct sum of function spaces

Show that RR=Ue⊕Uo, where Ue and Uo are the even and odd functions.

Solution

Write f=f(x)+f(−x)2+f(x)−f(−x)2: even plus odd. If f is both even and odd, f(x)=f(−x)=−f(x), so f=0; by Axler 1.46 the sum is direct.

From Axler, Linear Algebra Done Right (4th ed., Springer, 2024; open access)

Numbers match the book. Each question is restated in our own words; the hints and solutions are written for this page.

Exercise 1C.10Intersections of subspaces

If V1 and V2 are subspaces of V, prove that V1∩V2 is a subspace of V.

Hint

Check the three conditions; each holds in both subspaces separately.

Solution

0∈V1 and 0∈V2, so 0∈V1∩V2. If u,w∈V1∩V2, then u+w is in V1 (closed under addition) and in V2, so in the intersection. The same for λu. The argument works for the intersection of any collection of subspaces, which is why "the smallest subspace containing a set" (its span) makes sense.

Exercise 1C.12When is a union a subspace?

Prove that the union of two subspaces of V is a subspace if and only if one of them contains the other.

Hint

If neither contains the other, pick u∈U∖W and w∈W∖U and ask where u+w lives.

Solution

If U⊆W, the union is W, a subspace; likewise if W⊆U.

Conversely, suppose U∪W is a subspace but neither contains the other. Take u∈U∖W and w∈W∖U. Then u+w∈U∪W. If u+w∈U, then w=(u+w)−u∈U, a contradiction. If u+w∈W, then u=(u+w)−w∈W, a contradiction. (The axes in the figure of this module are the picture.)

Exercise 1C.20A complement in 𝐅⁴

For U={(x,x,y,y):x,y∈F}, find a subspace W of F4 with F4=U⊕W.

Hint

U is 2-dimensional, so W should be too, and should meet U only in 0. Try fixing coordinates 2 and 4.

Solution

Take W={(0,s,0,t):s,t∈F}. Every vector splits: (a,b,c,d)=(a,a,c,c)+(0,b−a,0,d−c). And if (x,x,y,y)=(0,s,0,t), then x=y=0, so U∩W={0}. By Axler 1.46 the sum is direct.

There are many other choices: any 2-dimensional W with U∩W={0} works.

InteractiveAxler, Ch. 2: Finite-Dimensional Vector Spaces

Span, independence and bases

A basis is a coordinate system: every vector is a combination of the basis vectors in exactly one way. Spanning gives "at least one way", independence gives "at most one", and the key inequality between them makes dimension well defined.

The idea

Span, independence, basis (Axler 2.4, 2.15, 2.26). v1,…,vm spans V if every v is some a1v1+⋯+amvm. It is linearly independent if a1v1+⋯+amvm=0 only for a1=⋯=am=0. A basis is an independent spanning list.
The key inequality (Axler 2.22). In a finite-dimensional space, the length of every independent list is at most the length of every spanning list. So all bases have the same length, the dimension.

The proof is a swap: insert the independent vectors one at a time into the spanning list, and each time the linear dependence lemma (Axler 2.19) lets you throw out one of the original spanning vectors. You never run out, so there were at least as many of them.

Explore

Drag v₁ and v₂ (blue) and the target w (gold). The skewed grid is the coordinate system of the basis v₁, v₂; the dashed path shows w = a v₁ + b v₂.

Worked example

Find a basis of U={p∈P4(R):p(6)=0} and its dimension.

  1. Guess a natural list in U.

    x−6, (x−6)2, (x−6)3, (x−6)4: all vanish at 6.

  2. Why is it independent?

    The degrees are 1, 2, 3, 4: in a combination equal to 0, the top-degree term can't cancel, so its coefficient is 0; repeat downward.

  3. Why does it span U? (Use dimension instead of solving.)

    U≠P4(R) (the constant 1 is missing), so dim⁡U≤4. It contains 4 independent vectors, so dim⁡U=4, and an independent list of the right length is a basis (Axler 2.38).

Check your understanding

Can four vectors in R3 be linearly independent?

  1. Yes, if chosen carefully.The standard basis is a spanning list of length 3.
  2. No.
By Axler 2.22, an independent list is no longer than the spanning list e1,e2,e3.

U and W are 5-dimensional subspaces of R8. What is the smallest possible dim⁡(U∩W)?

  1. 0Use dim⁡(U+W)≤8.
  2. 2
  3. 5That's the largest.
dim⁡(U∩W)=dim⁡U+dim⁡W−dim⁡(U+W)≥5+5−8=2 (Axler 2.43), and 2 is attained.

What is dim⁡Pm(F)?

  1. mCount 1,x,…,xm.
  2. m+1
1,x,…,xm is a basis. And P(F) is infinite-dimensional: no finite list spans it.

Practice

Extending to a basisAxler 2.32

Extend (1,1,0),(0,1,1) to a basis of R3.

Solution

Add e1,e2,e3 and discard dependent vectors. e1=(1,0,0) is not in the span (a combination a(1,1,0)+b(0,1,1) has middle entry a+b and first entry a, last b; a=1,b=0 gives middle 1). So (1,1,0),(0,1,1),(1,0,0) is independent of length 3, hence a basis.

Complements always existAxler 2.33

Show every subspace U of a finite-dimensional V has a subspace W with V=U⊕W. Is W unique?

Solution

Extend a basis u1,…,um of U to a basis u1,…,um,w1,…,wn of V, and let W=span(wj). Every v splits, and U∩W=0 by independence. Not unique: in R2, any line other than U itself is a complement of a line U. An orthogonal complement (module 5) picks a canonical one.

From Axler, Linear Algebra Done Right (4th ed., Springer, 2024; open access)

Numbers match the book. Each question is restated in our own words; the hints and solutions are written for this page.

Exercise 2A.1Four vectors spanning a plane

Find four distinct vectors in F3 whose span is {(x,y,z):x+y+z=0}.

Hint

The plane is 2-dimensional. Any two independent vectors in it span it, and extra vectors in it don't enlarge the span.

Solution

Take (1,−1,0), (1,0,−1), (0,1,−1), (2,−1,−1). Each lies in the plane. The first two are independent (look at the last two coordinates), so they span a 2-dimensional subspace of the 2-dimensional plane, hence all of it. Adding the other two, which lie in the plane, doesn't change the span. (The plane is 2-dimensional because it is the null space of the nonzero map (x,y,z)↦x+y+z onto F, by the fundamental theorem of linear maps.)

Exercise 2A.6Dependent exactly when c = 8

Show that (2,3,1),(1,−1,2),(7,3,c) is linearly dependent in F3 if and only if c=8.

Hint

The first two vectors are independent, so the list is dependent iff the third is a combination of the first two.

Solution

(2,3,1) and (1,−1,2) are not multiples of each other, so they are independent, and by the linear dependence lemma the list is dependent iff (7,3,c)=a(2,3,1)+b(1,−1,2) for some a,b. The first two coordinates give 2a+b=7 and 3a−b=3, so a=2, b=3. The third coordinate then forces c=a+2b=8.

Exercise 2C.14Three big subspaces must meet

Let V be 10-dimensional and V1,V2,V3 subspaces with dim⁡Vk=7. Prove V1∩V2∩V3≠{0}.

Hint

Apply dim⁡(U∩W)=dim⁡U+dim⁡W−dim⁡(U+W) twice, using dim⁡(U+W)≤10.

Solution

dim⁡(V1∩V2)≥7+7−10=4. Then dim⁡((V1∩V2)∩V3)≥4+7−10=1. So the triple intersection contains a nonzero vector.

InteractiveAxler, Ch. 3: Linear Maps · Ch. 9: Determinants

Linear maps and rank–nullity

A linear map is determined by what it does to a basis, and whatever it loses (the null space) is exactly what it fails to reach (in dimension count). That is the fundamental theorem of linear maps.

The idea

Linear map, null space, range (Axler 3.1, 3.11, 3.16). T:V→W is linear if T(u+v)=Tu+Tv and T(λv)=λTv. Its null space nullT={v:Tv=0} and range rangeT={Tv} are subspaces. T is injective iff nullT={0}.
Fundamental theorem of linear maps (Axler 3.21). If V is finite-dimensional, dim⁡V=dim⁡nullT+dim⁡rangeT.

Consequences: a map to a smaller space can't be injective; a map to a larger space can't be surjective; an operator on a finite-dimensional space is injective iff surjective iff invertible (Axler 3.65). The matrix of T records Te1,…,Ten as its columns, and on R2 the determinant is the signed area of the image of the unit square (Axler 9.50: T is invertible iff detT≠0).

Explore

Start from
The domain ℝ², with the unit square and the null space (if any) in red.
The image: drag Te₁ and Te₂, the columns of the matrix. The range is shaded.

Worked example

Let D:P4(R)→P4(R) be differentiation. Find its null space and range, and check the fundamental theorem.

  1. Null space?

    p′=0 iff p is constant: nullD=P0, dimension 1.

  2. Range?

    Derivatives of degree-≤4 polynomials have degree ≤3, and every such q is p′ for an antiderivative p. So rangeD=P3(R), dimension 4.

  3. Check.

    1+4=5=dim⁡P4(R). And since D is not injective, it is not surjective either, as the theorem predicts for an operator.

Check your understanding

Can a linear map R5→R3 be injective?

  1. Yes.Its range has dimension at most 3.
  2. No.
dim⁡nullT=5−dim⁡rangeT≥2.

T∈L(R2) sends the unit square to a parallelogram of area 3, with orientation reversed. detT=

  1. 3Orientation reversal flips the sign.
  2. −3
  3. 1/3That's T−1 up to sign.
The determinant is the signed area scale factor. Try a reflection in the figure.

T:P(R)→P(R), Tp=xp. Injective? Surjective?

  1. Injective, not surjective.
  2. Both, since it's an operator.That equivalence needs finite dimension.
xp=0 forces p=0, but the constant 1 is not in the range. In infinite dimensions injective and surjective come apart.

Practice

Prescribing a map on a basisAxler 3.4

Is there a linear T:R2→R2 with T(1,1)=(2,0), T(1,−1)=(0,2)? With T(1,2)=(1,0), T(2,4)=(0,1)?

Solution

First: yes, uniquely, since (1,1),(1,−1) is a basis; it is T(x,y)=(x+y,x−y). Second: no, since (2,4)=2(1,2) would force T(2,4)=(2,0).

Rank of a productComposition

Show dim⁡range(ST)≤min(dim⁡rangeS,dim⁡rangeT).

Solution

range(ST)⊆rangeS. Also range(ST)=S(rangeT), the image of a space of dimension dim⁡rangeT under a linear map, so its dimension is at most that (fundamental theorem applied to S restricted to rangeT).

From Axler, Linear Algebra Done Right (4th ed., Springer, 2024; open access)

Numbers match the book. Each question is restated in our own words; the hints and solutions are written for this page.

Exercise 3B.1Prescribed null space and range

Give an example of a linear map T with dim⁡nullT=3 and dim⁡rangeT=2.

Hint

The fundamental theorem says the domain must be 5-dimensional.

Solution

T:F5→F2, T(x1,…,x5)=(x1,x2). Its null space is {(0,0,x3,x4,x5)}, of dimension 3, and it is onto F2.

Exercise 3B.4Maps with a big null space don't form a subspace

Show that {T∈L(R5,R4):dim⁡nullT>2} is not a subspace of L(R5,R4).

Hint

Find two such maps whose sum has a small null space.

Solution

Let S(x)=(x1,x2,0,0) and T(x)=(0,0,x3,x4). Both have null spaces of dimension 3. But (S+T)(x)=(x1,x2,x3,x4) has null space {(0,0,0,0,x5)}, of dimension 1. The set is not closed under addition.

Exercise 3B.10Images of a spanning list span the range

If v1,…,vn spans V and T∈L(V,W), show Tv1,…,Tvn spans rangeT.

Hint

Write an arbitrary vector of the range as Tv and expand v.

Solution

Each Tvk∈rangeT, so their span is inside the range. Conversely, any w∈rangeT is Tv with v=∑akvk, so w=∑akTvk. This is why the columns of a matrix span the range of the map it represents.

InteractiveAxler, Ch. 5: Eigenvalues and Eigenvectors

Eigenvalues and eigenvectors

An eigenvector is a direction the operator doesn't turn, only stretches. Find enough of them and the operator becomes a list of numbers acting on independent axes.

The idea

Eigenvalue (Axler 5.5, 5.7). λ is an eigenvalue of T∈L(V) if Tv=λv for some v≠0, equivalently if T−λI is not injective (or not invertible).
Existence and independence (Axler 5.19, 5.11). Every operator on a nonzero finite-dimensional complex vector space has an eigenvalue. Eigenvectors for distinct eigenvalues are linearly independent.
Diagonalizability (Axler 5.55, 5.58, 5.62). T is diagonalizable iff V has a basis of eigenvectors, iff the eigenspaces add up to V, iff the minimal polynomial has distinct roots (over C). In particular dim⁡V distinct eigenvalues suffice.

Axler's proof of existence avoids determinants: for nonzero v, the n+1 vectors v,Tv,…,Tnv are dependent, so some nonzero polynomial p has p(T)v=0; factor p over C into linear factors, and one of the factors T−λI must fail to be injective.

Explore

Operator
Drag x around the unit circle (or press play). Tx is drawn from the origin; when it lines up with x, you have found an eigenvector. Eigen-directions are dashed.

Worked example

Diagonalize T(x,y)=(2x+y,x+2y) and compute T10(1,0).

  1. Find the eigenvalues.

    T−λI is not invertible iff (2−λ)2−1=0, so λ=1,3.

  2. Eigenvectors?

    λ=3: (1,1). λ=1: (1,−1). They form a basis, so T is diagonalizable with matrix diag(3,1) in this basis.

  3. Compute T10(1,0).

    (1,0)=12(1,1)+12(1,−1), so T10(1,0)=3102(1,1)+12(1,−1)=(29525,29524). In the eigenbasis, powers are just powers of numbers.

Check your understanding

Rotation of R2 by 60° has how many real eigenvalues?

  1. None.
  2. One.Every nonzero vector is turned.
  3. Two.
No direction is preserved. Over C the eigenvalues are e±iπ/3. Existence of eigenvalues (Axler 5.19) needs the complex numbers; on odd-dimensional real spaces there is always one (Axler 5.34).

Is the shear (1101) diagonalizable?

  1. Yes, it is upper triangular.Triangular is weaker than diagonalizable.
  2. No: its only eigenvalue is 1 and the eigenspace is a line.
The eigenspace E(1)=span(e1) has dimension 1 < 2. The missing direction is a generalized eigenvector (module 7).

An operator on C4 has eigenvalues 1, 2, 3, 4. Must it be diagonalizable?

  1. Yes.
  2. Not necessarily.Four distinct eigenvalues on a 4-dimensional space.
Four eigenvectors for distinct eigenvalues are independent (Axler 5.11), hence a basis (Axler 5.58).

Practice

Invariant subspacesAxler 5.2

Show that for any T∈L(V), nullT and rangeT are invariant under T, and that a one-dimensional subspace is invariant iff it is spanned by an eigenvector.

Solution

If Tv=0 then T(Tv)=0. If w=Tv, then Tw∈rangeT. A line span(v) is invariant iff Tv=λv for some λ.

Eigenvalues of a polynomial in TSpectral mapping

If Tv=λv, show p(T)v=p(λ)v for every polynomial p.

Solution

Tkv=λkv by induction, then take linear combinations. Over C the converse holds too: every eigenvalue of p(T) is p(λ) for some eigenvalue λ of T.

From Axler, Linear Algebra Done Right (4th ed., Springer, 2024; open access)

Numbers match the book. Each question is restated in our own words; the hints and solutions are written for this page.

Exercise 5A.5A map with no real eigenvalues

Find the eigenvalues of T∈L(R2), T(x,y)=(−3y,x).

Hint

Compute T2.

Solution

T2(x,y)=T(−3y,x)=(−3x,−3y), so T2=−3I. If Tv=λv with v≠0, then −3v=T2v=λ2v, so λ2=−3, impossible for real λ. So T has no eigenvalues. (Regarded on C2, the eigenvalues are ±i3.)

Exercise 5A.10Eigenvectors of x d/dx

Define T∈L(P4(R)) by (Tp)(x)=xp′(x). Find all eigenvalues and eigenvectors of T.

Hint

Try monomials.

Solution

Txk=x⋅kxk−1=kxk. So 0,1,2,3,4 are eigenvalues, with eigenvectors xk. These are five distinct eigenvalues on a 5-dimensional space, so there are no others (Axler 5.12), each eigenspace is 1-dimensional, and the eigenvectors are exactly the nonzero multiples cxk.

Exercise 5D.1Diagonalizability from a polynomial equation

For T on a finite-dimensional complex V: (a) if T4=I, show T is diagonalizable; (b) if T4=T, show T is diagonalizable; (c) give T∈L(C2) with T4=T2 that is not diagonalizable.

Hint

The minimal polynomial divides any polynomial that kills T. T is diagonalizable iff its minimal polynomial has distinct roots (Axler 5.62).

Solution

(a) The minimal polynomial divides z4−1=(z−1)(z+1)(z−i)(z+i), which has distinct roots, so so does the minimal polynomial.

(b) It divides z4−z=z(z−1)(z−ω)(z−ω¯) with ω=e2πi/3, again distinct roots.

(c) T=(0100): T2=0, so T4=T2. Its minimal polynomial is z2, a repeated root; its only eigenvector direction is e1.

InteractiveAxler, Ch. 6: Inner Product Spaces

Inner products and orthogonal projection

An inner product adds lengths and angles. Its most useful consequence: the closest point of a subspace to a vector is its orthogonal projection, which is how least squares, Fourier series and best approximations all work.

The idea

Inner product (Axler 6.2). A function ⟨⋅,⋅⟩ that is positive (⟨v,v⟩>0 for v≠0), linear in the first slot, and conjugate symmetric. Then ‖v‖=⟨v,v⟩ and |⟨u,v⟩|≤‖u‖‖v‖ (Cauchy–Schwarz, Axler 6.14).
Gram–Schmidt (Axler 6.32). Any independent v1,…,vm can be replaced by an orthonormal e1,…,em with the same spans at every stage: subtract from vk its components along e1,…,ek−1 and normalize.
Best approximation (Axler 6.57, 6.61). For a finite-dimensional subspace U with orthonormal basis e1,…,em, PUv=∑⟨v,ek⟩ek is the unique point of U closest to v, and v−PUv⟂U.

Explore: least squares as a projection

Model
Drag the data points. The fitted curve is the orthogonal projection of the data vector y ∈ ℝⁿ onto the column space of the design matrix; residuals are dashed.

Worked example

Find the polynomial u∈P1(R) minimizing ∫01(x2−u(x))2dx.

  1. Gram–Schmidt on 1,x with ⟨f,g⟩=∫01fg.

    e1=1. x−⟨x,1⟩1=x−12, with norm 1/12, so e2=12(x−12).

  2. Project x2.

    ⟨x2,1⟩=13, ⟨x2,e2⟩=12(14−16)=12/12. So PUx2=13+(x−12)=x−16.

  3. Check orthogonality.

    r=x2−x+16: ∫01r=13−12+16=0 and ∫01xr=14−13+112=0. The residual is orthogonal to U, as Axler 6.61 requires.

Check your understanding

When does equality hold in Cauchy–Schwarz?

  1. When one vector is a scalar multiple of the other.
  2. When they are orthogonal.Then the left side is 0.
The proof writes u=cv+w with w⟂v; equality forces w=0.

If P is the orthogonal projection onto U, then P2=

  1. P
  2. IOnly if U=V.
  3. 0Only if U={0}.
Projecting twice does nothing new. Also rangeP=U, nullP=U⟂, and P is self-adjoint (module 6).

In the least squares figure, the sum of the residuals is always 0 for the line model. Why?

  1. The residual vector is orthogonal to the all-ones column.
  2. By coincidence of the data.Drag points: it stays 0.
The constant function 1 is in the model's subspace, so ⟨r,1⟩=∑ri=0.

Practice

Pythagoras and the parallelogram lawAxler 6.12, 6.21

Show ‖u+v‖2+‖u−v‖2=2‖u‖2+2‖v‖2, and that ℓ1 on R2 does not come from an inner product.

Solution

Expand both squares; the cross terms cancel. For ℓ1, take u=e1, v=e2: ‖u+v‖2+‖u−v‖2=4+4=8≠2+2.

Orthogonal complementsAxler 6.49, 6.51

Show V=U⊕U⟂ and dim⁡U⟂=dim⁡V−dim⁡U for finite-dimensional V.

Solution

v=PUv+(v−PUv) with the second term in U⟂; and U∩U⟂=0 since ⟨u,u⟩=0⇒u=0. Then dimensions add (Axler 3.94).

From Axler, Linear Algebra Done Right (4th ed., Springer, 2024; open access)

Numbers match the book. Each question is restated in our own words; the hints and solutions are written for this page.

Exercise 6B.1A converse to Pythagoras

Suppose ‖a1e1+⋯+amem‖2=|a1|2+⋯+|am|2 for all scalars ak. Show that e1,…,em is orthonormal.

Hint

First take a single nonzero coefficient, then two.

Solution

Taking aj=1 and the rest 0 gives ‖ej‖=1. For j≠k and a scalar t, take aj=1, ak=t: ‖ej+tek‖2=1+|t|2+2Re(t¯⟨ej,ek⟩), and the hypothesis says this is 1+|t|2. So Re(t¯⟨ej,ek⟩)=0 for every t. With t=1 the real part of ⟨ej,ek⟩ vanishes, and with t=i (in the complex case) the imaginary part does. So ⟨ej,ek⟩=0.

Exercise 6B.14Exactly 2ᵐ Gram–Schmidt outputs

In a real inner product space, let v1,…,vm be independent. Prove there are exactly 2m orthonormal lists e1,…,em with span(v1,…,vk)=span(e1,…,ek) for every k.

Hint

The condition determines ek up to sign: it must be a unit vector in a 1-dimensional subspace.

Solution

Let Uk=span(v1,…,vk). If the list works, then ek∈Uk and ek⟂Uk−1 (since Uk−1=span(e1,…,ek−1)). Now Uk∩Uk−1⟂ is 1-dimensional (Axler 6.51 inside Uk), so ek is one of its two unit vectors. That gives at most 2m lists.

Conversely, Gram–Schmidt gives one valid list e1,…,em, and changing any signs keeps it orthonormal with the same spans. So all 2m sign choices work, and there are exactly 2m.

Exercise 6C.1The perp of a list is the perp of its span

For v1,…,vm∈V, prove {v1,…,vm}⟂=(span(v1,…,vm))⟂.

Hint

One inclusion is immediate since each vk is in the span. For the other, use linearity of the inner product.

Solution

Being orthogonal to the larger set span(vk) implies being orthogonal to each vk, so the right side is inside the left. If u⟂vk for every k, then ⟨u,∑akvk⟩=∑a¯k⟨u,vk⟩=0, so the left side is inside the right.

InteractiveAxler, Ch. 7: Operators on Inner Product Spaces

The spectral theorem and SVD

Self-adjoint operators are diagonal in an orthonormal basis: perpendicular axes, real stretch factors. Every linear map, self-adjoint or not, is diagonal between two orthonormal bases, which is the singular value decomposition, and it is why every invertible map sends circles to ellipses.

The idea

Adjoint, self-adjoint, normal (Axler 7.2, 7.10, 7.18). T∗ is defined by ⟨Tv,w⟩=⟨v,T∗w⟩. T is self-adjoint if T=T∗ (a symmetric matrix in an orthonormal basis), normal if TT∗=T∗T.
Spectral theorems (Axler 7.29, 7.31). Over R, V has an orthonormal basis of eigenvectors of T iff T is self-adjoint. Over C, iff T is normal.
Singular value decomposition (Axler 7.70). For any T∈L(V,W) there are orthonormal e1,…,em in V and f1,…,fm in W and s1≥⋯≥sm>0 with Tv=∑sk⟨v,ek⟩fk. The sk are the square roots of the eigenvalues of T∗T.

Geometrically (Axler 7.99): T sends the unit ball to an ellipsoid whose semi-axes are skfk, and the ek are the directions that land on those axes.

Key terms in plain words

The ideas above without the symbols. Switch to Quiz me to test yourself: you see an explanation and pick the term it describes.

Adjoint
The operator that moves T from one side of an inner product to the other. In an orthonormal basis its matrix is the conjugate transpose.
Self-adjoint
Describes an operator equal to its own partner on the other side of the inner product; for real matrices, symmetric. Its eigenvalues are real.
Normal operator
One that commutes with its adjoint. Over the complex numbers these are exactly the ones with an orthonormal basis of eigenvectors; rotations are examples that are not symmetric.
Spectral theorem
A guarantee that certain operators are completely described by perpendicular directions that they only stretch: over the reals, the symmetric ones; over the complex numbers, the ones that commute with their adjoint.
Singular value decomposition
Any linear map, even between different spaces, is a rotation, then a stretch along perpendicular axes, then another rotation.
Singular values
How much a linear map stretches along its principal directions: the lengths of the semi-axes of the ellipse (or ellipsoid) it makes from the unit circle (or ball).

Explore

Preset
The unit circle and the right singular vectors e₁, e₂.
Its image: an ellipse with semi-axes s₁f₁, s₂f₂. Drag Te₁ and Te₂ (the matrix columns).

Worked example

Find the singular values of the shear T=(1101).

  1. Compute T∗T.

    T∗T=(1011)(1101)=(1112).

  2. Its eigenvalues?

    Trace 3, determinant 1: μ=3±52.

  3. Singular values, and a sanity check.

    s=μ=5±12≈1.618, 0.618: the golden ratio and its reciprocal. Their product is |detT|=1, the area scale. The eigenvalues of T are both 1, very different from the singular values: T is not normal.

Check your understanding

For a self-adjoint operator, the singular values are

  1. the absolute values of its eigenvalues.
  2. its eigenvalues.Singular values are never negative.
T∗T=T2 has eigenvalues λ2. Pick "symmetric" in the figure with a negative eigenvalue: the ellipse doesn't care about the sign; fk=±ek.

Which matrices are normal?

  1. Rotations.
  2. The shear (1101).TT∗≠T∗T here.
Rotations are unitary: T∗T=I=TT∗. Over C they are diagonalizable in an orthonormal basis with eigenvalues e±iθ, though over R they have no eigenvectors at all.

The best rank-1 approximation of T in operator norm is

  1. v↦s1⟨v,e1⟩f1.
  2. the rank-1 piece with the smallest singular value.Keep the biggest, drop the rest.
Truncating the SVD after k terms gives the best rank-k approximation, with error sk+1 (Eckart–Young). This is the idea behind principal components and image compression.

Practice

Eigenvalues of self-adjoint operators are realAxler 7.12

Prove it, and prove eigenvectors for distinct eigenvalues are orthogonal.

Solution

λ‖v‖2=⟨Tv,v⟩=⟨v,Tv⟩=λ¯‖v‖2. If Tv=λv, Tw=μw with λ≠μ real: λ⟨v,w⟩=⟨Tv,w⟩=⟨v,Tw⟩=μ⟨v,w⟩, so ⟨v,w⟩=0.

Operator normAxler 7.85

Show ‖T‖=max‖v‖=1‖Tv‖=s1.

Solution

With v=∑akek (extended to an orthonormal basis), ‖Tv‖2=∑sk2|ak|2≤s12∑|ak|2, with equality at v=e1.

From Axler, Linear Algebra Done Right (4th ed., Springer, 2024; open access)

Numbers match the book. Each question is restated in our own words; the hints and solutions are written for this page.

Exercise 7A.4Invariant subspaces and the adjoint

For T∈L(V) and a subspace U, prove that U is invariant under T if and only if U⟂ is invariant under T∗.

Hint

Use ⟨Tu,w⟩=⟨u,T∗w⟩, and for the converse apply the first half to T∗.

Solution

Suppose TU⊆U. For w∈U⟂ and u∈U: ⟨u,T∗w⟩=⟨Tu,w⟩=0, since Tu∈U. So T∗w∈U⟂.

Conversely, if U⟂ is invariant under T∗, the first half applied to T∗ and U⟂ says (U⟂)⟂=U is invariant under T∗∗=T (Axler 6.52, 7.5).

Exercise 7E.1Zero singular values

Show T∈L(V,W) is 0 if and only if all its singular values are 0.

Hint

The singular values are the square roots of the eigenvalues of T∗T, and ‖Tv‖2=⟨T∗Tv,v⟩.

Solution

If T=0, then T∗T=0, whose eigenvalues are all 0. Conversely, if all singular values are 0, the self-adjoint operator T∗T has only the eigenvalue 0. By the spectral theorem it is diagonal with zeros in an orthonormal basis, so T∗T=0. Then ‖Tv‖2=⟨T∗Tv,v⟩=0 for every v, so T=0.

Exercise 7E.3Eigenvalues 0, 0 but singular values 5, 0

Give T∈L(C2) whose only eigenvalue is 0 and whose singular values are 5 and 0.

Hint

A nilpotent map with a large entry.

Solution

T=(0500), i.e. T(z1,z2)=(5z2,0). It is upper triangular with zero diagonal, so 0 is its only eigenvalue. T∗T=(00025), so the singular values are 5 and 0. Eigenvalues and singular values agree for normal operators, but this T is far from normal.

InteractiveHastie–Tibshirani–Friedman, Elements of Statistical Learning, §3.4.1 and §7.2; Bishop, Pattern Recognition and Machine Learning, §3.3

Ridge regression: fitting without overfitting

A model is chosen to fit the data you have, but it is judged on data you haven't seen. Ridge regression is the simplest way to trade a little fit for a lot of stability. It has three equivalent readings: a penalty on large coefficients, a shrinkage of the directions the data barely determine, and a Gaussian prior on the coefficients. The third reading tells you which penalty to use when you know how the coefficients tend to vary.

The idea

What you see and what you are judged on. Data (x1,y1),…,(xn,yn) are drawn independently from a distribution D, and a model fθ is scored by a loss ℓ.

Empirical and population risk.
R^n(θ)=1n∑i=1nℓ(fθ(xi),yi),R(θ)=E(x,y)∼Dℓ(fθ(x),y).
Training minimizes R^n, which you can compute. What matters is R, which you can't, because D is unknown.

For a fixed θ, R^n(θ) is an average of independent draws, so ER^n(θ)=R(θ). It plays the role of the observed frequency of heads in a run of coin flips, and R(θ) the role of the true probability. A thousand flips with 600 heads suggest 0.6, but no finite run reveals the probability exactly.

The generalization gap. The fitted θ^ is chosen using the same sample that defines R^n. So R^n(θ^) is no longer unbiased for R(θ^): the fit is tailored to the particular noise in this sample, and the training error is optimistic. The difference R(θ^)−R^n(θ^) is the generalization gap. It grows with the flexibility of the model and shrinks with the amount of data.

Least squares, and solving by minimizing. Stack the inputs as the rows of a design matrix X∈Rn×p (one row per observation, one column per feature) and the outputs as y∈Rn. A linear model predicts Xb. If you could solve Xb=y exactly you would. Usually you can't: there are more equations than unknowns, and noise makes them inconsistent. So instead of solving, minimize the misfit ‖y−Xb‖22. This trick is worth noticing in general. An equation g(z)=c that can't be solved, or only holds on average, becomes the problem minz‖g(z)−c‖2, which still makes sense. When X⊤X is invertible, the minimizer is the ordinary least-squares estimate β^OLS=(X⊤X)−1X⊤y.

Least squares breaks down when p>n, because X⊤X is then singular and, typically, infinitely many b fit the data exactly. It is also unstable when X⊤X is nearly singular, since tiny noise then produces huge coefficients.

Ridge regression. For λ>0,
β^λ=arg⁡minb∈Rp{1n‖y−Xb‖22⏟fit+λ‖b‖22⏟penalty}=(X⊤X+nλI)−1X⊤y.
The matrix X⊤X+nλI is positive definite for every X, so the minimizer always exists and is unique.

A symmetric matrix M is positive definite, written M≻0, if v⊤Mv>0 for every v≠0; equivalently, all its eigenvalues are positive. M⪰0 (positive semidefinite) allows zero eigenvalues. X⊤X⪰0 because v⊤X⊤Xv=‖Xv‖2, and adding nλI lifts every eigenvalue by nλ. Every covariance matrix is ⪰0, because v⊤Cov(β)v=Var(v⊤β).

Ridge shrinks the poorly determined directions. Write the singular value decomposition X=∑jdjujvj⊤. Then
β^λ=∑jdj2dj2+nλ⋅uj⊤ydjvj.
The factor uj⊤ydj is the least-squares coefficient along vj, and ridge multiplies it by dj2dj2+nλ∈(0,1). Directions with large dj are well measured by the data and are barely touched. Directions with small dj are where noise is amplified, and they are shrunk almost to zero. The sum df(λ)=∑jdj2/(dj2+nλ) counts how many directions are effectively fitted (the effective degrees of freedom). It runs from rank⁡X at λ=0 down to 0 as λ→∞.
Show the computation

With X=UDV⊤ (thin SVD), X⊤X+nλI=V(D2+nλI)V⊤ on the row space of X, and the closed form gives

β^λ=V(D2+nλI)−1DU⊤y=∑jdjdj2+nλ(uj⊤y)vj.
Splitting djdj2+nλ=dj2dj2+nλ⋅1dj gives the form above. Directions orthogonal to the row space get coefficient 0.

Bias and variance. Shrinking adds bias: even with no noise, β^λ≠β. It removes variance: noise in the small-dj directions is no longer blown up by 1/dj. The test error is the sum of the two, so it is smallest at an intermediate λ. The figure below shows this U-shape.

The penalty is a prior. Suppose y=Xβ+ε with noise ε∼N(0,σ2I) and a Gaussian prior β∼N(0,Σβ). The posterior of β is Gaussian, and its mean (which is also its mode) is
E[β∣y]=arg⁡minb{‖y−Xb‖22+σ2b⊤Σβ−1b}=(X⊤X+σ2Σβ−1)−1X⊤y.
With Σβ=τ2I this is ridge regression with nλ=σ2/τ2, the noise-to-signal ratio.

A general positive definite A in place of τ2I gives generalized ridge regression, with penalty λb⊤A−1b. The inverse is the point. A direction in which coefficients are expected to vary a lot should be penalized less, because a large coefficient there is unsurprising. If A=diag(4,1), the first coordinate has four times the prior variance and gets a quarter of the penalty weight.

When the prior is right, nothing linear does better. Suppose β has mean 0 and covariance V, not necessarily Gaussian. Among all estimators that are linear in y, β^=By, the one minimizing the average prediction error E(x⊤β^−x⊤β)2 over fresh inputs is
B∗=(X⊤X+σ2V−1)−1X⊤,
which is generalized ridge with the true prior covariance. Any other B pays an extra, exactly quadratic amount (see the practice problem). Plugging in an estimate of V is natural when many related regressions share the same coefficient covariance. In that setting the covariance can be learned from the other problems, even though each one alone has too little data.

Explore

the true function sin⁡2πx, 12 noisy observations, the ridge fit with 12 polynomial features (degree 11).
training error and test error against log10⁡λ. the noise floor σ2: no model can do better on fresh data.

Worked example

One feature, no intercept: yi=βxi+εi with εi∼N(0,σ2) independent, and a prior β∼N(0,τ2).

  1. Write down the posterior density of β up to a constant.

    Prior times likelihood: p(β∣y)∝exp(−β22τ2)∏iexp(−(yi−βxi)22σ2).

  2. Find the value of β that maximizes it.

    Minimize 12σ2∑i(yi−βxi)2+β22τ2. Setting the derivative to zero gives β^=∑ixiyi∑ixi2+σ2/τ2. The exponent is quadratic in β, so the posterior is Gaussian and this is also the posterior mean.

  3. Compare with ridge regression. What is λ?

    Ridge gives β^λ=∑xiyi/(∑xi2+nλ), so nλ=σ2/τ2. Noisier data or a tighter prior means more shrinkage.

  4. What happens as τ→∞ and as τ→0?

    τ→∞ (no prior information) gives least squares, ∑xiyi/∑xi2. τ→0 (certain that β=0) gives β^=0 whatever the data say. Ridge interpolates between trusting the data and trusting the prior, weighted by how much each is worth: the total data precision ∑xi2/σ2 against the prior precision 1/τ2.

Check your understanding

Drag the penalty to its smallest value. The training error is essentially zero, yet the test error is large. Why?

  1. With 12 features and 12 points, the polynomial can pass through every point, noise included. Fitting the noise exactly makes the curve swing wildly between the points.
  2. The optimizer failed to converge.The fit is computed exactly from the closed form. It is the best possible fit to the training data, and that is the problem.
  3. The true function is not a polynomial, so no polynomial can have small test error.Moderate λ gives test error close to the noise floor with the same 12 features. The issue is variance, not the model class.
This is overfitting. The training error measures fit to this particular sample, including its noise, and so it can't detect it. The test error can.

In the SVD picture, which directions of the coefficient vector does ridge shrink the most?

  1. Those along right singular vectors vj with small singular values dj.
  2. Those with the largest least-squares coefficients.The shrinkage factor dj2/(dj2+nλ) depends only on dj, not on the size of the coefficient.
  3. All directions equally, by the factor 1/(1+λ).That happens only when every dj2 is the same, i.e. orthogonal features with X⊤X=nI.
Small dj means the data barely constrain b along vj. The least-squares coefficient there is noise divided by a small number, and ridge discounts it accordingly.

Generalized ridge with penalty b⊤A−1b and A=diag(4,1). With X⊤X=nI, which coefficient is shrunk less?

  1. The first: its factor is 4/(4+λ), against 1/(1+λ) for the second.
  2. The second, because it has the smaller entry in A.The penalty uses A−1=diag(1/4,1), so the first coordinate is penalized less.
  3. They are shrunk equally.That would be ordinary ridge, A=I.
A is a prior covariance: the first coefficient is expected to be larger in magnitude, so large values there are penalized less.

A model is fitted on a sample, and its error on the same sample is reported. On average, compared with its error on fresh data, this number is…

  1. …smaller, because the model was chosen to fit this sample's noise.
  2. …the same, because the empirical risk is an unbiased estimate of the risk.That holds for a parameter fixed before seeing the data, not for one chosen using the data.
  3. …larger, because the sample is finite.A finite sample makes the estimate noisy, but selection on the same sample makes it biased downward.
This is why models are evaluated on held-out data, and why theory bounds the generalization gap rather than assuming it is zero.

Practice

Solving by minimizingTwo inconsistent equations

The "equations" x=1 and x=3 have no common solution. Find arg⁡minx{(x−1)2+(x−3)2}. More generally, show that the least-squares solution of x=c1,…,x=cn is the average of the ci, and that the least-squares solution of Xb=y satisfies the normal equations X⊤Xb=X⊤y.

Outline
  1. The minimizer of ∑i(x−ci)2 is c¯.
    Why?

    The derivative 2∑i(x−ci) vanishes at x=1n∑ci. For 1 and 3 this is x=2.

  2. The gradient of ‖y−Xb‖2 is −2X⊤(y−Xb).
    Why?

    Expand ‖y−Xb‖2=y⊤y−2b⊤X⊤y+b⊤X⊤Xb and differentiate in b.

  3. Setting it to zero gives X⊤Xb=X⊤y: the residual y−Xb is orthogonal to every column of X.
    Why?

    Geometrically, Xb is the orthogonal projection of y onto the column space of X. The first part is the case where X is a column of ones.

Ridge always has a unique answerPositive definiteness at work

Show that X⊤X+nλI is positive definite for every X∈Rn×p and λ>0, derive the closed form of β^λ, and show that β^λ→0 as λ→∞.

Outline
  1. v⊤(X⊤X+nλI)v=‖Xv‖2+nλ‖v‖2>0 for v≠0.
    Why?

    The first term is ≥0 and the second is >0. A positive definite matrix has no zero eigenvalue, so it is invertible.

  2. The objective is strictly convex, and its gradient −2nX⊤(y−Xb)+2λb vanishes exactly at (X⊤X+nλI)−1X⊤y.
    Why?

    Its Hessian is 2n(X⊤X+nλI)≻0, so the critical point is the unique global minimum.

  3. ‖β^λ‖≤‖X⊤y‖/(nλ)→0.
    Why?

    The smallest eigenvalue of X⊤X+nλI is at least nλ, so its inverse has operator norm at most 1/(nλ).

The best linear predictorCompleting the square in matrices

Let y=Xβ+ε with Eβ=0, Cov(β)=V≻0, ε independent of β with covariance σ2I, σ2>0, and a fresh input x independent of everything with Exx⊤=Σ. For a linear estimator β^=By, let R(B)=E(x⊤By−x⊤β)2. Show that with C=XVX⊤+σ2I and B∗=VX⊤C−1,

R(B)−R(B∗)=‖Σ1/2(B−B∗)C1/2‖F2 ≥0,
and that B∗=(X⊤X+σ2V−1)−1X⊤.

Outline
  1. R(B)=tr⁡[Σ(V−BXV−VX⊤B⊤+BCB⊤)].
    Why?

    By−β=(BX−I)β+Bε, whose second-moment matrix is (BX−I)V(BX−I)⊤+σ2BB⊤=V−BXV−VX⊤B⊤+BCB⊤. Then average (x⊤u)2=tr⁡(xx⊤uu⊤) over the independent x.

  2. Since B∗C=VX⊤, writing B=B∗+Δ makes the cross terms cancel.
    Why?

    The terms linear in Δ are −ΔXV−VX⊤Δ⊤+ΔCB∗⊤+B∗CΔ⊤, and CB∗⊤=XV, B∗C=VX⊤. What remains is tr⁡(ΣΔCΔ⊤)=‖Σ1/2ΔC1/2‖F2.

  3. VX⊤(XVX⊤+σ2I)−1=(X⊤X+σ2V−1)−1X⊤.
    Why?

    Multiply both sides on the left by X⊤X+σ2V−1 and on the right by XVX⊤+σ2I. Both sides become X⊤XVX⊤+σ2X⊤ (the "push-through" identity).

The identity holds for any distribution with these first two moments. Gaussianity is only needed to say that no nonlinear estimator does better.

Effective degrees of freedomA trace formula

The fitted values of ridge are y^=Hλy with Hλ=X(X⊤X+nλI)−1X⊤. Show that tr⁡Hλ=∑jdj2/(dj2+nλ). Check that for least squares with n≥p and X of full rank the trace is p, the number of parameters.

Outline
  1. Hλ=Udiag(dj2/(dj2+nλ))U⊤.
    Why?

    Substitute the thin SVD X=UDV⊤: X(X⊤X+nλI)−1X⊤=UDV⊤V(D2+nλI)−1V⊤VDU⊤.

  2. The trace of UΛU⊤ is the trace of Λ.
    Why?

    tr⁡(UΛU⊤)=tr⁡(ΛU⊤U) and U⊤U=I.

  3. At λ=0 with rank⁡X=p, each of the p factors is 1.
    Why?

    H0 is then the orthogonal projection onto the p-dimensional column space, whose trace is its dimension.

Key terms in plain words

The ideas above without the symbols. Switch to Quiz me to test yourself: you see an explanation and pick the term it describes.

Empirical risk
The average loss of a model on the data you have; it is what training makes small.
Population risk
The average loss a model would have on fresh data from the same source; it is what you actually care about and can't compute.
Generalization gap
How much worse a fitted model does on new data than on the data it was fitted to.
Overfitting
Fitting the noise in a particular sample so closely that predictions on new data get worse.
Ridge regression
Least squares plus a penalty on the squared size of the coefficients, which keeps the answer unique and stable.
Shrinkage
Pulling estimated coefficients toward zero, most strongly in the directions the data say least about.
Effective degrees of freedom
How many directions a regularized fit really uses, a number between zero and the number of features.
Generalized ridge
Ridge with a different penalty weight in each direction, set by the inverse of how much the coefficients are expected to vary there.
Positive definite matrix
A symmetric matrix whose quadratic form is positive for every nonzero vector, so all its eigenvalues are positive and it can be inverted.
InteractiveAxler, Ch. 8: Operators on Complex Vector Spaces

Generalized eigenvectors and Jordan form

When there aren't enough eigenvectors, generalized ones fill the gap: vectors killed by some power of T−λI. Every complex operator splits along them, and on each piece it is a scalar plus a nilpotent part. That nilpotent part is what makes powers grow like kλk−1.

The idea

Generalized eigenvectors (Axler 8.8, 8.19). v≠0 is a generalized eigenvector for λ if (T−λI)kv=0 for some k; G(λ,T)=null(T−λI)dim⁡V.
Decomposition (Axler 8.22, 8.29). Over C, V=G(λ1,T)⊕⋯⊕G(λm,T), each (T−λkI)|G(λk) is nilpotent, and with dk=dim⁡G(λk,T), the characteristic polynomial q(z)=∏(z−λk)dk satisfies q(T)=0 (Cayley–Hamilton).
Jordan form (Axler 8.46). There is a basis in which T is block diagonal with blocks λI+N, where N has 1s just above the diagonal.

For a 2×2 Jordan block, (λI+N)k=λkI+kλk−1N since N2=0. The extra factor k is invisible in the eigenvalues but very visible in the dynamics, as the figure shows.

Explore

Operator
Orbits x, Tx, T²x, … of points on a circle, for k steps. The Jordan block shears each step, so orbits swing toward the eigenvector before decaying.

Worked example

Find the generalized eigenspaces and a Jordan basis for T(z1,z2,z3)=(6z1+3z2+4z3, 6z2+2z3, 7z3).

  1. Eigenvalues?

    The matrix is upper triangular with diagonal 6,6,7, so the eigenvalues are 6 and 7 (Axler 5.41), with multiplicities 2 and 1.

  2. G(6,T) and G(7,T)?

    (T−6I) has matrix with rows (0,3,4),(0,0,2),(0,0,1); its square kills e1 and e2, so G(6)=span(e1,e2), while E(6)=span(e1) only. G(7)=E(7) is spanned by (10,2,1) (solve (T−7I)v=0).

  3. Jordan basis?

    Take v2=e2, v1=(T−6I)e2=3e1, and v3=(10,2,1). In the basis v1,v2,v3, T has blocks (6106) and (7).

Check your understanding

A nilpotent operator on C5 satisfies

  1. N5=0.
  2. N2=0.A single 5×5 Jordan block has N4≠0.
Axler 8.16: a nilpotent operator raised to the dimension is 0, since the null spaces of its powers grow strictly until they stop.

For a Jordan block with |λ|<1, Tkx→0 for every x?

  1. Yes, though it can grow first.
  2. No, the kλk−1 term blows up.k|λ|k−1→0 when |λ|<1.
Exponential decay beats linear growth. But ‖Tk‖ can exceed 1 for a while: try λ near 1 in the figure. This transient growth matters in numerical analysis and control.

Over C, the trace of T equals

  1. the sum of the eigenvalues, with multiplicity.
  2. the sum of the distinct eigenvalues.Multiplicity counts.
Axler 8.52; similarly the determinant is the product of the eigenvalues with multiplicity (Axler 9.55).

Practice

Cayley–Hamilton in 2×2Axler 8.29

Verify T2−(trT)T+(detT)I=0 for T=(abcd).

Solution

T2=(a2+bcab+bdca+dccb+d2). Subtract (a+d)T and add (ad−bc)I: every entry becomes 0, e.g. a2+bc−a2−ad+ad−bc=0.

Square rootsAxler 8.39–8.41

Find a square root of I+N where N2=0.

Solution

Use 1+x=1+x2−… truncated: (I+12N)2=I+N+14N2=I+N. In general, the Taylor series truncates because N is nilpotent, which is why every invertible complex operator has a square root.

From Axler, Linear Algebra Done Right (4th ed., Springer, 2024; open access)

Numbers match the book. Each question is restated in our own words; the hints and solutions are written for this page.

Exercise 8A.3When null space and range are complementary

For T∈L(V), prove V=nullT⊕rangeT if and only if nullT2=nullT.

Hint

The sum is direct iff nullT∩rangeT={0}; dimensions then add to dim⁡V by the fundamental theorem.

Solution

(⇒) Let v∈nullT2. Then Tv∈rangeT and T(Tv)=0, so Tv∈nullT∩rangeT={0}. Hence v∈nullT. The other inclusion is always true.

(⇐) If v∈nullT∩rangeT, write v=Tu. Then T2u=Tv=0, so u∈nullT2=nullT, and v=Tu=0. So the sum is direct, and its dimension is dim⁡nullT+dim⁡rangeT=dim⁡V (Axler 3.21), so it is all of V.

Exercise 8B.1Generalized eigenspaces of a rotation

For T(w,z)=(−z,w) on C2, find the generalized eigenspaces for its distinct eigenvalues.

Hint

T2=−I. Since the eigenvalues are distinct, generalized eigenspaces equal eigenspaces.

Solution

T2=−I, so eigenvalues satisfy λ2=−1: λ=±i. T(w,z)=i(w,z) means −z=iw, i.e. z=−iw: E(i)=span(1,−i). Similarly E(−i)=span(1,i). These two lines already span C2, so G(i,T)=E(i) and G(−i,T)=E(−i). On R2 this is the 90° rotation, which has no eigenvectors at all.

Exercise 8C.1A nilpotent operator with no square root

Prove that T(z1,z2,z3)=(z2,z3,0) on C3 has no square root.

Hint

A square root of a nilpotent operator is nilpotent, and nilpotent operators on C3 satisfy S3=0.

Solution

T2(z)=(z3,0,0)≠0 and T3=0. Suppose S2=T. Then S6=T3=0, so S is nilpotent, and by Axler 8.16, S3=0. Then T2=S4=S⋅S3=0, a contradiction. Compare Axler 8.39: I+N always has a square root, but N itself need not.