7 routes42 sections324 units

Unit 1.6 · about 6 h

56 / 324

Eigenvalues, symmetric and positive-semidefinite matrices

Symmetry turns a matrix into independent orthogonal directions. The signs of its eigenvalues then decide whether its quadratic form is a valid squared length or has a downhill direction.

  • derive

You can now

  • Derive a symmetric eigendecomposition and explain why a general square matrix may not diagonalize.
  • Give the spectral-theorem induction argument, including the invariant orthogonal complement.
  • Prove the eigenvalue test for PSD and the Gram-matrix singularity criterion.

Covers

  • Eigenvalues, eigenvectors, diagonalization and spectral reasoning
  • Symmetric and positive-semidefinite matrices; Gram matrices

Study, in this order

3 steps

  1. Eigenvectors, diagonalization and symmetric matrices
    MIT 18.06 - Linear Algebra

    Video Lectures 21 and 22, Eigenvalues and eigenvectors and Diagonalization and powers of A; Lecture 25, Symmetric matrices and positive definiteness; Lecture 27, Positive definite matrices and minima

    Depth · Focus Lecture 25 on real eigenvalues and orthogonal eigenvectors; learn the conjugate-transpose argument even though the worked matrices are real. In Lecture 27, focus on quadratic-form tests, not optimization applications.

  2. Gram matrices and the spectral theorem
    Mathematics for Machine Learning

    Chapter 4, section 4.2, Theorems 4.14 and 4.15 on p. 111 and Example 4.8 on pp. 111 to 112; section 4.4 (pp. 115 to 119)

    Depth · Check the Gram proof line by line. For repeated eigenvalues, distinguish an orthonormal eigenbasis that exists from an arbitrary basis returned for the eigenspace. Leave Jordan form.

  3. Positive definite and semidefinite matrices
    MIT 18.065 - Applied matrix bridge

    Lecture 5, Positive Definite and Semidefinite Matrices

Focus on

  • A real symmetric matrix has an orthonormal eigenbasis. Distinct eigenvalues imply orthogonality; repeated eigenvalues require choosing an orthonormal basis within the eigenspace.
  • Complete the spectral-theorem proof by showing that the complement of one unit eigenvector is invariant under \(A\), then induct on dimension. State the eigenvalue-existence fact you use.
  • For symmetric \(A=Q\Lambda Q^\top\), \(x^\top Ax=\sum_i \lambda_i (q_i^\top x)^2\). PSD means every eigenvalue is nonnegative; positive definite means every eigenvalue is positive.
  • \(A^\top A\) is PSD since \(x^\top A^\top Ax=\|Ax\|_2^2\). It is singular exactly when \(A\) has a nontrivial kernel.

Reproduce closed-book

Give the spectral-theorem induction proof using the steps in self-test, then derive the PSD eigenvalue test and the Gram singularity criterion. By hand diagonalize \(S=\left[\begin{smallmatrix}2&1\\1&2\end{smallmatrix}\right]\): eigenvalues 1 and 3, with unit eigenvectors \((1,-1)/\sqrt{2}\) and \((1,1)/\sqrt{2}\). Contrast it with \(J=\left[\begin{smallmatrix}1&1\\0&1\end{smallmatrix}\right]\), which has only a one-dimensional eigenspace. Check S once in NumPy: S=np.array([[2,1],[1,2]],dtype=np.float64); lam,Q=np.linalg.eigh(S), with no random draws. Compute norm(S-(Q*lam)@Q.T,'fro') and norm(Q.T@Q-I,'fro'). The reference values are 6.5e-16 and 3.2e-16; require both below 1e-12, and lam within vector 2-norm 1e-12 of (1,3).

Traps

  • A positive diagonal does not imply PSD: \(\left[\begin{smallmatrix}1&2\\2&1\end{smallmatrix}\right]\) has eigenvalue -1 and its quadratic form at \((1,-1)\) is -2.
  • Invertibility does not imply diagonalizability. The worked \(J\) is invertible but defective.
  • The PSD eigenvalue test assumes symmetry. Do not classify a nonsymmetric matrix using only signs of its eigenvalues, or silently pass it to eigh.

Practice

18.06 Problem set 8: diagonal entries and the largest eigenvalue

Problem set 8, Problem 10 (Strang 4th ed., section 6.4, #30)

Prove \(a_{11}\le \lambda_{\max}\) using orthonormal coordinates. Attempt before the official solution. The section mini-project should add power iteration with a separated dominant magnitude, a tied-magnitude failure and an eigen-residual check.

MML Exercise 4.5: invertibility versus diagonalizability

Chapter 4, Exercise 4.5, printed p. 137

Classify all four 2 by 2 matrices. Exhibit enough independent eigenvectors, or the missing eigenspace dimension, rather than relying on a software label.

Self-test

  1. How do you complete the spectral-theorem proof, including its assumptions and base case?

  2. Why are eigenvectors for distinct eigenvalues orthogonal?

  3. Why is PSD equivalent to nonnegative eigenvalues for a symmetric matrix?

  4. When is \(A^\top A\) singular?

Completion criterion

Stop when

You give the spectral-theorem proof with its base case and invariant complement, diagonalize \(S\), and prove or refute PSD claims using a quadratic-form witness or the symmetric spectrum.

Mark passed, then open 1.7 Only mark this when you can do it without notes.

Leads to

Resources for this unit

  • MIT 18.06 - Linear Algebra
    MIT OpenCourseWareprimarycourse
    Follow lectures 1-10, 14-17, 21-22, 25, 27, 29-31 and 33 with matching problems. This is the ordered first pass.
  • MIT 18.065 - Applied matrix bridge
    MIT OpenCourseWarerequiredapplication
    Use lectures 3-10 after 18.06 for SVD, PCA, low-rank approximation, matrix norms and solver difficulty.
  • Mathematics for Machine Learning
    Deisenroth, Faisal & Ongreferencetheory
    Use Chapters 2-4 and §10.2 to check notation or re-derive a result. Do not treat it as a second course.

Also in this section

  • MIT 6.042J - Proof strand
    MIT OpenCourseWarerequiredpractice
    Study textbook Chapters 1 and 3, §§4.1-4.4 and §§5.1-5.4 with matching Unit 1 problems. Leave the rest of the course.
  • Introduction to Applied Linear Algebra
    Boyd & Vandenberghesupportpractice
    Sample Chapters 1-13 and the extra exercises for computational practice in fitting, least squares and pseudoinverses.
  • Essence of Linear Algebra
    3Blue1Brownoptionalintuition
    Open only when a geometric picture is missing; it does not replace derivation or problem solving.
  • NumPy broadcasting and matmul shape rules
    NumPy Developersreferencedocumentation
    Read General broadcasting rules and Broadcastable arrays, then matmul Notes for stacked matrices and one-dimensional promotion. These close the pool's array-semantics gap.
  • Fundamentals of Numerical Computation: conditioning and operation counts
    Driscoll & Braunreferencetheory
    Python edition, section 2.8 through Residual and backward error for the fixed-matrix perturbation bound; section 2.5.3 for triangular-solve and LU flop counts. Use Exercise 2.8.7 for a condition-number proof, not the unseeded Hilbert experiment.

Quick find

Search Michi

Type to search every route, section, unit, topic and resource.

Enter opens the first result Esc closes

Reference

Keyboard shortcuts

n
Continue to the first unit not passed
j / k
Next / previous unit
1 2 3
Toggle learned, practised, passed
/
Open search
?
Show this help
Esc
Close open panels