Mathematics · Book 4 · Bachelor Year 2

University Mathematics — Year 2

University Mathematics — Year 2 · Bachelor Year 2

12Quadratic Forms

A quadratic form is the algebraic shadow of a geometry: signature zero parts flatten, positive parts curve one way, negative the other. This chapter reduces every real quadratic form to a sum of ±\pm squares (Gauss), proves that the counts of signs are intrinsic (Sylvester), and then crowns Euclidean geometry with the spectral theorem: symmetric endomorphisms diagonalize in orthonormal bases — the single most-used theorem of applied linear algebra.

12.1 Bilinear and quadratic forms

Definition 12.1

A symmetric bilinear form on a real vector space EE is a bilinear φ ⁣:E×ER\varphi \colon E \times E \to \R with φ(x,y)=φ(y,x)\varphi(x, y) = \varphi(y, x); the associated quadratic form is q(x)=φ(x,x)q(x) = \varphi(x, x). The form φ\varphi is recovered from qq by polarization:

φ(x,y)=12(q(x+y)q(x)q(y)).\varphi(x, y) = \tfrac12\bigl(q(x + y) - q(x) - q(y)\bigr).

In a basis (ei)(e_i), the matrix of φ\varphi is the symmetric B=(φ(ei,ej))B = (\varphi(e_i, e_j)), with q(x)=XTBXq(x) = X^{\mathsf T} B X; a change of basis with matrix PP replaces BB by PTBPP^{\mathsf T} B P (congruence — not similarity!). The rank of qq is rkB\operatorname{rk} B (invariant: congruence multiplies by invertible matrices).

Example 12.2

On R2\R^2: q(x,y)=x2+4xy+y2q(x, y) = x^2 + 4xy + y^2 has matrix (1221)\begin{pmatrix} 1 & 2\\ 2 & 1\end{pmatrix}. An inner product is exactly a symmetric bilinear form whose quadratic form is positive definite; this chapter studies the general, sign-indefinite case.

Example 12.3 (Congruence in action)

Take q(x,y)=x2+4xy+y2q(x, y) = x^2 + 4xy + y^2 (matrix B=(1221)B = \begin{pmatrix} 1 & 2\\ 2 & 1\end{pmatrix}) and the new basis e1=(1,1)e_1' = (1, 1), e2=(1,1)e_2' = (1, -1), i.e. P=(1111)P = \begin{pmatrix} 1 & 1\\ 1 & -1\end{pmatrix}. Then

PTBP=(1111)(1221)(1111)=(6002):P^{\mathsf T}BP = \begin{pmatrix} 1 & 1\\ 1 & -1\end{pmatrix} \begin{pmatrix} 1 & 2\\ 2 & 1\end{pmatrix} \begin{pmatrix} 1 & 1\\ 1 & -1\end{pmatrix} = \begin{pmatrix} 6 & 0\\ 0 & -2\end{pmatrix} :

in the coordinates (u,v)(u, v) along the new basis, q=6u22v2q = 6u^2 - 2v^2 — check: x=u+vx = u + v, y=uvy = u - v gives x2+4xy+y2=6u22v2x^2 + 4xy + y^2 = 6u^2 - 2v^2 directly. Note the new diagonal entries 6,26, -2 are not the eigenvalues 3,13, -1 of BB: congruence rescales, only similarity preserves spectra — but the signs agree, as Sylvester’s theorem demands. (The basis here is orthogonal but not orthonormal; normalizing it by 12\frac{1}{\sqrt2} would divide the diagonal by 22 and recover the eigenvalues.)

Example 12.4 (Gram determinants measure area)

For v1,v2v_1, v_2 in a Euclidean space, the Gram matrix G=(vi,vj)G = \bigl(\langle v_i, v_j\rangle\bigr) packages lengths and angle; its determinant packages area:

detG=v12v22v1,v22=v12v22(1cos2θ)=(v1v2sinθ)2,\det G = \norm{v_1}^2\norm{v_2}^2 - \langle v_1, v_2\rangle^2 = \norm{v_1}^2\norm{v_2}^2\bigl(1 - \cos^2\theta\bigr) = \bigl(\norm{v_1}\,\norm{v_2}\sin\theta\bigr)^2 ,

the squared area of the parallelogram on v1,v2v_1, v_2 — and Cauchy–Schwarz is exactly the statement detG0\det G \geq 0. Worked instance: v1=(1,2,2)v_1 = (1, 2, 2), v2=(2,1,2)v_2 = (2, 1, -2) in R3\R^3:

G=(9009),detG=81:G = \begin{pmatrix} 9 & 0\\ 0 & 9 \end{pmatrix}, \qquad \det G = 81 :

the vectors are orthogonal of length 33, spanning a parallelogram (here, a square) of area 81=9\sqrt{81} = 9. Closing insight: no cross product and no dimension-33 magic was used — detG\sqrt{\det G} measures kk-dimensional volume in any dimension, the starting point of the weekend problem’s Part I and of the surface-area integrals later in this volume.

12.2 Gauss reduction and Sylvester’s inertia

Theorem 12.5 (Gauss reduction)

Every quadratic form qq on a finite-dimensional real space can be written

q=i=1si2j=1tmj2,q = \sum_{i=1}^{s} \ell_i^2 - \sum_{j=1}^{t} m_j^2 ,

where 1,,s,m1,,mt\ell_1, \dots, \ell_s, m_1, \dots, m_t are linearly independent linear forms; equivalently, some basis makes the matrix of qq diagonal with entries +1+1 (ss times), 1-1 (tt times), 00.

Proof. Induction on the number of variables, in coordinates: q(x1,,xn)q(x_1, \dots, x_n).

Case 1: some square appears, say the coefficient aa of x12x_1^2 is nonzero. Group all the x1x_1-terms and complete the square:

q=a(x1+1aλ(x2,,xn)) ⁣2+q1(x2,,xn),q = a\Bigl(x_1 + \frac{1}{a}\,\lambda(x_2, \dots, x_n)\Bigr)^{\!2} + q_1(x_2, \dots, x_n),

where λ\lambda is linear and q1q_1 quadratic in the remaining variables: one independent form split off (it involves x1x_1, the others do not), induction applies to q1q_1, and ±\pm signs come from the sign of aa after rescaling by a\sqrt{\abs a}.

Case 2: no square, but some cross term, say bx1x2b\,x_1x_2 with b0b \neq 0. Use the identity

x1x2=14((x1+x2)2(x1x2)2)x_1x_2 = \tfrac14\bigl((x_1 + x_2)^2 - (x_1 - x_2)^2\bigr)

after grouping: writing q=bx1x2+x1α+x2β+q2q = b\,x_1x_2 + x_1\alpha + x_2\beta + q_2 (with α,β,q2\alpha, \beta, q_2 in the other variables), one checks

q=b4[(x1+x2+α+βb)2(x1x2+βαb)2]+q~,q = \frac{b}{4}\Bigl[\Bigl(x_1 + x_2 + \frac{\alpha + \beta}{b}\Bigr)^{2} - \Bigl(x_1 - x_2 + \frac{\beta - \alpha}{b}\Bigr)^{2}\Bigr] + \widetilde q ,

with q~\widetilde q free of x1,x2x_1, x_2: two independent forms split off, and induction finishes.

Independence of the collected forms: order the batches as produced. The forms of the first batch contain x1x_1 (Case 1) or x1,x2x_1, x_2 (Case 2); all later forms are free of those variables. Suppose a linear combination of all collected forms vanishes. Reading the coefficient of x1x_1 (and x2x_2): only the first batch contributes, and within that batch the one or two forms are visibly independent (\ell alone; or ±m\ell \pm m with independent ,m\ell, m): the first-batch coefficients vanish. Strip the batch and repeat: by induction along the batches, all coefficients vanish — the whole family is free, triangularity made explicit.

Theorem 12.6 (Sylvester’s law of inertia)

The pair (s,t)(s, t) in Theorem 12.5 depends only on qq, not on the reduction: it is the signature of qq. Moreover

s=max{dimF:qF positive definite},s = \max\{\dim F : q|_F \text{ positive definite}\},

and symmetrically for tt.

Proof. Let q=isi2jtmj2q = \sum_{i \leq s}\ell_i^2 - \sum_{j\leq t} m_j^2 and let F+F_+ be the span of the (pre-)dual vectors on which (i)(\ell_i) restrict to coordinates — concretely: complete the independent family (1,,s,m1,,mt)(\ell_1, \dots, \ell_s, m_1, \dots, m_t) into a basis of the dual EE^*, and let (u1,,un)(u_1, \dots, u_n) be the basis of EE whose coordinate forms these are (the pre-dual basis: i(uk)=δik\ell_i(u_k) = \delta_{ik} for ksk \leq s, and the later forms vanish on the earlier vectors). Set F+=Vect(u1,,us)F_+ = \operatorname{Vect}(u_1, \dots, u_s): for x=isxiuiF+x = \sum_{i\leq s}x_iu_i \in F_+,

i(x)=xi,mj(x)=0,soq(x)=isxi2>0(x0):\ell_i(x) = x_i, \qquad m_j(x) = 0, \qquad\text{so}\qquad q(x) = \sum_{i\leq s}x_i^2 > 0 \quad (x \neq 0) :

qF+q|_{F_+} is positive definite and the max in the display is s\geq s. Conversely, let FF be any subspace with qFq|_F positive definite, and G={x:1(x)==s(x)=0}G = \{x : \ell_1(x) = \dots = \ell_s(x) = 0\}, of codimension s\leq s; on GG, q(x)=mj20q(x) = -\sum m_j^2 \leq 0. Then FG={0}F \cap G = \{0\} (a nonzero vector there would have q>0q > 0 and q0q \leq 0), so dimFdimEdimGs\dim F \leq \dim E - \dim G \leq s. Hence the max equals ss for every reduction: ss is intrinsic, and t=rkqst = \operatorname{rk} q - s likewise.

