3. LINEAR MAPPINGS AND DIAGONALIZATION

In this chapter, we first consider functions that transform elements from one vector space into another one. These functions comply with the fundamental properties of linearity, already considered above, and are therefore called linear mappings. In many instances, we are able to formulate matrices to represent linear mappings. Afterwards, we consider a concept that has many applications in the sciences and engineering: the eigenvector. Such a vector is invariant under a linear mapping (except for a constant factor called eigenvalue) and for certain linear mappings (and associated matrices) it will be possible to find a basis of the vector space such that the associated matrix is diagonal, known as the diagonalization of the matrix.

3.1 Linear mappings and matrices

3.1.1 Introduction and basic properties

Example 3.1

Let us start with an example: Let p = [x1, y1, z1] be a point in the vector space ℝ3 (for simplicity, we use row vectors here). Then, there exists a unique projection to the vector space ℝ2 spanned by x and y: such a point is simply q = [x1, y1] (in a three-dimensional Cartesian coordinate system, q lies in the plane [x, y, 0]). We regard [x1, y1, z1] → [x1, y1] as a mapping T from ℝ3 to ℝ2 and write

T: ℝ3 → ℝ2 T(p) = q.

This mapping conserves linearity:

x1y1z1+x2y2z2=x1+x2y1+y2z1+z2x1+x2y1+y2=x1y1+x2y2αx1y1z1=αx2αy2αz2αx1αy1=αx1y1,αR.$

We see that linear mappings are functions defined on vector spaces that preserve linear combinations. Other names (mostly used synonymously, but strongly depending on the context) are linear transformations, linear operators, or linear maps.

Definition 3.1

Given two vector spaces V and W, we say that T : VW is a linear mapping if ∀u, vV and ∀α ∈ ℝ it verifies:

(a) T (u + v) = T (u) + T (v) (additivity).

(b) T (αu) = αT (u) (homogeneity).

These two properties can be combined in a single statement:

T (αu + βv) = αT (u) + βT (v) ∀u, vV and ∀α, β ∈ R.

Example 3.2

The mapping D : PP defined by D(p(x)) = p(x) is linear.

Proof. We show that the differentiation of polynomials is a linear mapping. Let f and g represent polynomials, written in the canonical basis of polynomials P. Then, we use knowledge of calculus: D(f + g) = D(f) + D(g) and D(αf) = αD(f) and differentiation of polynomials (as actually of any differentiable function) is linear. Note that we need to have a well-defined vector space.

Example 3.3

The mapping T : ℝ2 → ℝ2 defined by

Txy=yx

is linear.

Proof. For all vectors xyR2 and all α ∈ ℝ, we have:

Tx1y1 + x2y2=Tx1+x2y1+y2=y1+y2x1+x2=y1x1+y2x2=Tx1y1+Tx2y2

and

Tα x1y1=Tαx1αy1=αy1αx1=αy1x1=αTx1y1

This simple example allows us to draw a link to the first chapter. The linear mapping of this example is interchanging x and y components of a vector. This can also be achieved by multiplying a matrix to the vector:

Txy=yx=0110xy.

Hence, a linear mapping can be represented (for some relevant cases) by

T(u) = Au,

where A is a suitable matrix. We will come back to the matrix associated to a linear mapping below.

Example 3.4

The mapping T : ℝ2 → ℝ2 defined by

Txy=yx2

is not linear.

Proof. It is sufficient to show that the additivity property is not fulfilled:

Tx1y1 + x2y2=Tx1+x2y1+y2=y1+y2x1 + x22,

while

Tx1y1+Tx2y2=y1x12+y2x22=y1+y2x12+x22

Theorem 3.1

Let T : VW be a linear mapping. Then:

(a) T(0) = 0.

(b) T (-u) = -T (u).

(c) T(a1u1 + a2u2 + … + anun) = a1T (u1) + a2T(u2) + … + anT(un).

Observe that in part (a), the nullvector on the left hand side is the nullvector from V, on the left hand side there is the nullvector from W. In particular, part (a) means that for a linear mapping, the nullvector maps to the nullvector. In part (c), the number of vectors n is not specified.

Example 3.5

The mapping T : ℝ2 → ℝ2 defined by

Txy=x+1y

is not linear since

T00=1000.

3.1.2 Kernel and image of a linear mapping

Definition 3.2

Let T : VW be a linear mapping. We define the kernel and image of T, respectively, as follows:

KerT = {xV : T(x) =0},

ImT = {T (x) ∈ W : xV}.

Observe that KerT is a subspace of V and ImT is a subspace of W. Once we establish the associated matrix for a linear mapping, we will see how the kernel is analogous to the nullspace and the image to the column space of the matrix.

Theorem 3.2

Let T : VW be a linear mapping and let {u1, u2, …, un} be a system of generators of V. Then, {T (u1), T (u2), …, T (un)} is a system of generators of ImT.

Example 3.6

Find the kernel and image of the linear mapping T : ℝ3 → ℝ3 defined by

Txyz=x+zyx+2y+z.

For the vector space of this example, we know a very convenient system of generators: the canonical basis of ℝ3:

100 , 010 , 001.

We apply the linear mapping to these vectors and obtain three vectors

T 100 , T 010 , T 001=101 , 012 , 101.

Two of these vectors are linearly dependent, and hence we conclude

ImT=Span101 , 012

The kernel is formed by the vectors that map to the nullvector.

x+z=0,y=0,+2y+z=0.

From that set of equations we obtain

x = -z,
y=0,

with z being arbitrary, and therefore

KerT=Span101

Before we proceed, we have to review some general classification of functions:

Definition 3.3

Let f : AB be a function. Then,

(a) f is injective if and only if xy implies f (x) ≠ f (y) ∀x, yA.

(b) f is surjective if and only if ∀bB, ∃aA such that f (a) = b.

(c) f is bijective if and only if f is injective and f is surjective.

With this classification it is now possible to confirm the following properties for injective and surjective (and hence, bijective) linear mappings:

Theorem 3.3

