Linear-Algebra-Done-Right · Unit 27 · Video 3 · Interactive Practice

Symmetric Bilinear Forms Are Diagonal in Some Basis

IKey Formulas

FormulaNameHypotheses
ρ(u,w)=ρ(w,u)\rho(u, w) = \rho(w, u) for all u,w∈Vu, w \in V   ⟺  \iff M(ρ,(e1,…,en))\mathcal{M}(\rho, (e_1, \dots, e_n)) is symmetric for some basis   ⟺  \iff for every basisSymmetric in every basis or in noneρ∈V(2)\rho \in V^{(2)}, VV finite-dimensional
M(ρ,(e1,…,en))=CtBC\mathcal{M}(\rho, (e_1, \dots, e_n)) = C^{\mathrm{t}} B C,  (CtBC)t=CtBtC\ (C^{\mathrm{t}} B C)^{\mathrm{t}} = C^{\mathrm{t}} B^{\mathrm{t}} CWhy symmetry survives a change of basisB=M(ρ,(f1,…,fn))B = \mathcal{M}(\rho, (f_1, \dots, f_n)), C=M(I,(e1,…,en),(f1,…,fn))C = \mathcal{M}(I, (e_1, \dots, e_n), (f_1, \dots, f_n))
2ρ(u,w)=ρ(u+w,u+w)−ρ(u,u)−ρ(w,w)2\rho(u, w) = \rho(u + w, u + w) - \rho(u, u) - \rho(w, w)Finding vv with ρ(v,v)≠0\rho(v, v) \neq 0ρ\rho symmetric, ρ(u,w)≠0\rho(u, w) \neq 0
U={u∈V:ρ(u,v)=0}U = \{u \in V : \rho(u, v) = 0\},  dim⁡U=n−1\ \dim U = n - 1; basis e1,…,en−1,ve_1, \dots, e_{n-1}, vThe induction stepρ\rho symmetric, ρ(v,v)≠0\rho(v, v) \neq 0; e1,…,en−1e_1, \dots, e_{n-1} a basis of UU with ρ(ej,ek)=0\rho(e_j, e_k) = 0 for j≠kj \neq k

Key Insight: On a finite-dimensional real inner product space, let ρ\rho be symmetric and B=M(ρ,(f1,…,fn))B = \mathcal{M}(\rho, (f_1, \dots, f_n)) for an orthonormal basis f1,…,fnf_1, \dots, f_n; the operator TT with M(T,(f1,…,fn))=B\mathcal{M}(T, (f_1, \dots, f_n)) = B is then self-adjoint. The change-of-basis matrix CC between two orthonormal bases satisfies Ct=C−1C^{\mathrm{t}} = C^{-1}, so the orthonormal eigenbasis of TT that the real spectral theorem gives also diagonalizes ρ\rho, with the eigenvalues of TT on the diagonal.

IIOperator or Form: Which Matrix Stays Symmetric?

One symmetric matrix BB becomes C−1BCC^{-1}BC as an operator but CtBCC^{\mathrm{t}}BC as a bilinear form.

IIIThe Induction Step: Which vv Works?

In R2\mathbf{R}^2, appending vv to a basis of U={u:ρ(u,v)=0}U = \{u : \rho(u, v) = 0\} gives a basis of R2\mathbf{R}^2 that diagonalizes ρ\rho exactly when ρ(v,v)≠0\rho(v, v) \neq 0.

💡 A nonzero symmetric form always has some vv with ρ(v,v)≠0\rho(v, v) \neq 0: if ρ(u,w)≠0\rho(u, w) \neq 0, one of u+wu + w, uu, ww is such a vv.

IVAn Orthonormal Basis That Diagonalizes ρ\rho

Among orthonormal bases of R2\mathbf{R}^2, the ones making M(ρ,(e1,e2))\mathcal{M}(\rho, (e_1, e_2)) diagonal are eigenvector bases of BB.