Example 12.7

q(x,y,z)=xy+yz+zxq(x, y, z) = xy + yz + zx (no squares). With x1=xx_1 = x, x2=yx_2 = y: q=xy+z(x+y)q = xy + z(x + y), and the two-square identity gives

q=14(x+y+2z)214(xy)2z2,q = \tfrac14(x + y + 2z)^2 - \tfrac14(x - y)^2 - z^2 ,

(expand to check). Three independent forms: signature (1,2)(1, 2), rank 33. One positive direction, two negative: the “light cone” geometry of this form.

Example 12.8 (A degenerate form, reduced in full)

q(x,y,z)=xy+yzq(x, y, z) = xy + yz on R3\R^3: no squares, so Case 2 with the grouping q=y(x+z)q = y(x + z). The two-square identity on the product of the independent forms yy and x+zx + z:

q=14(y+x+z)214(yxz)2.q = \frac14\bigl(y + x + z\bigr)^2 - \frac14\bigl(y - x - z\bigr)^2 .

The two linear forms y+x+zy + x + z and yxzy - x - z are independent (their difference is 2(x+z)2(x+z), their sum 2y2y), so Sylvester reads off: signature (1,1)(1, 1), rank 22degenerate. The kernel of the polar form is found by solving φ(v,)=0\varphi(v, \cdot) = 0: with matrix 12(010101010)\frac12\begin{pmatrix} 0&1&0\\ 1&0&1\\ 0&1&0\end{pmatrix}, the kernel is {y=0, x+z=0}=R(1,0,1)\{y = 0,\ x + z = 0\} = \R\,(1, 0, -1), the direction along which qq sees nothing. Closing insight: rank deficiency shows up in Gauss as “running out of variables” — the reduction produced only two squares out of three dimensions, and the missing dimension is exactly the kernel.

Example 12.9 (One form, two roads to the signature)

q(x,y,z)=2x2+2y2+2z2+2xy+2yzq(x, y, z) = 2x^2 + 2y^2 + 2z^2 + 2xy + 2yz, matrix (210121012)\begin{pmatrix} 2 & 1 & 0\\ 1 & 2 & 1\\ 0 & 1 & 2 \end{pmatrix}. Road 1, Gauss: complete squares in order,

q=2(x+y2) ⁣2+32y2+2yz+2z2=2(x+y2) ⁣2+32(y+2z3) ⁣2+43z2:q = 2\Bigl(x + \frac y2\Bigr)^{\!2} + \frac32 y^2 + 2yz + 2z^2 = 2\Bigl(x + \frac y2\Bigr)^{\!2} + \frac32\Bigl(y + \frac{2z}{3}\Bigr)^{\!2} + \frac43 z^2 :

three positive squares on independent forms, signature (3,0)(3, 0): positive definite. Road 2, eigenvalues: the matrix is the tridiagonal 2I+N2I + N with NN the neighbor matrix; its eigenvalues are 2+22 + \sqrt2, 22, 222 - \sqrt2 (check the eigenvectors (1,±2,1)(1, \pm\sqrt2, 1) and (1,0,1)(1, 0, -1)), all positive: same verdict, by Corollary 12.15. Gauss is faster; eigenvalues say more (they give the principal axes and the extreme values of qq on the sphere). Closing insight: the positive pivots 2,32,432, \frac32, \frac43 of Gauss are exactly the ratios ΔkΔk1\frac{\Delta_k}{\Delta_{k-1}} of leading principal minors (Δ1=2\Delta_1 = 2, Δ2=3\Delta_2 = 3, Δ3=4\Delta_3 = 4) — the weekend problem proves this in general.

Method 12.10 (Computing a signature: three routes)

  1. Gauss (always works, fastest by hand): complete squares in order, Case 2 when no square is available; count the signs. Check that the collected linear forms are independent — fewer forms than variables means a kernel (Example 12.8).
  2. Leading minors (for definiteness tests): all Δk>0\Delta_k > 0 iff positive definite (Exercise 12.8); the pivots Δk/Δk1\Delta_k/\Delta_{k-1} even give the Gauss coefficients (weekend problem). Fails silently if some Δk=0\Delta_k = 0: fall back on route 1.
  3. Eigenvalues (most informative, most expensive): signs of the spectrum (Corollary 12.15); also yields the principal axes and the extreme values of qq on the unit sphere. Prefer it when the eigenstructure is needed anyway.

12.3 The spectral theorem

Now let EE be Euclidean (inner product ,\langle\cdot,\cdot\rangle, Year 1 volume).

Definition 12.11 (Adjoint; symmetric endomorphisms)

For uL(E)u \in \mathcal{L}(E), the adjoint uu^* is the unique endomorphism with

u(x),y=x,u(y)(x,yE);\langle u(x), y\rangle = \langle x, u^*(y)\rangle \qquad (x, y \in E);

in an orthonormal basis, Mat(u)=Mat(u)T\operatorname{Mat}(u^*) = \operatorname{Mat}(u)^{\mathsf T}. uu is symmetric (self-adjoint) when u=uu^* = u — equivalently its matrix in an orthonormal basis is symmetric.

Existence and uniqueness of the adjoint. For fixed yy, the form xu(x),yx \mapsto \langle u(x), y\rangle is linear, hence (finite dimension) of the shape x,zy\langle x, z_y\rangle for a unique zyz_y — the map yzy=:u(y)y \mapsto z_y =: u^*(y) being linear by uniqueness. The matrix identification: u(ei),ej\langle u(e_i), e_j\rangle read both ways.

Example 12.12 (The adjoint depends on the inner product)

On R2\R^2 take the weighted inner product x,yD=x1y1+2x2y2\langle x, y\rangle_D = x_1y_1 + 2x_2y_2 (matrix D=diag(1,2)D = \operatorname{diag}(1,2)) and uu of matrix A=(0100)A = \begin{pmatrix} 0 & 1\\ 0 & 0\end{pmatrix} in the canonical basis. From u(x),yD=(Ax)TDy=xT(ATD)y\langle u(x), y\rangle_D = (Ax)^{\mathsf T}Dy = x^{\mathsf T}(A^{\mathsf T}D)y and x,u(y)D=xT(DA)y\langle x, u^*(y)\rangle_D = x^{\mathsf T}(DA^*)y, the adjoint’s matrix is

A=D1ATD=(10012)(0010)(1002)=(00120)AT.A^* = D^{-1}A^{\mathsf T}D = \begin{pmatrix} 1 & 0\\ 0 & \tfrac12\end{pmatrix} \begin{pmatrix} 0 & 0\\ 1 & 0\end{pmatrix} \begin{pmatrix} 1 & 0\\ 0 & 2\end{pmatrix} = \begin{pmatrix} 0 & 0\\ \tfrac12 & 0\end{pmatrix} \neq A^{\mathsf T} .

Sanity check on x=(1,0)x = (1,0), y=(0,1)y = (0,1):

u(x),yD=(0,0),yD=0,x,u(y)D=(1,0),(0,12)D=0;\langle u(x), y\rangle_D = \langle (0,0), y\rangle_D = 0, \quad \langle x, u^*(y)\rangle_D = \langle(1,0), (0,\tfrac12)\rangle_D = 0 ;

on x=(0,1)x = (0,1), y=(1,0)y = (1,0):

u(x),yD=(1,0),(1,0)D=1,x,u(y)D=(0,1),(0,12)D=1.\langle u(x), y\rangle_D = \langle(1,0),(1,0)\rangle_D = 1, \quad \langle x, u^*(y)\rangle_D = \langle(0,1),(0,\tfrac12)\rangle_D = 1 .

Closing insight: “Mat(u)=Mat(u)T\operatorname{Mat}(u^*) = \operatorname{Mat}(u)^{\mathsf T}” is a statement about orthonormal bases only; in general the metric DD intervenes, exactly as in the simultaneous reduction of the weekend problem.

Theorem 12.13 (Spectral theorem)

Let uu be a symmetric endomorphism of a Euclidean space EE. Then EE has an orthonormal basis of eigenvectors of uu; all eigenvalues are real, and eigenspaces for distinct eigenvalues are orthogonal. Matrix form: every real symmetric matrix AA writes

A=PDPT,P orthogonal (PTP=I), D diagonal.A = P\,D\,P^{\mathsf T}, \qquad P \text{ orthogonal } (P^{\mathsf T} P = I),\ D \text{ diagonal}.

Proof. An eigenvector exists. The function xu(x),xx \mapsto \langle u(x), x\rangle is continuous on the unit sphere SS of EE, which is compact (finite dimension, Theorem 5.13): it attains its maximum λ\lambda at some aSa \in S. We claim u(a)=λau(a) = \lambda a. For any yay \perp a with y=1\norm y = 1 and tRt \in \R, the vector xt=a+ty1+t2x_t = \frac{a + ty}{\sqrt{1 + t^2}} lies on SS (a+ty2=1+t2\norm{a + ty}^2 = 1 + t^2 by Pythagoras); expanding the maximized function,

g(t)=u(xt),xt=u(a),a+2tu(a),y+t2u(y),y1+t2g(t) = \langle u(x_t), x_t\rangle = \frac{\langle u(a), a\rangle + 2t\langle u(a), y\rangle + t^2\langle u(y), y\rangle}{1 + t^2}

(symmetry of uu merged the two cross terms: u(a),y=a,u(y)=u(y),a\langle u(a), y\rangle = \langle a, u(y)\rangle = \langle u(y), a\rangle). gg is a differentiable function of tt with a maximum at t=0t = 0; the quotient rule at 00 gives

g(0)=2u(a),y1u(a),a01=2u(a),y=0.g'(0) = \frac{2\langle u(a), y\rangle\cdot 1 - \langle u(a), a\rangle\cdot 0}{1} = 2\langle u(a), y\rangle = 0 .

