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

Change of Basis for Bilinear Forms: A = CᵀBC

IKey Formulas

FormulaStatementSetting
α(u,v)=β(u,Tv)  ⟹  M(α)=M(β)M(T)\alpha(u, v) = \beta(u, Tv) \implies \mathcal{M}(\alpha) = \mathcal{M}(\beta)\mathcal{M}(T)TT in the second slot multiplies on the rightβ\beta a bilinear form on VV, T∈L(V)T \in \mathcal{L}(V), any basis e1,…,ene_1, \dots, e_n
ρ(u,v)=β(Tu,v)  ⟹  M(ρ)=M(T)tM(β)\rho(u, v) = \beta(Tu, v) \implies \mathcal{M}(\rho) = \mathcal{M}(T)^{\mathsf{t}}\mathcal{M}(\beta)TT in the first slot multiplies on the left, transposedsame; (M(T)t)j,k=M(T)k,j\bigl(\mathcal{M}(T)^{\mathsf{t}}\bigr)_{j,k} = \mathcal{M}(T)_{k,j}
A=CtBCA = C^{\mathsf{t}} B CChange-of-basis formulaA=M(β,(e1,…,en))A = \mathcal{M}(\beta, (e_1, \dots, e_n)), B=M(β,(f1,…,fn))B = \mathcal{M}(\beta, (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)): column kk of CC holds the ff-coordinates of eke_k
β(u,v)=xtAy=(Cx)tB(Cy)\beta(u, v) = x^{\mathsf{t}} A y = (Cx)^{\mathsf{t}} B (Cy)The same formula in coordinatesx,yx, y the ee-coordinates of u,vu, v; Cx,CyCx, Cy their ff-coordinates

Key Insight: An operator's matrix changes by C−1BCC^{-1}BC because its output must be converted back into the ee basis; a bilinear form outputs a scalar, so the left factor is CtC^{\mathsf{t}}. The two formulas agree for every BB only when Ct=C−1C^{\mathsf{t}} = C^{-1}.

IIWhere the Transpose Comes From

In the second slot TT multiplies M(β)\mathcal{M}(\beta) on the right; in the first slot, on the left and transposed.

IIIThe Video's Example, Any Shifted Basis

For β(p,q)=p(2) q′(3)\beta(p, q) = p(2)\,q'(3) on P2(R)\mathcal{P}_2(\mathbf{R}), CtBCC^{\mathsf{t}}BC reproduces AA for every basis 1, x−a, (x−b)21,\ x - a,\ (x - b)^2.

IVTranspose Versus Inverse in the Plane

With β(u,v)=utBv\beta(u, v) = u^{\mathsf{t}} B v on R2\mathbf{R}^2 and B=(12−11)B = \begin{pmatrix} 1 & 2 \\ -1 & 1 \end{pmatrix}, each basis e1,e2e_1, e_2 gives A=CtBCA = C^{\mathsf{t}} B C; C−1BCC^{-1} B C matches it only when Ct=C−1C^{\mathsf{t}} = C^{-1}.

💡 Challenge: find a basis other than (1,0),(0,1)(1, 0), (0, 1) for which C−1BC=CtBCC^{-1}BC = C^{\mathsf{t}}BC, then check that its CC satisfies CtC=IC^{\mathsf{t}}C = I.

VQuiz Questions

Problem 1 · T in the Second Slot

Given: the bilinear form β(x,y)=2x1y1+x1y2−x2y2\beta(x, y) = 2x_1y_1 + x_1y_2 - x_2y_2 on R2\mathbf{R}^2 and T∈L(R2)T \in \mathcal{L}(\mathbf{R}^2) defined by T(x1,x2)=(x1+3x2, 2x1+x2)T(x_1, x_2) = (x_1 + 3x_2,\ 2x_1 + x_2). Let α(u,v)=β(u,Tv)\alpha(u, v) = \beta(u, Tv) — find M(α)\mathcal{M}(\alpha) with respect to the standard basis.

✅ Correct! TT sits in the second slot, so M(α)=M(β)M(T)\mathcal{M}(\alpha) = \mathcal{M}(\beta)\mathcal{M}(T); for instance α(e1,e2)=β(e1,(3,1))=6+1=7\alpha(e_1, e_2) = \beta(e_1, (3, 1)) = 6 + 1 = 7.
❌ That is M(T)M(β)\mathcal{M}(T)\mathcal{M}(\beta). Matrix multiplication does not commute; with TT in the second slot, M(T)\mathcal{M}(T) goes on the right of M(β)\mathcal{M}(\beta).
❌ That is M(β)M(T)t\mathcal{M}(\beta)\mathcal{M}(T)^{\mathsf{t}}. Column kk of M(T)\mathcal{M}(T) holds the coordinates of TekTe_k, so M(T)=(1321)\mathcal{M}(T) = \begin{pmatrix} 1 & 3 \\ 2 & 1 \end{pmatrix}, and no transpose appears for the second slot.
❌ That is M(T)tM(β)\mathcal{M}(T)^{\mathsf{t}}\mathcal{M}(\beta), the matrix of β(Tu,v)\beta(Tu, v), where TT acts in the first slot. Here TT acts in the second slot.
Show solution