💡 Replacing a basis vector vv by cvcv multiplies its diagonal entry by c2c^2, since ρ(cv,cv)=c2ρ(v,v)\rho(cv, cv) = c^2 \rho(v, v); a non-orthonormal diagonalizing basis need not show the eigenvalues.

VQuiz Questions

Problem 1 · Symmetric in Every Basis or in None

Given: the symmetric bilinear form ρ\rho on R3\mathbf{R}^3 with M(ρ,(e1,e2,e3))=B=(1020−11210)\mathcal{M}(\rho, (e_1, e_2, e_3)) = B = \begin{pmatrix} 1 & 0 & 2 \\ 0 & -1 & 1 \\ 2 & 1 & 0 \end{pmatrix} and the basis f1=(1,1,0)f_1 = (1, 1, 0), f2=(0,1,1)f_2 = (0, 1, 1), f3=(1,0,1)f_3 = (1, 0, 1) — find M(ρ,(f1,f2,f3))\mathcal{M}(\rho, (f_1, f_2, f_3)), and decide whether a bilinear form σ\sigma on R3\mathbf{R}^3 with σ(e1,e2)=1\sigma(e_1, e_2) = 1 and σ(e2,e1)=−1\sigma(e_2, e_1) = -1 has a diagonal matrix with respect to some basis.

M(ρ,(f1,f2,f3))\mathcal{M}(\rho, (f_1, f_2, f_3))

Is M(σ,⋅)\mathcal{M}(\sigma, \cdot) diagonal with respect to some basis of R3\mathbf{R}^3?

✅ Correct! The entries ρ(fj,fk)\rho(f_j, f_k) form a symmetric matrix because ρ\rho is symmetric, and a form whose matrix is not symmetric in one basis is symmetric in no basis, so it is diagonal in none.
❌ That is the operator formula C−1BCC^{-1}BC. A bilinear form changes by CtBCC^{\mathrm{t}}BC; the result here is not even symmetric, which already rules it out, since ρ\rho is symmetric.
❌ That is only BCBC. Its (j,k)(j, k) entry is a coordinate of BfkBf_k, not ρ(fj,fk)\rho(f_j, f_k); multiply by CtC^{\mathrm{t}} on the left. A matrix of ρ\rho must be symmetric, and this one is not.
❌ The transposes are on the wrong side. This is CBCtCBC^{\mathrm{t}}; it is symmetric, but compare its corner entry 55 with ρ(f1,f1)=f1tBf1\rho(f_1, f_1) = f_1^{\mathrm{t}} B f_1.
❌ Not quite. The (j,k)(j, k) entry is ρ(fj,fk)=fjtBfk\rho(f_j, f_k) = f_j^{\mathrm{t}} B f_k; start with ρ(f1,f1)\rho(f_1, f_1).
❌ The induction uses symmetry. The identity 2ρ(u,w)=ρ(u+w,u+w)−ρ(u,u)−ρ(w,w)2\rho(u, w) = \rho(u + w, u + w) - \rho(u, u) - \rho(w, w) and the zero last row both need ρ(u,w)=ρ(w,u)\rho(u, w) = \rho(w, u).
❌ That operator is not self-adjoint. Its standard matrix is not symmetric, so the real spectral theorem gives no orthonormal eigenbasis, and no basis could make M(σ,⋅)\mathcal{M}(\sigma, \cdot) diagonal anyway.
❌ A vector with σ(v,v)≠0\sigma(v, v) \neq 0 is not enough. Diagonal implies symmetric, and σ\sigma fails symmetry at (e1,e2)(e_1, e_2) whatever σ(v,v)\sigma(v, v) is.
❌ Not quite. Ask what a diagonal M(σ,⋅)\mathcal{M}(\sigma, \cdot) would say about σ\sigma itself, then use the theorem's equivalences.
Show solution

Let CC have columns f1,f2,f3f_1, f_2, f_3, so C=M(I,(f1,f2,f3),(e1,e2,e3))C = \mathcal{M}(I, (f_1, f_2, f_3), (e_1, e_2, e_3)) and the change-of-basis formula gives M(ρ,(f1,f2,f3))=CtBC\mathcal{M}(\rho, (f_1, f_2, f_3)) = C^{\mathrm{t}}BC:

BC=(123−101312),CtBC=(110011101)(123−101312)=(024213435).BC = \begin{pmatrix} 1 & 2 & 3 \\ -1 & 0 & 1 \\ 3 & 1 & 2 \end{pmatrix}, \qquad C^{\mathrm{t}}BC = \begin{pmatrix} 1 & 1 & 0 \\ 0 & 1 & 1 \\ 1 & 0 & 1 \end{pmatrix} \begin{pmatrix} 1 & 2 & 3 \\ -1 & 0 & 1 \\ 3 & 1 & 2 \end{pmatrix} = \begin{pmatrix} 0 & 2 & 4 \\ 2 & 1 & 3 \\ 4 & 3 & 5 \end{pmatrix}.

Check one entry directly: ρ(f1,f3)=f1t(Bf3)=(1,1,0)⋅(3,1,2)=4\rho(f_1, f_3) = f_1^{\mathrm{t}} (Bf_3) = (1, 1, 0) \cdot (3, 1, 2) = 4. The result is symmetric, as it must be: ρ\rho is symmetric, so its matrix is symmetric with respect to every basis.

For σ\sigma: if M(σ,(g1,g2,g3))\mathcal{M}(\sigma, (g_1, g_2, g_3)) were diagonal for some basis, it would be symmetric for that basis, so σ\sigma would be symmetric, and then M(σ,(e1,e2,e3))\mathcal{M}(\sigma, (e_1, e_2, e_3)) would be symmetric too. Its (1,2)(1, 2) and (2,1)(2, 1) entries are 11 and −1-1, so no such basis exists.

Problem 2 · Finding vv When the Diagonal Is Zero

Given: the symmetric bilinear form ρ(x,y)=x1y2+x2y1+2x2y3+2x3y2\rho(x, y) = x_1y_2 + x_2y_1 + 2x_2y_3 + 2x_3y_2 on R3\mathbf{R}^3, for which ρ(e1,e1)=ρ(e2,e2)=ρ(e3,e3)=0\rho(e_1, e_1) = \rho(e_2, e_2) = \rho(e_3, e_3) = 0 — find a vector vv with ρ(v,v)≠0\rho(v, v) \neq 0 to start the induction, and the value ρ(v,v)\rho(v, v).

Which vector has ρ(v,v)≠0\rho(v, v) \neq 0?

The value ρ(v,v)\rho(v, v) for that vector

✅ Correct! ρ(e2,e3)=2≠0\rho(e_2, e_3) = 2 \neq 0, so the identity guarantees that one of e2+e3e_2 + e_3, e2e_2, e3e_3 works; the last two give 00, so v=e2+e3v = e_2 + e_3 with ρ(v,v)=2ρ(e2,e3)=4\rho(v, v) = 2\rho(e_2, e_3) = 4.
❌ Every standard basis vector gives 00 here. The stem says so: ρ(ej,ej)=0\rho(e_j, e_j) = 0 for each jj.
❌ The identity needs ρ(u,w)≠0\rho(u, w) \neq 0. Here ρ(e1,e3)=0\rho(e_1, e_3) = 0, so ρ(e1+e3,e1+e3)=0+2⋅0+0=0\rho(e_1 + e_3, e_1 + e_3) = 0 + 2 \cdot 0 + 0 = 0; pair e2e_2 with e3e_3 instead.
❌ Not quite. Look for a pair u,wu, w with ρ(u,w)≠0\rho(u, w) \neq 0 and use 2ρ(u,w)=ρ(u+w,u+w)−ρ(u,u)−ρ(w,w)2\rho(u, w) = \rho(u + w, u + w) - \rho(u, u) - \rho(w, w).
❌ Both middle terms count. ρ(v,v)=ρ(e2,e2)+ρ(e2,e3)+ρ(e3,e2)+ρ(e3,e3)\rho(v, v) = \rho(e_2, e_2) + \rho(e_2, e_3) + \rho(e_3, e_2) + \rho(e_3, e_3), and the two middle terms are equal.
❌ Each cross term appears once. The coefficient 22 in 2x2y32x_2y_3 is already ρ(e2,e3)\rho(e_2, e_3); it is not doubled again.
❌ Not quite. Expand ρ(e2+e3,e2+e3)\rho(e_2 + e_3, e_2 + e_3) by bilinearity into four terms.
Show solution