Let T : VW be a linear mapping. Then:

(a) T is injective if and only if KerT = {0}.

(b) T is surjective if and only if ImT = W.

(c) T is bijective if and only if KerT = {0} and ImT = W.

There are alternative characterizations for injective, surjective and bijective linear mappings, provided by the following theorem:

Theorem 3.4

Let T : VW be a linear mapping. Then:

(a) T is injective if and only if for each independent set {u1, u2, …, un}, the set {T (u1), T (u2), …, T (un)} is linearly independent.

(b) T is surjective if and only for each system of generators of V, {u1, u2, …, un}, the set {T (u1), T (u2), …, T (un)} is a system of generators of W.

(c) T is bijective if and only if for each basis of V, {u1, u2, …, un}, the set {T (u1), T (u2), …, T (un)} is a basis for W.

Notice that n for the three cases is not necessarily the same number, as the number of independent vectors can be smal ler than the dimension, and the number of generatoring vectors can be larger than the dimension, respectively.

Let us now move on to generate linear mappings from basic operations.

Definition 3.4

Let f, g : VW be two linear mappings and λ ∈ ℝ. Then, we can define the following operations:

(a) f + g:VW, (f + g)(x) = f(x) + g(x)

(b) λf : VW, (λf)(x) = λf(x)

Theorem 3.5

With the operations of linear mappings, the set of linear mappings between two vector spaces V and W is itself a vector space.

As for general functions, we can also define the composition of linear mappings and find that its result is also a linear mapping, by the next theorem.

Theorem 3.6

Let f : VW and g : WU be two linear mappings. Then, their composition gf : VU, defined by (gf)(x) = g (f (x)) is also a linear mapping.

We also would like to define an inverse linear mapping and, for that, we use the general result that if a function is bijective, it has a unique inverse function. In particular, if f : VW is a bijective linear mapping, then there is a unique function f-1 : WV such that:

f-1 (f (v)) = v for all vV,
f(f-1(w)) = w for all wW.

It turns out that the inverse of a linear mapping is also a linear mapping.

Theorem 3.7

For each bijective linear mapping Let f : VW, its inverse mapping f-1 : WV is also a linear mapping, i.e.,

f-1 (αx + βy) = αf-1 (x) + βf-1 (y) ∀x, yW and ∀α, β ∈ ℝ.

3.1.3 Associated matrices

Here, we will see that linear mappings between finite-dimensional vector spaces have a matrix representation. In fact, given a linear mapping T : VW, this matrix representation or associated matrix, denoted by MCB(T) (or just MCB for the sake of simplicity) has the useful property that

[T(x)]C=MCB[x]B,                  (3.1)

where B and C are bases for V and W, respectively. In other words, for each xV, the matrix MCB should transform the coordinates of x into the coordinates of its image under T. In this way, the effect that MCB has on [x]B is analogous to the effect that T has on x.

An important observation is that MCB depends on the bases that are chosen for the vector spaces and, of course, the mapping itself. We now discuss how to construct the associated matrix of a linear mapping relative to the bases B and C.

Construction of the matrix associated to a linear mapping

Let B = {b1, b2, …, bn} be a basis for V. Then, for each xV, we can write

x = x1b1 +x2b2 + … +xnbn,

which means that its vector of coordinates relative to B is

[x]B=x1x2xn.

If we apply the linear mapping T to both sides of x = x1b1 + x2b2 + … + xnbn, then we obtain

T(x) = T(x1b1 + x2b2 + … + xnbn),

and, due to the linearity of T, we have

T(x) = x1 T(b1) + x2T(b2) + … + xn T (bn).

Since taking coordinates preserves linear combinations, we deduce that the coordinates of T (x) relative to the basis C are given by

[T(x)]C=x1 T b1 + x2 T b2 + + xn T bnC=x1T b1C+x2T b2C++x2T bnC

or, in matrix notation,

[T(x)]C=T b1CT b2CT bnC[x]B,                  (3.2)

where each [T (bi)]C is an m × 1 (column) vector.

Comparing (3.1) and (3.2), we see that the m × n matrix

MCB=T b1CT b2CT bnC                  (3.3)

is precisely the associated matrix for T that we were looking for.

Example 3.7

Let T : ℝ2 → ℝ3 be a linear mapping such that

T10=123,T01=210

and let ε2 and ε3 be the canonical bases for ℝ2 and ℝ3, respectively. Find ME3E2(T)ME3E2. Then, compute T (x) for

x=11.

According (3.3), the columns of ME3E2 are

T 10E3=123, and T 01E3=210.

Therefore,

ME3E2=T 10E3 T 01E3 = 122130

In this case, T (x) can be computed directly (even if a definition for T is not explicitly given) using ME3E2, because T (x) = [T (x)]ε3 and x = [x]ε2. Therefore,

[T(x)]E3=ME3E2[x]E2,

becomes

T11=12213011=333.

Example 3.8

Let D : P3P3 be the linear mapping defined as

D(p(x)) = p(x).

Find MS3S3(D)MS3S3, where S3 = {1, x, x2, x3} is the standard basis for P3.

Note that, in this example, D is a mapping from P3 to itself. Moreover, we are asked to use the same basis to represent the elements in P3 as well as their images under D.

By (3.3), we have

MS3S3=[D(1)]S3[D(x)]S3D x2S3D x3S3=00]S3[1]S3[2x]S3 3 x2S3.

The explicit expression of MS3S3 is obtained by writing out the derivatives in the last equality as linear combinations of S3 :

0=01+0x+0x2+0x31=11+0x+0x2+0x32x=01+2x+0x2+0x33x2=01+0x+3x2+0x3

Therefore,

MS3S3=0100002000030000.

Let us mention an interesting property of this linear mapping. Observe that the first column of MS3S3 consists entirely of zeros and, obviously, it is not a pivot column. Therefore, the equation

MS3S3x=0