Entry (j,k)(j, k) of M(β)\mathcal{M}(\beta) is β(ej,ek)\beta(e_j, e_k), the coefficient of xjykx_jy_k, and column kk of M(T)\mathcal{M}(T) holds TekTe_k: Te1=(1,2)Te_1 = (1, 2), Te2=(3,1)Te_2 = (3, 1).

M(β)=(210−1),M(T)=(1321).\mathcal{M}(\beta) = \begin{pmatrix} 2 & 1 \\ 0 & -1 \end{pmatrix}, \qquad \mathcal{M}(T) = \begin{pmatrix} 1 & 3 \\ 2 & 1 \end{pmatrix}.

Since TT acts in the second slot,

M(α)=M(β)M(T)=(2⋅1+1⋅22⋅3+1⋅10⋅1+(−1)⋅20⋅3+(−1)⋅1)=(47−2−1).\mathcal{M}(\alpha) = \mathcal{M}(\beta)\mathcal{M}(T) = \begin{pmatrix} 2 \cdot 1 + 1 \cdot 2 & 2 \cdot 3 + 1 \cdot 1 \\ 0 \cdot 1 + (-1) \cdot 2 & 0 \cdot 3 + (-1) \cdot 1 \end{pmatrix} = \begin{pmatrix} 4 & 7 \\ -2 & -1 \end{pmatrix}.

Check one entry from the definition: α(e2,e1)=β(e2,Te1)=β((0,1),(1,2))=−x2y2=−2\alpha(e_2, e_1) = \beta(e_2, Te_1) = \beta\bigl((0, 1), (1, 2)\bigr) = -x_2y_2 = -2.

Problem 2 · T in the First Slot

Given: the bilinear form β(x,y)=x1y2−2x2y1+x2y2\beta(x, y) = x_1y_2 - 2x_2y_1 + x_2y_2 on R2\mathbf{R}^2 and T∈L(R2)T \in \mathcal{L}(\mathbf{R}^2) defined by T(x1,x2)=(x1−x2, 3x2)T(x_1, x_2) = (x_1 - x_2,\ 3x_2). Let ρ(u,v)=β(Tu,v)\rho(u, v) = \beta(Tu, v) — find M(ρ)\mathcal{M}(\rho) with respect to the standard basis.

✅ Correct! M(ρ)=M(T)tM(β)\mathcal{M}(\rho) = \mathcal{M}(T)^{\mathsf{t}}\mathcal{M}(\beta); for instance ρ(e2,e1)=β((−1,3),(1,0))=−2⋅3=−6\rho(e_2, e_1) = \beta\bigl((-1, 3), (1, 0)\bigr) = -2 \cdot 3 = -6.
❌ That is M(T)M(β)\mathcal{M}(T)\mathcal{M}(\beta) — the transpose is missing. In β(Tej,ek)\beta(Te_j, e_k) the index jj is a column index of M(T)\mathcal{M}(T), so the left factor must be M(T)t\mathcal{M}(T)^{\mathsf{t}}.
❌ That is M(β)M(T)\mathcal{M}(\beta)\mathcal{M}(T), the matrix of β(u,Tv)\beta(u, Tv). Here TT acts in the first slot.
❌ That is M(β)M(T)t\mathcal{M}(\beta)\mathcal{M}(T)^{\mathsf{t}}. The transposed factor belongs on the left of M(β)\mathcal{M}(\beta), not on the right.
Show solution

Reading off coefficients and images: Te1=(1,0)Te_1 = (1, 0), Te2=(−1,3)Te_2 = (-1, 3), so

M(β)=(01−21),M(T)=(1−103),M(T)t=(10−13).\mathcal{M}(\beta) = \begin{pmatrix} 0 & 1 \\ -2 & 1 \end{pmatrix}, \qquad \mathcal{M}(T) = \begin{pmatrix} 1 & -1 \\ 0 & 3 \end{pmatrix}, \qquad \mathcal{M}(T)^{\mathsf{t}} = \begin{pmatrix} 1 & 0 \\ -1 & 3 \end{pmatrix}.

