BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Problem Set 7: determinants, eigenvalues and powers of a matrix

Eight problems of our own on Lectures 18 to 22: the rules that define the determinant, a determinant by elimination, by the big formula and by cofactors, a family of tridiagonal determinants, the inverse from cofactors and Cramer's rule, areas and volumes, eigenvalues and eigenvectors with a shift and a parameter, powers of a matrix from its diagonalisation, and a recurrence and when a matrix with a repeated eigenvalue can be diagonalised.

You need this first

Full reading path (16 pages)
  1. Vectors (8.01)
  2. Vectors and the dot product (18.02)
  3. Determinants and the cross product (18.02)
  4. Planes through three points, and matrices (18.02)
  5. Equations of planes and square systems (18.02)
  6. The geometry of linear equations (18.06)
  7. Elimination with matrices (18.06)
  8. Matrix multiplication and inverse matrices (18.06)
  9. Factorization into A = LU (18.06)
  10. Transposes, permutations and vector spaces (18.06)
  11. Properties of determinants (18.06)
  12. Determinant formulas and cofactors (18.06)
  13. Cramer's rule, the inverse matrix and volume (18.06)
  14. Column space and nullspace (18.06)
  15. Eigenvalues and eigenvectors (18.06)
  16. Diagonalisation and powers of A (18.06)
On this page · 10 sections
  1. How to answer
  2. What you need from the lessons
  3. Problem 1
  4. Problem 2
  5. Problem 3
  6. Problem 4
  7. Problem 5
  8. Problem 6
  9. Problem 7
  10. Problem 8

This set practises five lessons: properties of determinants (Lecture 18), determinant formulas and cofactors (Lecture 19), Cramer's rule, the inverse and volume (Lecture 20), eigenvalues and eigenvectors (Lecture 21) and diagonalisation and powers of A (Lecture 22). Differential equations and Markov matrices belong to Problem Set 8, symmetric and positive definite matrices to Problem Set 9.

MIT's 18.06 problem sets assign exercises from a textbook that is not openly licensed, so this set is made of our own problems on the same lectures, in MIT's lecture order. No MIT or textbook problem is used: every matrix and every number below is ours, and so are the hints and the solutions. The formulas come from the lessons and from the lecture transcripts they cite.

How to answer#

Work each problem on paper first. Then type or choose your result in the answer box and press Check.

Give a number answer to 3 significant figures and keep 4 in intermediate steps; an answer with only 2 significant figures may or may not be accepted. Where a box needs more digits, its label says so.

A number box wants a decimal number, not a fraction or a root: write 0.750.75, not 3/43/4. A number box accepts any value within 0.010.01 of the exact one, or within 0.0050.005 when the exact value is below 1 in size, so give at least three decimal places when the answer is not a whole number. A matrix cannot be typed: a box asks for a determinant, one entry or cofactor, an eigenvalue, a component, a count, an area or a volume, or you choose from a list. Entries are numbered by row, then column, starting from 1 (so C12C_{12} is the cofactor in the first row, second column).

A formula box takes plain typing, for example 6*5^k + k/2, and accepts every correct way of writing the answer. Type ^ for a power.

Some parts ask you to show something. They have no answer box: write your argument, then open the solution and mark yourself. MIT gives no points for these problems: the points here (100 in all) and their split between the parts are ours. If you are stuck, open the hints one at a time. Each part ends with its full solution. Try before you open it: an answer given after its solution was opened earns no points. Your score is kept in this browser only.

What you need from the lessons#

Properties of determinants (Lecture 18). Three rules define the determinant of an n×nn \times n matrix: det⁡I=1\det I = 1 (pp. 1–2); exchanging two rows reverses the sign (pp. 2–3); and the determinant is linear in each row separately, with the other rows fixed: a factor in one row comes out, and a sum in one row splits the determinant into two (pp. 3–4). It is not linear in the whole matrix (pp. 4–5). From these rules: subtracting a multiple of one row from another leaves the determinant unchanged (p. 8), so it is the product of the pivots, with a minus sign for an odd number of row exchanges (p. 11); a triangular matrix has the product of its diagonal as determinant (pp. 10–11). Further rules:

Products, inverses, multiples and transposes
det⁡AB=(det⁡A)(det⁡B),det⁡A−1=1det⁡A,det⁡2A=2ndet⁡A,det⁡AT=det⁡A\det AB = (\det A)(\det B), \qquad \det A^{-1} = \frac{1}{\det A}, \qquad \det 2A = 2^n\det A, \qquad \det A^T = \det A
In words

the determinant of capital A capital B equals ( the determinant of capital A )( the determinant of capital B ), the determinant of capital A to the power minus 1 equals 1 over the quantity the determinant of capital A, the determinant of 2 capital A equals 2 to the power n the determinant of capital A, the determinant of capital A ^ capital T equals the determinant of capital A

Formulas and cofactors (Lecture 19). The big formula is a sum of n!n! terms (pp. 10–11). Each term is a product of nn entries, one from each row and each column; read row by row, their column numbers are a permutation of 1,…,n1, \dots, n, and the term has a plus sign for an even permutation, a minus sign for an odd one. The cofactor CijC_{ij} is (−1)i+j(-1)^{i+j} times the determinant of size n−1n - 1 left after removing row ii and column jj (pp. 20–21), and along any row

Cofactor formula
det⁡A=ai1Ci1+ai2Ci2+⋯+ainCin\det A = a_{i1}C_{i1} + a_{i2}C_{i2} + \cdots + a_{in}C_{in}
In words

the determinant of capital A equals a i one capital C i one plus a i two capital C i two plus and so on plus a sub in capital C i n

Inverse, Cramer's rule and volume (Lecture 20). With CC the matrix of cofactors,

Inverse from cofactors
A−1=1det⁡A CT,ACT=(det⁡A) IA^{-1} = \frac{1}{\det A}\,C^T, \qquad AC^T = (\det A)\,I
In words

capital A to the power minus 1 equals 1 over the quantity the determinant of capital A, times capital C ^ capital T, capital A capital C ^ capital T equals ( the determinant of capital A ) capital I

and the solution of Ax=bAx = b is xj=det⁡Bj/det⁡Ax_j = \det B_j/\det A, where BjB_j is AA with column jj replaced by bb (pp. 11–13). The volume of the box whose edges are the rows of a 3×33 \times 3 matrix is ∣det⁡A∣|\det A| (pp. 14–16), and for a triangle with corners (x1,y1)(x_1, y_1), (x2,y2)(x_2, y_2), (x3,y3)(x_3, y_3):

Area of a triangle
area=12∣det⁡(x1y11x2y21x3y31)∣\text{area} = \frac{1}{2}\left|\det\begin{pmatrix} x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \\ x_3 & y_3 & 1 \end{pmatrix}\right|
In words

area equals one half the absolute value of the determinant of x one y one 1; x two y two 1; x three y three 1

(Strang writes the determinant and says the triangle is half of a parallelogram; the factor 12\frac12 is written into the formula here, as in the lesson.)

Eigenvalues (Lecture 21). Ax=λxAx = \lambda x with x≠0x \neq 0 needs A−λIA - \lambda I singular:

Characteristic equation
det⁡(A−λI)=0\det(A - \lambda I) = 0
In words

the determinant of the quantity capital A minus lambda capital I, equals 0

Each eigenvector is then found in the nullspace of A−λIA - \lambda I (pp. 10–11). The eigenvalues add up to the trace (p. 8) and multiply to the determinant (p. 20); for 2×22 \times 2 the equation is λ2−(trace⁡)λ+det⁡A=0\lambda^2 - (\operatorname{trace})\lambda + \det A = 0 (p. 14). Adding 3I3I adds 33 to every eigenvalue and keeps the eigenvectors (p. 17), and so does any multiple of II. A triangular matrix has its eigenvalues on the diagonal (pp. 24–25), and a repeated eigenvalue may come with too few eigenvectors (pp. 25–26).

Diagonalisation and powers (Lecture 22). With nn independent eigenvectors in the columns of SS and the eigenvalues in the diagonal matrix Λ\Lambda:

Diagonalisation and powers
A=SΛS−1,Ak=SΛkS−1A = S\Lambda S^{-1}, \qquad A^k = S\Lambda^kS^{-1}
In words

capital A equals S capital lambda S to the power minus 1, capital A to the power k equals S capital lambda to the power k S to the power minus 1

For a difference equation uk+1=Auku_{k+1} = Au_k, write u0u_0 as a combination of eigenvectors; each part is multiplied by its own eigenvalue at every step:

Solution by eigenvectors
u0=c1x1+⋯+cnxn⇒uk=Aku0=c1λ1kx1+⋯+cnλnkxnu_0 = c_1x_1 + \cdots + c_nx_n \quad\Rightarrow\quad u_k = A^ku_0 = c_1\lambda_1^kx_1 + \cdots + c_n\lambda_n^kx_n
In words

u nought equals c one x one plus and so on plus c sub n x sub n which gives u sub k equals capital A to the power k u nought equals c one lambda one to the power k x one plus and so on plus c sub n lambda n to the power k x sub n

Distinct eigenvalues guarantee nn independent eigenvectors (p. 9). For a repeated eigenvalue, the algebraic multiplicity counts it as a root of the characteristic polynomial, the geometric multiplicity counts its independent eigenvectors (the dimension of the nullspace of A−λIA - \lambda I); when the two differ, AA cannot be diagonalised (pp. 12–13). Lecture 22 turns the Fibonacci rule into a first-order system with the matrix (1110)\begin{pmatrix} 1 & 1 \\ 1 & 0 \end{pmatrix} acting on a vector of two neighbouring Fibonacci numbers (p. 18).

Problem 1#

Problem

Rules without a formula

12 points

AA is a 4×44 \times 4 matrix with det⁡A=−2\det A = -2. Its entries are not given: use only the rules of Lecture 18.

(a)4 points

Find det⁡(3A)\det(3A).

Hint

Multiplying the matrix by 33 multiplies every one of its rows by 33. How often does a factor come out?

Solution

The idea. Linearity in each row (property 3 of Lecture 18) takes one factor 33 out of each of the four rows.

The factors

Tripling a 4 × 4 matrix
det⁡(3A)=34det⁡A=81⋅(−2)=−162\det(3A) = 3^4\det A = 81 \cdot (-2) = -162
In words

the determinant of (3 capital A ) equals 3 to the power 4 the determinant of capital A equals 81 times (-2) equals minus 162

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 1(a) (our own solution)

Check

For A=IA = I (a 4×44 \times 4 identity), 3I3I is diagonal with four entries 33, whose product is 81=3481 = 3^4.

(b)3 points

Find det⁡(A3(2A)−1)\det\left(A^3(2A)^{-1}\right).

Hint

Split the determinant of the product into a product of determinants, then deal with the inverse and the factor 22 one at a time.

Solution

The idea. The product rule, the rule for the inverse and the rule for a multiple, used together.

The pieces

det⁡A3=(det⁡A)3=−8\det A^3 = (\det A)^3 = -8. det⁡(2A)=24det⁡A=−32\det(2A) = 2^4\det A = -32, so det⁡(2A)−1=−132\det(2A)^{-1} = -\frac{1}{32}. Together:

The product
det⁡(A3(2A)−1)=(−8)⋅(−132)=14=0.25\det\left(A^3(2A)^{-1}\right) = (-8)\cdot\left(-\tfrac{1}{32}\right) = \tfrac14 = 0.25
In words

the determinant of ( capital A cubed (2 capital A ) to the power minus 1 ) equals (-8) times (- 1 over 32 ) equals one quarter equals 0.25

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 1(b) (our own solution)

Check

A3(2A)−1=12A3A−1=12A2A^3(2A)^{-1} = \frac12A^3A^{-1} = \frac12A^2, and det⁡(12A2)=(12)4(det⁡A)2=416=0.25\det\left(\frac12A^2\right) = \left(\frac12\right)^4(\det A)^2 = \frac{4}{16} = 0.25.

(c)3 points

The matrix BB is made from AA in three steps: exchange rows 1 and 4; then add 77 times row 2 to row 3; then multiply row 2 by −3-3. Find det⁡B\det B.

Hint

Take the steps one at a time: what does each kind of row operation do to the determinant?

Solution

The idea. An exchange reverses the sign (property 2), adding a multiple of another row changes nothing (property 5), and a factor in one row comes out (property 3).

Step by step

After the exchange the determinant is +2+2; adding 77 times row 2 to row 3 leaves it at 22; multiplying row 2 by −3-3 gives −6-6.

Check

Each step is a multiplication by an elementary matrix EE, with det⁡E=−1\det E = -1, 11 and −3-3: (−3)(1)(−1)(−2)=−6(-3)(1)(-1)(-2) = -6.

(d)2 points

Which of these numbers can not be found from det⁡A=−2\det A = -2 alone?

Hint

Try two diagonal matrices with the same determinant and compare.

Solution

The idea. The determinant is linear in each row, not in the whole matrix: det⁡(A+B)\det(A + B) has no rule.

The ones that work

det⁡A5=(−2)5=−32\det A^5 = (-2)^5 = -32; det⁡(−A)=(−1)4det⁡A=−2\det(-A) = (-1)^4\det A = -2; det⁡(ATA−1)=(−2)⋅(−12)=1\det(A^TA^{-1}) = (-2)\cdot\left(-\frac12\right) = 1.

The one that does not

The diagonal matrices with entries (−2,1,1,1)(-2, 1, 1, 1) and (−1,2,1,1)(-1, 2, 1, 1) both have determinant −2-2. Adding II gives diagonals (−1,2,2,2)(-1, 2, 2, 2) and (0,3,2,2)(0, 3, 2, 2), with determinants −8-8 and 00.

Problem 2#

Problem

One determinant, three ways

14 points

Take the matrix

The matrix of Problem 2
M=(0301210000411020)M = \begin{pmatrix} 0 & 3 & 0 & 1 \\ 2 & 1 & 0 & 0 \\ 0 & 0 & 4 & 1 \\ 1 & 0 & 2 & 0 \end{pmatrix}
In words

capital M equals 0 3 0 1; 2 1 0 0; 0 0 4 1; 1 0 2 0

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 2 (our own problem)

(a)4 points

Find det⁡M\det M by elimination.

Hint

The first pivot position holds a zero, so start with a row exchange, and remember what it does to the sign.

Hint

After the exchange, clear the first column, then the second and third. Fractions appear in the last row only.

Solution

The idea. Eliminate to an upper triangular matrix, multiply the pivots, and change the sign once for the one exchange (Lecture 18 transcript, p. 11).

Elimination

Exchange rows 1 and 2: the rows are (2,1,0,0)(2, 1, 0, 0), (0,3,0,1)(0, 3, 0, 1), (0,0,4,1)(0, 0, 4, 1), (1,0,2,0)(1, 0, 2, 0). Row 4 minus 12\frac12 row 1 gives (0,−12,2,0)(0, -\frac12, 2, 0). Adding 16\frac16 of row 2 gives (0,0,2,16)(0, 0, 2, \frac16). Subtracting 12\frac12 of row 3 leaves (0,0,0,16−12)=(0,0,0,−13)(0, 0, 0, \frac16 - \frac12) = (0, 0, 0, -\frac13).

The pivots

Determinant of M by pivots
det⁡M=−(2⋅3⋅4⋅(−13))=−(−8)=8\det M = -\left(2 \cdot 3 \cdot 4 \cdot \left(-\tfrac13\right)\right) = -(-8) = 8
In words

the determinant of capital M equals minus (2 times 3 times 4 times (- one third ) ) equals minus (-8) equals 8

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 2(a) (our own solution)

(b)4 points

Of the 2424 terms of the big formula for det⁡M\det M, how many are not zero?

Hint

Each term uses one entry from each row and each column. Start with a row that has few nonzero entries, and see what each choice there forces in the other rows.

Solution

The idea. Zeros cut the n!n! terms down (Lecture 19 transcript, p. 16): follow the nonzero entries row by row.

The search

If row 2 uses column 1, row 4 must use column 3 (its only other nonzero entry), row 3 then uses column 4, and row 1 column 2: the term 3⋅2⋅1⋅2=123 \cdot 2 \cdot 1 \cdot 2 = 12 from the positions (1,2)(1, 2), (2,1)(2, 1), (3,4)(3, 4), (4,3)(4, 3). If row 2 uses column 2, row 1 must use column 4, row 3 column 3, row 4 column 1: the term 1⋅1⋅4⋅1=41 \cdot 1 \cdot 4 \cdot 1 = 4 from the positions (1,4)(1, 4), (2,2)(2, 2), (3,3)(3, 3), (4,1)(4, 1). There is no other way, so two terms are not zero.

Their signs

The column order (2,1,4,3)(2, 1, 4, 3) needs two exchanges: plus. The order (4,2,3,1)(4, 2, 3, 1) needs one exchange (columns 1 and 4): minus. So det⁡M=12−4=8\det M = 12 - 4 = 8, as in part (a).

(c)3 points

Find the cofactor C43C_{43} of MM (row 4, column 3).

Hint

Remove row 4 and column 3, take the 3×33 \times 3 determinant that is left, and attach the sign of the checkerboard at that position.

Solution