has a non trivial solution (the first column corresponds to a free variable). This means that there is at least one non zero polynomial p(x) such that D(p(x)) = 0. In other words, KerD ≠ {0}. It follows from Theorem 3.3 that D is not injective. Indeed, it is well known that for any constant k, D(k) = 0. Consequently, any polynomial of the form f (x) = p(x) + k, k ∈ ℝ, satisfies the equation

D(f (x)) = p(x).

Example 3.9

Let T : P3P4 be the linear mapping defined as

T (p(x)) = x p(x).

Let us compute MS4B(T)MS4B where B = {1, 1 + x, x + x2, x2 + x3} and S4 = {1, x, x2, x3, x4}.

Since we are using the standard basis for P4, it is easy to write the explicit expression for MS4B. By (3.3),we have

MS4B=[ T ( 1 ) ]S4 [ T ( 1 + x ) ]S4 T x + x2S4 T x2 + x3S4

=[x]S4x + x2S4x2 + x3S4 x3 + x4S4=00001100011000110001.

The matrices of injective, surjective, and bijective linear mappings

It is possible to characterize the injective and surjective character of a linear mapping T : VW in terms of the pivots of its associated matrix independently of the bases we choose for the vector spaces involved.

In the discussion below, B = {b1, b2, …, bn} will denote a basis for V and C will denote a basis for W.

Injectivity. By Theorem 3.4, we know that T is an injective linear mapping if and only if {T (b1), T (b2), …, T (bn)} is a linearly independent set of vectors. Moreover recall that their coordinate vectors relative to any basis constitute a linearly independent set of column vectors. Hence,

{[T (b1)]C, [T (b2)]C,…, [T (bn)]C}

is a linearly independet set of vectors in ℝm with m = dim W. These vectors are the columns of the associated matrix MCB. Therefore, the injectivity of T passes down to its associated matrix MCB as follows: T is injective if and only if all the columns of MCB are linearly independent, or, equivalently, all the columns of MCB are pivot columns. Consequently, the equation

[y]C=MCB[x]B,yImT

has a unique solution. If we compute the rank of MCB associated with an injective linear mapping T, then we find that

rankMCB=# pivots of MCB=# columns of MCB=dimV

This has the following important consequence:

If there is an injective linear mapping T : VW, then

n = dim Vm because any linearly independent set in W has at most m elements.

• #columns of MCB ≤ #rows of MCB.

Surjectivity. Again, by Theorem 3.4, we know that T is surjective if and only if the set {T(b1), T(b2), …, T(bn)} is a generating system of W. Since taking coordinates preserve linear relations, this means that the set

{[T (b1)]C, [T (b2)]C,…, [T (bn)]C}

is a generating system for ℝm with m = dim W. These vectors are the columns of the associated matrix MCB, and therefore surjectivity translates into the statement that all rows of MCB have a pivot (in order to avoid degenerate rows), which is the same as confirming that the equation

[y]C=MCB[x]B,yImT

has a solution for all bW. Therefore, computing the rank of MCB, we obtain rank

rankMCB=# pivots of MCB=# rows of MCB=dimW

This has the following important consequence:

If there is a surjective linear mapping T : VW, then

n = dim Vm because any generatig set for W has at least m elements.

• #columns of MCB #rows of MCB.

Bijectivity. From the previous discussion, we deduce that T is bijective (T is both injective and surjective) if and only if the set of vectors {T (b1), T (b2), …, T (bn)} forms a basis for W. Putting what we know about injectivity and surjectivity together

rankMCB=# pivots of MCB=# columns of MCB=# rows of MCB.

This has the following significant implication:

If there is a bijective linear mapping T : VW, then

• dim V = dim W.

MCB is an invertible square matrix.

Let us consider a few examples.

Example 3.10

Let T : ℝ2 → ℝ3 be a linear mapping such that

T10=123,T01=210.

We already found the associated matrix with respect to the canonical bases:

ME3E2=122130.

Its row reduced echelon form is given by

ME3E21    00    10    0.

We see that all columns of ME3E2 are pivot columns and therefore T is injective. We can also see that dim ℝ2 < dim ℝ3, and hence T cannot be surjective (and, thus, not bijective).

Example 3.11

Let D : P3P3 a linear mapping defined by D(p(x)) = p(x). We already know the associated matrix relative to the standar basis S3 = {1, x, x2, x3}:

MS3S3=0100002000030000.

This matrix has less pivot columns than columns (hence, D is not injective) and less pivot rows than rows (hence, D not surjective).

Example 3.12

Let T : P3P4 a linear mapping defined by T (p(x)) = xp(x). We already know the associated matrix relative to the basis B = {1, 1 + x, x + x2, x2 + x3} for P3, and the standard basis S4 = {1, x, x2, x3, x4}:

MS4B=00001100011000110001.

After computing its row reduced echelon form:

MS4B10000100001000010000,

we find that all its columns are pivot columns, which means that T is injective. However, dim P3 < dim P4, so T cannot be surjective.

3.1.4 Associated matrices and the change of basis

Whenever we compute a matrix associated with a linear mapping T : VW, we explicitly use a fixed basis for each vector space V and W. This means that the explicit expression of the associated matrix depends on the specific choice of these bases. Nevertheless, since the underlying mapping T is independent of the choice of bases, we should expect to find a relationship between associated matrices relative to two different choices of bases. In this section, we will investigate this in detail and describe how an associated matrix varies under a change of bases. Let us start with an illustrative example.

Example 3.13

Let T : ℝ3 → ℝ2 be a linear mapping defined by

Txyz=x+yyz

Let B = {b1,b2,b3} and C = {c1, c2} be bases for ℝ3 and ℝ2, respectively. We will consider two cases for illustration: when B and C are the canonical bases and when they are not, and give the associated matrices for both cases.

Case 1: B and C are the canonical bases E3 and E2, respectively. The presentation may appear unnecessarily detailed here, but it is illustrative to see the differences with the more complicated case 2 below. We have

b1=100,b2=010,b3=001.

We calculate, by prescription, T (bi), for i = 1, 2, 3:

T100=10,T010=11,T001=01.

Actually, the resulting vectors are already written in terms the canonical basis E2, as one can readily confirm:

10E2=10,11E2=11,01E2=01.

Therefore, we have

ME2E3=1    1    00    1    1.

Case 2: B and C are now given by

b1=101,b2=011,b3=111.c1=12,c2=11.

We calculate, by prescription, T (bi), for i = 1, 2, 3:

T101=11,T011=10,T111=20.

Now, we need to compute [T (b1)]C, [T(b2)]C, and [T (b3)]C. For this, we must solve the three systems of equations whose augmented matrices are:

[c1 c2T(b1)], [c1 c2T (b2)], [c1 c2T(b3)].

All three systems can be solved simultaneously by setting up the augmented matrix

c1 c2T(b1) T(b2) T(b3),

and reducing it to its row reduced echelon form:

1    1    1    1    22    1    1    0    01    0    0    13    230    1    1    23    43.

Therefore,

MCB=0    13    231    23    43.

As seen in the previous example, while a linear mapping T : VW may be independent of the choice of bases for V and W, the explicit expression for its associated matrix will change under different choices of bases.

Our goal here is to start with the associated matrix MCB relative to the old bases B (for V) and C (for W), and use it to produce the associated matrix relative to new bases B^ (for V) and Ĉ (for W). Let us start by recalling the fundamental property of the associated matrix relative to the old bases B and C:

[T(v)]C=MCB[v]B, for all vV.

Moreover, we can use matrices of change of bases to write the coordinates of the vectors vV and T (v) ∈ W relative to the new bases: bb

[v]B=PBB^[v]B^, and [T(v)]C=PCC^[T(v)]C^

If we insert these two identities in the previous equation, then we obtain

PCC^[T(v)]C^=MCBPBB^[v]B^.

Multiplying both sides of the equation on the left by PCC^1=PC^C, we get

[T(v)]C^=PC^C MCB PBB^[v]B^.

Comparing this equation with the fundamental property satisfied by MBb :

[T(v)]C^=MC^B^[v]B^, for all vV,

we can finally conclude that

MB^B^=PC^CMCBPBB^.

Hence, we can obtain the associated matrix for T relative to the new bases B^ and Ĉ through a matrix product of three matrices. Note that, on one hand, MCB and MC^B^ are both m × n matrices, where n = dim V and m = dim W. On the other hand, the matrix PC^C is m × m and the matrix PBB^ is n × n.

We state the above important result as a theorem.

Theorem 3.8

Let T : VW be a linear mapping and let MCB be its associated matrix relative to the basis B for V and the basis C for W. If B^ and Ĉ are new bases for V and W, respectively, then the associate matrix for T relative to the new bases is given by

MB^B^=PC^CMCBPBB^,

where PBB^ and PC^C are matrices of change of basis.

Example 3.14

We review the example from above. Let T : ℝ2 → ℝ3 be a linear mapping such that

T10=123,T01=210.

Its associated matrix relative to the canonical bases is

ME3E2=122130.

We wish to determine MCB relative to the new bases given by

B=10 , 11 and C=100 , 110 , 011.

By Theorem 3.8, we can obtain MCB as follows:

MCB=PCE3ME3E2PE2B.

Writing the matrix of change of basis from B and C to the corresponding canonical bases is straightforward since their columns consist of the basis vectors themselves:

PE2B=1101,PE3C=110011001.

However, we need to find PCE3=PE3C1:

1    1    0    1    0    00    1    1    0    1    00    0    1    0    0    11    1    0    1    0    00    1    0    0    1    10    0    1    0    0    11    0    0    1    1    10    1    0    0    1    10    0    1    0    0    1.

Therefore,

PCE3=1    1    10    1    10    0    1.

We can finally compute MCB:

MCB=PCE3ME3E2PE2B=1    1    10    1    10    0    11    22    13    01    10    1=2    31    03    3.

Example 3.15

Let T : ℝ3 → ℝ2 be the linear mapping defined by

Txyz=x+yyz.

Its associated matrix relative to the canonical bases is

ME2E3=110011.

If we wish to determine its associated matrix relative to the bases B and C given by

B=101 , 011 , 111 and C=12 , 11,

then we need to compute the matrices of change of bases PE3B and PCE2. We can write down directly the matrices

PE2C=1    12    1,PE3B=1    0    10    1    11    1    1.

We only need to compute PCE2=PE2C1:

PCE2=PE2C1=13    1323    13.

By Theorem 3.8, we can obtain MCB as follows:

MCB=PCE2ME2E3PE3B=13    1323    131    1    00    1    11    0    10    1    11    1    1=0    13    231    23    43

3.2 Eigenvalues, eigenvectors, and diagonalization

In this section, we consider a topic that has a wide range of applications in applied mathematics and by extension in the sciences and engineering: the eigenvectors and eigenvalues of a linear mapping. In the presence of some favourable conditions (namely, when the mapping is diagonalizable), they offer a way to understand the structure of a linear mapping that map a vector space to itself and, in turn, understand the structure of the involved vector space. Moreover, the study of diagonalizable linear mappings opens the avenue to more advanced methods (e.g., orthogonal or Fourier decomposition of vectors) that we discuss in the next chapter.

3.2.1 Introduction

For a finite-dimensional vector space V with dim V = n, let T : VV be a linear mapping, and let B = {b1, b2, …, bn} be a basis for V. Since maps V into itself then, for each x in V, the vector T (x) can also be written in the same basis B. The matrix associated with T relative to B is given by

MBB=T b1B    T b2B T bnB.

For the sake of simplicity, the associated matrix MBB can simply be denoted as MB. We must mention that any linear mapping that maps a vector space to itself is usually called a linear operator. So, from now on, MB can be understood as the associated matrix of a linear operator relative to a basis B.

In the previous section, we discussed the behavior of the associated matrices of a linear mapping T : VW under a change of bases. In the particular case when T is a linear operator (that is, W = V), we can consider the change of basis from B to some other basis C. In this case, by Theorem 3.8, we have

MC=PCBMBPBC,

