Jump to content

Linear Algebra/Diagonalizability/Solutions

From Wikibooks, open books for an open world

Solutions

[edit | edit source]
This exercise is recommended for all readers.
Problem 1

Repeat Example 2.5 for the matrix from Example 2.2.

Answer

Because the basis vectors are chosen arbitrarily, many different answers are possible. However, here is one way to go; to diagonalize

T=(4−211)

take it as the representation of a transformation with respect to the standard basis T=Repℰ2,ℰ2(t) and look for B=⟨β→1,β→2⟩ such that

RepB,B(t)=(λ100λ2)

that is, such that t(β→1)=λ1 and t(β→2)=λ2.

(4−211)β→1=λ1⋅β→1(4−211)β→2=λ2⋅β→2

We are looking for scalars x such that this equation

(4−211)(b1b2)=x⋅(b1b2)

has solutions b1 and b2, which are not both zero. Rewrite that as a linear system

(4−x)⋅b1+−2⋅b2=01⋅b1+(1−x)⋅b2=0

If x=4 then the first equation gives that b2=0, and then the second equation gives that b1=0. The case where both b's are zero is disallowed so we can assume that x≠4.

→(−1/(4−x))ρ1+ρ2(4−x)⋅b1+−2⋅b2=0((x2−5x+6)/(4−x))⋅b2=0

Consider the bottom equation. If b2=0 then the first equation gives b1=0 or x=4. The b1=b2=0 case is disallowed. The other possibility for the bottom equation is that the numerator of the fraction x2−5x+6=(x−2)(x−3) is zero. The x=2 case gives a first equation of 2b1−2b2=0, and so associated with x=2 we have vectors whose first and second components are equal:

β→1=(11)(so (4−211)(11)=2⋅(11), and λ1=2).

If x=3 then the first equation is b1−2b2=0 and so the associated vectors are those whose first component is twice their second:

β→2=(21)(so (4−211)(21)=3⋅(21), and so λ2=3).

This picture

shows how to get the diagonalization.

(2003)=(1211)−1(4−211)(1211)

Comment. This equation matches the T=PSP−1 definition under this renaming.

T=(2003)P=(1211)−1P−1=(1211)S=(4−211)
Problem 2

Diagonalize these upper triangular matrices.

  1. (−2102)
  2. (5401)
Answer
  1. Setting up
    (−2102)(b1b2)=x⋅(b1b2)⟹(−2−x)⋅b1+b2=0(2−x)⋅b2=0
    gives the two possibilities that b2=0 and x=2. Following the b2=0 possibility leads to the first equation (−2−x)b1=0 with the two cases that b1=0 and that x=−2. Thus, under this first possibility, we find x=−2 and the associated vectors whose second component is zero, and whose first component is free.
    (−2102)(b10)=−2⋅(b10)β→1=(10)
    Following the other possibility leads to a first equation of −4b1+b2=0 and so the vectors associated with this solution have a second component that is four times their first component.
    (−2102)(b14b1)=2⋅(b14b1)β→2=(14)
    The diagonalization is this.
    (1104)−1(−2102)(1104)−1(−2002)
  2. The calculations are like those in the prior part.
    (5401)(b1b2)=x⋅(b1b2)⟹(5−x)⋅b1+4⋅b2=0(1−x)⋅b2=0
    The bottom equation gives the two possibilities that b2=0 and x=1. Following the b2=0 possibility, and discarding the case where both b2 and b1 are zero, gives that x=5, associated with vectors whose second component is zero and whose first component is free.
    β→1=(10)
    The x=1 possibility gives a first equation of 4b1+4b2=0 and so the associated vectors have a second component that is the negative of their first component.
    β→1=(1−1)
    We thus have this diagonalization.
    (110−1)−1(5401)(110−1)=(5001)
This exercise is recommended for all readers.
Problem 3

What form do the powers of a diagonal matrix have?

Answer

For any integer p,

(d100⋱dn)p=(d1p00⋱dnp).
Problem 4

Give two same-sized diagonal matrices that are not similar. Must any two different diagonal matrices come from different similarity classes?

Answer

These two are not similar

(0000)(1001)

because each is alone in its similarity class.

For the second half, these

(2003)(3002)