So u(a)u(a) is orthogonal to the whole hyperplane aa^\perp: u(a)(a)=Rau(a) \in (a^{\perp})^{\perp} = \R a, i.e. u(a)=μau(a) = \mu a; and μ=u(a),a=λ\mu = \langle u(a), a\rangle = \lambda.

Induction. The orthogonal complement F=aF = a^\perp is uu-stable: for xax \perp a, u(x),a=x,u(a)=λx,a=0\langle u(x), a\rangle = \langle x, u(a)\rangle = \lambda\langle x, a\rangle = 0. The restriction uFu|_F is symmetric for the induced inner product; by induction on the dimension, FF has an orthonormal eigenbasis; prepend aa.

Complements. Eigenvalues are the real numbers u(e),e\langle u(e), e\rangle on the eigenbasis. Orthogonality of eigenspaces: u(x)=λxu(x) = \lambda x, u(y)=μyu(y) = \mu y give λx,y=u(x),y=x,u(y)=μx,y\lambda\langle x, y\rangle = \langle u(x), y\rangle = \langle x, u(y)\rangle = \mu\langle x, y\rangle, so x,y=0\langle x, y\rangle = 0 when λμ\lambda \neq \mu. Matrix form: columns of PP = the orthonormal eigenbasis.

Example 12.14 (A full spectral run)

Diagonalize orthogonally A=(1221)A = \begin{pmatrix} 1 & 2\\ 2 & 1\end{pmatrix}. Characteristic polynomial (1λ)24(1 - \lambda)^2 - 4: eigenvalues 33 and 1-1. Eigenvectors: (A3I)v=0(A - 3I)v = 0 gives v1=12(1,1)v_1 = \frac{1}{\sqrt2}(1,1); (A+I)v=0(A + I)v = 0 gives v2=12(1,1)v_2 = \frac{1}{\sqrt2}(1,-1) — orthogonal, as Theorem 12.13 guarantees without computation. With P=(v1 v2)P = (v_1\ v_2) (a rotation by π4\frac\pi4):

PTAP=(3001),x2+4xy+y2=3u2v2in the rotated frame.P^{\mathsf T}AP = \begin{pmatrix} 3 & 0\\ 0 & -1 \end{pmatrix}, \qquad x^2 + 4xy + y^2 = 3u^2 - v^2 \quad\text{in the rotated frame} .

So the form of Exercise 12.1 is a hyperbola-type form: signature (1,1)(1,1), consistent with its Gauss reduction (x+2y)23y2(x + 2y)^2 - 3y^2 — different squares, same signature, as Sylvester demands. Closing insight: Gauss gave the answer faster, but the spectral route also reports that on the unit circle qq ranges exactly over [1,3]\intcc{-1}{3}, attained along v2v_2 and v1v_1: the extra work buys geometry.

Corollary 12.15 (Principal axes; positivity tests)

  1. Every quadratic form qq on a Euclidean space diagonalizes in some orthonormal basis: q(x)=iλixi2q(x) = \sum_i \lambda_i x_i^2 with λi\lambda_i the eigenvalues of the symmetric matrix of qq; the signature counts positive and negative eigenvalues.
  2. A symmetric matrix is positive semidefinite (resp. definite) iff all its eigenvalues are 0\geq 0 (resp. >0> 0); and then the extreme values of the Rayleigh quotient are

    minx=1Ax,x=λmin,maxx=1Ax,x=λmax.\min_{\norm x = 1} \langle Ax, x\rangle = \lambda_{\min}, \qquad \max_{\norm x = 1} \langle Ax, x\rangle = \lambda_{\max} .

Proof. (1) Write q(x)=Ax,xq(x) = \langle A x, x\rangle with AA symmetric (the matrix of qq in an orthonormal basis); diagonalize AA by the spectral theorem: for x=xieix = \sum x_ie_i in the orthonormal eigenbasis,

q(x)=iλixiei, jxjej=iλixi2q(x) = \Bigl\langle \sum_i \lambda_ix_ie_i,\ \sum_j x_je_j\Bigr\rangle = \sum_i \lambda_i x_i^2

(orthonormality kills the cross terms). The ±\pm signs of the λi\lambda_i count the signature by Sylvester: rescaling each coordinate by λi\sqrt{\abs{\lambda_i}} exhibits a Gauss reduction with independent forms.

(2) In the eigenbasis, Ax,x=λixi2\langle Ax, x\rangle = \sum \lambda_i x_i^2, trapped between λminx2\lambda_{\min}\norm x^2 and λmaxx2\lambda_{\max}\norm x^2, with equality at the corresponding eigenvectors; positivity of all eigenvalues is thus equivalent to positivity of the form.

Example 12.16

A=(2112)A = \begin{pmatrix} 2 & 1\\ 1 & 2 \end{pmatrix}: eigenvalues 33 (eigenvector 12(1,1)\frac{1}{\sqrt2}(1,1)) and 11 (12(1,1)\frac{1}{\sqrt2}(1,-1)). The quadratic form 2x2+2xy+2y22x^2 + 2xy + 2y^2 becomes 3X2+Y23X^2 + Y^2 in the rotated orthonormal frame: an ellipse’s principal axes, computed. The Gauss reduction reaches a diagonal form too, but only the spectral theorem reaches it without distorting lengths.

Example 12.17 (An ellipse fully identified)

Which curve is 5x2+4xy+2y2=65x^2 + 4xy + 2y^2 = 6? The matrix (5222)\begin{pmatrix} 5 & 2\\ 2 & 2\end{pmatrix} has characteristic polynomial λ27λ+6=(λ1)(λ6)\lambda^2 - 7\lambda + 6 = (\lambda - 1)(\lambda - 6): eigenvalues 11 and 66, both positive — an ellipse. Orthonormal eigenvectors: for λ=1\lambda = 1, solve (4221)v=0\begin{pmatrix} 4 & 2\\ 2 & 1\end{pmatrix}v = 0: v1=15(1,2)v_1 = \frac{1}{\sqrt5}(1, -2); for λ=6\lambda = 6: v2=15(2,1)v_2 = \frac{1}{\sqrt5}(2, 1). In the rotated coordinates (X,Y)(X, Y) along (v2,v1)(v_2, v_1) the equation becomes

6X2+Y2=6,i.e.X2+Y26=1:6X^2 + Y^2 = 6, \qquad\text{i.e.}\qquad X^2 + \frac{Y^2}{6} = 1 :

semi-axes 11 (along v2v_2) and 6\sqrt6 (along v1v_1). Closing insight: the rough shape was free of charge — det=6>0\det = 6 > 0 and positive trace announce an ellipse before any eigenvector is computed — but only the spectral theorem delivers the axes’ directions and lengths, i.e. the actual geometry.

Example 12.18 (Extremes on the sphere, read off the spectrum)

What are the extreme values of q(x,y,z)=2xy+2yz+2zxq(x,y,z) = 2xy + 2yz + 2zx on the unit sphere? Its matrix (the all-ones off-diagonal of Exercise 12.2) has eigenvalues 22 and 1-1 (double), so by Corollary 12.15 (2):

maxv=1q(v)=2  at v=13(1,1,1),minv=1q(v)=1  on the circle x+y+z=0.\max_{\norm v = 1} q(v) = 2 \ \text{ at } v = \tfrac{1}{\sqrt3}(1,1,1), \qquad \min_{\norm v = 1} q(v) = -1 \ \text{ on the circle } x + y + z = 0 .

No calculus, no Lagrange multipliers: the spectral theorem solves this constrained optimization outright — and exhibits the maximizer. Closing insight: compare with the multiplier method of the differential-calculus chapter, which finds the same critical points with more work; for quadratic objectives on spheres, spectra are the royal road (the weekend problem of the Hermitian chapter builds the whole Courant–Fischer theory on this observation).

Remark 12.19 (Common pitfalls)

(i) Congruence is not similarity: a change of basis for a form acts by PTBPP^{\mathsf T}BP, not P1BPP^{-1}BP; eigenvalues are not invariants of a quadratic form (II and 4I4I are congruent via P=2IP = 2I) — only their signs are (Sylvester). Speak of the eigenvalues of a form only once an inner product is fixed. (ii) Positive entries prove nothing: (1221)\begin{pmatrix} 1 & 2\\ 2 & 1\end{pmatrix} has all entries positive yet signature (1,1)(1,1) (det=3\det = -3); conversely a positive definite matrix may have negative off-diagonal entries (Example 12.9 shifted: 2IN2I - N works equally). Use Method 12.10. (iii) Dependent squares: writing q=1222q = \ell_1^2 - \ell_2^2 says nothing if 1,2\ell_1, \ell_2 are proportional — x2+2xy+y2=(x+y)2x^2 + 2xy + y^2 = (x+y)^2 has rank 11, not 22; always check independence before reading off the signature. (iv) Sphere extremes without compactness: the Rayleigh bounds of Corollary 12.15 are attained because the sphere is compact; on the open ball or the whole space, an indefinite form has neither maximum nor minimum.

Remark 12.20 (Where this is used)

The spectral theorem is the single most exported result of this book: statistics diagonalizes covariance matrices with it (principal component analysis), mechanics extracts normal modes of oscillation from it (the simultaneous reduction of the weekend problem), numerical analysis builds Cholesky and singular value decompositions on it (same problem), and the next chapter transports it to complex Hermitian spaces. The Year 3 volume proves its infinite-dimensional avatar for compact self-adjoint operators, where the finite-dimensional proof’s compactness argument becomes the whole story.

Remark 12.21 (Perspectives within this volume)

Quadratic forms thread through the rest of Book 4 under three disguises. As Hessians: the differential-calculus chapter classifies critical points by the signature of the second-order form, so Sylvester’s invariance is what makes “saddle” a well-defined word. As energies: the differential-equations chapter’s oscillators carry the quadratic energy 12x2+12ω2x2\frac12x'^2 + \frac12\omega^2x^2, and the simultaneous reduction of this chapter’s weekend problem is exactly the extraction of normal modes. As geometry: the conics of this chapter grow into the quadric surfaces of the geometry chapters, where the second fundamental form of a surface — a quadratic form on each tangent plane — has signature deciding whether the surface curves like a bowl or a saddle. The Hermitian chapter, next, replays the whole score over C\C.