where PBC is the matrix of change of basis from C to B and PCB=PBC1.

The fundamental goal is to find a basis C (when possible) such that MC is a diagonal matrix

MC=λ1                λ2                                λn,

where the empty spaces are understood to be filled with 0’s. If such a basis C = {c1, c2, …, cn} exists, then the explicit expression

MC=T c1C    T c2C        T cnC=λ1                λ2                                λn,

shows that

Tci=λici, for i=1,2,,n.

This means that if the linear mapping is applied to a vector of this particular basis, then we obtain a multiple of the same basis vector! This is quite extraordinary since, in general, the application of a linear mapping to an input vector does not produce an output vector that is proportional to the input vector. When a non zero vector is mapped by T to a scalar multiple of itself, such a vector is called an eigenvector, which comes from German “eigen,” meaning “self.” The scalar constant that multiplies and eigenvector is called an eigenvalue. Each eigenvector is associated with an eigenvalue. We elaborate on this in the next section.

3.2.2 Eigenvalues and eigenvectors

Definition 3.5

Let T : VV be a linear mapping. Any non zero vector xV such that

T (x) = x,

for some scalar λ is called an eigenvector of T. The scalar λ is called the eigenvalue associated with x. Eigenvalues are allowed to be zero.

Observation 3.1

The zero vector is excluded as eigenvector, because it would satisfy the equation for any value of λ. From the above introductory comments, we would expect that there are exactly n = dim V eigenvectors and eigenvalues. While sometimes this can be indeed the case, however, this topic will be treated with care and detail below.

Example 3.16

Let T : ℂ2 → ℂ2 be the linear mapping defined by

Txy=yx.

Recall that ℂ2 = x y : x, y ∈ ℂ. Verify that λ1 = i and λ2 = -i are eigenvalues of T. If possible, find a basis for ℂ2 such that its elements are eigenvectors of T and write its associated matrix relative to such basis.

We consider first λ1 = i. If λi is an eigenvalue of T, then there is some vector [x y] ∈ ℂ2 such that

Txy=ixy.

However, by the definition of T, the same vector must satisfy

Txy=yx.

This implies that

ix = -y,
iy = x.

Solving this system of equations, we obtain

xy=αi1,αR.

This means that all non zero scalar multiples of i1 are eigenvectors of T associated with λ1.

Now, we consider λ2 = -i. Then, the following two equations must hold for some [x y] ∈ ℂ2:

Txy=ixy, and Txy=yx.

This implies that

-ix = -y,
-iy = x.

The solution of this system of equation is given by

xy=βi1,βR

This means that all non zero scalar multiples of i1 are eigenvectors of T associated with λ2. We observe that the set

C=i1 , i1,

formed by one eigenvector associated with λ1 and one eigenvector associated with λ2, is a linearly independent set. Moreover, since dim ℂ2 = 2, we conclude that ℂ is a basis for ℂ2.

It is not hard to verify that the associated matrix of T relative to C is

MC=i    00    i.

Note that the order that you choose for the elements of the basis is important. In fact, if we change the order of the elements of C, then we obtain a new basis

C^=i1 , i1,

and the associate matrix of T relative to Ĉ is

MC^=i    00    iMC.

Observation 3.2

The attentive reader would have noticed that in the previous example, the eigenvectors associated with each eigenvalues are not unique: any non zero scalar multiple of the set C is also an eigevector of T. This means that it is possible to normalize eigenvectors depending on the context, e.g., to obtain an eigenvector of unit length. It also implies that it is allowed to multiply an eigenvector by -1, i.e., changing the sign of all coordinate values at once, if convenient. In fact, we have the following general result.

Theorem 3.9

Let T : VV be a linear operator. If v1, v2, …, vrV are eigenvectors associated with an eigenvalue λ, then any non zero vector v ∈ Span{v1, v2, …, vr} is also an eigenvector associated with λ.

Proof. Choose any non zero vector v ∈ Span{v1, v2, …, vr}. Then, v can be written as a linear combination of the eigenvectors v1, v2, …, vr. So, for some scalars a1, a2, …, ar, we can write

v = a1 v1 + a2v2 + … + arvr.

By the linearity of T and the fact that v1, v2, …, vr, are eigenvectors associated with the egienvalue λ, we have that

T(v)=Ta1 v1 + a2 v2 + + ar vr=a1Tv1+a2Tv2++arTvr=a1λv1+a2λv2++arλvr=λa1 v1 + a2 v2 + + ar vr=λv

Hence, T (v) = λ v, which proves that v is an eigenvector of T associated with λ.

The following important theorem will be needed later.

Theorem 3.10

Let T : VV be a linear operator and let x1, x2, …, xm be eigenvectors associated with distinct eigenvalues λ1, λ2, …, λm, i.e., λiλj for ij. Then, {x1, x2, …, xm} is a linearly independent set.

Proof. We prove this theorem by contradiction. Suppose that {x1, x2, …, xm} is a linearly dependent set. Therefore, since x10, we know that one of the vectors in the set is a linear combination of the preceeding vectors (see Theorem 2.6). Let p be the least index such that xp+1 is a linear combination of the preceeding (linearly independent) vectors. Then there exist scalars c1, …, cp such that

c1 x1 + … + cp v0= vp+1.

On one hand, applying T to both sides of this equation and using the fact that T (xk) = λk xk for each k, we obtain

λ1 c1 x1 + … + λpcpxp = λp+1 vp+1.

On the other hand, if we multiply both sides by λp+1, we get

λp+1 c1 x1 + … + λp+1 cp xp = λp+1 vp+1.

Subtracting the previous two equations, we obtain

(λ1λp+1) c1 x1 + … + (λpλp+1) cp xp = 0.

Since {x1, x2, …, xp} is linearly independent, the weights in the equation above are all zero. But none of the factors λi - λp+1 are zero, because the eigenvalues are distinct. Hence ci = 0 for i = 1, …, p, which means that vp+1 = 0, which is impossible. Hence, {x1, x2, …, xm} cannot be linearly dependent and therefore it must be linearly independent.

