Jump to content

Linear Algebra/Inner product spaces

From Wikibooks, open books for an open world

Recall that in your study of vectors, we looked at an operation known as the dot product, and that if we have two vectors in ℝn, we simply multiply the components together and sum them up. With the dot product, it becomes possible to introduce important new ideas like length and angle. The length of a vector 𝐚, is just ‖𝐚‖=𝐚⋅𝐚. The angle between two vectors, 𝐚 and 𝐛, is related to the dot product by

cos⁡θ=𝐚⋅𝐛‖𝐚‖⋅‖𝐛‖

It turns out that only a few properties of the dot product are necessary to define similar ideas in vector spaces other than ℝn, such as the spaces of m×n matrices, or polynomials. The more general operation that will take the place of the dot product in these other spaces is called the "inner product".

The inner product

[edit | edit source]

Say we have two vectors:

𝐚=(214),𝐛=(630)

If we want to take their dot product, we would work as follows

𝐚⋅𝐛=a1b1+a2b2+a3b3=(2)(6)+(1)(3)+(4)(0)=15

Because in this case multiplication is commutative, we then have 𝐚⋅𝐛=𝐛⋅𝐚.

But then, we observe

𝐯⋅(α𝐚+β𝐛)=α𝐯⋅𝐚+β𝐯⋅𝐛

much like the regular algebraic equality v(aA+bB)=avA+bvB. For regular dot products this is true since, for ℝ3, for example, one can expand both sides out to obtain

(αv1a1+βv1b1)+(αv2a2+βv2b2)+(αv3a3+βv3b3)=(αv1a1+αv2a2+αv3a3)+(βv1b1+βv2b2+βv3b3)

Finally, we can notice that 𝐯⋅𝐯 is always positive or greater than zero - checking this for ℝ3 gives this as

𝐯⋅𝐯=v12+v22+v32

which can never be less than zero since a real number squared is positive. Note 𝐯⋅𝐯=0 if and only if 𝐯=0.

In generalizing this sort of behaviour, we want to keep these three behaviours. We can then move on to a definition of a generalization of the dot product, which we call the inner product. An inner product of two vectors in some vector space V, written ⟨𝐱,𝐲⟩ is a function V×V→ℝ, which obeys the properties

  • ⟨𝐱,𝐲⟩=⟨𝐲,𝐱⟩
  • ⟨𝐯,α𝐚+β𝐛⟩=α⟨𝐯,𝐚⟩+β⟨𝐯,𝐛⟩
  • ⟨𝐚,𝐚⟩≥0 with equality if and only if 𝐚=0.

The vector space V and some inner product together are known as an inner product space.


The dot product in ℂn

[edit | edit source]

Given two vectors 𝐚=a1e→1+a2e→2+⋯+ane→n∈ℂn and 𝐛=b1e→1+b2e→2+⋯+bne→n∈ℂn, the dot product generalized to complex numbers is:

𝐚⋅𝐛=∑i=1nai∗bi=a1∗b1+a2∗b2+⋯+an∗bn

where z∗ for an arbitrary complex number z=c+di is the complex conjugate: z∗=c−di.

The dot product is "conjugate commutative": 𝐚⋅𝐛=(𝐛⋅𝐚)∗. One immediate consequence of the definition of the dot product is that the dot product of a vector with itself is always a non-negative real number: 𝐚⋅𝐚≥0.

𝐚⋅𝐚=0 if and only if 𝐚=0→

The Cauchy-Schwarz Inequality for ℂn

[edit | edit source]
Cauchy-Schwarz Inequality

Given two vectors 𝐚,𝐛∈ℂn, it is the case that |𝐚⋅𝐛|≤|𝐚||𝐛|

In ℝn, the Cauchy-Schwarz inequality can be proven from the triangle inequality. Here, the Cauchy-Schwarz inequality will be proven algebraically.

To make the proof more intuitive, the algebraic proof for 𝐚,𝐛∈ℝn will be given first.

Proof for 𝐚,𝐛∈ℝn

|𝐚⋅𝐛|≤|𝐚||𝐛| follows from |𝐚⋅𝐛|2≤|𝐚|2|𝐛|2 which is equivalent to

(∑i=1naibi)2≤(∑i=1nai2)(∑j=1nbj2)

expanding both sides gives:

∑i=1n∑j=1naibiajbj≤∑i=1n∑j=1nai2bj2

⟺∑i=1n∑j=1n(aibj)(ajbi)≤∑i=1n∑j=1n(aibj)2

"Folding" the double sums along the diagonal, and cancelling out the diagonal terms which are equivalent on both sides, gives:

⟺∑i=2n∑j=1i−12(aibj)(ajbi)≤∑i=2n∑j=1i−1((aibj)2+(ajbi)2)

⟺0≤∑i=2n∑j=1i−1(aibj−ajbi)2

The above inequality is clearly true, therefore the Cauchy-Schwarz inequality holds for 𝐚,𝐛∈ℝn.

Proof for 𝐚,𝐛∈ℂn

Note that |𝐚⋅𝐛|≤|𝐚||𝐛| follows from |𝐚⋅𝐛|2≤|𝐚|2|𝐛|2 which is equivalent to (𝐚⋅𝐛)∗(𝐚⋅𝐛)≤(𝐚⋅𝐚)(𝐛⋅𝐛). Expanding both sides yields:

(∑i=1nai∗bi)∗(∑i=1nai∗bi)≤(∑i=1n|ai|2)(∑i=1n|bi|2)

⟺∑i=1n∑j=1n(ai∗bi)∗(aj∗bj)≤∑i=1n∑j=1n|ai|2|bj|2

⟺∑i=1n∑j=1n(ajbi)∗(aibj)≤∑i=1n∑j=1n|aibj|2

"Folding" the double sums along the diagonal, and cancelling out the diagonal terms which are equivalent on both sides, gives:

⟺∑i=2n∑j=1i−1((ajbi)∗(aibj)+(aibj)∗(ajbi))≤∑i=2n∑j=1i−1(|aibj|2+|ajbi|2)

⟺∑i=2n∑j=1i−12ℜ((aibj)∗(ajbi))≤∑i=2n∑j=1i−1(|aibj|2+|ajbi|2)

Given complex numbers z and w, it can be proven that 2ℜ(z∗w)≤|z|2+|w|2 (this is similar to 2xy≤x2+y2 for real numbers). The above inequality holds, and therefore the Cauchy-Schwarz inequality holds for complex numbers.