12.4 Exercises

Exercise 12.1

Gauss-reduce and give rank and signature:

q1(x,y)=x2+4xy+y2,q2(x,y,z)=x2+2y2+3z2+2xy+2yz.q_1(x,y) = x^2 + 4xy + y^2, \qquad q_2(x,y,z) = x^2 + 2y^2 + 3z^2 + 2xy + 2yz .
Solution

Solution of Exercise 12.1.

q1=(x+2y)23y2q_1 = (x + 2y)^2 - 3y^2: rank 22, signature (1,1)(1, 1) (a hyperbola-type form).

q2q_2: complete the square in xx: q2=(x+y)2+y2+2yz+3z2=(x+y)2+(y+z)2+2z2q_2 = (x + y)^2 + y^2 + 2yz + 3z^2 = (x+y)^2 + (y + z)^2 + 2z^2: rank 33, signature (3,0)(3, 0) — positive definite.

Exercise 12.2

Diagonalize orthogonally A=(011101110)A = \begin{pmatrix} 0 & 1 & 1\\ 1 & 0 & 1\\ 1 & 1 & 0\end{pmatrix} (eigenvalues from Chapter 3’s computation; now make the basis orthonormal) and reduce the form q(x,y,z)=2xy+2yz+2zxq(x,y,z) = 2xy + 2yz + 2zx to principal axes.

Solution

Solution of Exercise 12.2.

Eigenvalues 22 (on Vect(1,1,1)\operatorname{Vect}(1,1,1)) and 1-1 (on the plane x+y+z=0x + y + z = 0). Orthonormalize: e1=13(1,1,1)e_1 = \frac{1}{\sqrt3}(1,1,1); in the plane, Gram–Schmidt on (1,1,0),(1,0,1)(1,-1,0), (1,0,-1) gives e2=12(1,1,0)e_2 = \frac{1}{\sqrt2}(1,-1,0), e3=16(1,1,2)e_3 = \frac{1}{\sqrt6}(1,1,-2). Then P=(e1 e2 e3)P = (e_1\ e_2\ e_3) is orthogonal with PTAP=diag(2,1,1)P^{\mathsf T}AP = \operatorname{diag}(2,-1,-1).

The form q=2xy+2yz+2zxq = 2xy + 2yz + 2zx has matrix AA: in the rotated coordinates q=2X2Y2Z2q = 2X^2 - Y^2 - Z^2 — principal axes; signature (1,2)(1,2), agreeing with Example 12.7 (the same form!).

Exercise 12.3

Prove that u=uu^{**} = u, (uv)=vu(u \circ v)^* = v^* \circ u^*, and that keru=(imu)\ker u^* = (\operatorname{im} u)^{\perp}. Deduce rku=rku\operatorname{rk} u^* = \operatorname{rk} u.

Solution

Solution of Exercise 12.3.

u=uu^{**} = u: ux,y=x,uy=ux,y\langle u^{**}x, y\rangle = \langle x, u^*y\rangle = \langle ux, y\rangle for all yy. (uv)=vu(uv)^* = v^*u^*: uvx,y=vx,uy=x,vuy\langle uvx, y\rangle = \langle vx, u^*y\rangle = \langle x, v^*u^*y\rangle. Kernel: ykeru    x,uy=0 x    u(x),y=0 x    yimuy \in \ker u^* \iff \langle x, u^*y \rangle = 0\ \forall x \iff \langle u(x), y\rangle = 0\ \forall x \iff y \perp \operatorname{im} u. Ranks: dimkeru=nrku\dim\ker u^* = n - \operatorname{rk} u (orthogonal complement), so rku=rku\operatorname{rk} u^* = \operatorname{rk} u by rank–nullity — the Euclidean avatar of the transpose-rank theorem.

Exercise 12.4 ★★

Let AA be real symmetric with A3=AA^3 = A. Prove that A2A^2 is the matrix of an orthogonal projection. More generally, relate the spectral decompositions of AA and P(A)P(A) for a polynomial PP.

Solution

Solution of Exercise 12.4.

Spectral: A=PDPTA = PDP^{\mathsf T}, DD diagonal with entries λi\lambda_i satisfying λi3=λi\lambda_i^3 = \lambda_i: λi{1,0,1}\lambda_i \in \{-1, 0, 1\}. Then A2=PD2PTA^2 = PD^2P^{\mathsf T} with D2D^2 diagonal of entries 0/10/1: A2A^2 is symmetric and idempotent ((A2)2=A4=AA3=A2(A^2)^2 = A^4 = A\cdot A^3 = A^2) — symmetric idempotent == orthogonal projection (it is the projection onto ker(A2I)=ker(AI)ker(A+I)\ker(A^2 - I) = \ker(A-I)\oplus\ker(A+I) along kerA\ker A, and these are orthogonal by the spectral theorem).

Generally, P(A)=P ⁣(diag)P(A) = P\!\left(\text{diag}\right): P(A)P(A) has the same eigenvectors, eigenvalues P(λi)P(\lambda_i) — the “spectral mapping” at the diagonalizable level.

Exercise 12.5 ★★

Prove that O(n)={P:PTP=I}O(n) = \{P : P^{\mathsf T}P = I\} is a compact subset of Mn(R)\mathcal{M}_n(\R) (closed: preimage of {I}\{I\} under a continuous map; bounded: columns are unit vectors). Is it connected?

Solution

Solution of Exercise 12.5.

Closed: O(n)=g1({I})O(n) = g^{-1}(\{I\}) for the continuous g(P)=PTPg(P) = P^{\mathsf T}P (polynomial entries). Bounded: each column of PO(n)P \in O(n) is a unit vector, so all entries lie in [1,1]\intcc{-1}{1}. Closed and bounded in Mn(R)Rn2\mathcal{M}_n(\R) \simeq \R^{n^2}: compact (Theorem 4.16 (2)).

Not connected: det\det takes the two values ±1\pm1 on O(n)O(n), and a continuous surjection onto {1,1}\{-1, 1\} splits the space (Example 4.28’s argument).

Exercise 12.6 ★★

(Square root) Let AA be symmetric positive semidefinite. Construct a symmetric positive semidefinite BB with B2=AB^2 = A, and prove that it is unique (existence: take square roots of the eigenvalues in a spectral basis; uniqueness: a candidate BB commutes with A=B2A = B^2, so preserves its eigenspaces — reduce to the scalar case on each).

Solution

Solution of Exercise 12.6.

Existence: A=PDPTA = PDP^{\mathsf T} with D=diag(λi)D = \operatorname{diag}(\lambda_i), λi0\lambda_i \geq 0; set B=PDPTB = P\sqrt D P^{\mathsf T} with D=diag(λi)\sqrt D = \operatorname{diag}(\sqrt{\lambda_i}): symmetric, positive semidefinite, B2=AB^2 = A.

Uniqueness: let BB be symmetric psd with B2=AB^2 = A. BB commutes with AA; hence BB preserves each eigenspace Eλ(A)E_\lambda(A) (for Ax=λxAx = \lambda x: A(Bx)=BAx=λBxA(Bx) = BAx = \lambda Bx). On Eλ(A)E_\lambda(A), the restriction of BB is symmetric psd with square λid\lambda\,\mathrm{id}; its eigenvalues μ\mu satisfy μ2=λ\mu^2 = \lambda, μ0\mu \geq 0: μ=λ\mu = \sqrt\lambda — so the restriction, being diagonalizable with the single eigenvalue λ\sqrt\lambda, is λid\sqrt\lambda\,\mathrm{id}. Since E=Eλ(A)E = \bigoplus E_\lambda(A), BB is determined: B=AB = \sqrt A.

Exercise 12.7 ★★

For real symmetric AA, prove that A2:=supx2=1Ax2=maxiλi\vertiii{A}_2 := \sup_{\norm x_2 = 1}\norm{Ax}_2 = \max_i \abs{\lambda_i} (spectral radius), and compute A2\vertiii{A}_2 for A=(1221)A = \begin{pmatrix} 1 & 2\\ 2 & 1\end{pmatrix}.

Solution

Solution of Exercise 12.7.

In an orthonormal eigenbasis, Ax22=λi2xi2(maxiλi2)x22\norm{Ax}_2^2 = \sum \lambda_i^2 x_i^2 \leq (\max_i \lambda_i^2)\norm x_2^2, with equality at the corresponding eigenvector: A2=maxλi\vertiii A_2 = \max\abs{\lambda_i}. For the given matrix: eigenvalues 3,13, -1 (Example 12.16’s twin): A2=3\vertiii A_2 = 3.

Exercise 12.8 ★★★

(Sylvester’s criterion) Let AA be real symmetric with leading principal minors Δ1,,Δn\Delta_1, \dots, \Delta_n (determinants of the top-left blocks). Prove that AA is positive definite if and only if all Δk>0\Delta_k > 0. (For \Rightarrow: restrictions of a definite form are definite, and the determinant of a positive definite matrix — the product of its eigenvalues — is positive. For \Leftarrow: induct on nn; the top-left (n1)(n-1)-block is positive definite, diagonalize the form on that subspace and complete the square in the last variable; the sign of the last diagonal entry is governed by detA=Δn>0\det A = \Delta_n > 0.)

Solution

Solution of Exercise 12.8.

(\Rightarrow) The top-left k×kk \times k block AkA_k is the matrix of the restriction of the (definite) form to the span of the first kk basis vectors: positive definite, so its eigenvalues are positive and Δk=detAk>0\Delta_k = \det A_k > 0.