The quadratic expression is ρ(x,x)=2x1x2+4x2x3\rho(x, x) = 2x_1x_2 + 4x_2x_3, which vanishes at e1e_1, e2e_2, e3e_3 and at e1+e3=(1,0,1)e_1 + e_3 = (1, 0, 1). Since ρ(e2,e3)=2≠0\rho(e_2, e_3) = 2 \neq 0, the identity

2ρ(e2,e3)=ρ(e2+e3,e2+e3)−ρ(e2,e2)−ρ(e3,e3)2\rho(e_2, e_3) = \rho(e_2 + e_3, e_2 + e_3) - \rho(e_2, e_2) - \rho(e_3, e_3)

gives ρ(e2+e3,e2+e3)=4+0+0=4≠0\rho(e_2 + e_3, e_2 + e_3) = 4 + 0 + 0 = 4 \neq 0. Directly, x=(0,1,1)x = (0, 1, 1) gives 2⋅0⋅1+4⋅1⋅1=42 \cdot 0 \cdot 1 + 4 \cdot 1 \cdot 1 = 4. The pair e1,e3e_1, e_3 fails because ρ(e1,e3)=0\rho(e_1, e_3) = 0: the identity only promises a good vector among u+wu + w, uu, ww when ρ(u,w)≠0\rho(u, w) \neq 0.

Problem 3 · Run the Induction on R3\mathbf{R}^3