Since TT acts in the first slot,

M(ρ)=M(T)tM(β)=(1⋅0+0⋅(−2)1⋅1+0⋅1(−1)⋅0+3⋅(−2)(−1)⋅1+3⋅1)=(01−62).\mathcal{M}(\rho) = \mathcal{M}(T)^{\mathsf{t}}\mathcal{M}(\beta) = \begin{pmatrix} 1 \cdot 0 + 0 \cdot (-2) & 1 \cdot 1 + 0 \cdot 1 \\ (-1) \cdot 0 + 3 \cdot (-2) & (-1) \cdot 1 + 3 \cdot 1 \end{pmatrix} = \begin{pmatrix} 0 & 1 \\ -6 & 2 \end{pmatrix}.

Check from the definition: ρ(e2,e2)=β(Te2,e2)=β((−1,3),(0,1))=(−1)(1)+3⋅1=2\rho(e_2, e_2) = \beta(Te_2, e_2) = \beta\bigl((-1, 3), (0, 1)\bigr) = (-1)(1) + 3 \cdot 1 = 2.

Problem 3 · Change to a New Basis

Given: the bilinear form β(x,y)=x1y1+2x1y2+3x2y2\beta(x, y) = x_1y_1 + 2x_1y_2 + 3x_2y_2 on R2\mathbf{R}^2, with matrix BB with respect to the standard basis, and the basis e1=(1,1)e_1 = (1, 1), e2=(0,1)e_2 = (0, 1) — find A=M(β,(e1,e2))A = \mathcal{M}(\beta, (e_1, e_2)).

✅ Correct! A=CtBCA = C^{\mathsf{t}}BC, and every entry checks against β(ej,ek)\beta(e_j, e_k): β(e1,e1)=1+2+3=6\beta(e_1, e_1) = 1 + 2 + 3 = 6.
❌ That is C−1BCC^{-1}BC, the change-of-basis formula for an operator. A bilinear form outputs a scalar, so nothing is converted back: the left factor is CtC^{\mathsf{t}}.
❌ That is CBCtCBC^{\mathsf{t}} — the transpose is on the wrong side. Entry (j,k)(j, k) of AA is β(ej,ek)\beta(e_j, e_k), which is (column jj of CC)t B ^{\mathsf{t}}\, B\,(column kk of CC).
❌ That is only BCBC, the standard-basis matrix of β(u,Tv)\beta(u, Tv) for the operator TT that sends the standard basis to e1,e2e_1, e_2. Changing the basis puts TT in both slots, so CtC^{\mathsf{t}} must also multiply on the left.
Show solution

With f1,f2f_1, f_2 the standard basis, BB holds the coefficients of xjykx_jy_k, and the columns of CC are the standard coordinates of e1,e2e_1, e_2:

B=(1203),C=(1011).B = \begin{pmatrix} 1 & 2 \\ 0 & 3 \end{pmatrix}, \qquad C = \begin{pmatrix} 1 & 0 \\ 1 & 1 \end{pmatrix}. BC=(3233),A=CtBC=(1101)(3233)=(6533).BC = \begin{pmatrix} 3 & 2 \\ 3 & 3 \end{pmatrix}, \qquad A = C^{\mathsf{t}}BC = \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}\begin{pmatrix} 3 & 2 \\ 3 & 3 \end{pmatrix} = \begin{pmatrix} 6 & 5 \\ 3 & 3 \end{pmatrix}.

Check from the definition Aj,k=β(ej,ek)A_{j,k} = \beta(e_j, e_k): β(e1,e2)=β((1,1),(0,1))=0+2+3=5\beta(e_1, e_2) = \beta\bigl((1, 1), (0, 1)\bigr) = 0 + 2 + 3 = 5, β(e2,e1)=β((0,1),(1,1))=3\beta(e_2, e_1) = \beta\bigl((0, 1), (1, 1)\bigr) = 3, β(e2,e2)=3\beta(e_2, e_2) = 3.

Problem 4 · From a Nonstandard Basis Back to the Standard One

Given: the basis f1=(1,1)f_1 = (1, 1), f2=(1,−1)f_2 = (1, -1) of R2\mathbf{R}^2 and a bilinear form β\beta on R2\mathbf{R}^2 with B=M(β,(f1,f2))=(102−1)B = \mathcal{M}(\beta, (f_1, f_2)) = \begin{pmatrix} 1 & 0 \\ 2 & -1 \end{pmatrix}. Let e1,e2e_1, e_2 be the standard basis — find C=M(I,(e1,e2),(f1,f2))C = \mathcal{M}(I, (e_1, e_2), (f_1, f_2)) and A=M(β,(e1,e2))A = \mathcal{M}(\beta, (e_1, e_2)).