(\Leftarrow) Induction on nn; n=1n = 1 clear. Assume all Δk>0\Delta_k > 0. By induction, An1A_{n-1} is positive definite: the form qq restricted to F=Vect(e1,,en1)F = \operatorname{Vect}(e_1, \dots, e_{n-1}) is definite. Diagonalize qFq|_F (Gauss): coordinates y1,,yn1y_1, \dots, y_{n-1} with qF=yi2q|_F = \sum y_i^2. In the full space, completing the square in the last variable,

q=i=1n1(yi+cixn)2+cxn2q = \sum_{i=1}^{n-1} \bigl(y_i + c_i x_n\bigr)^2 + c\,x_n^2

for suitable constants (collect the cross terms into the squares). The reduction exhibits signature (n1+ϵ,)(n-1 + \epsilon, \cdot) with ϵ\epsilon the sign contribution of cc; and the determinant keeps the sign of the product of the diagonal coefficients under congruence (det(PTAP)=(detP)2detA\det(P^{\mathsf T}AP) = (\det P)^2\det A): Δn>0\Delta_n > 0 forces c>0c > 0. Hence qq is a sum of nn squares of independent forms: positive definite.

Exercise 12.9 ★★★

(Courant–Fischer, second eigenvalue) Let uu be symmetric with eigenvalues λ1λ2λn\lambda_1 \geq \lambda_2 \geq \dots \geq \lambda_n. Prove

λ2=minH hyperplane  maxxH, x=1u(x),x.\lambda_2 = \min_{\substack{H \text{ hyperplane}}}\; \max_{\substack{x \in H,\ \norm x = 1}} \langle u(x), x\rangle .

(For \leq: any hyperplane meets the 22-plane spanned by the top two eigenvectors. For \geq: choose H=(e1)H = (e_1)^{\perp}.)

Solution

Solution of Exercise 12.9.

Let (e1,,en)(e_1, \dots, e_n) be an orthonormal eigenbasis for λ1λn\lambda_1 \geq \dots \geq \lambda_n.

λ2\lambda_2 \leq the min-max: for any hyperplane HH, the 22-dimensional V=Vect(e1,e2)V = \operatorname{Vect}(e_1, e_2) satisfies dim(HV)1\dim(H \cap V) \geq 1 (Grassmann): pick a unit xHVx \in H \cap V, x=ae1+be2x = ae_1 + be_2, a2+b2=1a^2 + b^2 = 1:

u(x),x=λ1a2+λ2b2λ2:\langle u(x), x\rangle = \lambda_1 a^2 + \lambda_2 b^2 \geq \lambda_2 :

every hyperplane’s max is λ2\geq \lambda_2.

\geq: for H=e1H = e_1^{\perp}, every unit x=i2xieiHx = \sum_{i\geq2} x_ie_i \in H has u(x),x=i2λixi2λ2\langle u(x), x\rangle = \sum_{i \geq 2} \lambda_i x_i^2 \leq \lambda_2, attained at e2e_2: this hyperplane’s max is exactly λ2\lambda_2. The min over HH is therefore λ2\lambda_2.

Exercise 12.10 ★★

Determine rank and signature of q(x1,,xn)=i<jxixjq(x_1, \dots, x_n) = \sum_{i < j} x_ix_j on Rn\R^n (n2n \geq 2), in two ways: by the algebraic identity 2q=(xi)2xi22q = \bigl(\sum x_i\bigr)^2 - \sum x_i^2 together with the restriction of qq to the hyperplane xi=0\sum x_i = 0; and by computing the eigenvalues of its matrix 12(JI)\frac12(J - I), where JJ is the all-ones matrix.

Solution

Solution of Exercise 12.10.

Algebraic road: 2q=(xi)2xi22q = \bigl(\sum x_i\bigr)^2 - \sum x_i^2. On the hyperplane H:xi=0H : \sum x_i = 0 (dimension n1n - 1), q=12xi2q = -\frac12\sum x_i^2 is negative definite; on the line R(1,,1)\R(1, \dots, 1), q(t,,t)=(n2)t2>0q(t, \dots, t) = \binom n2 t^2 > 0. A subspace where qq is positive definite meets HH trivially, so has dimension 1\leq 1: by Sylvester (Theorem 12.6), s=1s = 1, and tn1t \geq n-1 from HH; rank n\leq n forces signature (1,n1)(1, n-1), rank nn.

Spectral road: the matrix is 12(JI)\frac12(J - I); JJ has eigenvalues nn (on (1,,1)(1,\dots,1)) and 00 (on HH), so 12(JI)\frac12(J-I) has eigenvalues n12\frac{n-1}{2} (once) and 12-\frac12 (n1n-1 times): one positive, n1n-1 negative — same signature, by Corollary 12.15.

Exercise 12.11 ★★

Let AA, BB be real symmetric with BB positive semidefinite. Prove

λmin(A)trB    tr(AB)    λmax(A)trB.\lambda_{\min}(A)\operatorname{tr} B \;\leq\; \operatorname{tr}(AB) \;\leq\; \lambda_{\max}(A)\operatorname{tr} B .

(Write B=CTCB = C^{\mathsf T}C and tr(AB)=iAci,ci\operatorname{tr}(AB) = \sum_i \langle A c_i, c_i\rangle over the columns cic_i of CTC^{\mathsf T}.) In particular tr(AB)0\operatorname{tr}(AB) \geq 0 when both are positive semidefinite.

Solution

Solution of Exercise 12.11.

Write B=CTCB = C^{\mathsf T}C (Exercise 12.6 via C=BC = \sqrt B). Then, with c1,,cnc_1, \dots, c_n the columns of CTC^{\mathsf T}:

tr(AB)=tr(ACTC)=tr(CACT)=i=1nAci,ci.\operatorname{tr}(AB) = \operatorname{tr}(AC^{\mathsf T}C) = \operatorname{tr}(CAC^{\mathsf T}) = \sum_{i=1}^n \langle A c_i, c_i\rangle .

By Corollary 12.15 (2), each term lies between λmin(A)ci2\lambda_{\min}(A)\norm{c_i}^2 and λmax(A)ci2\lambda_{\max}(A)\norm{c_i}^2, and ci2=tr(CTC)1=trB\sum\norm{c_i}^2 = \operatorname{tr}(C^{\mathsf T}C)^{\vphantom1} = \operatorname{tr} B: the double inequality follows. If AA is also positive semidefinite, λmin(A)0\lambda_{\min}(A) \geq 0: tr(AB)0\operatorname{tr}(AB) \geq 0.

Exercise 12.12 ★★★

On E=Mn(R)E = \mathcal{M}_n(\R), consider q(M)=tr(M2)q(M) = \operatorname{tr}(M^2).

  1. Show that qq is a quadratic form with polar form φ(M,N)=tr(MN)\varphi(M, N) = \operatorname{tr}(MN).
  2. Show that the symmetric and antisymmetric matrices form φ\varphi-orthogonal subspaces on which qq is respectively positive definite and negative definite (compute tr(M2)\operatorname{tr}(M^2) entrywise in each case).
  3. Conclude: qq has signature (n(n+1)2,n(n1)2)\bigl(\frac{n(n+1)}{2}, \frac{n(n-1)}{2}\bigr) and rank n2n^2.
Solution

Solution of Exercise 12.12.

  1. φ(M,N)=tr(MN)\varphi(M, N) = \operatorname{tr}(MN) is bilinear and symmetric (tr(MN)=tr(NM)\operatorname{tr}(MN) = \operatorname{tr}(NM)), and φ(M,M)=q(M)\varphi(M, M) = q(M): qq is the quadratic form of φ\varphi.
  2. For SS symmetric and KK antisymmetric: tr(SK)=tr((SK)T)=tr(KTST)=tr(KS)=tr(SK)\operatorname{tr}(SK) = \operatorname{tr}\bigl((SK)^{\mathsf T}\bigr) = \operatorname{tr}(K^{\mathsf T}S^{\mathsf T}) = -\operatorname{tr}(KS) = -\operatorname{tr}(SK), so φ(S,K)=0\varphi(S, K) = 0: the two subspaces are φ\varphi-orthogonal. Entrywise, tr(M2)=i,jmijmji\operatorname{tr} (M^2) = \sum_{i,j} m_{ij}m_{ji}: for symmetric MM this is mij2>0\sum m_{ij}^2 > 0 (M0M \neq 0); for antisymmetric MM it is mij2<0-\sum m_{ij}^2 < 0.
  3. Mn(R)=SnAn\mathcal M_n(\R) = S_n \oplus A_n with dimensions n(n+1)2\frac{n(n+1)}2 and n(n1)2\frac{n(n-1)}2; a Gauss reduction adapted to this φ\varphi-orthogonal splitting writes qq as n(n+1)2\frac{n(n+1)}2 positive and n(n1)2\frac{n(n-1)}2 negative squares: signature (n(n+1)2,n(n1)2)\bigl(\frac{n(n+1)}2, \frac{n(n-1)}2\bigr) (Sylvester), rank n2n^2: the form is nondegenerate.

12.5 Problem: Cholesky, Hadamard, and the polar decomposition

Problem 12.1

The spectral theorem is a microscope; this problem uses it as a factory. From Gram matrices we manufacture the Cholesky factorization (and identify the Gauss pivots as ratios of minors), then prove Hadamard’s inequality on determinants, build the polar decomposition A=QSA = QS and the singular value decomposition, classify plane conics, and end with the simultaneous reduction of two forms — the theorem behind normal modes of oscillation. Throughout, E=RnE = \R^n with its standard inner product.