Given: ρ(x,y)=xtBy\rho(x, y) = x^{\mathrm{t}} B y on R3\mathbf{R}^3 with B=(11012101−1)B = \begin{pmatrix} 1 & 1 & 0 \\ 1 & 2 & 1 \\ 0 & 1 & -1 \end{pmatrix}. Take v=e1v = e_1, so ρ(v,v)=1\rho(v, v) = 1; inside U={u:ρ(u,v)=0}U = \{u : \rho(u, v) = 0\} take v′=(1,−1,0)v' = (1, -1, 0), and let u′u' span {x∈U:ρ(x,v′)=0}\{x \in U : \rho(x, v') = 0\} — find UU and the matrix of ρ\rho with respect to the basis u′,v′,vu', v', v.

U={u∈R3:ρ(u,e1)=0}U = \{u \in \mathbf{R}^3 : \rho(u, e_1) = 0\}

M(ρ,(u′,v′,v))\mathcal{M}(\rho, (u', v', v))

✅ Correct! U={x1+x2=0}U = \{x_1 + x_2 = 0\}, the second step gives u′=(1,−1,1)u' = (1, -1, 1) with ρ(u′,u′)=−2\rho(u', u') = -2, and the basis (1,−1,1)(1, -1, 1), (1,−1,0)(1, -1, 0), (1,0,0)(1, 0, 0) makes ρ\rho diagonal with entries −2-2, 11, 11.
❌ That is the orthogonal complement of e1e_1 for the dot product. UU is defined by ρ\rho: ρ(x,e1)=xtBe1=x1+x2\rho(x, e_1) = x^{\mathrm{t}} B e_1 = x_1 + x_2.
❌ That is ρ(x,e2)=0\rho(x, e_2) = 0. ρ(x,e1)\rho(x, e_1) uses the first column of BB, (1,1,0)(1, 1, 0).
❌ UU has dimension n−1=2n - 1 = 2. It is the null space of a nonzero functional on R3\mathbf{R}^3, a plane, not a line.
❌ Not quite. Compute the functional x↦ρ(x,e1)=xt(Be1)x \mapsto \rho(x, e_1) = x^{\mathrm{t}} (Be_1) and take its null space.
❌ e3e_3 is in UU, but it is not ρ\rho-orthogonal to v′v'. ρ(e3,v′)=−1≠0\rho(e_3, v') = -1 \neq 0, so the basis e3,v′,ve_3, v', v gives a matrix with nonzero off-diagonal entries; the second step must produce u′u'.
❌ Check the sign of the cross term. With a=(1,−1,0)a = (1, -1, 0) and b=e3b = e_3, u′=a+bu' = a + b and ρ(u′,u′)=ρ(a,a)+2ρ(a,b)+ρ(b,b)\rho(u', u') = \rho(a, a) + 2\rho(a, b) + \rho(b, b), where ρ(a,b)=−1\rho(a, b) = -1.
❌ The induction does not produce eigenvalues. Only an orthonormal diagonalizing basis is forced to show them, and u′,v′,vu', v', v is not orthonormal; compute ρ(u′,u′)\rho(u', u'), ρ(v′,v′)\rho(v', v') and ρ(v,v)\rho(v, v) directly.
❌ Not quite. Find u′u' from u′∈Uu' \in U and ρ(u′,v′)=0\rho(u', v') = 0, then compute ρ(u′,u′)\rho(u', u'), ρ(v′,v′)\rho(v', v') and ρ(v,v)\rho(v, v).
Show solution

First step. Be1=(1,1,0)Be_1 = (1, 1, 0), so ρ(x,e1)=x1+x2\rho(x, e_1) = x_1 + x_2 and U={x:x1+x2=0}=span⁡((1,−1,0),(0,0,1))U = \{x : x_1 + x_2 = 0\} = \operatorname{span}\bigl((1, -1, 0), (0, 0, 1)\bigr), of dimension 22.

Second step, inside UU. v′=(1,−1,0)∈Uv' = (1, -1, 0) \in U has ρ(v′,v′)=1−1−1+2=1≠0\rho(v', v') = 1 - 1 - 1 + 2 = 1 \neq 0. Since Bv′=(0,−1,−1)Bv' = (0, -1, -1), ρ(x,v′)=−x2−x3\rho(x, v') = -x_2 - x_3. A vector of UU is x=(s,−s,t)x = (s, -s, t), and ρ(x,v′)=s−t=0\rho(x, v') = s - t = 0 gives u′=(1,−1,1)u' = (1, -1, 1).

ρ(u′,u′)=u′tBu′=(1,−1,1)⋅(0,0,−2)=−2,ρ(v,v)=1.\rho(u', u') = u'^{\mathrm{t}} B u' = (1, -1, 1) \cdot (0, 0, -2) = -2, \qquad \rho(v, v) = 1.

The off-diagonal entries vanish: ρ(u′,v′)=0\rho(u', v') = 0 by the choice of u′u', and ρ(u′,v)=ρ(v′,v)=0\rho(u', v) = \rho(v', v) = 0 because u′,v′∈Uu', v' \in U. So

M(ρ,(u′,v′,v))=(−200010001).\mathcal{M}\bigl(\rho, (u', v', v)\bigr) = \begin{pmatrix} -2 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix}.

Problem 4 · An Orthonormal Diagonalizing Basis

Given: R3\mathbf{R}^3 with the usual inner product and ρ(x,y)=xtBy\rho(x, y) = x^{\mathrm{t}} B y, B=(20203020−1)B = \begin{pmatrix} 2 & 0 & 2 \\ 0 & 3 & 0 \\ 2 & 0 & -1 \end{pmatrix} — find the diagonal entries of M(ρ,(q1,q2,q3))\mathcal{M}(\rho, (q_1, q_2, q_3)) for an orthonormal basis q1,q2,q3q_1, q_2, q_3 that diagonalizes ρ\rho, and one such basis.

The diagonal entries, in some order