What is C?

What is A?

✅ Correct! e1=12f1+12f2e_1 = \tfrac{1}{2}f_1 + \tfrac{1}{2}f_2 and e2=12f1−12f2e_2 = \tfrac{1}{2}f_1 - \tfrac{1}{2}f_2 give CC, and A=CtBCA = C^{\mathsf{t}}BC; for instance β(e1,e1)=14(1+0+2−1)=12\beta(e_1, e_1) = \tfrac{1}{4}(1 + 0 + 2 - 1) = \tfrac{1}{2}.
❌ These columns are f1,f2f_1, f_2 written in the ee basis. That matrix is M(I,(f1,f2),(e1,e2))=C−1\mathcal{M}(I, (f_1, f_2), (e_1, e_2)) = C^{-1}. Column kk of CC must hold the ff-coordinates of eke_k.
❌ Check column 2: −12f1+12f2=(0,−1)=−e2-\tfrac{1}{2}f_1 + \tfrac{1}{2}f_2 = (0, -1) = -e_2, not e2e_2.
❌ Not quite. Solve ek=c1f1+c2f2e_k = c_1 f_1 + c_2 f_2 for each kk; the pair (c1,c2)(c_1, c_2) is column kk of CC.
❌ That is FtBFF^{\mathsf{t}}BF with F=(111−1)F = \begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}, built from the columns f1,f2f_1, f_2. The formula needs CC, whose columns are the ff-coordinates of e1,e2e_1, e_2.
❌ BB is the matrix in the ff basis. The standard basis has its own matrix; for instance β(e1,e1)=12≠1\beta(e_1, e_1) = \tfrac{1}{2} \neq 1.
❌ That is C−1BCC^{-1}BC, the operator formula. For a bilinear form the left factor is CtC^{\mathsf{t}}.
❌ Not quite. Compute BCBC first, then multiply by CtC^{\mathsf{t}} on the left.
Show solution

Step 1: CC. Solve e1=c1f1+c2f2e_1 = c_1 f_1 + c_2 f_2: (c1+c2, c1−c2)=(1,0)(c_1 + c_2,\ c_1 - c_2) = (1, 0) gives c1=c2=12c_1 = c_2 = \tfrac{1}{2}. Solve e2=c1f1+c2f2e_2 = c_1 f_1 + c_2 f_2: (c1+c2, c1−c2)=(0,1)(c_1 + c_2,\ c_1 - c_2) = (0, 1) gives c1=12c_1 = \tfrac{1}{2}, c2=−12c_2 = -\tfrac{1}{2}. So

C=(121212−12).C = \begin{pmatrix} \tfrac{1}{2} & \tfrac{1}{2} \\ \tfrac{1}{2} & -\tfrac{1}{2} \end{pmatrix}.

Step 2: A=CtBCA = C^{\mathsf{t}}BC. Here Ct=CC^{\mathsf{t}} = C.

BC=(102−1)(121212−12)=(12121232),CtBC=(121212−12)(12121232)=(1210−12).BC = \begin{pmatrix} 1 & 0 \\ 2 & -1 \end{pmatrix}\begin{pmatrix} \tfrac{1}{2} & \tfrac{1}{2} \\ \tfrac{1}{2} & -\tfrac{1}{2} \end{pmatrix} = \begin{pmatrix} \tfrac{1}{2} & \tfrac{1}{2} \\ \tfrac{1}{2} & \tfrac{3}{2} \end{pmatrix}, \qquad C^{\mathsf{t}}BC = \begin{pmatrix} \tfrac{1}{2} & \tfrac{1}{2} \\ \tfrac{1}{2} & -\tfrac{1}{2} \end{pmatrix}\begin{pmatrix} \tfrac{1}{2} & \tfrac{1}{2} \\ \tfrac{1}{2} & \tfrac{3}{2} \end{pmatrix} = \begin{pmatrix} \tfrac{1}{2} & 1 \\ 0 & -\tfrac{1}{2} \end{pmatrix}.

Check: the ff-coordinates of e2e_2 are (12,−12)\bigl(\tfrac{1}{2}, -\tfrac{1}{2}\bigr), so β(e2,e2)=14(1⋅1+0⋅(−1)+2⋅(−1)+(−1)(1))=14(1−2−1)=−12\beta(e_2, e_2) = \tfrac{1}{4}\bigl(1 \cdot 1 + 0 \cdot (-1) + 2 \cdot (-1) + (-1)(1)\bigr) = \tfrac{1}{4}(1 - 2 - 1) = -\tfrac{1}{2}.

Solved: 0 / 4