The idea. Cij=(−1)i+jC_{ij} = (-1)^{i+j} times the smaller determinant (Lecture 19 transcript, pp. 20–21).

The minor

The cofactor C43
C43=(−1)4+3∣031210001∣=−(1⋅∣0321∣)=−(0−6)=6C_{43} = (-1)^{4+3}\begin{vmatrix} 0 & 3 & 1 \\ 2 & 1 & 0 \\ 0 & 0 & 1 \end{vmatrix} = -\left(1 \cdot \begin{vmatrix} 0 & 3 \\ 2 & 1 \end{vmatrix}\right) = -(0 - 6) = 6
In words

capital C four three equals (-1) to the power 4 plus 3, end of power, 0 3 1; 2 1 0; 0 0 1 equals minus (1 times 0 3; 2 1 ) equals minus the quantity 0 minus 6, equals 6

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 2(c) (our own solution)

(The 3×33 \times 3 determinant was expanded along its last row, which has one nonzero entry.)

Check

Expanded down its first column instead, where only the entry 22 in row 2 is not zero, the 3×33 \times 3 determinant is −2⋅(3⋅1−1⋅0)=−6-2 \cdot (3 \cdot 1 - 1 \cdot 0) = -6, so again C43=6C_{43} = 6.

(d)3 points

Check det⁡M\det M once more with the cofactor formula along row 4. You will need one more cofactor, C41C_{41}.

This part has no answer box. Write your check, then open the solution and mark yourself.

Hint

Row 4 has only two nonzero entries, so only two cofactors are needed.

Solution

The idea. Expand along a row with many zeros.

The other cofactor

C41=(−1)5∣301100041∣C_{41} = (-1)^{5}\begin{vmatrix} 3 & 0 & 1 \\ 1 & 0 & 0 \\ 0 & 4 & 1 \end{vmatrix}. Down its middle column, the only nonzero entry is the 44, with sign −-: the 3×33 \times 3 determinant is −4∣3110∣=−4⋅(−1)=4-4\begin{vmatrix} 3 & 1 \\ 1 & 0 \end{vmatrix} = -4 \cdot (-1) = 4, so C41=−4C_{41} = -4.

The expansion

Cofactors along row 4
det⁡M=1⋅C41+0+2⋅C43+0=1⋅(−4)+2⋅6=8\det M = 1 \cdot C_{41} + 0 + 2 \cdot C_{43} + 0 = 1 \cdot (-4) + 2 \cdot 6 = 8
In words

the determinant of capital M equals 1 times capital C four one plus 0 plus 2 times capital C four three plus 0 equals 1 times (-4) plus 2 times 6 equals 8

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 2(d) (our own solution)

The three methods agree.

Problem 3#

Problem

A family of tridiagonal determinants

12 points

For each nn, let TnT_n be the n×nn \times n matrix with 33 on the main diagonal, 11 on the diagonal just above it, 22 on the diagonal just below it, and zeros elsewhere. Let Dn=det⁡TnD_n = \det T_n.

The matrices of Problem 3
Tn=(31231⋱⋱⋱23123)T_n = \begin{pmatrix} 3 & 1 & & & \\ 2 & 3 & 1 & & \\ & \ddots & \ddots & \ddots & \\ & & 2 & 3 & 1 \\ & & & 2 & 3 \end{pmatrix}
In words

capital T n equals 3 1; 2 3 1; and so on down the diagonal and so on down the diagonal and so on down the diagonal; 2 3 1; 2 3

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 3 (our own problem)

(a)3 points

Find D3D_3.

Hint

Use the 3×33 \times 3 formula, or cofactors along the first row.

Solution

The idea. A 3×33 \times 3 determinant by cofactors along row 1.

Cofactors

The determinant D3
D3=∣310231023∣=3(9−2)−1(6−0)+0=21−6=15D_3 = \begin{vmatrix} 3 & 1 & 0 \\ 2 & 3 & 1 \\ 0 & 2 & 3 \end{vmatrix} = 3(9 - 2) - 1(6 - 0) + 0 = 21 - 6 = 15
In words

D three equals 3 1 0; 2 3 1; 0 2 3 equals 3 the quantity 9 minus 2, all minus 1 the quantity 6 minus 0, all plus 0 equals 21 minus 6 equals 15

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 3(a) (our own solution)

Check

Elimination: the first pivot is 33. Row 2 minus 23\frac23 row 1 leaves the second pivot 3−23=733 - \frac23 = \frac73. Row 3 minus 67\frac67 of the new row 2 leaves the third pivot 3−67=1573 - \frac67 = \frac{15}{7}. The product is 3⋅73⋅157=153 \cdot \frac73 \cdot \frac{15}{7} = 15.

(b)4 points

Cofactors along the first row give a rule Dn=3Dn−1−qDn−2D_n = 3D_{n-1} - qD_{n-2} for n≥3n \geq 3. Find the number qq, and show why the rule holds (that step has no box).

Hint

The corner entry 33 multiplies a determinant you know. The entry 11 next to it multiplies minus a determinant whose first column has a single nonzero entry: expand that one down its first column.

Solution

The idea. The same two cofactor steps as for Lecture 19's tridiagonal matrix of ones (transcript, pp. 26–27), with other numbers.

The two cofactors

Removing row 1 and column 1 of TnT_n leaves Tn−1T_{n-1}: the corner gives 3Dn−13D_{n-1}. Removing row 1 and column 2 leaves a matrix whose first column is (2,0,…,0)(2, 0, \dots, 0); with the sign (−1)1+2=−1(-1)^{1+2} = -1 the entry 11 contributes −1⋅det⁡(…)-1 \cdot \det(\ldots). Down that first column, only the 22 survives, and removing its row and column leaves Tn−2T_{n-2}. So

The recursion
Dn=3Dn−1−1⋅2 Dn−2=3Dn−1−2Dn−2D_n = 3D_{n-1} - 1 \cdot 2\,D_{n-2} = 3D_{n-1} - 2D_{n-2}
In words

D sub n equals 3 D n minus 1 minus 1 times 2 D n minus 2 equals 3 D n minus 1 minus 2 D n minus 2

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 3(b) (our own solution)

and q=2q = 2, the product of the two off-diagonal numbers.

Check

3D2−2D1=21−6=15=D33D_2 - 2D_1 = 21 - 6 = 15 = D_3, as in part (a).

(c)5 points

Find DnD_n as a formula in nn.

Hint

Compute the first five determinants from the rule of part (b) and look at the differences between neighbours.

Solution

The idea. The rule can be rewritten as a rule for the differences, which simply double.

The differences

Subtract Dn−1D_{n-1} from both sides of the rule: Dn−Dn−1=2Dn−1−2Dn−2=2(Dn−1−Dn−2)D_n - D_{n-1} = 2D_{n-1} - 2D_{n-2} = 2(D_{n-1} - D_{n-2}). The first difference is D2−D1=7−3=4=22D_2 - D_1 = 7 - 3 = 4 = 2^2, so the difference ending at DnD_n is 2n2^n. Adding them up:

The closed form
Dn=3+22+23+⋯+2n=1+2+22+⋯+2n=2n+1−1D_n = 3 + 2^2 + 2^3 + \cdots + 2^n = 1 + 2 + 2^2 + \cdots + 2^n = 2^{n+1} - 1
In words

D sub n equals 3 plus 2 squared plus 2 cubed plus and so on plus 2 to the power n equals 1 plus 2 plus 2 squared plus and so on plus 2 to the power n equals 2 to the power n plus 1, end of power, minus 1

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 3(c) (our own solution)

(The 33 is 1+21 + 2, and a sum of the powers of 2 from 11 to 2n2^n is 2n+1−12^{n+1} - 1.) In the language of Lecture 22 this is a difference equation, and 11 and 22 are the eigenvalues of its matrix (3−210)\begin{pmatrix} 3 & -2 \\ 1 & 0 \end{pmatrix}.

Check

The rule gives 3⋅15−2⋅7=313 \cdot 15 - 2 \cdot 7 = 31 for n=4n = 4 and 3⋅31−2⋅15=633 \cdot 31 - 2 \cdot 15 = 63 for n=5n = 5; the formula gives 25−1=312^5 - 1 = 31 and 26−1=632^6 - 1 = 63.

Problem 4#

Problem

The inverse from cofactors and Cramer's rule

14 points

Take the matrix and the right-hand side

The system of Problem 4
N=(310231421),b=(505)N = \begin{pmatrix} 3 & 1 & 0 \\ 2 & 3 & 1 \\ 4 & 2 & 1 \end{pmatrix}, \qquad b = \begin{pmatrix} 5 \\ 0 \\ 5 \end{pmatrix}
In words

