Inner Product Spaces, Special Matrices, the Jordan Form and Quadratic Forms

The second half of Section 2 is geometry and structure. An inner product turns a vector space into a space with lengths and angles, and the Gram–Schmidt process manufactures an orthonormal basis from any basis. The special classes of matrices — symmetric, skew-symmetric, Hermitian, skew-Hermitian, normal, orthogonal and unitary — are each defined by one identity and each pin their eigenvalues to a line or a circle. The deepest result is the spectral theorem: a complex matrix can be diagonalised by a unitary matrix exactly when it is normal. For matrices that cannot be diagonalised at all, the Jordan canonical form is the next best thing, and its block structure is read off from the minimal polynomial and the dimensions of kernels. The section ends with bilinear and quadratic forms, whose classification by Sylvester’s law of inertia is a question about signs of eigenvalues.
Overview

1. Inner products, orthogonality and Gram–Schmidt

1 min read · 1 part

An inner product on a real or complex space is linear in one slot, conjugate-symmetric (⟨u, v⟩ = conj ⟨v, u⟩) and positive definite. It gives a norm ‖v‖ = √⟨v, v⟩, the Cauchy–Schwarz inequality |⟨u, v⟩| ≤ ‖u‖‖v‖ (equality iff u, v are dependent) and the triangle inequality. For a subspace W of an n-dimensional inner product space, V = W ⊕ W⊥ and dim W⊥ = n − dim W; the orthogonal projection onto W sends v to Σ⟨v, eᵢ⟩eᵢ for an orthonormal basis (eᵢ) of W.

Gram–Schmidt. From independent u₁, u₂, … set v₁ = u₁ and vₖ = uₖ − Σj<k (⟨uₖ, vⱼ⟩/⟨vⱼ, vⱼ⟩) vⱼ, then normalise. Each vₖ is orthogonal to all earlier ones and span(v₁, …, vₖ) = span(u₁, …, uₖ). Example: u₁ = (1, 1, 0), u₂ = (1, 0, 1) give v₂ = (1, 0, 1) − ½(1, 1, 0) = (½, −½, 1), with ‖v₂‖² = 3/2. In matrix form this is the QR factorisation A = QR, Q with orthonormal columns and R upper triangular.

An inner product on a real or complex space is linear in one slot, conjugate-symmetric (⟨u, v⟩ = conj ⟨v, u⟩) and positive definite. It gives a norm ‖v‖ = √⟨v, v⟩, the Cauchy–Schwarz…

2. Symmetric, Hermitian, normal, orthogonal and unitary matrices

1 min read · 1 part
Each class, its defining identity and where its eigenvalues lie
ClassDefinitionEigenvalues
real symmetric / HermitianAᵀ = A / A∗ = Areal
real skew-symmetric / skew-HermitianAᵀ = −A / A∗ = −Apurely imaginary or 0
orthogonal / unitaryQᵀQ = I / U∗U = Imodulus 1; det Q = ±1, |det U| = 1
normalAA∗ = A∗Aanywhere; eigenvectors of distinct eigenvalues are orthogonal
  • A real skew-symmetric matrix of odd order is singular: det A = det Aᵀ = det(−A) = (−1)ⁿ det A forces det A = 0.
  • Every square complex matrix is H + K uniquely, with H = (A + A∗)/2 Hermitian and K = (A − A∗)/2 skew-Hermitian; A is normal iff H and K commute.
  • Orthogonal and unitary matrices preserve inner products and lengths, ‖Ux‖ = ‖x‖; the eigenvalues of the rotation [[cos θ, −sin θ], [sin θ, cos θ]] are e±iθ, not ±1.

Each class, its defining identity and where its eigenvalues lie

3. Diagonalisation by a unitary matrix

1 min read · 3 parts

Schur’s theorem: every complex square matrix is unitarily similar to an upper triangular matrix, U∗AU = T. Spectral theorem: A is unitarily diagonalisable (U∗AU diagonal for some unitary U) if and only if A is normal. For real matrices: A is orthogonally diagonalisable (QᵀAQ diagonal with Q real orthogonal) if and only if A is symmetric.