We note that the reciprocal of the previous theorem is not true in general. That is, it is quite possible for a linear operator to have several linearly independent eigenvectors associated with one eigenvalue. What the previous theorem is saying is that an eigenvector of a linear operator can not be associated with two distinct eigenvalues.

The following definition is motivated by Theorem 3.9.

Definition 3.6

Let T : VV be a linear operator. For each eigenvalue λ of T, we define the set

Eλ = Span{x : T (x) = λx}.

It can easily be deduced from Theorem 3.9 that the set Eλ for each eigenvalue λ of T is a vector subspace of V. So we will call Eλ the eigenspace associated with λ. Observe that Eλ is composed of all the (non zero) linear combinations of the eigenvectors associated with λ, together with 0V (otherwise, Eλ is not a vector subspace), which is not an eigenvector. By Theorem 3.10 we know that any eigenvector of T cannot belong to two different eigenspaces. Therefore we have that EλiEλj = {0} whenever λiλj.

We are now paving the way for a central theorem for eigenvectors and eigenvalues. Let T : VV be a linear operator. Our goal will be to characterize the eigenspaces of T. In order to do this, we search for solutions of the equation

T (x) = λx,

where λ is a scalar and x is a non zero vector in V. This equation can also be written as

(TλId)(x) = 0,

where Id denotes the identity operator on V defined by Id(v) = v for all vV. This means that λ is an eigenvalue of T with associated eigenvector x if and only if the above equation has a non trivial solution. Consequently, we have the following characterization of the eigenspaces of T.

Theorem 3.11

Let T : VV be a linear operator. Then, for each eigenvalue λ of T

Eλ = Ker(TλId).

Now, let us fix a basis B of V and let MB be the associated matrix of T relative to B. Then the associated matrix of the operator T - λ Id relative to B is given by MMCB - λ In, where In is the identity matrix and n = dim V. In this way, we can translante the above discussion about eigenspaces to associated matrices and coordinate vectors: the vector xV satisfies (T - λI d)(x) = 0 if and only if

MB λ In[x]B=0Rn

We immediately have the following result.

Theorem 3.12

Let T : VV be a linear operator. Let B be a basis for V and let MMCB be the associated matrix of T relative to B. Then, for each eigenvalue λ of T :

a. xEλ if and only if [x]B ∈ Nul(MB - λIn), with n = dim V.

b. dim Eλ = dim Nul(MB - λIn).

So far, we have described the eigenspaces of a linear operator assuming that we already know the eigenvalues. However, we still need to describe how to find the eigenvalues, so we make the following observation. The homogeneous equation MBλIn [x]B = 0 has a non trivial solution if and only if the value of λ is chosen so that the matrix MBλIn is not invertible. Equivalently, the values of λ must be choses so that

det(MBλIn) = 0.

It turns out that det(MB - λIn) is a polynomial of degree at most n and, therefore, if λ is an eigenvalue of T then it is a root of this polynomial. This means that a linear operator has at most n distinct eigenvalues.

This polynomial is important enough to deserve a special name.

Definition 3.7

Let T : VV be a linear operator and let MB be its associated matrix relative to a basis B.

(a) The polynomial p(λ) = det(MB - λIn) of degree n = dim V is called the characteristic polynomial of T.

(b) p(λ) = det(MB - λIn) = 0 is called the characteristic equation of T.

We must remark that important fact that the characteristic polynomial of a linear operator is independent of the basis that we choose to compute the associated matrix. To show this, suppose that P is a matrix of change of basis from B to some new basis, and let M = P-1MBP is the associated matrix relative to the new basis. Then,

detM λ In=detP1 MB P λ P1 In P=detP1 MB λ In P.

By the multiplicative property of determinants (det AB = (det A)(det B)), we have

det M λ In = det P1 det MB λ In ( det P )=detMB λ In,

where we have used the fact that (det P-1)(det P) = 1. This means that the characteristic polynomial (and its roots) does not change regardless of its matrix representation.

Theorem 3.13

Let T : VV be a linear operator and n = dim V. Then T has at most n linear independent eigenvectors.

Proof. Since the characteristic polynomial has degree n, then T has at most n distinct eigenvalues. It follows from Theorem 3.10 that T has at most n linearly independent eigenvectors.

Example 3.17

Find the eigenvalues and eigenvectors of T : ℝ2 → ℝ2 defined by

T(x)=Ax with A=2    33    6.

(Although it is not explicitly mentioned, the expressions for x ε ℝ2 and T are given in terms of the canonical basis.)

We may proceed as follows.

(1) First, we find the eigenvalues. Recall that the eigenvalues of T are the roots of its characteristic polynomial given by

p(λ)=detA λ I2=det2λ    33    6λ=λ2+4λ21=(λ+7)(λ3).

Therefore, the eigenvalues of T are

λ1 = -7, λ2 = 3.

(2) Now, we obtain the eigenvectors associated with each eigenvalue.

(a) Let us start with λ1 = -7. The eigenvectors associated with this eigenvalue are vectors in the eigenspace Eλ1 = Ker(T + 7 Id). Since we have (implicitly) fixed the canonical basis, we have that x = [x]ε2 and Mε2 = A. Moreover, by Theorem 3.12 we have that xEλ1 if and oly if x ∈ Nul(A + 7 I2); that is,

(A+7I2)x= 0.

Noticing that

A+7I2=9    33    11    130    0,

we deduce that

NulA + 7 I2=Span131.

Therefore, dim Eλ1 = 1 and every eigenvector associated with λ1 is of the form

x=μ131μ0

(eigenvectors must be non zero vectors).

(b) Similarly, for λ1 = 3, we have

NulA 3 I2=Span31.

Therefore, dim Eλ2 = 1 and every eigenvector associated with λ2 is of the form

x=η31η0

We would like to remark that the two eigenvalues are distinct (λ1λ2). Then, by Theorem 3.10, the set B = {v1, v2} with

v1=131,v2=31,

