Processing math: 100%
Skip to main content

Section 36.5 Examples

Subsection 36.5.1 Inner products on familiar spaces

Example 36.5.1. An inner product on Pn(R).

In Discovery 36.2, we verified the four real inner product axioms for an example inner product on P2(R), the space of polynomials with real coefficients of degree 2 or less. We can mimic this example to create an inner product on Pn(R) for any n: choose n+1 distinct real numbers c0,c1,,cn, and using them create pairing

p,q=p(c0)q(c0)+p(c1)q(c1)++p(cn)q(cn).

Checking Axiom RIP 1, Axiom RIP 2, and Axiom RIP 3 is straightforward. And The Fundamental Theorem of Algebra (Real Version) guarantees that no nonzero polynomial p can evaluate to zero at more than n input values, hence not all of the terms in the pairing expression

p,p=[p(c0)]2+[p(c1)]2++[p(cn)]2

can be zero, which verifies Axiom RIP 4.

Example 36.5.2. The standard inner product on Mm×n(R).

An m×n matrix is just mn “components” (i.e. entries) arranged in a grid instead of in a column. So we would expect the pairing

A,B=a11b11+a12b12++amnbmn,

which is really just a “dot product” of matrices, to create an inner product on Mm×n(R). And it does.

We can wrap this pairing up in a neat formula by

A,B=trace(BTA).

(Again, the reversal of order is in preparation of the complex version.)

Let's verify Axiom RIP 1:

B,A=trace(ATB)(i)=trace(AT(BT)T)(ii)=trace(BTA)T(iii)=trace(BTA)(iv)=A,B(v),

with justifications

  1. definition of the pairing;
  2. Rule 5.a of Proposition 4.5.1;
  3. Rule 5.d of Proposition 4.5.1;
  4. transpose does not change the diagonal entries, so trace remains the same; and
  5. definition of the pairing.

Axiom RIP 2 and Axiom RIP 3 are also easily verified using the properties of transpose and trace. So let's finish this example by verifying Axiom RIP 4. Consider a matrix A as being made up of column vectors in Rn:

A=[|||a1a2an|||].

Then the diagonal entries of ATA are of the form

aTja=ajaj=aj2.

If A0, then at least one of its columns aj must be nonzero, and that column will contribute the positive value aj2 to

A,A=trace(ATA)=a12+a22++an2.
Example 36.5.3. The standard inner product on Mm×n(C).

Similar to the real case, we can effectively make a complex matrix “dot product” by setting

A,B=a11ˉb11+a12ˉb12++amnˉbmn.

Again, we can achieve this result with the compact formula

A,B=trace(BA).

We leave it to you, the reader, to verify that this pairing will satisfy the axioms for a complex inner product.

Example 36.5.4. An inner product for continuous functions.

Let C[a,b] represent the space of all continuous functions on the closed interval axb. Since adding continuous functions or vertically scaling a continuous function always results in a continuous function, this is a subspace of F[a,b], the space of all functions defined on domain axb.

Define a pairing on C[a,b] by

f,g=baf(x)g(x)dx.

A product of two continuous functions is also continuous, and the Fundamental Theorem of Calculus tells us that continuous functions are always integrable.

This pairing obviously satisfies Axiom RIP 1, and the basic properties of definite integrals tell us that Axiom RIP 2 and Axiom RIP 3 are also satisfied. For Axiom RIP 4, consider that

f,f=ba[f(x)]2dx

must at least be nonnegative because the integrand is, but if f(x) is not the zero function, then the properties of continuous functions require that this integral will evaluate to a positive number.

Subsection 36.5.2 Geometry in inner product spaces

Example 36.5.5. The “length” of a matrix.

Let's use the inner product

A,B=trace(BTA)

on M2×2(R) to compute the norm of the vector

A=[2311].

We have

A,A=trace([2131][2311])=trace[55510]=15,

and so

A=15.

What unit vectors in M2×2(R) are “parallel” to A? Just as in Rn, we can normalize a vector to a unit vector by dividing by its norm. So

U=115[2311]

is one unit vector that is “parallel” to A, and U is another.

Example 36.5.6. Angle between matrices.

What is the angle between

A=[3504],B=[0110]

in M2×2(R) when using the inner product X,Y=trace(BTA)?

Compute:

A,B=trace([0110][3504])=trace([0435])=5,A2=trace([3054][3504])=trace([9151541])=50,B2=trace([0110][0110])=trace([1001])=2.

Put these calculations together in the formula

θ=cos1(A,BAB)=cos1(5502)=cos1(12)=π3.
Example 36.5.7. Orthogonal functions.

The functions f(x)=sinx and g(x)=cosx are continuous, and so are vectors in C[0,2π]. If we use the inner product of Example 36.5.4 to compute

f,g=2π0sin(x)cos(x)dx=0,

we find that the angle between these functions is

θ=cos1(f,gfg)=cos10=π2,

so that f and g are at a right angle to each other.

Subsection 36.5.3 Skewing geometry in Rn

In the usual geometry of R2 (i.e. relative to the standard inner product), the unit circle consists of those points that are a distance 1 from the origin.

The unit circle in \(\R^2\text{.}\)

What happens if we skew this geometry using a different inner product? The matrix

A=[1002]

is symmetric and satisfies

[xy][1002][xy]=x2+2y2>0

for all (x,y)(0,0). Therefore,

u,v=vTAu

defines an inner product on R2.

What is the unit circle for this inner product? That is, what vectors (x,y) in R2 will satisfy

[xy][1002][xy]=1?

Using our calculation above, this occurs precisely when

x2+2y2=1,

which is the equation of an ellipse.

A distorted unit circle in \(\R^2\text{.}\)

So, by using a different inner product, we can treat an ellipse as if it were a circle.