capital N equals 3 1 0; 2 3 1; 4 2 1, b equals 5; 0; 5

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 4 (our own problem)

(a)3 points

Find det⁡N\det N.

Hint

Cofactors along the first row: the zero saves one term.

Solution

The idea. Cofactor formula along row 1.

Cofactors

Determinant of N
det⁡N=3(3−2)−1(2−4)+0=3+2=5\det N = 3(3 - 2) - 1(2 - 4) + 0 = 3 + 2 = 5
In words

the determinant of capital N equals 3 the quantity 3 minus 2, all minus 1 the quantity 2 minus 4, all plus 0 equals 3 plus 2 equals 5

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 4(a) (our own solution)

Check

Elimination: row 2 minus 23\frac23 row 1 gives (0,73,1)(0, \frac73, 1); row 3 minus 43\frac43 row 1 gives (0,23,1)(0, \frac23, 1); then row 3 minus 27\frac27 row 2 leaves 1−27=571 - \frac27 = \frac57. Pivots 3⋅73⋅57=53 \cdot \frac73 \cdot \frac57 = 5.

(b)4 points

Use cofactors to find the entry of N−1N^{-1} in row 2, column 3.

Hint

N−1=CT/det⁡NN^{-1} = C^T/\det N. Which cofactor stands in row 2, column 3 of CTC^T?

Solution

The idea. The cofactor matrix is transposed in the inverse (Lecture 20 transcript, pp. 1–3): row 2, column 3 of N−1N^{-1} holds C32C_{32}.

The cofactor

Remove row 3 and column 2 of NN:

The cofactor C32
C32=(−1)3+2∣3021∣=−3,(N−1)23=C32det⁡N=−35=−0.6C_{32} = (-1)^{3+2}\begin{vmatrix} 3 & 0 \\ 2 & 1 \end{vmatrix} = -3, \qquad (N^{-1})_{23} = \frac{C_{32}}{\det N} = -\frac35 = -0.6
In words

capital C three two equals (-1) to the power 3 plus 2, end of power, 3 0; 2 1 equals minus 3, ( capital N to the power minus 1 ) sub 23 equals capital C three two over the quantity the determinant of capital N, equals minus three fifths equals minus 0.6

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 4(b) (our own solution)

(The cofactor C23C_{23} is −2-2: taking it instead gives −0.4-0.4, the entry of C/det⁡NC/\det N, which is not the inverse.)

Check

Row 2 of N−1N^{-1} is (C12,C22,C32)/5=(2,3,−3)/5(C_{12}, C_{22}, C_{32})/5 = (2, 3, -3)/5. Times the three columns of NN it gives (6+6−12)/5=0(6 + 6 - 12)/5 = 0, (2+9−6)/5=1(2 + 9 - 6)/5 = 1 and (0+3−3)/5=0(0 + 3 - 3)/5 = 0: the second row of II, as N−1N=IN^{-1}N = I requires.

(c)4 points

Solve Nx=bNx = b for x1x_1 by Cramer's rule. Give det⁡B1\det B_1 and x1x_1.

Hint

B1B_1 is NN with its first column replaced by bb.

Solution

The idea. Cramer's rule, xj=det⁡Bj/det⁡Ax_j = \det B_j/\det A (Lecture 20 transcript, pp. 11–13).

The determinant

Cramer for x1
det⁡B1=∣510031521∣=5(3−2)−1(0−5)+0=10,x1=105=2\det B_1 = \begin{vmatrix} 5 & 1 & 0 \\ 0 & 3 & 1 \\ 5 & 2 & 1 \end{vmatrix} = 5(3 - 2) - 1(0 - 5) + 0 = 10, \qquad x_1 = \frac{10}{5} = 2
In words

the determinant of capital B one equals 5 1 0; 0 3 1; 5 2 1 equals 5 the quantity 3 minus 2, all minus 1 the quantity 0 minus 5, all plus 0 equals 10, x one equals 10 over 5 equals 2

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 4(c) (our own solution)

Check

The same rule, with the second and then the third column replaced by bb, gives two determinants that are both −5-5, so x=(2,−1,−1)x = (2, -1, -1). Then Nx=(6−1,4−3−1,8−2−1)=(5,0,5)=bNx = (6 - 1, 4 - 3 - 1, 8 - 2 - 1) = (5, 0, 5) = b.

(d)3 points

Show that row 1 of NN times the cofactors of row 3 gives 00, and explain why it must.

This part has no answer box. Write your argument, then open the solution and mark yourself.

Hint

The cofactors of row 3 are multiplied by the entries of row 1. Which matrix has that sum as its cofactor expansion along row 3?

Solution

The idea. Off the diagonal of ACT=(det⁡A)IAC^T = (\det A)I stand expansions of matrices with two equal rows (Lecture 20 transcript, pp. 7–9).

The numbers

C31=∣1031∣=1C_{31} = \begin{vmatrix} 1 & 0 \\ 3 & 1 \end{vmatrix} = 1, C32=−3C_{32} = -3 (part b), C33=∣3123∣=7C_{33} = \begin{vmatrix} 3 & 1 \\ 2 & 3 \end{vmatrix} = 7. Then 3⋅1+1⋅(−3)+0⋅7=03 \cdot 1 + 1 \cdot (-3) + 0 \cdot 7 = 0.

The reason

The cofactors of row 3 do not depend on row 3 itself. So 3C31+1C32+0C333C_{31} + 1C_{32} + 0C_{33} is the cofactor expansion, along row 3, of the matrix whose row 3 is replaced by row 1 of NN. That matrix has two equal rows, so its determinant is 00.

Problem 5#

Problem

Areas and volumes

12 points

(a)3 points

Find the area of the triangle with corners (−2,1)(-2, 1), (3,−1)(3, -1) and (1,4)(1, 4).

Hint

Use the determinant with a column of ones, or move one corner to the origin first.

Solution

The idea. Half the absolute value of the determinant with a column of ones (Lecture 20 transcript, pp. 23–24).

The determinant

Area of the triangle
12∣det⁡(−2113−11141)∣=12∣−2(−1−4)−1(3−1)+1(12+1)∣=12⋅21=10.5\frac12\left|\det\begin{pmatrix} -2 & 1 & 1 \\ 3 & -1 & 1 \\ 1 & 4 & 1 \end{pmatrix}\right| = \frac12\left|-2(-1 - 4) - 1(3 - 1) + 1(12 + 1)\right| = \frac12 \cdot 21 = 10.5
In words

one half the absolute value of the determinant of minus 2 1 1; 3 minus 1 1; 1 4 1 equals one half the absolute value of minus 2 the quantity minus 1 minus 4, all minus 1 the quantity 3 minus 1, all plus 1 the quantity 12 plus 1, equals one half times 21 equals 10.5

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 5(a) (our own solution)

Check

Move (−2,1)(-2, 1) to the origin: the other corners become (5,−2)(5, -2) and (3,3)(3, 3). The parallelogram on these sides has area ∣5⋅3−(−2)⋅3∣=21|5 \cdot 3 - (-2) \cdot 3| = 21, and the triangle is half of it.

(b)3 points

A box in three dimensions has the edges u=(2,1,0)u = (2, 1, 0), v=(1,3,1)v = (1, 3, 1) and w=(0,2,4)w = (0, 2, 4) from one corner. Find its volume.

Hint

Put the edges in the rows of a matrix.

Solution

The idea. Volume is the absolute value of the determinant of the edge matrix (Lecture 20 transcript, pp. 14–16).

The determinant

Volume of the box
∣210131024∣=2(12−2)−1(4−0)+0=16\begin{vmatrix} 2 & 1 & 0 \\ 1 & 3 & 1 \\ 0 & 2 & 4 \end{vmatrix} = 2(12 - 2) - 1(4 - 0) + 0 = 16
In words

2 1 0; 1 3 1; 0 2 4 equals 2 the quantity 12 minus 2, all minus 1 the quantity 4 minus 0, all plus 0 equals 16

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 5(b) (our own solution)

Check

Elimination: row 2 minus 12\frac12 row 1 gives (0,52,1)(0, \frac52, 1), and row 3 minus 45\frac45 of that row leaves the third pivot 4−45=1654 - \frac45 = \frac{16}{5}. The pivots multiply to 2⋅52⋅165=162 \cdot \frac52 \cdot \frac{16}{5} = 16.

(c)3 points

Every edge is now multiplied on the right by the matrix

The matrix of Problem 5(c)
T=(102030101)T = \begin{pmatrix} 1 & 0 & 2 \\ 0 & 3 & 0 \\ 1 & 0 & 1 \end{pmatrix}
In words

capital T equals 1 0 2; 0 3 0; 1 0 1

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 5(c) (our own problem)

