Unit 6 of 8 · about 6 hours · derive

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.

You'll be able to

  • 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 reasoningSymmetric and positive-semidefinite matrices; Gram matrices
1

Read

In this order, only the parts listed

0 of 3 done

  1. Eigenvectors, diagonalization and symmetric matricesMIT 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

    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 theoremMathematics 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)

    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 matricesMIT 18.065 - Applied matrix bridge

    Lecture 5, Positive Definite and Semidefinite Matrices

2

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 , then induct on dimension. State the eigenvalue-existence fact you use.
  • For symmetric , . PSD means every eigenvalue is nonnegative; positive definite means every eigenvalue is positive.
  • is PSD since . It is singular exactly when has a nontrivial kernel.
Common mistakes · 3
  • A positive diagonal does not imply PSD: has eigenvalue -1 and its quadratic form at is -2.
  • Invertibility does not imply diagonalizability. The worked 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.
3

Try it yourself

Closed-book, before checking anything

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 : eigenvalues 1 and 3, with unit eigenvectors and . Contrast it with , 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).
4

Quiz yourself

Answer first, then mark it. Missed ones go to Review.

0 got · 0 missed

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

    For the real entry and unit basis suffice. For , the characteristic polynomial has a complex root by the fundamental theorem of algebra, hence an eigenpair . Real symmetry gives , so is real and ; therefore is real. A nonzero real or imaginary part of gives a real eigenvector , which can be normalized. For perpendicular to , , using symmetry. Thus 's complement is invariant. In an orthonormal basis its restriction is real symmetric of dimension ; the induction hypothesis supplies an orthonormal eigenbasis there. Adjoin .

  2. 2.Why are eigenvectors for distinct eigenvalues orthogonal?Answer

    For real symmetric , , so . Distinct and allow division by , forcing . This argument alone does not handle repeated eigenvalues.

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

    Symmetry supplies the orthonormal spectral decomposition. Nonnegative eigenvalues make every term in the quadratic-form sum nonnegative. Conversely, testing the form on each unit eigenvector gives its eigenvalue, so PSD forces each to be nonnegative.

  4. 4.When is singular?Answer

    If for nonzero , then . Conversely, implies , so . Real Euclidean positive definiteness is used at the last step. Thus the Gram matrix is singular iff the columns of are dependent.

5

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 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.

You're done when

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

Only when you can do this without notes.

Leads to

Notes

Resources · 3 for this unit, 5 more in the section
  • MIT 18.06 - Linear AlgebraMIT OpenCourseWare · primary

    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 bridgeMIT OpenCourseWare · required

    Use lectures 3-10 after 18.06 for SVD, PCA, low-rank approximation, matrix norms and solver difficulty.

  • Mathematics for Machine LearningDeisenroth, Faisal & Ong · reference

    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 strandMIT OpenCourseWare · required

    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 AlgebraBoyd & Vandenberghe · support

    Sample Chapters 1-13 and the extra exercises for computational practice in fitting, least squares and pseudoinverses.

  • Essence of Linear Algebra3Blue1Brown · optional

    Open only when a geometric picture is missing; it does not replace derivation or problem solving.

  • NumPy broadcasting and matmul shape rulesNumPy Developers · reference

    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 countsDriscoll & Braun · reference

    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.