is linearly independent since v1 and v2 are eigenvectors associated with λ1 and λ2, respectively. Furthermore, dim ℝ2 = 2, so these two linearly independent eigenvectors form a basis of ℝ2 ! It turns out that if we write the matrix representation of T relative to B, we obtain

MB=7003,

which, conveniently, is a diagonal matrix whose non zero element are precisely the eigenvalues of T.

Example 3.18

Here, we revisit Example 3.16 with the emphasis on showing the systematic procedure of calculating eigenvalues and eigenvectors starting from a linear operator.

Let T : ℂ2 → ℂ2 be a linear operator defined by

T(x)=Ax, with A=0110.

We have implicitly fixed the canonical basis for ℂ2 to represent the operator as a matrix. Find the eigenvalues and eigenvectors of T.

(1) First, let us find the eigenvalues of T. The characteristic polynomial is given by

p(λ)=detA λ I2=detλ11λ=λ2+1.

The eigenvalues of T are the roots of the characteristic polynomial. In this case, we have two distinct eigenvalues given by λ1 = i and λ2 = −i. Notice that these eigenvalues are complex numbers.

(2) Next, we describe the eigenvectors associated with each of the eigenvalues.

(a) For λ1 = i, Eλ1 = Ker(Ti Id). As in Example 3.17, we have fixed the canonical basis and, therefore, Eλ1 coincides with Nul(Ai I2). Hence, we compute

AiI2=i11i1    i0    0,

and therefore Eλ1=Spani1.

(b) Similarly, for λ2 = −i, we have Eλ2 = Nul(A + i I2). Since,

A+iI2=i11i1i00,

we obtain Eλ2=Spani1.

Now, consider the set

B=i1 , i1,

composed of one eigenvector associated with each eigenvalue. Since the eigenvalues are distinct, B is a linearly independent set in ℂ2 with dim ℂ2 = 2. Therefore, B is a basis for ℂ2. It is straightforward to verify that the matrix representation of T in this new basis is

MB=i    00    i.

3.2.3 Multiplicity of eigenvalues

So far, we have encountered examples of linear operators whose eigenvalues are all distinct and, consequently, it was possible to construct a basis for the involved vector space consisting entirely of eigenvectors of the linear operators. However, if we take into account the multiplicity of the linear factors of the characteristic polynomial, then it is not the case that the eigenvalues of every linear operator are all distinct as we show in the following example.

Example 3.19

Let T : ℝ3 → ℝ3 be a linear operator defined by

T(x)=Ax with A=416216218.

As usual, we have fixed the canonical basis of ℝ3 and, thus, A is the matrix associated with T relative to the canonical basis.

Let us compute the characteristic polynomial of T :

p(λ)=detA λ I3=det4λ    1    62    1λ    62    1    8λ=(λ2)2(λ9).

Notice that p(λ) has two distinct real roots λ1 = 2 and λ2 = 9. However, if we take into account the multiplicity of each linear factor, then p(λ) has three roots: one double root λ1 = 2 and a single root λ2 = 9. Hence, T does not have three distinct eigenvalues and, unfortunately, this means that the existence of a basis for ℝ3 consisting entirely of eigenvectors of T is not guaranteed. At this point, we know that we can choose two linearly independent eigenvectors: one from Eλ1 and another one from Eλ2 because λ1λ2. But it is not clear if a third appropriate eigenvector exists or, even worse, where to find it.

However, if we are lucky enough, one of the eigenspaces could have dimension 2 and, therefore, we could obtain the missing third eigenvector from such eigenspace. In fact, this is precisely what happens in this example. You can verify that

Eλ1=Span1/210 , 301 and Eλ2=Span111.

Fortunately, dim Eλ1 = 2 and, therefore, we can choose two linearly independent eigenvectors associated with λ1; for instance

B=1/210 , 301.

Moreover, the set obtained from B by adding any eigenvector associated with λ2 will be linearly independent (because λ1λ2). In total, we have three linearly independent eigenvectors that can be used to construct a basis for ℝ3. For example, This means that the set

B=1/210 , 301 , 111,

is a basis for ℝ3 consisting entirely of eigenvectors of T.

The following example shows that not every linear operator T : VV admits enough linearly independent eigenvectors to constitute a basis for V.

Example 3.20

Fix the canonical basis of ℝ3, and let T : ℝ3 → ℝ3 be a linear operator defined by

T(x)=Ax with A=223022002.

Let us examine the eigenvalues and eigenvectors of T.

(1). First, we find the eigenvalues. The characteristic polynomial of T is

p(λ)=detA λ I3=det2λ2302λ2002λ=(2λ)3

Therefore, λ = 2 is a triple root of p(λ) which, in turn, is the only eigenvalue of T.

(2) The corresponding eigenspace for λ = 2 is E2 = Nul(A - 2 I3). We have

E2=NulA 2 I3=Nul0    2    30    0    20    0    0=Nul0    1    00    0    10    0    0=Span100.

In this case, T only admits one linearly independent eigenvector since dim E2 = 1. Therefore, it is not possible to produce a basis for ℝ3 consisting entirely of eigevenctors of T.

There are two quantities that play an important role in the general analysis of the eigenspaces of a linear operator: the multiplicity of each eigenvalue as a root of the characteristic polynomial and the dimension of the corresponding eigenspaces. These quantities deserve their own terminology.

Definition 3.8

Let T : VV be a linear operator and let p(x) be its characteristic polynomial. For each distinct eigenvalue λ of T, we have

p(x) = (x - λ)mλ q(λ),

where q(x) is a non zero polynomial such that q(λ) ≠ 0, and mλ is a positive integer.

(a) We say that mλ is the algebraic multiplicity of λ.

(b) We say that dim Eλ is the geometric multiplicity of λ.

The following theorem states the relationship between the algebraic and geometric multiplicities of the eigenvalues of a linear operator.

Theorem 3.14

Let T : VV be a linear operator. Then, for each distinct eigenvalue λ,

1 ≤ dim Eλ.

3.2.4 Diagonalization of linear operators