are similar via the matrix that changes bases from ⟨β→1,β→2⟩ to ⟨β→2,β→1⟩. (Question. Are two diagonal matrices similar if and only if their diagonal entries are permutations of each other's?)

Problem 5

Give a nonsingular diagonal matrix. Can a diagonal matrix ever be singular?

Answer

Contrast these two.

(2001)(2000)

The first is nonsingular, the second is singular.

This exercise is recommended for all readers.
Problem 6

Show that the inverse of a diagonal matrix is the diagonal of the inverses, if no element on that diagonal is zero. What happens when a diagonal entry is zero?

Answer

To check that the inverse of a diagonal matrix is the diagonal matrix of the inverses, just multiply.

(a1,100a2,2⋱an,n)(1/a1,1001/a2,2⋱1/an,n)

(Showing that it is a left inverse is just as easy.)

If a diagonal entry is zero then the diagonal matrix is singular; it has a zero determinant.

Problem 7

The equation ending Example 2.5

(110−1)−1(3201)(110−1)=(3001)

is a bit jarring because for P we must take the first matrix, which is shown as an inverse, and for P−1 we take the inverse of the first matrix, so that the two −1 powers cancel and this matrix is shown without a superscript −1.

  1. Check that this nicer-appearing equation holds.
    (3001)=(110−1)(3201)(110−1)−1
  2. Is the previous item a coincidence? Or can we always switch the P and the P−1?
Answer
  1. The check is easy.
    (110−1)(3201)=(330−1)(330−1)(110−1)−1=(3001)
  2. It is a coincidence, in the sense that if T=PSP−1 then T need not equal P−1SP. Even in the case of a diagonal matrix D, the condition that D=PTP−1 does not imply that D equals P−1TP. The matrices from Example 2.2 show this.
    (1211)(4−211)=(605−1)(605−1)(1211)−1=(−612−611)
Problem 8

Show that the P used to diagonalize in Example 2.5 is not unique.

Answer

The columns of the matrix are chosen as the vectors associated with the x's. The exact choice, and the order of the choice was arbitrary. We could, for instance, get a different matrix by swapping the two columns.

Problem 9

Find a formula for the powers of this matrix Hint: see Problem 3.

(−31−42)
Answer

Diagonalizing and then taking powers of the diagonal matrix shows that

(−31−42)k=13(−11−44)+(−23)k(4−14−1).
This exercise is recommended for all readers.
Problem 10

Diagonalize these.

  1. (1100)
  2. (0110)
Answer
  1. (110−1)−1(1100)(110−1)=(1000)
  2. (111−1)−1(0110)(110−1)=(100−1)
Problem 11

We can ask how diagonalization interacts with the matrix operations. Assume that t,s:V→V are each diagonalizable. Is ct diagonalizable for all scalars c? What about t+s? t∘s?

Answer

Yes, ct is diagonalizable by the final theorem of this subsection.

No, t+s need not be diagonalizable. Intuitively, the problem arises when the two maps diagonalize with respect to different bases (that is, when they are not simultaneously diagonalizable). Specifically, these two are diagonalizable but their sum is not:

(1100)(−1000)

(the second is already diagonal; for the first, see Problem 10). The sum is not diagonalizable because its square is the zero matrix.

The same intuition suggests that t∘s is not be diagonalizable. These two are diagonalizable but their product is not:

(1000)(0110)

(for the second, see Problem 10).

This exercise is recommended for all readers.
Problem 12

Show that matrices of this form are not diagonalizable.

(1c01)c≠0
Answer

If

P(1c01)P−1=(a00b)

then

P(1c01)=(a00b)P

so

(pqrs)(1c01)=(a00b)(pqrs)(pcp+qrcr+s)=(apaqbrbs)

The 1,1 entries show that a=1 and the 1,2 entries then show that pc=0. Since c≠0 this means that p=0. The 2,1 entries show that b=1 and the 2,2 entries then show that rc=0. Since c≠0 this means that r=0. But if both p and r are 0 then P is not invertible.

Problem 13

Show that each of these is diagonalizable.

  1. (1221)
  2. (xyyz)x,y,z scalars
Answer
  1. Using the formula for the inverse of a 2×2 matrix gives this.
    (abcd)(1221)⋅1ad−bc⋅(d−b−ca)=1ad−bc(ad+2bd−2ac−bc−ab−2b2+2a2+abcd+2d2−2c2−cd−bc−2bd+2ac+ad)
    Now pick scalars a,…,d so that ad−bc≠0 and 2d2−2c2=0 and 2a2−2b2=0. For example, these will do.
    (111−1)(1221)⋅1−2⋅(−1−1−11)=1−2(−6002)
  2. As above,
    (abcd)(xyyz)⋅1ad−bc⋅(d−b−ca)=1ad−bc(adx+bdy−acy−bcz−abx−b2y+a2y+abzcdx+d2y−c2y−cdz−bcx−bdy+acy+adz)
    we are looking for scalars a,…,d so that ad−bc≠0 and −abx−b2y+a2y+abz=0 and cdx+d2y−c2y−cdz=0, no matter what values x, y, and z have. For starters, we assume that y≠0, else the given matrix is already diagonal. We shall use that assumption because if we (arbitrarily) let a=1 then we get
    −bx−b2y+y+bz=0(−y)b2+(z−x)b+y=0
    and the quadratic formula gives
    b=−(z−x)±(z−x)2−4(−y)(y)−2yy≠0
    (note that if x, y, and z are real then these two b's are real as the discriminant is positive). By the same token, if we (arbitrarily) let c=1 then
    dx+d2y−y−dz=0(y)d2+(x−z)d−y=0
    and we get here
    d=−(x−z)±(x−z)2−4(y)(−y)2yy≠0
    (as above, if x,y,z∈ℝ then this discriminant is positive so a symmetric, real, 2×2 matrix is similar to a real diagonal matrix). For a check we try x=1, y=2, z=1.
    b=0±0+16−4=∓1d=0±0+164=±1
    Note that not all four choices (b,d)=(+1,+1),…,(−1,−1) satisfy ad−bc≠0.