We now shift our focus to generalizations of the dot product known as bilinear forms.
§ Bilinear Forms: Definitions and Properties
Definition (Bilinear Form). Let V be an F-vector space. Then a bilinear form is a function ⟨∙,∙⟩:V×V→F that is linear in both of its parameters. In other words, for all x,y,z∈V and λ∈F, we have:
⟨λx,y⟩=λ⟨x,y⟩=⟨x,λy⟩ and ⟨x+y,z⟩=⟨x,z⟩+⟨y,z⟩ and ⟨x,y+z⟩=⟨x,y⟩+⟨x,z⟩
Example. Some examples and non-examples:
The dot product over Rn defined by ⟨v,w⟩=v⊤w is a bilinear form.
The Hermitian product over Cn defined by ⟨v,w⟩=v⊤w is not a bilinear form: ⟨λx,y⟩=⟨x,λy⟩.
We can also use adjectives to describe bilinear forms.
Definition (Symmetric, Semidefinite, Definite). For a bilinear form ⟨∙,∙⟩ over an R-vector space V,
Say ⟨∙,∙⟩ is symmetric if ⟨x,y⟩=⟨y,x⟩ for all x,y∈V.
Equivalently, if we pick a basis so that ⟨x,y⟩=x⊤Ay, then ⟨∙,∙⟩ is symmetric if A⊤=A.
Say ⟨∙,∙⟩ is positive semidefinite if ⟨x,x⟩≥0 for all x∈V.
Say ⟨∙,∙⟩ is positive definite if it is positive semidefinite, and⟨x,x⟩=0 if and only if x=0.
Definition (Inner Product). A bilinear form that is symmetric and positive definite is an inner product.
Example. Consider the following candidates for bilinear forms over R2.
Consider ⟨x,y⟩=x1y2. This is a bilinear form, but satisfies none of the properties.
Consider ⟨x,y⟩=x1y1. This is symmetric and positive semidefinite, but not positive definite.
Consider ⟨x,y⟩=x1y1+x2y2. This is symmetric and positive definite. (It's the dot product!)
Consider ⟨x,y⟩=x1+y2. This is not even a bilinear form!
Any linear combination of bilinear forms (e.g. ⟨x,y⟩=6x1y2+7x2y1, say) is a bilinear form.
§ Bilinear Form ⟹ Matrix (Only if You Choose a Basis!)
Theorem. (Bilinear Form Classification) Suppose V is an F-vector space with basis (b1,…,bn). Then every bilinear form ⟨∙,∙⟩ over V must look like ⟨x,y⟩=x⊤Ay for some A∈Fn×n.
Proof: Consider x=∑ixibi and y=∑jyjbj. Then by the linearity of bilinear forms,
⟨x,y⟩=⟨i∑xibi,j∑yjbj⟩=i,j∑xiyj⟨bi,bj⟩.
Then if we take A∈Fn×n via Ai,j=⟨bi,bj⟩, the above reads ⟨x,y⟩=x⊤Ay, as desired. ■
Notice the analogy with “Linear Transformations ⟹ Matrix (Only if You Choose a Basis!)”. To be explicit,
To define a linear transformation T:V→W given bases {vi} and {wi}… … decide on coefficients Aj,i such that Tvi=∑jAj,iwj. Then T is represented by the matrix A.
To define a bilinear form ⟨∙,∙⟩:V×V→F given a basis {vi}… … decide on coefficients Ai,j such that ⟨vi,vj⟩=Ai,j. Then ⟨∙,∙⟩ is represented by ⟨x,y⟩=x⊤Ay.
Theorem. (Change of Bilinear Basis) Consider a bilinear form ⟨∙,∙⟩:V×V→F.
Under a basis {e1,…,en}, say ⟨x,y⟩=x⊤My for the appropriate matrix M∈Fn×n.
Under a new basis {b1,…,bn}, say ⟨x,y⟩=x⊤M′y for the appropriate matrix M′∈Fn×n.
Say B∈Fn×n is the matrix with columns {b1,…,bn}, meaning Bei=bi for all i. Then M′=B⊤MB.
Proof: The entries Mi,j′ are determined by the relationship Mi,j′=⟨bi,bj⟩, since {b1,…,bn} is the basis for M′.
Using the identity bi=Bei, this relationship rewrites itself in the basis {e1,…,en} as:
Mi,j′=⟨Bei,Bej⟩===(Bei)⊤M(Bej) in the basis {e1,…,en}ei⊤(B⊤MB)ej(B⊤MB)i,j.
So the entries of M′ and B⊤MB match everywhere, meaning M′=B⊤MB. ■
— Warning: Matrices are Grids of Numbers —
Given a choice of basis, every bilinear form corresponds to a matrix.
This matrix is just a matrix. It is nothing more than a grid of numbers in Fn×n.
Do not try to interpret this matrix as a linear transformation—it won't work.
The statement M′=B⊤MB is a claim about matrices, NOT linear transformations!
In particular, the expression B⊤MB means nothing irrespective of a basis, because there is no meaning to “the transpose of a linear map” without a basis.
More explicitly, in the proof above, the line “⟨Bei,Bej⟩=(Bei)⊤M(Bej)” is only true if we define the transpose (∙)⊤ using the basis {e1,…,en}. The truth value of this line depends on our choice of basis, because (Bei)⊤M(Bej) has a basis-dependent value.
§ Foreshadowing: Quadratic Polynomials are Bilinear Forms
Claim: Every quadratic polynomial in n variables (x1,…,xn) can be viewed in terms of bilinear forms.
So quadratic polynomials inject with ordered triples (A,b,c)∈Rn×n×Rn×R. Specifically, both Ai,j and Aj,i correspond to the coefficient of xixj, so the matrix A better be symmetric.
Remark. Only if we're working in a field F where 2=0. If F=F2, for example, then there is no symmetric A that yields x⊤Ax=x1x2.
This injection comes naturally with Taylor Series; the 2nd degree Taylor polynomial of f:Rn→R at x=0 is:
The funny double-partial-derivative A is called the Hessian. The Hessian is always symmetric, expectedly.
§ Hermitian Forms: Doing it all again…
What if bilinear forms were not actually bilinear and were forced to live in C?
Definition (Hermitian Form). Let V be a C-vector space. Then a Hermitian form is a function ⟨∙,∙⟩:V×V→C that is “linear” and “symmetric” in both of its parameters. In other words, for all x,y,z∈V and μ,λ∈C, we have:
⟨x+y,z⟩=⟨x,z⟩+⟨y,z⟩ and ⟨λx,μz⟩=λμ⟨x,z⟩ and ⟨y,x⟩=⟨x,y⟩.
Remark. Hermitian forms are not bilinear forms. They're a completely separate thing.
Remark. The properties “positive semidefinite” and “positive definite” carry over to Hermitian forms. However, the “symmetric” condition is already forcefully embedded within the definition.
Definition (Dagger† and Asterisk∗). Let x† and x∗ both be shorthands for the conjugate transpose x⊤.
Our discussion of “Bilinear form ⟹ Matrix (Only if You Choose a Basis!)” carries over. In particular,
Theorem. (Hermitian Forms w/ Bases) Suppose V is a C-vector space with Hermitian form ⟨∙,∙⟩.
Under a basis {e1,…,en}, we can say ⟨x,y⟩=x†My for the appropriate matrix M∈Cn×n.
Under a new basis {b1,…,bn}, we can say ⟨x,y⟩=x†M′y for the appropriate matrix M′∈Cn×n.
Say B∈Cn×n is the matrix with columns {b1,…,bn}, meaning Bei=bi for all i. Then M′=B†MB.
§ Transformations that Preserve a Bilinear / Hermitian Form
Which linear transformations preserve a bilinear form? Phrased more precisely,
Question: For which linear transformations A:V→V does ⟨x,y⟩=⟨Ax,Ay⟩ for all x,y∈V always hold?
Answer: Work in a fixed basis, and say ⟨x,y⟩=x⊤My in this basis. The answer is all A for which A⊤MA=M. The proof follows immediately from the change-of-basis formula.
Remark. This implies A:V→V preserves the dot product ⟨x,y⟩=x⊤y if and only if A⊤A=In, as expected. A subgroup of matrices that preserve a more general symmetric bilinear form is called an indefinite orthogonal group.
We can repeat the same thing for Hermitian forms, too.
Answer: Work in a fixed basis, and say ⟨x,y⟩=x†My in this basis. The answer is all A for which A†MA=M.
Orthogonal matrices preserve bilinear forms ⟨x,y⟩=x⊤y. Analogously…
Definition (Unitary). Take the Hermitian form to be ⟨x,y⟩=x†y. A matrix A∈Cn×n is unitary if ⟨x,y⟩=⟨Ax,Ay⟩ for all x,y∈Cn. Equivalently, A is unitary if A†A=I.
§ Symmetric Bilinear / Hermitian Forms
We'll conclude lecture by discussing what happens when bilinear forms are symmetric.
Definition (Hermitian Matrix). A matrix A∈Cn×n is Hermitian if A†=A.
Theorem. (Symmetry Begets Symmetry) Consider a symmetric bilinear / Hermitian form ⟨∙,∙⟩. Pick a basis.
If ⟨x,y⟩=x⊤Ay is a bilinear form, then A is symmetric; that is, A⊤=A.
If ⟨x,y⟩=x†Ay is a Hermitian form, then A is Hermitian; that is, A†=A.
Proof: For the bilinear form, the symmetry implies ⟨ei,ej⟩=⟨ej,ei⟩, which reads Ai,j=Aj,i. So A⊤=A.
For the Hermitian form, the symmetry implies ⟨ei,ej⟩=⟨ej,ei⟩, which reads Ai,j=Aj,i. So A†=A. ■
We now conclude with the following fun fact:
Theorem. (Eigenvalues are Real) If A∈Cn×n is Hermitian, then all eigenvalues of A are real.
Proof: Suppose v has eigenvalue λ.
Lemma. Since A is Hermitian, we have ⟨Av,v⟩=⟨v,Av⟩, where ⟨x,y⟩=x†y is the basic inner product.
Proof: Just compute: ⟨Av,v⟩=(Av)†v=v†A†v=⟨v,A†v⟩=⟨v,Av⟩. □
The lemma says ⟨v,Av⟩=⟨Av,v⟩, which reads ⟨v,λv⟩=⟨λv,v⟩. Thus λ⟨v,v⟩=λ⟨v,v⟩, so λ=λ, done. ■
For fun, here's another proof of the same theorem.
Proof: Suppose v has eigenvalue λ, and consider the Hermitian form ⟨x,y⟩=x†Ay. Then ⟨v,v⟩=⟨v,v⟩, so ⟨v,v⟩∈R.
This reads v†Av∈R. But v†Av=λ(v†v), and v†v∈R by inspection (i.e. it's ∑ivivi=∑i∣vi∣2∈R). So λ∈R. ■
By corollary, every symmetric real matrix has real eigenvalues! This is because R⊆C. The intuition is that the complex-valued Hermitian setting will yield results in the real setting.
Remark. The analogue of “Hermitian over C” is “symmetric over R”.