Euler Hall — free maths guides

Read a cross term of a quadratic form as an off-diagonal entry

Read the coefficient of the expression in a quadratic form as the sum the expression , and hence as the expression for a symmetric the expression. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.

The cross term is shared between two slots

Write outxTAx\mathbf{x}^{T}A\mathbf{x} for a symmetric2×22\times2 matrix and see what happens to the cross term:

[xy][abbc][xy]=ax2+bxy+bxy+cy2=ax2+2bxy+cy2.\begin{bmatrix}x&y\end{bmatrix}\begin{bmatrix}a&b\\b&c\end{bmatrix}\begin{bmatrix}x\\y\end{bmatrix}=ax^{2}+bxy+bxy+cy^{2}=ax^{2}+2bxy+cy^{2}.

Thexyxy term appears twice, once from the(1,2)(1,2) slot and once from the(2,1)(2,1) slot, and because the matrix is symmetric those two entries are equal. So

cross coefficient in q  =  2A12\boxed{\text{cross coefficient in }q \;=\; 2A_{12}}

and the way to invert that is to halve:

A12=A21=12(cross coefficient).\boxed{A_{12}=A_{21}=\tfrac12(\text{cross coefficient}).}

The diagonal entries need no halving.ax2ax^{2} is produced once, byA11A_{11}.

Why half, and why symmetry is not an extra assumption

Nothing forces thexyxy coefficient to come equally from the two slots ifAA is allowed to be arbitrary. The matrix[5−407]\begin{bmatrix}5&-4\\0&7\end{bmatrix} hasb=0b=0 in its(2,1)(2,1) slot and produces5x2−4xy+7y25x^{2}-4xy+7y^{2} — the same form.

So the form alone does not determine a general matrix. It determines a symmetric one uniquely, and that is exactly the convention: for every quadratic form there is exactly one symmetric matrix representing it. The convention exists so that the matrix is a well-defined object, so the phrase "the matrix of the form" means something.

The polarization identity is the same fact stated without matrices:

2ρ(u,w)=q(u+w)−q(u)−q(w).2\rho(u,w)=q(u+w)-q(u)-q(w).

Apply it tou=(1,0)u=(1,0) andw=(0,1)w=(0,1):q(u)=aq(u)=a,q(w)=cq(w)=c,q(u+w)=a+2b+cq(u+w)=a+2b+c, so2ρ(u,w)=2b2\rho(u,w)=2b. The off-diagonal entry is the bilinear value, and the quadratic coefficient is twice it. One identity, both halves.

Worked example, in the exam's shape

> Writeq(x,y,z)=x2+4y2+9z2+6xy−2xz+8yzq(x,y,z)=x^{2}+4y^{2}+9z^{2}+6xy-2xz+8yz asxTAx\mathbf{x}^{T}A\mathbf{x} withAA symmetric.

Read the six coefficients off the form and halve the three cross ones:

| coefficient | where it goes | entry | |---|---|---| |x2x^{2} |A11A_{11} |11 | |y2y^{2} |A22A_{22} |44 | |z2z^{2} |A33A_{33} |99 | |6xy6xy |A12=A21A_{12}=A_{21} |33 | |−2xz-2xz |A13=A31A_{13}=A_{31} |−1-1 | |8yz8yz |A23=A32A_{23}=A_{32} |44 |

A=[13−1344−149].A=\begin{bmatrix}1&3&-1\\3&4&4\\-1&4&9\end{bmatrix}.

Check at(1,1,1)(1,1,1): the form gives1+4+9+6−2+8=261+4+9+6-2+8=26. The matrix route gives1TA1\mathbf{1}^{T}A\mathbf{1} = sum of all nine entries =1+3−1+3+4+4−1+4+9=261+3-1+3+4+4-1+4+9=26. Both agree, and the check costs one addition.

By the end you can
  • Read the coefficient of in a quadratic form as the sum, and hence as for a symmetricAA
  • Build the symmetric matrix of a quadratic form by halving every cross coefficient
  • Recover the symmetric matrix from the form in two and three variables
Check yourself

Forq(x,y)=7x2−3xy+11y2q(x,y)=7x^{2}-3xy+11y^{2}, what isA12A_{12}, and what isq(2,1)q(2,1)?

Answers

A12=−3/2A_{12}=-3/2, soA=[7−3/2−3/211]A=\begin{bmatrix}7&-3/2\\-3/2&11\end{bmatrix}.

q(2,1)=7(4)−3(2)(1)+11=28−6+11=33q(2,1)=7(4)-3(2)(1)+11=28-6+11=33. Matrix route:2A12⋅2⋅1=−62A_{12}\cdot2\cdot1=-6, plus7⋅4=287\cdot4=28 and11⋅1=1111\cdot1=11, total3333.

(The fraction is normal. A form whose cross coefficient is odd cannot have integer off-diagonal entries — that is a feature of the convention, not a mistake.)

Work out where to start — free, no accountAnswer six real questions — free, no account