Part I — Gram matrices and Cholesky. For vectors v1,,vnEv_1, \dots, v_n \in E, their Gram matrix is G=(vi,vj)i,jG = \bigl(\langle v_i, v_j\rangle\bigr)_{i,j}.

  1. Show that GG is symmetric positive semidefinite, and positive definite if and only if (v1,,vn)(v_1, \dots, v_n) is linearly independent (compute XTGXX^{\mathsf T}GX).
  2. Conversely, show that every symmetric positive semidefinite AA is a Gram matrix: A=CTCA = C^{\mathsf T}C for some CC (use the square root of Exercise 12.6), with CC invertible iff AA is definite.
  3. Deduce that a positive semidefinite AA satisfies aijaiiajj\abs{a_{ij}} \leq \sqrt{a_{ii}\,a_{jj}} for all i,ji, j (restrict to two coordinates) — the Cauchy–Schwarz inequality, reread matricially.
  4. (Cholesky) Let AA be positive definite. Prove that there is a unique upper triangular TT with positive diagonal entries such that

    A=TTTA = T^{\mathsf T}\,T

    (existence: apply Gram–Schmidt to vectors realizing AA as a Gram matrix; uniqueness: if T1TT1=T2TT2T_1^{\mathsf T}T_1 = T_2^{\mathsf T}T_2, show T1T21T_1T_2^{-1} is orthogonal and triangular with positive diagonal, hence II).

  5. Show that the leading principal minors satisfy Δk=(t11tkk)2\Delta_k = (t_{11}\cdots t_{kk})^2, and deduce that the pivots produced by the Gauss reduction of a positive definite form, taken in the natural variable order, are

    dk=ΔkΔk1(Δ0=1):d_k = \frac{\Delta_k}{\Delta_{k-1}} \qquad (\Delta_0 = 1) :

    the minors of Sylvester’s criterion (Exercise 12.8) and the pivots of Gauss are the same data. Check on Example 12.9.

Part II — Hadamard’s inequality.

  1. Let AA be positive definite. Prove

    detAa11a22ann\det A \leq a_{11}\,a_{22}\cdots a_{nn}

    (normalize: B=DADB = DAD with D=diag(aii1/2)D = \operatorname{diag}(a_{ii}^{-1/2}) has unit diagonal; bound detB=μi\det B = \prod \mu_i by AM–GM against trB=n\operatorname{tr} B = n).

  2. Show that equality holds iff AA is diagonal.
  3. Deduce Hadamard’s inequality: for every real square matrix MM with columns c1,,cnc_1, \dots, c_n,

    detMi=1nci2,\abs{\det M} \leq \prod_{i=1}^{n}\norm{c_i}_2 ,

    with equality (for invertible MM) iff the columns are pairwise orthogonal (apply questions 6–7 to MTMM^{\mathsf T}M).

  4. Geometric and combinatorial dividends: interpret question 8 as “the volume of a parallelepiped is at most the product of its edge lengths”; and show that a matrix with all entries in [1,1]\intcc{-1}{1} has detMnn/2\abs{\det M} \leq n^{n/2}. (Matrices attaining this bound — Hadamard matrices — exist for n=1,2n = 1, 2 and many multiples of 44; whether for all multiples of 44 is a famous open problem.)

Part III — Polar decomposition and singular values.

  1. Let AA be invertible. Show that ATAA^{\mathsf T}A is positive definite, and that

    S=ATA(the square root of Exercise 12.6),Q=AS1S = \sqrt{A^{\mathsf T}A} \quad\text{(the square root of \text{Exercise 12.6})}, \qquad Q = AS^{-1}

    give a factorization A=QSA = QS with QQ orthogonal and SS positive definite.

  2. Prove that this factorization of an invertible AA is unique.
  3. Extend existence to arbitrary AA: choose εk0\varepsilon_k \to 0 with A+εkIA + \varepsilon_k I invertible, write A+εkI=QkSkA + \varepsilon_kI = Q_kS_k, and use the compactness of O(n)O(n) (Exercise 12.5) to extract QkQQ_k \to Q; show Sk=QkT(A+εkI)S_k = Q_k^{\mathsf T}(A + \varepsilon_kI) converges to some positive semidefinite SS with A=QSA = QS and S=ATAS = \sqrt{A^{\mathsf T}A}. Where does uniqueness fail for singular AA?
  4. (Singular value decomposition) Deduce that every real square AA writes

    A=UΣVT,U,VO(n),Σ=diag(σ1,,σn), σi0,A = U\,\Sigma\,V^{\mathsf T}, \qquad U, V \in O(n),\quad \Sigma = \operatorname{diag}(\sigma_1, \dots, \sigma_n),\ \sigma_i \geq 0 ,

    where the σi\sigma_i (the singular values) are the eigenvalues of ATA\sqrt{A^{\mathsf T}A}.

  5. Three consequences: A2=σmax\vertiii{A}_2 = \sigma_{\max} for every real AA (generalizing Exercise 12.7); detA=σ1σn\abs{\det A} = \sigma_1\cdots\sigma_n; and the image of the unit sphere under an invertible AA is an ellipsoid with semi-axes σ1,,σn\sigma_1, \dots, \sigma_n along the columns of UU.

Part IV — Conics, by the spectral theorem. A plane conic is the zero set of f(x)=q(x)+b,x+cf(x) = q(x) + \langle b, x\rangle + c, with q0q \neq 0 a quadratic form of matrix AA, bR2b \in \R^2, cRc \in \R.

  1. Reduce ff by a rotation (principal axes, Corollary 12.15) followed by a translation, and classify the possible nonempty, nondegenerate shapes by the signature of qq: ellipse (detA>0\det A > 0), hyperbola (detA<0\det A < 0), parabola (detA=0\det A = 0, rank 11, with the linear term not absorbed).
  2. Run the reduction in full for

    x2+4xy+y2+2x2y=4:x^2 + 4xy + y^2 + 2x - 2y = 4 :

    rotated coordinates, reduced equation, nature and center of the conic.

  3. (Central conics) Suppose detA0\det A \neq 0. Show the center is x0=12A1bx_0 = -\frac12 A^{-1}b, and that the congruence by (Ix001)\begin{pmatrix} I & x_0\\ 0 & 1\end{pmatrix} of the 3×33\times3 matrix Q~=(Ab/2bT/2c)\widetilde Q = \begin{pmatrix} A & b/2 \\ b^{\mathsf T}/2 & c\end{pmatrix} yields

    detQ~=f(x0)detA:\det\widetilde Q = f(x_0)\,\det A :

    the central conic is degenerate (a point or two lines) exactly when detQ~=0\det\widetilde Q = 0.

  4. Verify question 17 on the example of question 16: compute x0x_0, f(x0)f(x_0) and detQ~\det\widetilde Q, and conclude again that the conic is a nondegenerate hyperbola.
  5. (A quadric pencil) For λR\lambda \in \R, classify the surface

    x2+y2+z2+2λ(xy+yz+zx)=1x^2 + y^2 + z^2 + 2\lambda(xy + yz + zx) = 1

    by the eigenvalues of its matrix (all-ones structure: eigenvalues 1+2λ1 + 2\lambda and 1λ1 - \lambda double): sphere/ellipsoid, cylinder, pair of planes, hyperboloids of one and two sheets, according to λ\lambda.

Part V — Two forms at once: simultaneous reduction.

  1. Let qq be positive definite and qq' an arbitrary quadratic form on EE. Prove that there is a basis of EE which is orthonormal for qq and orthogonal for qq': in it, q=xi2q = \sum x_i^2 and q=μixi2q' = \sum \mu_i x_i^2 (use qq as the inner product and apply the spectral theorem to the endomorphism representing qq').
  2. Matrix form: for AA positive definite and BB symmetric, there is an invertible PP with PTAP=IP^{\mathsf T}AP = I and PTBP=diag(μ1,,μn)P^{\mathsf T}BP = \operatorname{diag}(\mu_1, \dots, \mu_n), where the μi\mu_i are the roots of det(BμA)=0\det(B - \mu A) = 0.
  3. Run it in full for

    A=(2111),B=(0110):A = \begin{pmatrix} 2 & 1\\ 1 & 1 \end{pmatrix}, \qquad B = \begin{pmatrix} 0 & 1\\ 1 & 0 \end{pmatrix} :

    the generalized eigenvalues μ±\mu_\pm, and vectors diagonalizing both forms.

  4. Show that positive definiteness cannot be dropped: for

    A=(1001),B=(0110),A = \begin{pmatrix} 1 & 0\\ 0 & -1 \end{pmatrix}, \qquad B = \begin{pmatrix} 0 & 1\\ 1 & 0 \end{pmatrix},

    no basis diagonalizes both forms (if PP diagonalized both, det(BμA)\det(B - \mu A) would split with real roots; compute it).

  5. Show that the μi\mu_i of question 21 are the eigenvalues of A1BA^{-1}B, and that A1BA^{-1}B, while not symmetric in general, is always diagonalizable with real eigenvalues (conjugate by A\sqrt A).
  6. Synthesis. In one sentence each: (i) the one theorem every Part leaned on; (ii) which results of Parts I–III survive for positive semidefinite matrices, and which need definiteness; (iii) the physical system whose small oscillations questions 20–22 diagonalize (kinetic and potential energy as the two forms), and what the μi\mu_i mean there.
Solution

Solution of Problem 12.1.

1. GG is symmetric by symmetry of the inner product, and

XTGX=i,jxixjvi,vj=ixivi20,X^{\mathsf T}GX = \sum_{i,j}x_ix_j\langle v_i, v_j\rangle = \Bigl\|\sum_i x_iv_i\Bigr\|^2 \geq 0 ,

with equality iff xivi=0\sum x_iv_i = 0: GG is definite iff the only null combination is trivial, i.e. iff the family is independent.

2. With B=AB = \sqrt A (Exercise 12.6): A=B2=BTBA = B^2 = B^{\mathsf T}B, the Gram matrix of the columns of BB; take C=BC = B. And XTAX=CX2X^{\mathsf T}AX = \norm{CX}^2, so AA is definite iff CX0CX \neq 0 for X0X \neq 0, iff CC is invertible.

