Chapter 43. Solutions to Part Bravo

§43.1 Solution to Exercise 7.1 (rotate and reflect)

Exercise 7.1. Let 𝑇:ℝ2→ℝ2 be the linear map that rotates each vector in ℝ2 by 30° counterclockwise about the origin, then reflects around the line 𝑦=𝑥. Write 𝑇 as a 2×2 matrix.

We calculate the outputs of 𝑇 on the basis vectors 𝐞1=⟨1,0⟩ and 𝐞2=⟨0,1⟩.

For 𝐞1, we first end up with

𝐞1=⟨1,0⟩⟶⟨cos30°,sin30°⟩=⟨32,12⟩⟶⟨12,32⟩=𝑇(𝐞1)

(with the first arrow being the rotation and the second arrow being the reflection).

For 𝐞2, we end up with

𝐞2=⟨0,1⟩⟶⟨cos120°,sin120°⟩=⟨−12,32⟩⟶⟨32,−12⟩=𝑇(𝐞2).

Hence, the answer is

𝑇=(1/23/23/2−1/2).

Alternatively, one could obtain the same answer by multiplying the matrices corresponding to counterclockwise rotation and reflection around 𝑦=𝑥; that is,

𝑇=(0110)(cos30°cos120°sin30°sin120°),

which works out to the same thing. This is just an affirmation that Section 7.3 holds true: applying two transformations is the same as multiplying their corresponding matrices.

§43.2 Solution to Exercise 8.1 (birthday)

Exercise 8.1. Take your birthday and write it in eight-digit 𝑌1𝑌2𝑌3𝑌4-𝑀1𝑀2-𝐷1𝐷2 format. Consider the two vectors

𝐯1=(𝑀1𝑀2𝐷1𝐷2) and 𝐯2=(𝑌1𝑌2𝑌3𝑌4).

For example, if your birthday was May 17, 1994 you would take 𝐯1=(517) and 𝐯2=(1994).

Neither 𝐯1 nor 𝐯2 is zero, and for almost everyone the two vectors won’t be a multiple of each other. So for most people the answer is that the span is all ofℝ2.

In order to find a K-pop idol whose two vectors are linearly dependent (to get the answer “line” instead), we need to find a database of K-pop birthdays, and we need to know where to look in it. There are roughly two strategies you can adopt:

§43.3 Solution to Exercise 8.2 (maximum perpendicular vectors)

Exercise 8.2. In ℝ5, consider the vector 𝐯=⟨1,2,3,4,5⟩. Compute the maximum possible number of linearly independent vectors one can find which are all perpendicular to 𝐯.

These vectors all need to lie in a hyperplane perpendicular to 𝐯, which is a 4-dimensional space. (The entries of the vector 𝐯 are irrelevant besides 𝐯 not being the zero vector.)

§43.4 Solution to Exercise 9.1 (four 2-by-2 matrices)

Exercise 9.1. Compute the eigenvalues and eigenvectors for the following matrices:

𝐴=(1111),𝐵=(5124),𝐶=(9009),𝐷=(6106).

This is done just by following the recipe. Here are the answers.

Matrix 𝐴=(1111)

To find the eigenvalues 𝜆, we solve the characteristic equation:

det(𝐴−𝜆𝐼)=0,

where 𝐼 is the identity matrix.

𝐴−𝜆𝐼=(1−𝜆111−𝜆)det(𝐴−𝜆𝐼)=(1−𝜆)2−(1)(1)=𝜆2−2𝜆=𝜆(𝜆−2).

Thus, the eigenvalues are:

𝜆1=0,𝜆2=2

Now we compute the eigenvectors:

  • For 𝜆1=0:

    (𝐴−0𝐼)𝐯=𝐴𝐯=(1111)(𝑥𝑦)=(𝑥+𝑦𝑥+𝑦)=𝟎𝑥+𝑦=0⟹𝑦=−𝑥

    Thus, the eigenvectors corresponding to 𝜆1=0 are all the multiples of

    𝐯1=(1−1).
  • For 𝜆2=2:

    (𝐴−2𝐼)𝐯=(−111−1)(𝑥𝑦)=(−𝑥+𝑦𝑥−𝑦)=𝟎−𝑥+𝑦=0⟹𝑦=𝑥

    Thus, the eigenvectors corresponding to 𝜆2=2 are all the multiples of

    𝐯2=(11).
Matrix 𝐵=(5124)

Solve

0=det(𝐵−𝜆𝐼)=|5−𝜆124−𝜆|=𝜆2−9𝜆+18=(𝜆−6)(𝜆−3).

Thus, the eigenvalues are:

𝜆1=6,𝜆2=3.

Now we compute the eigenvectors:

  • For 𝜆1=6:

    (𝐵−6𝐼)𝐯=(−112−2)(𝑥𝑦)=(−𝑥+𝑦2𝑥−2𝑦)=𝟎−𝑥+𝑦=0⟹𝑦=𝑥

    Thus, the eigenvectors corresponding to 𝜆1=6 are the multiples of

    𝐯1=(11).
  • For 𝜆2=3:

    (𝐵−3𝐼)𝐯=(2121)(𝑥𝑦)=(2𝑥+𝑦2𝑥+𝑦)=𝟎2𝑥+𝑦=0⟹𝑦=−2𝑥

    Thus, the eigenvectors corresponding to 𝜆2=3 are the multiples of

    𝐯2=(1−2).
Matrix 𝐶=(9009)