🎯 Why a normal triangular matrix is diagonal
If T is upper triangular and TT∗ = T∗T, compare the (1, 1) entries: |t₁₁|² + |t₁₂|² + … + |t₁ₙ|² = |t₁₁|², so the first row is zero off the diagonal; induct down the rows. Schur plus this gives the spectral theorem in one line, and it also shows that a normal nilpotent matrix is 0 and a normal matrix with real eigenvalues is Hermitian.
⚠️ Diagonalisable is weaker than unitarily diagonalisable
[[1, 1], [0, 2]] has distinct eigenvalues 1 and 2, so it is diagonalisable, but its eigenvectors (1, 0) and (1, 1) are not orthogonal and AA∗ ≠ A∗A. So it is diagonalisable and not unitarily diagonalisable. [[0, 1], [−1, 0]] is real, not symmetric, and still unitarily diagonalisable over ℂ, because it is normal (it is orthogonal).

Schur’s theorem: every complex square matrix is unitarily similar to an upper triangular matrix, U∗AU = T. Spectral theorem: A is unitarily diagonalisable (U∗AU diagonal for some unitary U)…

4. The Jordan canonical form

1 min read · 2 parts

Over ℂ every square matrix is similar to a block-diagonal matrix of Jordan blocks Jk(λ) — λ on the diagonal, 1 on the superdiagonal — unique up to the order of the blocks. For each eigenvalue λ: the number of blocks is the geometric multiplicity dim ker(A − λI); the sum of their sizes is the algebraic multiplicity; the largest size is the power of (x − λ) in the minimal polynomial. The number of blocks of size ≥ k is dim ker(A − λI)k − dim ker(A − λI)k−1.

Counting Jordan forms: each eigenvalue is a partition
Characteristic / minimal polynomialBlock sizes allowedNumber of forms
(x − 2)⁴ / (x − 2)²{2, 2}, {2, 1, 1}2
(x − 2)⁶ / (x − 2)³{3, 3}, {3, 2, 1}, {3, 1, 1, 1}3
(x − 1)³(x + 1)² / (x − 1)²(x + 1)λ = 1: {2, 1}; λ = −1: {1, 1}1
⚠️ Minimal and characteristic polynomials do not always fix the form
For n ≤ 3 they do. At n = 4 they stop: J₂(0) ⊕ J₂(0) and J₂(0) ⊕ J₁(0) ⊕ J₁(0) both have characteristic polynomial x⁴ and minimal polynomial x², yet their kernels have dimensions 2 and 3, so they are not similar. The geometric multiplicity is the extra invariant that separates them.

Over ℂ every square matrix is similar to a block-diagonal matrix of Jordan blocks Jk(λ) — λ on the diagonal, 1 on the superdiagonal — unique up to the order of the blocks. For each…

5. Bilinear and quadratic forms

1 min read

A bilinear form on ℝⁿ is B(x, y) = xᵀAy; it is symmetric iff A is. A quadratic form is Q(x) = xᵀAx with A symmetric (replace any A by (A + Aᵀ)/2): Q = x² + 4xy + y² has A = [[1, 2], [2, 1]]. By the spectral theorem Q = Σλᵢyᵢ² in orthonormal eigen-coordinates. Sylvester’s law of inertia: in every diagonalisation Q = Σ dᵢzᵢ² by an invertible change of variables, the numbers p of positive and q of negative coefficients are the same; rank = p + q, and the signature is p − q.

  • Q is positive definite ⇔ all eigenvalues of A are > 0 ⇔ all leading principal minors are > 0 (Sylvester’s criterion). Positive semidefinite needs all principal minors ≥ 0, not only the leading ones: [[0, 0], [0, −1]] has leading minors 0, 0 and is not semidefinite.
  • On the unit sphere, min Q = λmin and max Q = λmax (Rayleigh quotient). For Q = 5x² + 4xy + 2y², A = [[5, 2], [2, 2]] has eigenvalues 6 and 1, so on x² + y² = 1 the form ranges over [1, 6].
  • The conic Q(x, y) = 1 is an ellipse if both eigenvalues are positive, a hyperbola if they have opposite signs; x² + 4xy + y² = 1 (eigenvalues 3, −1) is a hyperbola.