3. The restriction of the form to Vect(ei,ej)\operatorname{Vect}(e_i, e_j) has matrix (aiiaijaijajj)\begin{pmatrix} a_{ii} & a_{ij}\\ a_{ij} & a_{jj} \end{pmatrix}, still positive semidefinite: its determinant (product of its nonnegative eigenvalues) is 0\geq 0: aij2aiiajja_{ij}^2 \leq a_{ii}a_{jj}. This is Cauchy–Schwarz for the vectors vi,vjv_i, v_j of a Gram realization.

4. Existence: write AA as the Gram matrix of an independent family (v1,,vn)(v_1, \dots, v_n) (questions 1–2). Gram–Schmidt produces an orthonormal (e1,,en)(e_1, \dots, e_n) with

vk=iktikei,tkk=vkprojk1vk>0,v_k = \sum_{i \leq k} t_{ik}\,e_i, \qquad t_{kk} = \bigl\| v_k - \operatorname{proj}_{k-1}v_k \bigr\| > 0 ,

so T=(tik)T = (t_{ik}) is upper triangular with positive diagonal, and

ajk=vj,vk=itijtik=(TTT)jk.a_{jk} = \langle v_j, v_k\rangle = \sum_i t_{ij}t_{ik} = (T^{\mathsf T}T)_{jk} .

Uniqueness: if T1TT1=T2TT2T_1^{\mathsf T}T_1 = T_2^{\mathsf T}T_2 then R=T1T21R = T_1T_2^{-1} satisfies RTR=IR^{\mathsf T}R = I: RR is orthogonal, and also upper triangular with positive diagonal (product of such). Then R1=RTR^{-1} = R^{\mathsf T} is simultaneously upper (inverse of upper) and lower (transpose of upper) triangular: diagonal; an orthogonal diagonal matrix has entries ±1\pm1, and positivity forces R=IR = I: T1=T2T_1 = T_2.

5. For i,jki, j \leq k, (TTT)ij=mtmitmj(T^{\mathsf T}T)_{ij} = \sum_m t_{mi}t_{mj} only involves mmin(i,j)km \leq \min(i,j) \leq k: the leading k×kk\times k block of AA is TkTTkT_k^{\mathsf T}T_k with TkT_k the leading block of TT. Hence Δk=(detTk)2=(t11tkk)2\Delta_k = (\det T_k)^2 = (t_{11}\cdots t_{kk})^2. Now the Gauss reduction of a positive definite form in the natural order never meets a zero square coefficient (the pivots are the diagonal entries of the successively reduced positive definite blocks): it produces q=kdkk2q = \sum_k d_k\ell_k^2 with k=xk+(terms in xk+1,)\ell_k = x_k + (\text{terms in } x_{k+1}, \dots), i.e. A=LTDLA = L^{\mathsf T}DL with LL unipotent triangular; then T=DLT = \sqrt D\,L is a Cholesky factor, so by uniqueness tkk2=dkt_{kk}^2 = d_k and

dk=(t11tkk)2(t11tk1,k1)2=ΔkΔk1.d_k = \frac{(t_{11}\cdots t_{kk})^2} {(t_{11}\cdots t_{k-1,k-1})^2} = \frac{\Delta_k}{\Delta_{k-1}} .

On Example 12.9: Δ1,Δ2,Δ3=2,3,4\Delta_1, \Delta_2, \Delta_3 = 2, 3, 4 and the pivots were 2,32,432, \frac32, \frac43.

6. Each aii=eiTAei>0a_{ii} = e_i^{\mathsf T}Ae_i > 0. Let D=diag(aii1/2)D = \operatorname{diag}(a_{ii}^{-1/2}) and B=DADB = DAD: positive definite (congruence), with bii=1b_{ii} = 1, so trB=n\operatorname{tr} B = n. Its eigenvalues μi>0\mu_i > 0 satisfy, by AM–GM,

detB=iμi(μin) ⁣n=1,\det B = \prod_i\mu_i \leq \Bigl(\frac{\sum\mu_i}{n}\Bigr)^{\!n} = 1 ,

and detB=(detD)2detA=detAaii\det B = (\det D)^2\det A = \dfrac{\det A}{\prod a_{ii}}: detAaii\det A \leq \prod a_{ii}.

7. AM–GM is an equality iff all μi\mu_i are equal (to 11); a symmetric matrix with sole eigenvalue 11 is PIPT=IPIP^{\mathsf T} = I. So equality iff B=IB = I iff aij=0a_{ij} = 0 for iji \neq j: AA diagonal.

8. If MM is singular both sides are 0=detM\geq 0 = \abs{\det M}. Otherwise A=MTMA = M^{\mathsf T}M is positive definite with aii=ci2a_{ii} = \norm{c_i}^2 and detA=(detM)2\det A = (\det M)^2: question 6 gives (detM)2ci2(\det M)^2 \leq \prod\norm{c_i}^2. Equality iff A=MTMA = M^{\mathsf T}M is diagonal (question 7), i.e. iff the columns are pairwise orthogonal.

9. detM\abs{\det M} is the volume of the parallelepiped spanned by the columns: the volume is at most the product of the edge lengths, with equality exactly for rectangular boxes. If mij1\abs{m_{ij}} \leq 1 then cin\norm{c_i} \leq \sqrt n, so detMnn/2\abs{\det M} \leq n^{n/2}. (Attaining it forces orthogonal columns of entries ±1\pm1: a Hadamard matrix.)

10. XTATAX=AX2>0X^{\mathsf T}A^{\mathsf T}AX = \norm{AX}^2 > 0 for X0X \neq 0 (AA invertible): ATAA^{\mathsf T}A is positive definite. Its square root SS is positive definite (eigenvalues λi>0\sqrt{\lambda_i} > 0), hence invertible, and Q=AS1Q = AS^{-1} satisfies

QTQ=S1ATAS1=S1S2S1=I:Q^{\mathsf T}Q = S^{-1}A^{\mathsf T}AS^{-1} = S^{-1}S^2S^{-1} = I :

A=QSA = QS with QQ orthogonal, SS positive definite.

11. If A=QS=QSA = QS = Q'S' then S2=STQTQS=ATA=S2S'^{\,2} = S'^{\mathsf T}Q'^{\mathsf T}Q'S' = A^{\mathsf T}A = S^2; two positive semidefinite matrices with the same square coincide (Exercise 12.6): S=SS' = S, then Q=AS1=QQ' = AS^{-1} = Q.

12. det(A+εI)\det(A + \varepsilon I) is a nonzero polynomial in ε\varepsilon: it has finitely many roots, so some sequence εk0\varepsilon_k \to 0 avoids them. Write A+εkI=QkSkA + \varepsilon_kI = Q_kS_k (question 10). O(n)O(n) is compact (Exercise 12.5): a subsequence gives Qφ(k)QO(n)Q_{\varphi(k)} \to Q \in O(n). Then

Sφ(k)=Qφ(k)T(A+εφ(k)I)QTA=:S,S_{\varphi(k)} = Q_{\varphi(k)}^{\mathsf T} \bigl(A + \varepsilon_{\varphi(k)}I\bigr) \longrightarrow Q^{\mathsf T}A =: S,

symmetric positive semidefinite as a limit of such (closed conditions), and A=QSA = QS. Moreover S2=STS=ATQQTA=ATAS^2 = S^{\mathsf T}S = A^{\mathsf T}QQ^{\mathsf T}A = A^{\mathsf T}A, so S=ATAS = \sqrt{A^{\mathsf T}A} by uniqueness. For singular AA, SS is singular and QQ is not unique: it can be modified arbitrarily on (imS)(\operatorname{im} S)^{\perp} — extreme case A=0A = 0, where every orthogonal QQ works.

13. Diagonalize S=PΣPTS = P\Sigma P^{\mathsf T} (spectral theorem), Σ=diag(σi)\Sigma = \operatorname{diag}(\sigma_i) with σi0\sigma_i \geq 0 the eigenvalues of S=ATAS = \sqrt{A^{\mathsf T}A}. Then

A=QS=(QP)ΣPT=UΣVT,U=QP, V=PO(n).A = QS = (QP)\,\Sigma\,P^{\mathsf T} = U\Sigma V^{\mathsf T}, \qquad U = QP,\ V = P \in O(n) .

14. Ax2=xTS2xσmax2x2\norm{Ax}^2 = x^{\mathsf T}S^2x \leq \sigma_{\max}^2\norm x^2 with equality at a top eigenvector of SS: A2=σmax\vertiii A_2 = \sigma_{\max} — for symmetric AA, S=A2S = \sqrt{A^2} has eigenvalues λi\abs{\lambda_i}, recovering Exercise 12.7. Determinant: detA=detUdetΣdetV=σ1σn\abs{\det A} = \abs{\det U}\det\Sigma\abs{\det V} = \sigma_1\cdots\sigma_n. Sphere: writing x=Vyx = Vy with y=1\norm y = 1, Ax=UΣyAx = U\Sigma y has coordinates zi=σiyiz_i = \sigma_iy_i in the orthonormal frame of the columns of UU: the image is {zi2/σi2=1}\{\sum z_i^2/\sigma_i^2 = 1\}, an ellipsoid with semi-axes σi\sigma_i.