An orthonormal basis that diagonalizes ρ\rho

✅ Correct! BB is symmetric, so the operator TT with matrix BB is self-adjoint; its orthonormal eigenbasis 15(2,0,1)\tfrac{1}{\sqrt{5}}(2, 0, 1), e2e_2, 15(1,0,−2)\tfrac{1}{\sqrt{5}}(1, 0, -2) has Ct=C−1C^{\mathrm{t}} = C^{-1}, so M(ρ,⋅)=C−1BC\mathcal{M}(\rho, \cdot) = C^{-1}BC is diagonal with the eigenvalues 33, 33, −2-2.
❌ Those come from the unnormalized eigenvectors. (2,0,1)(2, 0, 1) and (1,0,−2)(1, 0, -2) have length 5\sqrt{5}, and ρ(cv,cv)=c2ρ(v,v)\rho(cv, cv) = c^2 \rho(v, v) multiplies the entries by 55.
❌ Those are the diagonal entries of BB itself. They have the right sum, tr⁡B=4\operatorname{tr} B = 4, but BB is not diagonal: ρ(e1,e3)=2\rho(e_1, e_3) = 2.
❌ Rescaling multiplies an entry by c2c^2, not cc. And an orthonormal basis has unit vectors, so no rescaling factor appears at all.
❌ Not quite. With an orthonormal diagonalizing basis, the diagonal entries are the eigenvalues of the operator with matrix BB.
❌ This basis diagonalizes ρ\rho but is not orthonormal. Each of (2,0,1)(2, 0, 1) and (1,0,−2)(1, 0, -2) has length 5\sqrt{5}, giving diagonal entries 1515 and −10-10.
❌ Orthonormal, but not eigenvectors. B(2,0,−1)=(2,0,5)B(2, 0, -1) = (2, 0, 5), so ρ((1,0,2),(2,0,−1))=2+10=12≠0\rho\bigl((1, 0, 2), (2, 0, -1)\bigr) = 2 + 10 = 12 \neq 0 and the matrix has off-diagonal entries 125\tfrac{12}{5}.
❌ The standard basis gives BB itself. It is orthonormal, but BB has off-diagonal entries 22.
❌ Not quite. You need unit vectors, pairwise orthogonal, each an eigenvector of BB.
Show solution

e2e_2 is an eigenvector with eigenvalue 33. On span⁡(e1,e3)\operatorname{span}(e_1, e_3), BB acts by (222−1)\begin{pmatrix} 2 & 2 \\ 2 & -1 \end{pmatrix}:

B(2,0,1)=(6,0,3)=3(2,0,1),B(1,0,−2)=(−2,0,4)=−2(1,0,−2).B(2, 0, 1) = (6, 0, 3) = 3(2, 0, 1), \qquad B(1, 0, -2) = (-2, 0, 4) = -2(1, 0, -2).

These three eigenvectors are pairwise orthogonal; dividing (2,0,1)(2, 0, 1) and (1,0,−2)(1, 0, -2) by 5\sqrt{5} gives an orthonormal basis q1,q2,q3q_1, q_2, q_3. With CC the matrix whose columns are q1,q2,q3q_1, q_2, q_3, Ct=C−1C^{\mathrm{t}} = C^{-1}, so

M(ρ,(q1,q2,q3))=CtBC=C−1BC=(30003000−2).\mathcal{M}\bigl(\rho, (q_1, q_2, q_3)\bigr) = C^{\mathrm{t}}BC = C^{-1}BC = \begin{pmatrix} 3 & 0 & 0 \\ 0 & 3 & 0 \\ 0 & 0 & -2 \end{pmatrix}.

Check: ρ(q1,q1)=15(2,0,1)⋅(6,0,3)=3\rho(q_1, q_1) = \tfrac{1}{5}(2, 0, 1) \cdot (6, 0, 3) = 3, and the entries add up to tr⁡B=4\operatorname{tr} B = 4. Without normalizing, the same directions give 1515, 33, −10-10.

Solved: 0 / 4