so the new edges are the rows uTuT, vTvT and wTwT. Find the volume of the new box without computing the new edges.

Hint

If EE has the rows uu, vv, ww, which matrix has the rows uTuT, vTvT, wTwT?

Solution

The idea. The new edge matrix is ETET, and det⁡(ET)=(det⁡E)(det⁡T)\det(ET) = (\det E)(\det T).

The product rule

Down the middle column, det⁡T=3∣1211∣=3(1−2)=−3\det T = 3\begin{vmatrix} 1 & 2 \\ 1 & 1 \end{vmatrix} = 3(1 - 2) = -3. So

The new volume
∣det⁡(ET)∣=∣det⁡E∣ ∣det⁡T∣=16⋅3=48|\det(ET)| = |\det E|\,|\det T| = 16 \cdot 3 = 48
In words

the absolute value of the determinant of (E capital T ) equals the absolute value of the determinant of E the absolute value of the determinant of capital T equals 16 times 3 equals 48

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 5(c) (our own solution)

The sign of det⁡T\det T only says that the new box has the other handedness (Lecture 20 transcript, p. 16).

Check

The new edges are uT=(2,3,4)uT = (2, 3, 4), vT=(2,9,3)vT = (2, 9, 3) and wT=(4,6,4)wT = (4, 6, 4), and det⁡=2(36−18)−3(8−12)+4(12−36)=36+12−96=−48\det = 2(36 - 18) - 3(8 - 12) + 4(12 - 36) = 36 + 12 - 96 = -48.

(d)3 points

Go back to the box of part (b), and replace the edge ww by w+5uw + 5u. What happens to the volume?

Hint

Which row operation is this, and what does it do to a determinant?

Solution

The idea. Adding a multiple of one row to another leaves the determinant unchanged (property 5).

The rule

The edge matrix gets row 3 plus 55 times row 1: its determinant stays 1616. In the picture the box is sheared: the edge ww slides along the direction of uu, its height above the face spanned by uu and vv stays the same, and so does the volume.

Check

w+5u=(10,7,4)w + 5u = (10, 7, 4), and ∣2101311074∣=2(12−7)−1(4−10)+0=10+6=16\begin{vmatrix} 2 & 1 & 0 \\ 1 & 3 & 1 \\ 10 & 7 & 4 \end{vmatrix} = 2(12 - 7) - 1(4 - 10) + 0 = 10 + 6 = 16.

Problem 6#

Problem

Eigenvalues, a shift and a borderline

14 points

Take the matrix

The matrix of Problem 6
G=(420130−126)G = \begin{pmatrix} 4 & 2 & 0 \\ 1 & 3 & 0 \\ -1 & 2 & 6 \end{pmatrix}
In words

capital G equals 4 2 0; 1 3 0; minus 1 2 6

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 6 (our own problem)

(a)4 points

Find the three eigenvalues of GG.

Hint

Expand det⁡(G−λI)\det(G - \lambda I) along the column with two zeros.

Solution

The idea. The characteristic equation det⁡(G−λI)=0\det(G - \lambda I) = 0 (Lecture 21 transcript, p. 10); the third column makes it factor at once.

The characteristic polynomial

Along column 3, only the entry 6−λ6 - \lambda is not zero:

Characteristic equation of G
det⁡(G−λI)=(6−λ)∣4−λ213−λ∣=(6−λ)(λ2−7λ+10)=(6−λ)(λ−5)(λ−2)\det(G - \lambda I) = (6 - \lambda)\begin{vmatrix} 4 - \lambda & 2 \\ 1 & 3 - \lambda \end{vmatrix} = (6 - \lambda)(\lambda^2 - 7\lambda + 10) = (6 - \lambda)(\lambda - 5)(\lambda - 2)
In words

the determinant of the quantity capital G minus lambda capital I, equals the quantity 6 minus lambda, 4 minus lambda 2; 1 3 minus lambda equals the quantity 6 minus lambda, the quantity lambda squared minus 7 lambda plus 10, equals the quantity 6 minus lambda, the quantity lambda minus 5, the quantity lambda minus 2

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 6(a) (our own solution)

So the eigenvalues are 66, 55 and 22.

Check

Sum 6+5+2=13=4+3+66 + 5 + 2 = 13 = 4 + 3 + 6, the trace. Product 6060; and det⁡G=6(12−2)=60\det G = 6(12 - 2) = 60 along column 3.

(b)3 points

Find an eigenvector for the smallest eigenvalue, scaled so that its first component is 44. Give its third component.

Hint

Solve (G−λI)x=0(G - \lambda I)x = 0: the first two rows fix the ratio of the first two components, the third row then fixes the last.

Solution

The idea. The eigenvector lies in the nullspace of G−2IG - 2I (Lecture 21 transcript, pp. 10–11).

The nullspace

G−2IG - 2I has rows (2,2,0)(2, 2, 0), (1,1,0)(1, 1, 0) and (−1,2,4)(-1, 2, 4). The first two say x1=−x2x_1 = -x_2, so x=(4,−4,x3)x = (4, -4, x_3). The third: −4−8+4x3=0-4 - 8 + 4x_3 = 0, so x3=3x_3 = 3.

Check

Gx=(16−8, 4−12, −4−8+18)=(8,−8,6)=2xGx = (16 - 8,\ 4 - 12,\ -4 - 8 + 18) = (8, -8, 6) = 2x.

(c)3 points

Without computing a new determinant, find det⁡(G−4I)\det(G - 4I).

Hint

What are the eigenvalues of G−4IG - 4I, and what does their product give?

Solution

The idea. Subtracting 4I4I subtracts 44 from every eigenvalue (Lecture 21 transcript, p. 17), and the product of the eigenvalues is the determinant (p. 20).

The shifted eigenvalues

6−4=26 - 4 = 2, 5−4=15 - 4 = 1 and 2−4=−22 - 4 = -2, so det⁡(G−4I)=2⋅1⋅(−2)=−4\det(G - 4I) = 2 \cdot 1 \cdot (-2) = -4.

Check

G−4IG - 4I has rows (0,2,0)(0, 2, 0), (1,−1,0)(1, -1, 0), (−1,2,2)(-1, 2, 2); along column 3, det⁡=2∣021−1∣=2(0−2)=−4\det = 2\begin{vmatrix} 0 & 2 \\ 1 & -1 \end{vmatrix} = 2(0 - 2) = -4.

(d)4 points

For a number tt, take

The matrix of Problem 6(d)
H=(1t−23)H = \begin{pmatrix} 1 & t \\ -2 & 3 \end{pmatrix}
In words

capital H equals 1 t; minus 2 3

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 6(d) (our own problem)

Find the largest tt for which both eigenvalues of HH are real. Then say what the eigenvectors of HH are for that tt.

Hint

The eigenvalues solve λ2−(trace)λ+det⁡H=0\lambda^2 - (\text{trace})\lambda + \det H = 0. When are the roots of a quadratic real?

Hint

For the eigenvectors, find the eigenvalue at that tt and the rank of H−λIH - \lambda I.

Solution

The idea. The roots are real when the number under the square root is not negative; at the borderline the eigenvalue is repeated, and a repeated eigenvalue can bring too few eigenvectors (Lecture 21 transcript, pp. 24–26).

The borderline

The trace is 44 and det⁡H=3+2t\det H = 3 + 2t, so λ=2±4−(3+2t)=2±1−2t\lambda = 2 \pm \sqrt{4 - (3 + 2t)} = 2 \pm \sqrt{1 - 2t}. Real roots need 1−2t≥01 - 2t \geq 0:

Borderline t
(trace⁡)2−4det⁡H=16−4(3+2t)=4−8t≥0⇔t≤12(\operatorname{trace})^2 - 4\det H = 16 - 4(3 + 2t) = 4 - 8t \geq 0 \quad\Leftrightarrow\quad t \leq \tfrac12
In words

( t r a c e ) squared minus 4 the determinant of capital H equals 16 minus 4 the quantity 3 plus 2 t, equals 4 minus 8 t is greater than or equal to 0 is equivalent to t is less than or equal to one half

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 6(d) (our own solution)

The eigenvectors at t=1/2t = 1/2

The eigenvalue 22 is repeated. H−2IH - 2I has rows (−1,12)(-1, \frac12) and (−2,1)(-2, 1): the second is twice the first, so the rank is 1 and the nullspace is a single line, through (1,2)(1, 2). HH has only one line of eigenvectors.

Check

H(1,2)=(1+1,−2+6)=(2,4)=2⋅(1,2)H(1, 2) = (1 + 1, -2 + 6) = (2, 4) = 2 \cdot (1, 2). For t=0t = 0 (below the borderline) HH is triangular with eigenvalues 11 and 33, real; for t=1t = 1 the trace is 44 and the determinant 55, so λ2−4λ+5\lambda^2 - 4\lambda + 5 has no real roots.

