Home page for accesible maths 3 Inner products

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

3.D Orthogonality

The Cauchy-Schwarz inequality tells us that if we have an inner product space V (that is, a real vector space with a positive definite symmetric bilinear form), then we can use 3.1 to define a notion of “angle” between two vectors. In particular, two vectors x,yV are said to be orthogonal (also known as perpendicular, or at right angles) if:

x,y=0

.

This is an important concept in a variety of different contexts. In 3D video games, whenever the perspective of the user rotates, the program must rotate the standard basis to a new one. Since the standard basis vectors in n are each orthogonal to each other, the resulting basis vectors must still be pairwise orthogonal.

In statistics, the idea of orthogonality is used to describe when two random variables are uncorrelated (i.e. Cov(X,Y)=0).

Definition 3.21:

A sequence of vectors (x1,,xr) in an inner product space V is said to be orthogonal, if they are pairwise orthogonal; in other words xi,xj=0 whenever ij. If these vectors also all have unit norm (i.e. ||xi||=1 for every i), then the sequence is called orthonormal.

Example 3.22.
  1. i.

    The sequence ([11]T,[1-1]T) is orthogonal, since (1,1),(1,-1)=0, but is not orthonormal, since their norms are 2.

  2. ii.

    The two vectors [111]T,[2-1-1]T are orthogonal. Find a third vector in 3 which is orthogonal to both of those.

    Solution: We will set up a system of equations whose variables are the coordinates [xyz]T of our desired vector. Then we need

    1. x+y+z=0

    2. 2x-y-z=0

    The solution set is

    {[0y-y]T|y}=span{[01-1]T}.

    So if we take the third vector to be [01-1]T, then this will create an orthogonal sequence of three vectors.

Exercise 3.23:

Find all unit vectors in 3 that are orthogonal to both [-1-32]T and [011]T.

[End of Exercise]

Exercise 3.24:

Find an orthonormal sequence of three vectors in 3 such that none of them have any zero coordinates (in the standard basis).

[Hint: First find a sequence of orthogonal vectors without zero coordinates, and then scale.]

[End of Exercise]

Exercise 3.25:

Let A=[3111]. You may assume that (2,,A) is an inner product space. Find two non-zero vectors in 2 which are orthogonal with respect to this inner product.

[End of Exercise]

Definition 3.26:

If WV is a subspace of an inner product space, then we define the orthogonal complement of W in V as follows:

W:={xV|x,y=0 for all yW}.

So W is the set of all vectors orthogonal to all of W. The symbol is supposed to make you think of perpendicular lines; it is pronounced “perp”. You should visualize the orthogonal complement as in the following examples.

Example 3.27.
  1. i.

    Let W be a 1-dimensional subspace of 2. Then W is the line through the origin which is orthogonal (perpendicular) to W.

  2. ii.

    Let W be a 1-dimensional subspace of 3. Then W is the plane through the origin, whose normal vector lies in W.

  3. iii.

    Let W be a 2-dimensional subspace of 3. Then W is the line spanned by a normal vector to W.

  4. iv.

    Let W=V. Then the orthogonal complement is the zero subspace W={0}. To prove this, assume a vector xV is orthogonal to every vector in V. Then it must be orthogonal to itself. So x,x=0. But since we assumed V was an inner product space, this implies x=0.

Several exercises ask to find an expression or basis for the orthogonal complement W of a given subspace W. If you already know a basis for W, then it’s quickest to use:

(span{v1,,vr})={xV|x,vi=0i}.
Exercise 3.28:

Let Wn be a subspace. Prove that W is a subspace.

[End of Exercise]

Exercise 3.29:

Find a basis for W, where W:=span{[11-1]T}3.

[End of Exercise]

Theorem 3.30.

Let V be an inner product space (possibly infinite dimensional).

  1. i.

    (Triangle inequality) ||x+y||||x||+||y|| for any x,yV.

  2. ii.

    (Generalized Pythagorean theorem) If (x1,,xn) is an orthogonal sequence, then i=1n||xi||2=||i=1nxi||2.

  3. iii.

    (Parallelogram law) ||x+y||2+||x-y||2=2||x||2+2||y||2 for any x,yV.

Proof.

(Triangle inequality) For non-negative real numbers, ab if and only if a2b2. Since it is always true that ||x||0, it is equivalent to prove the inequality: ||x+y||2(||x||+||y||)2. Expanding the left hand side, for any x,yV, by the definition of ||x+y||:

||x+y||2=x+y,x+y.

By bilinearity of , the above is equal to

x,x+y,y+2x,y.

By the Cauchy-schwarz inequality the above is less than or equal to

x,x+y,y+2||x||||y||,

which by definition of ||x|| is equal to

||x||2+||y||2+2||x||||y||=(||x||+||y||)2.

Notice that above we used that x,y|x,y|. The Cauchy-Schwarz inequality was the key step in this proof.

For the proofs of the other two parts, see Exercise 3.32. ∎

Exercise 3.31:

For each of the identities in Theorem 3.30, draw an appropriate diagram of labelled vectors, which allows you to state the identities in terms of lengths and / or angles. For part (ii), assume n=3.

[End of Exercise]

Exercise 3.32:

Prove the identities in Theorem 3.30(ii) and (iii).

[Hint: For Part (ii), use induction. For Part (iii), expand the left hand side, and manipulate the expression, in a similar way to Part (i).]

[End of Exercise]