A bilinear form on ℝⁿ is B(x, y) = xᵀAy; it is symmetric iff A is. A quadratic form is Q(x) = xᵀAx with A symmetric (replace any A by (A + Aᵀ)/2): Q = x² + 4xy + y² has A = [[1, 2], [2…

Key takeaways

  • Gram–Schmidt subtracts projections onto earlier vectors; dim W + dim W⊥ = n.
  • Hermitian ⇒ real eigenvalues, skew-Hermitian ⇒ imaginary, unitary ⇒ modulus 1; an odd-order real skew-symmetric matrix is singular.
  • Unitarily diagonalisable ⇔ normal; orthogonally diagonalisable over ℝ ⇔ symmetric; diagonalisable alone is weaker.
  • Jordan blocks for λ: number = geometric multiplicity, total size = algebraic multiplicity, largest = exponent in the minimal polynomial.
  • A quadratic form is classified by the signs of the eigenvalues of its symmetric matrix; rank and signature are invariant (Sylvester).

Practice questions (24)

Attempt each one before opening the answer. Every explanation names the tempting wrong option as well as the right one, because that is where marks are lost.

  1. Which statement about eigenvalues is correct?

    1. a Hermitian matrix has real eigenvalues and a unitary matrix has eigenvalues of modulus 1
    2. a unitary matrix has real eigenvalues and a Hermitian matrix has eigenvalues of modulus 1
    3. a skew-Hermitian matrix has real eigenvalues
    4. every eigenvalue of a real orthogonal matrix is 1 or −1
    Show answer

    Answer: A — a Hermitian matrix has real eigenvalues and a unitary matrix has eigenvalues of modulus 1

    If Hv = λv with H∗ = H, then λ‖v‖² = ⟨Hv, v⟩ = ⟨v, Hv⟩ = conj(λ)‖v‖², so λ is real; if U∗U = I, ‖v‖ = ‖Uv‖ = |λ|‖v‖, so |λ| = 1. Skew-Hermitian eigenvalues are purely imaginary, and a rotation by 90° is real orthogonal with eigenvalues ±i.
  2. Let Q be a real n × n orthogonal matrix. Which statements are always true?

    1. det Q = 1 or det Q = −1
    2. every eigenvalue of Q is 1 or −1
    3. ‖Qx‖ = ‖x‖ for every x in ℝⁿ
    4. Q⁻¹ = Qᵀ
    Show answer

    Answer: A — det Q = 1 or det Q = −1; C — ‖Qx‖ = ‖x‖ for every x in ℝⁿ; D — Q⁻¹ = Qᵀ

    (1) det(QᵀQ) = (det Q)² = 1. (3) ‖Qx‖² = xᵀQᵀQx = xᵀx. (4) is the definition QᵀQ = I for a square matrix.
    (2) is false: the rotation [[0, −1], [1, 0]] is orthogonal with eigenvalues ±i; the real eigenvalues, if any, are ±1, but complex ones of modulus 1 occur.
  3. Gram–Schmidt applied to u₁ = (1, 1, 0) and u₂ = (1, 0, 1) in ℝ³ (standard inner product), without normalising, gives v₁ = u₁ and v₂. The value of ‖v₂‖² is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 1.5

    v₂ = u₂ − (⟨u₂, v₁⟩/⟨v₁, v₁⟩)v₁ = (1, 0, 1) − (1/2)(1, 1, 0) = (1/2, −1/2, 1). Check v₂·v₁ = 1/2 − 1/2 + 0 = 0. ‖v₂‖² = 1/4 + 1/4 + 1 = 1.5. Forgetting to divide by ⟨v₁, v₁⟩ = 2 gives (0, −1, 1) and 2.
Show the other 21 questions
  1. The dimension of the orthogonal complement in ℝ⁴ of span{(1, 1, 1, 1), (1, −1, 0, 0)} is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 2

    The two vectors are independent (indeed orthogonal), so W has dimension 2 and dim W⊥ = 4 − 2 = 2. Concretely W⊥ = {x : x₁ + x₂ + x₃ + x₄ = 0, x₁ = x₂}, spanned by (0, 0, 1, −1) and (1, 1, −1, −1).
  2. Which of these complex matrices are unitarily diagonalisable?

    1. [[0, 1], [−1, 0]]
    2. [[1, 1], [0, 2]]
    3. [[1, i], [i, 1]]
    4. [[1, 1], [0, 1]]
    Show answer

    Answer: A — [[0, 1], [−1, 0]]; C — [[1, i], [i, 1]]

    Unitarily diagonalisable ⇔ normal.
    (1) is real orthogonal, hence normal. (3): A∗ = [[1, −i], [−i, 1]] and AA∗ = A∗A = 2I, so normal (it is I + iS with S real symmetric).
    (2) is diagonalisable (eigenvalues 1, 2) but AA∗ = [[2, 2], [2, 4]] ≠ A∗A = [[1, 1], [1, 5]]. (4) is not even diagonalisable.
  3. For every real 3 × 3 skew-symmetric matrix A,

    1. det A = 0
    2. all eigenvalues of A are real
    3. A is invertible
    4. trace A ≠ 0
    Show answer

    Answer: A — det A = 0

    det A = det Aᵀ = det(−A) = (−1)³ det A, so det A = 0. The eigenvalues are 0 and a pair ±iθ, which are not real unless A = 0. The diagonal of a skew-symmetric matrix is zero, so the trace is 0.
  4. A complex normal matrix all of whose eigenvalues are real must be

    1. Hermitian
    2. unitary
    3. skew-Hermitian
    4. nilpotent
    Show answer

    Answer: A — Hermitian

    By the spectral theorem A = UDU∗ with U unitary and D diagonal holding the eigenvalues. If D is real, A∗ = UD∗U∗ = UDU∗ = A. It need not be unitary (2I is normal with real eigenvalues and not unitary), and a normal nilpotent is 0.
  5. Let A be an n × n complex matrix. Which statements are true?

    1. A is unitarily similar to an upper triangular matrix
    2. if A is normal and nilpotent then A = 0
    3. every diagonalisable matrix is normal
    4. eigenvectors of a normal matrix belonging to distinct eigenvalues are orthogonal
    Show answer

    Answer: A — A is unitarily similar to an upper triangular matrix; B — if A is normal and nilpotent then A = 0; D — eigenvectors of a normal matrix belonging to distinct eigenvalues are orthogonal

    (1) is Schur’s theorem.
    (2) A normal A = UDU∗; nilpotent forces every eigenvalue, hence D, to be 0. (4) For normal A, Av = λv implies A∗v = conj(λ)v, and then λ⟨v, w⟩ = ⟨Av, w⟩ = ⟨v, A∗w⟩ = μ⟨v, w⟩.
    (3) is false: [[1, 1], [0, 2]] is diagonalisable and not normal.
  6. A 5 × 5 complex matrix A has characteristic polynomial (x − 3)⁵, minimal polynomial (x − 3)², and dim ker(A − 3I) = 3. The number of Jordan blocks of size 2 in its Jordan form is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 2

    There are 3 blocks (the geometric multiplicity), the largest has size 2 (the minimal polynomial), and the sizes sum to 5. With sizes in {1, 2}: a + b = 3 blocks and a + 2b = 5 give b = 2 blocks of size 2 and a = 1 of size 1, i.e. {2, 2, 1}.
  7. Up to the order of the blocks, the number of distinct Jordan canonical forms of a 6 × 6 complex matrix with characteristic polynomial (x − 2)⁶ and minimal polynomial (x − 2)³ is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 3

    Each form is a partition of 6 whose largest part is exactly 3: {3, 3}, {3, 2, 1}, {3, 1, 1, 1}. That is 3. Counting partitions with largest part at most 3 (7 of them) forgets that the minimal polynomial forces a block of size exactly 3.
  8. For the real quadratic form Q(x, y) = x² + 4xy + y², which statements are true?

    1. Q is indefinite
    2. Q has rank 2 and signature p − q equal to 0
    3. Q(1, −1) < 0
    4. Q is positive semidefinite
    Show answer

    Answer: A — Q is indefinite; B — Q has rank 2 and signature p − q equal to 0; C — Q(1, −1) < 0

    The matrix [[1, 2], [2, 1]] has eigenvalues 3 and −1: one positive, one negative, so p = q = 1, rank 2, signature 0, indefinite; (4) fails. Directly Q(1, −1) = 1 − 4 + 1 = −2 < 0 while Q(1, 1) = 6 > 0.
  9. The rank of the real quadratic form Q(x, y, z) = (x + y + z)² + (x − y)² is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 2

    Q = ℓ₁² + ℓ₂² with ℓ₁ = x + y + z and ℓ₂ = x − y linearly independent linear forms, so its matrix is a sum of two rank-one matrices with independent vectors: rank 2, positive semidefinite, with Q = 0 on the line x = y, z = −2x.
  10. The minimum value of 5x² + 4xy + 2y² subject to x² + y² = 1 is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 1

    The symmetric matrix is [[5, 2], [2, 2]], with trace 7 and determinant 6, so eigenvalues 6 and 1. On the unit circle a quadratic form ranges between its smallest and largest eigenvalues, so the minimum is 1, attained at the eigenvector (1, −2)/√5: 5 − 8 + 8 = 5 over 5 = 1.
  11. The Euclidean norm of (1, 2, 2) in ℝ³ is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 3

    √(1 + 4 + 4) = 3. Adding the components (5) gives the 1-norm, not the norm induced by the standard inner product.
  12. The determinant of a real orthogonal matrix is always

    1. any non-zero real number
    2. +1
    3. 0
    4. +1 or −1
    Show answer

    Answer: D — +1 or −1

    QᵀQ = I gives (det Q)² = 1, so det Q = ±1; reflections have −1. Answering only +1 describes rotations, the special orthogonal group, not all orthogonal matrices.
  13. The quadratic form x² + 6xy + y² is written as xᵀAx with A symmetric. The off-diagonal entry a₁₂ is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 3

    The cross term 6xy is split equally: a₁₂ = a₂₁ = 3, since xᵀAx contributes 2a₁₂xy. Answering 6 puts the whole coefficient in one entry, which breaks symmetry.
  14. The scalar projection of (1, 2) onto the direction of (1, 1) (three decimals) is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 2.121

    ⟨x, u⟩/‖u‖ = 3/√2 ≈ 2.121. Forgetting to divide by ‖u‖ gives 3, which is the projection onto (1, 1) only if (1, 1) had unit length.
  15. A complex square matrix is diagonalisable if and only if its minimal polynomial

    1. has degree n
    2. has no repeated roots
    3. equals its characteristic polynomial
    4. has only real roots
    Show answer

    Answer: B — has no repeated roots

    Distinct linear factors in the minimal polynomial mean every Jordan block has size 1. "Equals the characteristic polynomial" is the tempting trap: the identity matrix is diagonal yet its minimal polynomial is x − 1, not (x − 1)ⁿ.
  16. The number of positive eigenvalues of A = [[1, 2], [2, 1]] (so the form x² + 4xy + y² is indefinite or not) is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 1

    Eigenvalues are 3 and −1: one positive, one negative, so the form is indefinite. Positive diagonal entries tempt the answer 2, but det A = −3 < 0 already shows mixed signs.
  17. The number of Jordan blocks in the Jordan form of A = [[2, 1, 0], [0, 2, 0], [0, 0, 2]] is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 2

    The number of blocks for λ = 2 equals dim ker(A − 2I) = 3 − rank(A − 2I) = 2 (blocks of sizes 2 and 1). Answering 1 confuses it with the number of distinct eigenvalues.
  18. A 4 × 4 nilpotent matrix N has rank 2 and N² ≠ 0. The number of Jordan blocks in its Jordan form is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 2

    Blocks = dim ker N = 4 − 2 = 2; since N² ≠ 0 one block has size ≥ 3, so the sizes are 3 and 1. Answering 3 (as if the blocks were 2, 1, 1) would give rank 1, contradicting rank N = 2.
  19. The maximum value of x² + 4xy + y² subject to x² + y² = 1 is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 3

    By the Rayleigh quotient the maximum is the largest eigenvalue of [[1, 2], [2, 1]], namely 3, at (1, 1)/√2. Answering 5 uses the off-diagonal 4 without splitting it into the symmetric matrix.
  20. The angle between (1, 0, 1) and (0, 1, 1) in ℝ³, in degrees, is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 60

    cos θ = ⟨u, v⟩/(‖u‖‖v‖) = 1/(√2·√2) = ½, so θ = 60°. Forgetting to normalise gives cos θ = 1 and θ = 0°, as if the vectors were parallel.
  21. Let A be a real symmetric positive-definite matrix. Which statements are true?

    1. All leading principal minors of A are positive.
    2. All eigenvalues of A are positive.
    3. All entries of A are positive.
    4. A is invertible.
    Show answer

    Answer: A — All leading principal minors of A are positive.; B — All eigenvalues of A are positive.; D — A is invertible.

    xᵀAx > 0 for x ≠ 0 is equivalent to positive eigenvalues and, by Sylvester, to positive leading minors; det A > 0 gives invertibility. [[2, −1], [−1, 2]] is positive definite with negative entries, so the last statement fails.