Problem 7#

Problem

Powers from the eigenvectors

12 points

Take the matrix

The matrix of Problem 7
K=(5−230)K = \begin{pmatrix} 5 & -2 \\ 3 & 0 \end{pmatrix}
In words

capital K equals 5 minus 2; 3 0

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 7 (our own problem)

(a)3 points

Find the eigenvalues of KK.

Hint

Use the trace and the determinant.

Solution

The idea. For 2×22 \times 2, λ2−(trace⁡)λ+det⁡=0\lambda^2 - (\operatorname{trace})\lambda + \det = 0.

The equation

Eigenvalues of K
λ2−5λ+6=(λ−3)(λ−2)=0\lambda^2 - 5\lambda + 6 = (\lambda - 3)(\lambda - 2) = 0
In words

lambda squared minus 5 lambda plus 6 equals the quantity lambda minus 3, the quantity lambda minus 2, equals 0

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 7(a) (our own solution)

Check

3+2=53 + 2 = 5, the trace; 3⋅2=6=5⋅0−(−2)⋅33 \cdot 2 = 6 = 5 \cdot 0 - (-2) \cdot 3, the determinant.

(b)5 points

Diagonalise K=SΛS−1K = S\Lambda S^{-1} and find the entry in row 2, column 1 of KkK^k as a formula in kk.

Hint

Find an eigenvector for each eigenvalue from the nullspace of K−λIK - \lambda I, put them in the columns of SS, and invert the 2×22 \times 2 matrix SS.

Hint

The entry you want is row 2 of SS, times Λk\Lambda^k, times column 1 of S−1S^{-1}.

Solution

The idea. Kk=SΛkS−1K^k = S\Lambda^kS^{-1} (Lecture 22 transcript, p. 7): only the eigenvalues are raised to the power.

The eigenvectors

K−3IK - 3I has rows (2,−2)(2, -2) and (3,−3)(3, -3): eigenvector (1,1)(1, 1). K−2IK - 2I has rows (3,−2)(3, -2) and (3,−2)(3, -2): eigenvector (2,3)(2, 3). So

Diagonalising K
S=(1213),Λ=(3002),S−1=(3−2−11)S = \begin{pmatrix} 1 & 2 \\ 1 & 3 \end{pmatrix}, \qquad \Lambda = \begin{pmatrix} 3 & 0 \\ 0 & 2 \end{pmatrix}, \qquad S^{-1} = \begin{pmatrix} 3 & -2 \\ -1 & 1 \end{pmatrix}
In words

S equals 1 2; 1 3, capital lambda equals 3 0; 0 2, S to the power minus 1 equals 3 minus 2; minus 1 1

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 7(b) (our own solution)

(det⁡S=3−2=1\det S = 3 - 2 = 1, so S−1S^{-1} is the cofactor formula of Lecture 20 with no division.)

The entry

Row 2 of SΛkS\Lambda^k is (3k,3⋅2k)(3^k, 3 \cdot 2^k). Times column 1 of S−1S^{-1}, which is (3,−1)(3, -1):

The (2, 1) entry of K to the k
(Kk)21=3⋅3k−3⋅2k=3k+1−3⋅2k(K^k)_{21} = 3 \cdot 3^k - 3 \cdot 2^k = 3^{k+1} - 3 \cdot 2^k
In words

( capital K to the power k ) sub 21 equals 3 times 3 to the power k minus 3 times 2 to the power k equals 3 to the power k plus 1, end of power, minus 3 times 2 to the power k

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 7(b) (our own solution)

Check

k=1k = 1: 9−6=39 - 6 = 3, the entry of KK. k=2k = 2: 27−12=1527 - 12 = 15, and directly row 2 of KK times column 1 of KK is 3⋅5+0⋅3=153 \cdot 5 + 0 \cdot 3 = 15.

(c)4 points

Start from u0=(4,5)u_0 = (4, 5) and step with uk+1=Kuku_{k+1} = Ku_k. Find the second component of u5u_5.

Hint

Write u0=c1x1+c2x2u_0 = c_1x_1 + c_2x_2 with the eigenvectors of part (b).

Solution

The idea. Expand the start in eigenvectors; each part is multiplied by its own eigenvalue at every step (Lecture 22 transcript, pp. 14–15).

The expansion

c1(1,1)+c2(2,3)=(4,5)c_1(1, 1) + c_2(2, 3) = (4, 5): c1+2c2=4c_1 + 2c_2 = 4 and c1+3c2=5c_1 + 3c_2 = 5, so c2=1c_2 = 1 and c1=2c_1 = 2. Then

The solution uku_k
uk=2⋅3k(11)+2k(23),second component of u5=2⋅243+3⋅32=486+96=582u_k = 2 \cdot 3^k\begin{pmatrix} 1 \\ 1 \end{pmatrix} + 2^k\begin{pmatrix} 2 \\ 3 \end{pmatrix}, \qquad \text{second component of } u_5 = 2 \cdot 243 + 3 \cdot 32 = 486 + 96 = 582
In words

u sub k equals 2 times 3 to the power k 1; 1 plus 2 to the power k 2; 3, second component of u five equals 2 times 243 plus 3 times 32 equals 486 plus 96 equals 582

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 7(c) (our own solution)

Check

Step by step, multiplying by KK five times: (10,12)(10, 12), (26,30)(26, 30), (70,78)(70, 78), (194,210)(194, 210) and (550,582)(550, 582). For large kk the 3k3^k part takes over, and uku_k turns towards the direction (1,1)(1, 1).

Problem 8#

Problem

A recurrence, and a matrix with a repeated eigenvalue

10 points

(a)2 points

The numbers gkg_k start with g0=0g_0 = 0 and g1=5g_1 = 5, and each one after that follows the rule gk+2=gk+1+6gkg_{k+2} = g_{k+1} + 6g_k. Write the rule as uk+1=Auku_{k+1} = Au_k with uk=(gk+1,gk)u_k = (g_{k+1}, g_k), as Lecture 22 does for the Fibonacci numbers (this step has no box). What number does the ratio gk+1/gkg_{k+1}/g_k approach for large kk?

Hint

The second row of AA only copies gk+1g_{k+1}. Then find the eigenvalues of AA: which one controls the growth?

Solution

The idea. As for the Fibonacci numbers (Lecture 22 transcript, pp. 18–22), the eigenvalue of largest size wins.

The matrix and its eigenvalues

The recurrence as a system
A=(1610),λ2−λ−6=(λ−3)(λ+2)=0A = \begin{pmatrix} 1 & 6 \\ 1 & 0 \end{pmatrix}, \qquad \lambda^2 - \lambda - 6 = (\lambda - 3)(\lambda + 2) = 0
In words

capital A equals 1 6; 1 0, lambda squared minus lambda minus 6 equals the quantity lambda minus 3, the quantity lambda plus 2, equals 0

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 8(a) (our own solution)

The eigenvalues are 33 and −2-2. Since ∣3∣>∣−2∣|3| > |-2|, the 3k3^k part takes over, and each number is about 33 times the one before.

Check

The first numbers are 0,5,5,35,65,275,665,23150, 5, 5, 35, 65, 275, 665, 2315, and 2315/665≈3.482315/665 \approx 3.48, then 6305/2315≈2.726305/2315 \approx 2.72 and 20195/6305≈3.2020195/6305 \approx 3.20: the ratio swings above and below 33 and closes in, because the (−2)k(-2)^k part changes sign at every step while it shrinks relative to 3k3^k.

(b)3 points

Find gkg_k for k=12k = 12 from the eigenvalues and eigenvectors.

Hint

Eigenvectors of the form (λ,1)(\lambda, 1) make the second row of A−λIA - \lambda I zero. Then expand u0=(g1,g0)u_0 = (g_1, g_0) in them.

Solution

The idea. Expand u0u_0 in eigenvectors and read off the second component of uku_k.

The expansion

The eigenvectors are (3,1)(3, 1) and (−2,1)(-2, 1). u0=(5,0)=(3,1)−(−2,1)u_0 = (5, 0) = (3, 1) - (-2, 1), so c1=1c_1 = 1 and c2=−1c_2 = -1:

The numbers gkg_k
uk=3k(31)−(−2)k(−21),gk=3k−(−2)ku_k = 3^k\begin{pmatrix} 3 \\ 1 \end{pmatrix} - (-2)^k\begin{pmatrix} -2 \\ 1 \end{pmatrix}, \qquad g_k = 3^k - (-2)^k
In words

