线性代数 · free preview

MIT 18.06 Problem Set 8

Orthogonal projection, orthogonal bases and least-squares fitting.

1. MIT 18.06 Problem Set 8 — how this assessment works

This lesson reproduces the Problem Set “MIT 18.06 Problem Set 8” from MIT OpenCourseWare 18.06 Linear Algebra (Spring 2010) (https://ocw.mit.edu/courses/18-06-linear-algebra-spring-2010/), licensed under CC BY-NC-SA 4.0. Work through 13 problems in order: type your reasoning in the answer box or write it on the handwriting pad, then submit for AI grading.

How the grading works Every problem is graded by an AI mathematics teacher that reads the official solution shipped with the course. It checks your work criterion by criterion, awards partial credit for correct steps, and returns written feedback. Equivalent mathematics and valid alternative methods are accepted — a different route to the same result can still earn full marks.

If your answer is incomplete, the feedback names exactly which steps are missing, so you can correct them and try again.

2. MIT 18.06 PSET8 Problem 1 — Skew-symmetric systems: conserved length and orthogonal $e^{At}$ (4 pts)

The matrix in this question is skew-symmetric (AT=−AA^{\mathrm{T}}=-A):

dudt=[0c−b−c0ab−a0]uu1′=cu2−bu3or u2′=au3−cu1u3′=bu1−au2\frac{d\mathbf{u}}{dt}=\begin{bmatrix} 0 & c &-b \\ -c & 0 & a \\ b &-a & 0 \end{bmatrix} \mathbf{u} \quad \begin{array}{l} u_1'=cu_2-bu_3 \\ \text{or } u_2'=au_3-cu_1 \\ u_3'=bu_1-au_2 \end{array}

(a) The derivative of ∥u(t)∥2=u12+u22+u33\|\mathbf{u}(t)\|^2=u_1^2+u_2^2+u_3^3 is 2u1u1′+2u2u2′+2u3u3′2u_1u_1'+2u_2u_2'+2u_3u_3'. Substitute u1′,u2′,u3′u_1', u_2', u_3' to get zero. Then ∥u(t)∥2\|\mathbf{u}(t)\|^2 stays equal to ∥u(0)∥2\|\mathbf{u}(0)\|^2.

(b) When AA is skew-symmetric, Q=eAtQ=e^{At} is orthogonal. Prove QT=e−AtQ^{\mathrm{T}}=e^{-At} from the series for Q=eAtQ=e^{At}. Then QTQ=IQ^{\mathrm{T}}Q=I.

3. MIT 18.06 PSET8 Problem 2 — Matrix exponential via diagonalization (4 pts)

Write A=[1300]A=\begin{bmatrix} 1 & 3 \\ 0 & 0 \end{bmatrix} as SΛS−1S\Lambda S^{-1}. Multiply SeΛtS−1Se^{\Lambda t}S^{-1} to find the matrix exponential eAte^{At}. Check eAte^{At} and the derivative of eAte^{At} when t=0t=0.

4. MIT 18.06 PSET8 Problem 3 — Leapfrog for $y'' = -y$ at $\Delta t = 1$: $A^6 = I$ (12 pts)

Centering y′′=−yy''=-y in Example 3 will produce Yn+1−2Yn+Yn−1=−(Δt)2YnY_{n+1}-2Y_n+Y_{n-1}=-(\Delta t)^2 Y_n. This can be written as a one-step difference equation for U=(Y,Z)\mathbf{U}=(Y, Z):

Yn+1=Yn+ΔtZnZn+1=Zn−ΔtYn+1[10Δt1][Yn+1Zn+1]=[1Δt01][YnZn].\begin{array}{c} Y_{n+1}=Y_n+\Delta t Z_n \\ Z_{n+1}=Z_n-\Delta t Y_{n+1} \end{array} \quad [ \begin{array}{cc} 1 & 0 \\ \Delta t & 1 \end{array} ] [ \begin{array}{c} Y_{n+1} \\ Z_{n+1} \end{array} ]=[ \begin{array}{cc} 1 & \Delta t \\ 0 & 1 \end{array} ] [ \begin{array}{c} Y_n \\ Z_n \end{array} ].

Invert the matrix on the left side to write this as Un+1=AUn\mathbf{U}_{n+1}=A\mathbf{U}_n. Show that det⁡A=1\det A=1. Choose the large time step Δt=1\Delta t=1 and find the eigenvalues λ1\lambda_1 and λ2=λ1‾\lambda_2=\overline{\lambda_1} of AA:

A=[11−10]has ∣λ1∣=∣λ2∣=1. Show that A6 is exactly I.A=[ \begin{array}{cc} 1 & 1 \\ -1 & 0 \end{array} ] \quad \text{has } |\lambda_1|=|\lambda_2|=1. \text{ Show that } A^6 \text{ is exactly } I.

After 6 steps to t=6t=6, U6\mathbf{U}_6 equals U0\mathbf{U}_0. The exact y=cos⁡ty=\cos t returns to 1 at t=2πt=2\pi.

5. MIT 18.06 PSET8 Problem 4 — Leapfrog at the stability border: $\Delta t = \sqrt{2}$ and $\Delta t = 2$ (12 pts)

The centered choice (leapfrog method) in Problem 28 is very successful for small time steps Δt\Delta t. But find the eigenvalues of AA for Δt=2\Delta t=\sqrt{2} and 2:

A=[12−2−1]andA=[12−2−3]A=[ \begin{array}{cc} 1 & \sqrt{2} \\ -\sqrt{2} &-1 \end{array} ] \quad \text{and} \quad A=[ \begin{array}{cc} 1 & 2 \\ -2 &-3 \end{array} ]

Both matrices have ∣λ∣=1|\lambda|=1. Compute A4A^4 in both cases and find the eigenvectors of AA. That value Δt=2\Delta t=2 is at the border of instability. Time steps Δt>2\Delta t > 2 will lead to ∣λ∣>1|\lambda| > 1, and the powers in Un=AnU0\mathbf{U}_n=A^n \mathbf{U}_0 will explode.

Note. You might say that nobody would compute with Δt>2\Delta t > 2. But if an atom vibrates with y′′=−1000000yy''=-1000000y, then Δt>.0002\Delta t > .0002 will give instability. Leapfrog has a very strict stability limit. Yn+1=Yn+3ZnY_{n+1}=Y_n+3Z_n and Zn+1=Zn−3Yn+1Z_{n+1}=Z_n-3Y_{n+1} will explode because Δt=3\Delta t=3 is too large.

6. MIT 18.06 PSET8 Problem 5 — Trapezoidal method for $y'' = -y$: an orthogonal step matrix (12 pts)

Another good idea for y′′=−yy''=-y is the trapezoidal method (half forward/half back): This may be the best way to keep (Yn,Zn)(Y_n, Z_n) exactly on a circle.

Trapezoidal[1−Δt/2Δt/21][Yn+1Zn+1]=[1Δt/2−Δt/21][YnZn]\text{Trapezoidal} \quad \begin{bmatrix} 1 &-\Delta t/2 \\ \Delta t/2 & 1 \end{bmatrix} \begin{bmatrix} Y_{n+1} \\ Z_{n+1} \end{bmatrix}=\begin{bmatrix} 1 & \Delta t/2 \\ -\Delta t/2 & 1 \end{bmatrix} \begin{bmatrix} Y_n \\ Z_n \end{bmatrix}

(a) Invert the left matrix to write this equation as Un+1=AUn\mathbf{U}_{n+1}=A\mathbf{U}_n. Show that AA is an orthogonal matrix: ATA=IA^{\mathrm{T}}A=I. These points Un\mathbf{U}_n never leave the circle. A=(I−B)−1(I+B)A=(I-B)^{-1}(I+B) is always an orthogonal matrix if BT=−BB^{\mathrm{T}}=-B.

(b) (Optional MATHLAB) Take 32 steps from U0=(1,0)\mathbf{U}_0=(1,0) to U32\mathbf{U}_{32} with Δt=2π/32\Delta t=2\pi/32. Is U32=U0\mathbf{U}_{32}=\mathbf{U}_0? I think there is a small error.

7. MIT 18.06 PSET8 Problem 6 — A symmetric matrix with a negative eigenvalue (4 pts)

(a) Find a symmetric matrix [1bb1]\begin{bmatrix} 1 & b \\ b & 1 \end{bmatrix} that has a negative eigenvalue.

(b) How do you know it must have a negative pivot?

(c) How do you know it can't have two negative eigenvalues?

8. MIT 18.06 PSET8 Problem 7 — Flaw in the "all eigenvalues are real" proof (4 pts)

Here is a quick "proof" that the eigenvalues of all real matrices are real:

False proofAx=λx gives xTAx=λxTx so λ=xTAxxTx is real.\text{False proof} \quad A\mathbf{x}=\lambda\mathbf{x} \text{ gives } \mathbf{x}^{\mathrm{T}}A\mathbf{x}=\lambda\mathbf{x}^{\mathrm{T}}\mathbf{x} \text{ so } \lambda=\frac{\mathbf{x}^{\mathrm{T}}A\mathbf{x}}{\mathbf{x}^{\mathrm{T}}\mathbf{x}} \text{ is real.}

Find the flaw in this reasoning—a hidden assumption that is not justified. You could test those steps on the 90-degree rotation matrix [0−110]\begin{bmatrix} 0 &-1 \\ 1 & 0 \end{bmatrix} with λ=i\lambda=i and x=(i,1)\mathbf{x}=(i, 1).

9. MIT 18.06 PSET8 Problem 8 — Matrix classes and factorizations of $A$ and $B$ (4 pts)

Which of these classes of matrices do AA and BB belong to: Invertible, orthogonal, projection, permutation, diagonalizable, Markov?

A=[001010100]B=13[111111111].A=\begin{bmatrix} 0 & 0 & 1 \\ 0 & 1 & 0 \\ 1 & 0 & 0 \end{bmatrix} \qquad B=\frac{1}{3} \begin{bmatrix} 1 & 1 & 1 \\ 1 & 1 & 1 \\ 1 & 1 & 1 \end{bmatrix}.

Which of these factorizations are possible for AA and BB: LULU, QRQR, SΛS−1S\Lambda S^{-1}, QΛQTQ\Lambda Q^{\mathrm{T}}?

10. MIT 18.06 PSET8 Problem 9 — Eigenvalues of a 2-by-2 Hermitian matrix (12 pts)

For complex matrices, the symmetry AT=AA^{\mathrm{T}}=A that produces real eigenvalues changes to A‾T=A\overline{A}^{\mathrm{T}}=A. From det⁡(A−λI)=0\det(A-\lambda I)=0, find the eigenvalues of the 2 by 2 "Hermitian" matrix

A=[42+i2−i0]=A‾TA=[ \begin{array}{cc} 4 & 2+i \\ 2-i & 0 \end{array} ]=\overline{A}^{\mathrm{T}}

To see why eigenvalues are real when A‾T=A\overline{A}^{\mathrm{T}}=A, adjust equation (1) of the text to A‾x‾=λ‾x‾\overline{A}\overline{\mathbf{x}}=\overline{\lambda}\overline{\mathbf{x}}.

Transpose to x‾TA‾T=x‾Tλ‾\overline{\mathbf{x}}^{\mathrm{T}}\overline{A}^{\mathrm{T}}=\overline{\mathbf{x}}^{\mathrm{T}}\overline{\lambda}. With A‾T=A\overline{A}^{\mathrm{T}}=A, reach equation (2): λ=λ‾\lambda=\overline{\lambda}.

11. MIT 18.06 PSET8 Problem 10 — Diagonal entries are bounded by the largest eigenvalue (12 pts)

If λmax\lambda_{max} is the largest eigenvalue of a symmetric matrix AA, no diagonal entry can be larger than λmax\lambda_{max}. What is the first entry a11a_{11} of A=QΛQTA=Q\Lambda Q^T? Show why a11≤λmaxa_{11} \leq \lambda_{max}.

12. MIT 18.06 PSET8 Problem 11 — The square of a Markov matrix is Markov (4 pts)

Prove that the square of a Markov matrix is also a Markov matrix.

13. MIT 18.06 PSET8 Problem 12 — Markov differential equation $du/dt = (A-I)u$ (4 pts)

A Markov differential equation is not du/dt=Audu/dt=Au but du/dt=(A−I)udu/dt=(A-I)u. The diagonal is negative, the rest of A−IA-I is positive. The coulmns add to zero.

Find the eigenvalues of B=A−I=[−0.20.30.2−0.3]B=A-I=\begin{bmatrix}-0.2 & 0.3 \\ 0.2 &-0.3 \end{bmatrix}. Why does A−IA-I have λ=0\lambda=0?

When eλ1te^{\lambda_1 t} and eλ2te^{\lambda_2 t} multiply x1\mathbf{x}_1 and x2\mathbf{x}_2, what is the steady state as t→∞t \to \infty?

14. MIT 18.06 PSET8 Problem 13 — Limits of powers of a singular Markov matrix (12 pts)

(Markov again) This matrix has zero determinant. What are its eigenvalues?

A=[.4.2.3.2.4.3.4.4.4].A=\begin{bmatrix} .4 & .2 & .3 \\ .2 & .4 & .3 \\ .4 & .4 & .4 \end{bmatrix}.

Find the limits of Aku0A^k\mathbf{u}_0 starting from u0=(1,0,0)\mathbf{u}_0=(1, 0, 0) and then u0=(100,0,0)\mathbf{u}_0=(100, 0, 0).

Practice this interactively

Free account · instant grading · spaced review that schedules itself.

Start this course for free