Note the matrix 𝐶 is actually 9 times the identity matrix: hence the only eigenvalue is 9, and in fact every vector in ℝ2 is an eigenvector.

Matrix 𝐷=(6106)

Solve

det(𝐷−𝜆𝐼)=|6−𝜆106−𝜆|=(6−𝜆)2−(1)(0)=(6−𝜆)2=0

Thus, the unique eigenvalue is:

𝜆=6.

To find the eigenvector, solve

(𝐷−6𝐼)𝐯=(0100)(𝑥𝑦)=(𝑦0)=𝟎⟹𝑦=0.

Thus, the eigenvectors satisfy 𝑦=0. Therefore, the eigenvectors are all non-zero vectors of the form:

𝐯=(𝑥0).

§43.5 Solution to Exercise 9.2 (eigenvectors 5 and 7)

Exercise 9.2. Give an example of a 2×2 matrix 𝑇 with four nonzero entries whose eigenvalues are 5 and 7. Then compute the corresponding eigenvectors.

We arbitrarily pick two vectors with nonzero entries to be the eigenvectors, say:

𝐯=(11)𝐰=(1−1).

Then we seek a matrix 𝑇 such that

𝑇(11)=(55)𝑇(1−1)=(7−7).

At this point one could brute-force solve a system of equations with 𝑇=(𝑎𝑏𝑐𝑑) in four unknowns. On the other hand, it’s more economical to add the two equations and get

𝑇(20)=(12−2)⟹𝑇(𝐞1)=(6−1)

whereas if we subtract instead we get

𝑇(02)=(−212)⟹𝑇(𝐞2)=(−16).

This gives us one valid matrix:

𝑇=(6−1−16).

And we already know the eigenvectors by construction: they are the multiples of 𝐯 (for 𝜆=5) and the multiples of 𝐰 (for 𝜆=7).

§43.6 Solution to Exercise 9.3 (6-by-6 matrix eigenvectors)

Exercise 9.3 (*). Compute the eigenvectors and eigenvalues of the 6×6 matrix

(5000000−90000005000000000000080000018).

(You can do this question without using any determinants.)

The basic idea is that we can basically work with bare hands, not needing to resort to the determinants we saw before. Specifically, suppose we have a proposed nonzero eigenvector 𝐯=⟨𝑥1,𝑥2,𝑥3,𝑥4,𝑥5,𝑥6⟩, with eigenvalue 𝜆. Then we are hoping for

𝑀𝐯=(5𝑥1−9𝑥25𝑥308𝑥5𝑥5+8𝑥6)=(𝜆𝑥1𝜆𝑥2𝜆𝑥3𝜆𝑥4𝜆𝑥5𝜆𝑥6)=𝜆𝐯.

Setting each component equal, we get six equations that say the following, in order:

  1. Either 𝑥1=0 or 𝜆=5.
  2. Either 𝑥2=0 or 𝜆=−9.
  3. Either 𝑥3=0 or 𝜆=5.
  4. Either 𝑥4=0 or 𝜆=0.
  5. Either 𝑥5=0 or 𝜆=8.
  6. We have (𝜆−8)𝑥6=𝑥5. In particular, if 𝑥6≠0 then either 𝜆=8 or 𝑥5≠0, but the previous item tells us that 𝑥5≠0 forces 𝜆=8 anyway.

Since at least one of 𝑥𝑖 should be nonzero (since we always ignore 𝐯=𝟎), it follows

𝜆=−9,0,5,8

are the eigenvalues possible. And we can read off the corresponding eigenvectors from the above six numbered items:

§43.7 Solution to Exercise 9.4 (computing 𝑀20)

Exercise 9.4 (*). Using the procedure described in Section 9.8, show that

(4367)20=(33333333333333333334333333333333333333336666666666666666666666666666666666666667).

(Each number on the right-hand side is 20 digits.)

We’ll follow the idea in Section 9.8: find a basis of eigenvectors of 𝑀 and use that to compute powers of 𝑀.

As usual, to find the eigenvalues for 𝑀 we work with

0=det(𝑀−𝜆𝐼)=|4−𝜆367−𝜆|=(4−𝜆)(7−𝜆)−18=𝜆2−11𝜆+10=(𝜆−1)(𝜆−10)

so the eigenvalues are 𝜆1=1 and 𝜆2=10. Let’s find the corresponding eigenvectors again.

Hence, when raising to the 20th power, we should have

𝑀20𝐯1=120𝐯1⟹𝑀20(1−1)=(1−1)𝑀20𝐯2=1020𝐯2⟹𝑀20(12)=(10202⋅1020).

Hence, we’ve found 𝑀20 on two linearly independent vectors! As we showed in Section 9.8, this means we should be able to recover 𝑀20 on the basis vectors too.

To finish, we get the first column of 𝑀20 by computing

𝑀20(𝐞1)=𝑀20(23(1−1)+13(12))=23𝑀20(1−1)+13𝑀20(12)=((2+1020)/3(−2+2⋅1020)/3)=(100000000000000000002/3199999999999999999998/3)=(3333333333333333333466666666666666666666)

and the second column of 𝑀20 by computing

𝑀20(𝐞2)=𝑀20(13(12)−13(1−1))=13𝑀20(12)−13𝑀20(1−1)=((1020−1)/3(2⋅1020+1)/3)=(99999999999999999999/3200000000000000000001/3)=(3333333333333333333366666666666666666667).