Now, we return to the original motivation of this chapter: given a linear operator T : VV, find a basis of V such that the matrix associated with T is a diagonal matrix. Let us introduce the following definition.

Definition 3.9

A linear operator T : VV is said to be diagonalizable if there is a basis C = {c1, c2, …, cn} of V made up entirely of eigenvectors of T.

If a linear operator is diagonalizable, then its associated matrix relative to the basis of eigenvector C is of the form

MC=λ1                λ2                                λn

where T(ci) = λi ci, for i = 1, 2, …, n (see the introductory comments of this section). As we saw before, not every linear operator is diagonalizable.

An immediate consequence of the above definition is the following theorem.

Theorem 3.15

Let T : VV be a linear operator and n = dim V. Then T is diagonalizable if and only if it admits n linear independent eigenvectors.

The previous theorem, together with Theorem 3.10, yields the following result.

Corollary 3.1

Let T : VV be a linear operator and n = dim V. If T has n distinct eigenvalues, then T is diagonalizable.

Observe that from Definition 3.8, we have that T has n distinct eigenvalues if and only if mλ = 1; that is, each eigenvalue of T has algebraic multiplicity equal to 1. Furthermore, by Theorem 3.14, this means that dim Eλ = 1 for each eigenvalue λ.

In general, however, a linear operator may admit eigenvalues with algebraic multiplicity greater than 1. In this general setting, a linear operator is diagonalizable if and only if, for each eigenvalue λ with algebraic multiplicity mλ, there are mλ linear independent eigenvectors associated with λ. We formalize this fact in the following theorem.

Theorem 3.16

For a linear operator T : VV, let λ1, λ2, …, λk, be all the distinct eigenvalues of T. Then T is diagonalizable if and only if

dim Eλ1 + dim Eλ2 + … + dim Eλk = dim V.

Equivalently, T is diagonalizable if and only if

dim Eλj = mλj, for j = 1,2, …, k.

Now, we turn our attention the the associated matrix of a diagonalizable linear operator.

Theorem 3.17

Let T : VV be a diagonalizable linear operator, n = dim V. Then there is a basis for V, C = {c1, …, cn}, formed by eigenvectors of T; that is, T (ci) = λi ci for i = 1, 2, …, n. Moreover, the matrix associated with T relative to C is a diagonal matrix given by

MC=λ1                λ2                                λn

Some remarks are in order. In Theorem 3.17, the associated matrix MC is a diagonal matrix with the eigenvalues of T in its main diagonal. If B is a different basis for V, then

MB=PBCMCPBC1

where the change of basis matrix is given by

PBC=c1BcnB.

Notice that the columns of this change of basis matrix are the coordinates of the eigenvectors of T relative to B. Moreover, the eigenvalues of T appear in the main diagonal of MC in the same order as the corresponding eigenvectors in the basis C.

Most textbooks present the topic of diagonalization of linear operators as a method for factorizing matrices (referring to the associated matrix MMCB) into a product P D P-1, where P is an invertible matrix and D is a diagonal matrix. However, these notes are intended to approach diagonalization from an operator point of view.

Finally, observe that we have total freedom in choosing the order of the eigenvectors in the basis C. This means that the diagonal associated matrix for T is only uniquely determined up to the order in which the eigenvectors of T appear in C.

Example 3.21

Fix the standard basis of ℝ3. Let T : ℝ3 → ℝ3 be a linear operator defined by T (x) = Ax, with

A=1    3    33    5    33    3    1

If possible, diagonalize the linear operator T.

(1) First, we find the eigenvalues. The characteristic equation is

p(λ)=detA λ I3=det1λ3335λ3331λ=(λ1)(λ+2)2.

Therefore, the eigenvalues of T are λ1 = 1 and λ2 = −2 with algebraic multiplicities mλ1 = 1 and mλ2 = 2, respectively.

(2) Now we find the eigenvectors.

(a) For λ1 = 1, we have mλ1 = 1, so we expect know that dim Eλ1 = 1. Indeed,

Eλ1=NulA I3=Nul0    3    33    6    33    3    0=Span111.

(b) For λ2 = -2 with mλ2 = 2, we have 1 ≤ dim Eλ2 ≤ 2. Let us compute

Eλ2=NulA + 2 I3=Nul3    3    33    3    33    3    3=Span110 , 101.

Therefore, dim Eλ2 = 2.

Since dim Eλ1 + dim Eλ2 = dimℝ3, by Theorem 3.16, T is diagonalizable.

(3) Let us compute a diagonal associated matrix for T. For this, we must construct a basis for ℝ3 consisting entirely of eigenvectors. We are free to choose the order of the eigenvectors, but we need to be consistent. Let

C=111 , 110 , 101

be the basis of eigenvectors. Then, A = P D P-1 with

D=1    0    00    2    00    0    2,P=1    1    11    1    01    0    1.

Here, DMC and PPE3C (ε3 denotes the canonical basis).

Example 3.22

Fix the canonical basis of ℝ3. Let T : ℝ3 → ℝ3 defined by T (x) = Ax, with

A=2    4    34    6    33    3    1.

If possible, diagonalize the linear operator T.

(1) First, we find the eigenvalues. The characteristic equation is

p(λ)=detA λ I3=det2λ4346λ3331λ=(λ1)(λ+2)2.

Therefore, the eigenvalues of T are λ1 = 1 and λ2 = -2 with algebraic multiplicities mλ1 = 1 and mλ2 = 2, respectively. Note that the characteristic polynomial is identical to the one of the previous example, and therefore the eigenvalues are the same as well.

(2) Now we find the eigenvectors. Let us start examining the eigenvectors associated with λ2 = −2 with mλ2 = 2, since there resides the only possiblility for the matrix not being diagonalizable if dim Eλ2mλ2. We compute

Eλ2=NulA + 2 I3=Nul4    4    34    4    33    3    3=Nul1    1    00    0    10    0    0=Span110.

Since dim Eλ2mλ2, it is not possible to find a basis for ℝ3 consisting entirely of eigenvectors of T and, therefore, T is not diagonalizable.