u sub k equals 3 to the power k 3; 1 minus (-2) to the power k minus 2; 1, g k equals 3 to the power k minus (-2) to the power k

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 8(b) (our own solution)

So for k=12k = 12: 531441−4096=527345531441 - 4096 = 527345.

Check

For k=2k = 2, 33 and 44 the formula gives 9−4=59 - 4 = 5, 27+8=3527 + 8 = 35 and 81−16=6581 - 16 = 65, as the rule does. Continuing the rule, the numbers for k=10k = 10 and k=11k = 11 are 5802558025 and 179195179195, and for k=12k = 12 the rule gives 179195+6⋅58025=527345179195 + 6 \cdot 58025 = 527345.

(c)5 points

For a number hh, take

The matrix of Problem 8(c)
W=(2h1020003)W = \begin{pmatrix} 2 & h & 1 \\ 0 & 2 & 0 \\ 0 & 0 & 3 \end{pmatrix}
In words

capital W equals 2 h 1; 0 2 0; 0 0 3

Source: MIT 18.06 Lecture 22: Diagonalization and powers of A, Problem 8(c) (our own problem)

For h=4h = 4, find the geometric multiplicity of the eigenvalue 22. Then say for which hh the matrix WW can be diagonalised.

Hint

WW is triangular, so its eigenvalues are on the diagonal. The geometric multiplicity is the dimension of the nullspace of W−2IW - 2I: find its rank first.

Solution

The idea. The eigenvalue 22 appears twice on the diagonal (algebraic multiplicity 2); WW can be diagonalised only if it also has two independent eigenvectors (Lecture 22 transcript, pp. 12–13).

The rank of W − 2I

W−2IW - 2I has rows (0,h,1)(0, h, 1), (0,0,0)(0, 0, 0) and (0,0,1)(0, 0, 1). For h≠0h \neq 0 the first and third rows are independent: rank 22, so the nullspace has dimension 3−2=13 - 2 = 1. For h=4h = 4 the geometric multiplicity is 11, less than 22: WW cannot be diagonalised.

The case h=0h = 0

For h=0h = 0 the first and third rows are equal: rank 11, and the nullspace has dimension 22, spanned by (1,0,0)(1, 0, 0) and (0,1,0)(0, 1, 0). With an eigenvector for 33, W−3IW - 3I gives (1,0,1)(1, 0, 1), there are three independent eigenvectors, and WW can be diagonalised.

Check

For h=0h = 0: W(1,0,1)=(2+1,0,3)=3⋅(1,0,1)W(1, 0, 1) = (2 + 1, 0, 3) = 3 \cdot (1, 0, 1). For h=4h = 4: W(0,1,0)=(4,2,0)W(0, 1, 0) = (4, 2, 0), not a multiple of (0,1,0)(0, 1, 0).

Symbols on this page

Show the 85 symbols used here
λ\lambda lambda.
An eigenvalue of the matrix in question; in det(A − λI) also the unknown of the characteristic equation. Say it: “lambda”.
Λ\Lambda capital lambda.
The diagonal matrix of the eigenvalues, in the same order as the eigenvectors in S. Say it: “capital lambda”.
≈\approx approximately equal.
Is approximately equal to. Say it: “is approximately”.
≤\le less than or equal.
Is less than or equal to. Say it: “is less than or equal to”.
≥\ge greater than or equal.
Is greater than or equal to. Say it: “is greater than or equal to”.
≠\neq not equal.
Is not equal to. Say it: “is not equal to”.
⇒\Rightarrow implies.
Implies: what follows is a consequence of what came before. Say it: “which gives”.
⟺\Longleftrightarrow if and only if.
If and only if: each statement implies the other. Say it: “is equivalent to”.
±\pm plus or minus.
Plus or minus: both signs, or an uncertainty (67.3 ± 1.2). Say it: “plus or minus”.
×\times times.
Times (multiplication). Between two vectors: the cross product. Say it: “times”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
det⁡\det determinant.
Determinant of a matrix. Say it: “the determinant of”.
HH H.
The 2 × 2 matrix of Problem 6(d), with the number t in its first row. Say it: “capital H”.
GG G.
The 3 × 3 matrix of Problem 6. Say it: “capital G”.
kk k.
A step number or a power: Aᵏ, uₖ, gₖ. Say it: “k”.
TT T.
As a superscript, the transpose; in Problem 5(c), the 3 × 3 matrix that multiplies every edge of the box on the right. Say it: “capital T”.
xx x.
A vector: the unknown in Ax = b, or an eigenvector in Ax = λx. Say it: “x”.
tt t.
The number in row 1, column 2 of H (Problem 6(d)). Say it: “t”.
ii i.
A row number. Say it: “i”.
jj j.
A column number; in xⱼ and Bⱼ, the number of a component of x. Say it: “j”.
nn n.
The size of a square matrix (n × n); in Problem 3 also the size of Tₙ. Say it: “n”.
vv v.
The second edge of the box of Problem 5. Say it: “v”.
AA A.
A square matrix: in the reminders a general n × n matrix; in Problem 1 a 4 × 4 matrix whose entries are not given; in Problem 8(a) the 2 × 2 matrix of the recurrence. Say it: “capital A”.
BB B.
In the reminders and in the solution of 1(d), any second square matrix of the same size as A; in Problem 1(c), the matrix made from A by three row operations. Say it: “capital B”.
CC C.
The matrix of cofactors: of A in the reminders, of N in Problem 4. Say it: “capital C”.
bb b.
The right-hand side of Ax = b; in Problem 4, the vector given with N. Say it: “b”.
qq q.
The number in front of Dₙ₋₂ in the rule of Problem 3(b). Say it: “q”.
hh h.
The number in row 1, column 2 of W (Problem 8(c)). Say it: “h”.
NN N.
The 3 × 3 matrix of Problem 4. Say it: “capital N”.
MM M.
The 4 × 4 matrix of Problem 2. Say it: “capital M”.
SS S.
The eigenvector matrix, with independent eigenvectors in its columns. Say it: “S”.
aina_{\text{in}} a in.
The last entry of row i of A. Say it: “a sub in”.
uu u.
The first edge of the box of Problem 5. Say it: “u”.
EE E.
In Problem 1(c), the elementary matrix of one row operation; in Problem 5(c), the matrix whose rows are the edges u, v and w. Say it: “E”.
ww w.
The third edge of the box of Problem 5. Say it: “w”.
x1x_{1} x 1.
In the triangle formula, the first coordinate of the first corner; in the reminder on difference equations and in Problem 7, the first eigenvector; in Problems 4 and 6, the first component of the vector x. Say it: “x one”.
x2x_{2} x 2.
In the triangle formula, the first coordinate of the second corner; in Problem 7(c), the second eigenvector; in Problem 6(b), the second component of the vector x. Say it: “x two”.
y1y_{1} y 1.
The second coordinate of the first corner of a triangle. Say it: “y one”.
y2y_{2} y 2.
The second coordinate of the second corner of a triangle. Say it: “y two”.
WW W.
The 3 × 3 triangular matrix of Problem 8(c), with the number h in its first row. Say it: “capital W”.
KK K.
The 2 × 2 matrix of Problem 7. Say it: “capital K”.
xnx_{n} x n.
The last of the n eigenvectors. Say it: “x sub n”.
x3x_{3} x three.
In the triangle formula, the first coordinate of the third corner; in Problem 6(b), the third component of the vector x. Say it: “x three”.
y3y_{3} y three.
The second coordinate of the third corner of a triangle. Say it: “y three”.
II I.
The identity matrix. Say it: “capital I”.
c1c_{1} c one.
The amount of the first eigenvector in the starting vector u₀. Say it: “c one”.
c2c_{2} c two.
The amount of the second eigenvector in the starting vector u₀. Say it: “c two”.
xjx_{j} x j.
Component j of the solution x of Ax = b. Say it: “x sub j”.
B1B_{1} B 1.
The matrix N with its first column replaced by b (Problem 4(c)). Say it: “capital B one”.
C12C_{12} C one two.
The cofactor in row 1, column 2: of any matrix in How to answer, of N in Problem 4. Say it: “capital C one two”.
cnc_{n} c sub n.
The amount of the last eigenvector in the starting vector u₀. Say it: “c sub n”.
λ1\lambda_{1} lambda one.
The eigenvalue that belongs to the first eigenvector. Say it: “lambda one”.
CijC_{\text{ij}} C i j.
The cofactor in row i, column j. Say it: “capital C i j”.
C23C_{23} C two three.
The cofactor of N in row 2, column 3 (Problem 4(b)). Say it: “capital C two three”.
TnT_{n} T n.
The n × n tridiagonal matrix of Problem 3. Say it: “capital T n”.
Tn−1T_{n-1} T n minus 1.
The matrix Tₙ one size smaller. Say it: “capital T n minus 1”.
Tn−2T_{n-2} T n minus 2.
The matrix Tₙ two sizes smaller. Say it: “capital T n minus 2”.
BjB_{j} B j.
The matrix A with column j replaced by b. Say it: “capital B j”.
ai1a_{i1} a i one.
The first entry of row i of A. Say it: “a i one”.
Ci1C_{i1} C i one.
The cofactor of aᵢ₁. Say it: “capital C i one”.
CinC_{\text{in}} C i n.
The cofactor of aᵢₙ. Say it: “capital C i n”.
C22C_{22} C two two.
The cofactor of N in row 2, column 2 (Problem 4(b)). Say it: “capital C two two”.
λn\lambda_{n} lambda n.
The eigenvalue that belongs to the last eigenvector. Say it: “lambda n”.
uku_{k} u k.
The vector after k steps of a difference equation; in Problem 8(a) the pair of numbers (gₖ₊₁, gₖ). Say it: “u sub k”.
uk+1u_{k+1} u k plus 1.
The vector one step later, Auₖ. Say it: “u sub k plus 1”.
u0u_{0} u nought.
The starting vector of a difference equation uₖ₊₁ = Auₖ. Say it: “u nought”.
g0g_{0} g nought.
The first number of the sequence of Problem 8. Say it: “g nought”.
g1g_{1} g 1.
The second number of the sequence of Problem 8. Say it: “g sub 1”.
DnD_{n} D_n.
The determinant of Tₙ (Problem 3). Say it: “D sub n”.
D1D_{1} D one.
The determinant of the 1 × 1 matrix T₁ (Problem 3). Say it: “D one”.
D2D_{2} D two.
The determinant of the 2 × 2 matrix T₂ (Problem 3). Say it: “D two”.
ai2a_{i2} a i two.
The second entry of row i of A. Say it: “a i two”.
Ci2C_{i2} C i two.
The cofactor of aᵢ₂. Say it: “capital C i two”.
C43C_{43} C four three.
The cofactor of M in row 4, column 3 (Problem 2). Say it: “capital C four three”.
C41C_{41} C four one.
The cofactor of M in row 4, column 1 (Problem 2(d)). Say it: “capital C four one”.
D3D_{3} D three.
The determinant of the 3 × 3 matrix T₃ (Problem 3). Say it: “D three”.
Dn−1D_{n-1} D n minus 1.
The determinant of Tₙ₋₁, one size smaller (Problem 3). Say it: “D n minus 1”.
Dn−2D_{n-2} D n minus 2.
The determinant of Tₙ₋₂, two sizes smaller (Problem 3). Say it: “D n minus 2”.
C32C_{32} C three two.
The cofactor of N in row 3, column 2 (Problem 4). Say it: “capital C three two”.
C31C_{31} C three one.
The cofactor of N in row 3, column 1 (Problem 4(d)). Say it: “capital C three one”.
C33C_{33} C three three.
The cofactor of N in row 3, column 3 (Problem 4(d)). Say it: “capital C three three”.
u5u_{5} u five.
The vector after five steps (Problem 7(c)). Say it: “u five”.
gkg_{k} g k.
The number of the sequence of Problem 8 with index k. Say it: “g k”.
gk+1g_{k+1} g k plus 1.
The number of the sequence of Problem 8 after gₖ. Say it: “g k plus 1”.
gk+2g_{k+2} g k plus 2.
The number of the sequence of Problem 8 two places after gₖ. Say it: “g k plus 2”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 40 words used here