15. A rotation to principal axes (Corollary 12.15) turns ff into λ1X2+λ2Y2+β1X+β2Y+c\lambda_1X^2 + \lambda_2Y^2 + \beta_1X + \beta_2Y + c, with λ1λ2=detA\lambda_1\lambda_2 = \det A. If detA0\det A \neq 0, absorb the linear terms by the translation XXβ12λ1X \mapsto X - \frac{\beta_1}{2\lambda_1} (and likewise YY): λ1X2+λ2Y2=c\lambda_1X'^2 + \lambda_2Y'^2 = c'. For detA>0\det A > 0 (equal signs): an ellipse (cc' of the right sign), a point, or empty. For detA<0\det A < 0: a hyperbola (c0c' \neq 0) or two crossing lines. If detA=0\det A = 0 with rank 11 (say λ2=0λ1\lambda_2 = 0 \neq \lambda_1): λ1X2+β2Y+c\lambda_1X'^2 + \beta_2Y + c'', a parabola when β20\beta_2 \neq 0; otherwise two parallel lines, one line, or empty. Nondegenerate shapes: ellipse, hyperbola, parabola, governed by the sign of detA\det A.

16. The quadratic part x2+4xy+y2x^2 + 4xy + y^2 has matrix (1221)\begin{pmatrix}1 & 2\\ 2 & 1\end{pmatrix}, eigenvalues 33 and 1-1 with orthonormal directions 12(1,1)\frac{1}{\sqrt2}(1,1), 12(1,1)\frac{1}{\sqrt2}(1,-1). In the rotated coordinates u=x+y2u = \frac{x+y}{\sqrt2}, v=xy2v = \frac{x-y}{\sqrt2}: x2+y2=u2+v2x^2 + y^2 = u^2 + v^2, 2xy=u2v22xy = u^2 - v^2, so the form is 3u2v23u^2 - v^2, and 2x2y=22v2x - 2y = 2\sqrt2\,v. The equation becomes

3u2v2+22v=43u2(v2)2=2:3u^2 - v^2 + 2\sqrt2\,v = 4 \quad\Longleftrightarrow\quad 3u^2 - \bigl(v - \sqrt2\bigr)^2 = 2 :

a hyperbola, center at (u,v)=(0,2)(u, v) = (0, \sqrt2), i.e. (x,y)=(1,1)(x, y) = (1, -1), with axes along the rotated frame.

17. f(x)=(xx0)TA(xx0)+f(x0)f(x) = (x - x_0)^{\mathsf T}A(x - x_0) + f(x_0) whenever Ax0=b2Ax_0 = -\frac b2, i.e. x0=12A1bx_0 = -\frac12A^{-1}b: the gradient of ff vanishes exactly there (x0x_0 is the center of symmetry). With M=(Ix001)M = \begin{pmatrix} I & x_0\\ 0 & 1\end{pmatrix}:

MTQ~M=(AAx0+b2(Ax0+b2)Tx0TAx0+bTx0+c)=(A00f(x0)),M^{\mathsf T}\widetilde QM = \begin{pmatrix} A & Ax_0 + \frac b2\\[2pt] \bigl(Ax_0 + \frac b2\bigr)^{\mathsf T} & x_0^{\mathsf T}Ax_0 + b^{\mathsf T}x_0 + c \end{pmatrix} = \begin{pmatrix} A & 0\\ 0 & f(x_0)\end{pmatrix},

and detM=1\det M = 1: detQ~=f(x0)detA\det\widetilde Q = f(x_0)\det A. The centered equation reads q(X)=f(x0)q(X) = -f(x_0): for f(x0)=0f(x_0) = 0 it degenerates to q(X)=0q(X) = 0 (two lines through the center if the signature is (1,1)(1,1), the single point x0x_0 if qq is definite); for f(x0)0f(x_0) \neq 0 the conic is a genuine ellipse or hyperbola.

18. A1=13(1221)A^{-1} = -\frac13\begin{pmatrix} 1 & -2\\ -2 & 1\end{pmatrix}, b2=(1,1)\frac b2 = (1, -1): x0=A1b2=(1,1)x_0 = -A^{-1}\frac b2 = (1, -1), as found in question 16. f(x0)=q(1,1)+2+24=(14+1)+0=20f(x_0) = q(1,-1) + 2 + 2 - 4 = (1 - 4 + 1) + 0 = -2 \neq 0, and detQ~=f(x0)detA=(2)(3)=60\det\widetilde Q = f(x_0)\det A = (-2)(-3) = 6 \neq 0: nondegenerate; detA=3<0\det A = -3 < 0: a hyperbola — and indeed the centered equation 3u2(v2)2=f(x0)=23u^2 - (v - \sqrt2)^2 = -f(x_0) = 2 matches question 16.

19. The matrix is (1λ)I+λJ(1-\lambda)I + \lambda J: eigenvalues 1+2λ1 + 2\lambda (direction (1,1,1)(1,1,1)) and 1λ1 - \lambda (double, on x+y+z=0x + y + z = 0). Cases:

  • 12<λ<1-\frac12 < \lambda < 1: all eigenvalues positive: an ellipsoid of revolution about (1,1,1)(1,1,1) (a sphere for λ=0\lambda = 0);
  • λ=1\lambda = 1: q=(x+y+z)2q = (x+y+z)^2: the equation gives the two parallel planes x+y+z=±1x + y + z = \pm1;
  • λ=12\lambda = -\frac12: eigenvalues 0,32,320, \frac32, \frac32: a circular cylinder of axis (1,1,1)(1,1,1);
  • λ>1\lambda > 1: signature (1,2)(1, 2): a hyperboloid of two sheets;
  • λ<12\lambda < -\frac12: signature (2,1)(2, 1): a hyperboloid of one sheet.

20. The polar form of qq is an inner product ,q\langle\cdot,\cdot\rangle_q on EE. For fixed xx, yφ(x,y)y \mapsto \varphi'(x, y) (polar form of qq') is linear, hence equals zx,yq\langle z_x, y\rangle_q for a unique zxz_x; u(x):=zxu(x) := z_x is linear (uniqueness), and u(x),yq=φ(x,y)=φ(y,x)=u(y),xq\langle u(x), y\rangle_q = \varphi'(x,y) = \varphi'(y,x) = \langle u(y), x\rangle_q: uu is symmetric in the Euclidean space (E,,q)(E, \langle\cdot,\cdot\rangle_q). The spectral theorem (Theorem 12.13) gives a qq-orthonormal eigenbasis (εi)(\varepsilon_i), u(εi)=μiεiu(\varepsilon_i) = \mu_i\varepsilon_i: in it q(x)=xi2q(x) = \sum x_i^2 and q(x)=u(x),xq=μixi2q'(x) = \langle u(x), x\rangle_q = \sum\mu_ix_i^2.

21. Let PP be the matrix of that basis: congruence gives PTAP=IP^{\mathsf T}AP = I and PTBP=diag(μi)P^{\mathsf T}BP = \operatorname{diag}(\mu_i). Then

det(BμA)=det(PT)det(diag(μi)μI)det(P1)=(detP)2i(μiμ):\det(B - \mu A) = \det(P^{-\mathsf T}) \det\bigl(\operatorname{diag}(\mu_i) - \mu I\bigr) \det(P^{-1}) = (\det P)^{-2}\prod_i(\mu_i - \mu) :

the μi\mu_i are the roots of the pencil det(BμA)\det(B - \mu A).

22. det(BμA)=det(2μ1μ1μμ)=2μ2(1μ)2=μ2+2μ1\det(B - \mu A) = \det\begin{pmatrix} -2\mu & 1-\mu\\ 1-\mu & -\mu\end{pmatrix} = 2\mu^2 - (1-\mu)^2 = \mu^2 + 2\mu - 1: roots μ±=1±2\mu_\pm = -1 \pm \sqrt2. Solving (Bμ±A)v=0(B - \mu_\pm A)v = 0: v±=(1μ±, 2μ±)v_\pm = (1 - \mu_\pm,\ 2\mu_\pm) (the second row identity (1μ)2=2μ2(1-\mu)^2 = 2\mu^2 at the roots confirms it). The AA-norms come out clean: qA(v±)=2(1+μ±2)q_A(v_\pm) = 2(1 + \mu_\pm^2), and one checks φA(v+,v)=0\varphi_A(v_+, v_-) = 0 using μ++μ=2\mu_+ + \mu_- = -2, μ+μ=1\mu_+\mu_- = -1. The basis (v+2(1+μ+2),v2(1+μ2))\Bigl(\frac{v_+}{\sqrt{2(1 + \mu_+^2)}}, \frac{v_-}{\sqrt{2(1+\mu_-^2)}}\Bigr) is orthonormal for AA and diagonalizes BB with entries μ±\mu_\pm.

23. If some invertible PP diagonalized both forms, question 21’s computation would give det(BμA)=(detP)2(d2iμd1i)\det(B - \mu A) = (\det P)^{-2}\prod(d_{2i} - \mu d_{1i}), a real polynomial split into real linear factors. But here

det(BμA)=det(μ11μ)=μ21,\det(B - \mu A) = \det\begin{pmatrix} -\mu & 1\\ 1 & \mu\end{pmatrix} = -\mu^2 - 1 ,

of degree 22 with no real root: contradiction. (The Lorentz-signature AA admits BB-“rotations” with no real axes.)

24. A1B=A1/2(A1/2BA1/2)A1/2A^{-1}B = A^{-1/2}\bigl(A^{-1/2}BA^{-1/2}\bigr) A^{1/2} with A1/2=AA^{1/2} = \sqrt A positive definite (Exercise 12.6): A1BA^{-1}B is similar to the symmetric A1/2BA1/2A^{-1/2}BA^{-1/2}, hence diagonalizable with real eigenvalues. And det(BμA)=detAdet(A1BμI)\det(B - \mu A) = \det A\cdot \det(A^{-1}B - \mu I): the pencil roots μi\mu_i of question 21 are exactly the eigenvalues of A1BA^{-1}B.

25. (i) Every Part leaned on the spectral theorem: through the square root (Cholesky, polar), the eigenvalue bounds (Hadamard), the principal axes (conics), and the qq-adapted version (simultaneous reduction). (ii) Gram realizations, Hadamard, and the polar decomposition survive in the semidefinite world; Cholesky’s uniqueness, the pivot formula, and the simultaneous reduction need definiteness (questions 12 and 23 show exactly how they fail). (iii) Coupled small oscillations: kinetic energy (positive definite) and potential energy are two quadratic forms; the basis of questions 20–22 is the system’s normal modes, and the μi\mu_i are the squared angular frequencies.