Also used

determinant.
A single number worked out from a square array of numbers (a matrix), which measures how the matrix stretches areas or volumes. Explained in Determinants and the cross product.
cofactor.
A minor of a matrix with a plus or minus sign attached, following a checkerboard of signs that starts with plus in the top-left corner. Explained in Planes through three points, and matrices.
Cramer's rule.
A formula that solves a set of linear equations, giving each unknown as a ratio of two determinants. Explained in Driven coupled oscillators and symmetry.
inverse.
The thing that undoes another: a matrix times its inverse gives the identity matrix, as a function followed by its inverse gives back the start. Explained in Planes through three points, and matrices.
eigenvalue.
A number λ for which a matrix turns some non-zero vector into λ times that vector, only stretching or shrinking it. Explained in Linear systems with constant coefficients: eigenvalues and eigenvectors.
eigenvector.
A non-zero vector that a matrix only stretches or shrinks without turning: multiplying it by the matrix gives a number times the same vector. Explained in Linear systems with constant coefficients: eigenvalues and eigenvectors.
diagonalise.
To rewrite a matrix in a basis of its eigenvectors, where it becomes diagonal, with its eigenvalues down the diagonal. Explained in Diagonalisation and powers of A.
differential equation.
An equation that links an unknown function to its derivatives; solving it means finding the function. Explained in Circular motion dynamics: worked problems.
Markov matrix.
A square matrix with no negative entries whose columns each add up to one; it moves probabilities or populations from one step to the next. Explained in Markov matrices and Fourier series.
symmetric.
Unchanged by some swap, reflection or turn; for an expression in two quantities, unchanged when they are exchanged. Explained in Introduction to Fourier series.
positive definite.
Of a symmetric matrix or quadratic form: always giving a positive value for any nonzero input; equivalently, all its eigenvalues are positive. Explained in Symmetric matrices and positive definiteness.
matrix.
A rectangular table of numbers, which acts on vectors to give new ones and so describes a linear change of coordinates. Explained in Planes through three points, and matrices.
MIT.
Massachusetts Institute of Technology: the university in Cambridge, USA, whose free courses this site rewrites.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
linear.
Of a map, operator or equation: respecting sums and multiples, so that L(au + bv) = aL(u) + bL(v). Explained in The geometry of linear equations.
pivot.
In elimination, the first nonzero number in a row, used to clear out the entries below it. Explained in Positive definite matrices and minima.
row exchange.
Swapping two rows of a matrix, needed in elimination when a zero sits where a pivot should be.
triangular matrix.
A square matrix with only zeros below its diagonal (upper triangular) or only zeros above it (lower triangular). Explained in Elimination with matrices.
diagonal.
In a square matrix, the entries running from the top left corner to the bottom right; a diagonal matrix has zeros everywhere else. Explained in The four fundamental subspaces.
permutation.
A rearrangement of a list of things into a new order. Explained in Elimination with matrices.
singular.
Of a square matrix: having no inverse, because its determinant is zero and some nonzero vector is sent to zero. Explained in The geometry of linear equations.
nullspace.
All the vectors x that a matrix sends to zero, that is, all solutions of Ax = 0. Explained in Column space and nullspace.
algebraic multiplicity.
How many times an eigenvalue is repeated as a root of the characteristic polynomial. Explained in Diagonalisation and powers of A.
characteristic polynomial.
The polynomial whose roots are the eigenvalues of a matrix, found as the determinant of the matrix minus λ times the identity. Explained in Diagonalisation and powers of A.
geometric multiplicity.
How many independent eigenvectors belong to one eigenvalue. Explained in Diagonalisation and powers of A.
dimension.
The number of vectors in any basis of a vector space or subspace. Explained in Independence, basis and dimension.
vector.
A list of numbers written as a column, or more generally anything that can be added and multiplied by numbers. Explained in Orthogonal vectors and subspaces.
product rule.
The rule for the derivative of a product of two functions: (fg)′ = f′g + fg′. Explained in Circular motion: tangential acceleration and angular acceleration.
elimination.
Solving equations by subtracting multiples of one from another until each unknown can be found in turn. Explained in The geometry of linear equations.
span.
The span of some vectors is everything that can be made by combining them; vectors span a space when they fill all of it. Explained in Independence, basis and dimension.
characteristic equation.
An algebraic equation whose roots give the basic solutions: the rates r in e^(rt) for a constant-coefficient equation, or a matrix's eigenvalues.
rank.
The number of independent columns of a matrix, which always equals the number of independent rows. Explained in Similar matrices and the Jordan form.

Academic

problem set.
A weekly sheet of exercises that students work through and hand in, to practise what the lectures taught.
transcript.
A written record of exactly what was said in a recorded lecture, word for word.
citation.
A note saying exactly where a statement, number or formula comes from, so readers can check it.
on paper.
In theory or in a calculation, as opposed to in a real experiment or in reality.
significant.
Large enough to matter or to be noticed; in statistics, too large to put down to chance.
argument.
A chain of reasoning that leads to a conclusion; in maths also the input of a function, such as x in sin x.
borderline.
On the boundary between two kinds of behaviour, belonging clearly to neither.
read off.
To take a value directly from a graph, table or formula, without further calculation.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).