2.2 Inner Product Spaces
In the previous section, we defined vector spaces. Now, we will define inner product spaces, which are vector spaces with an additional structure called an inner product.
Table of Contents
Definition
An inner product is a generalization of the familiar dot product in 
The dot product in 
To generalize to complex vector spaces, we need to be careful with applying these properties. Notice that
meaning either 
As a direct consequence of this, we have
As we will see later, the inner product 
(This notation has many advantages, including a built-in duality between vectors and linear functionals, which we will discuss later.) With all these definitions, we can now formally define an inner product.
An inner product on a complex vector space 
 (conjugate symmetry), (linearity in the second argument), and (positive-definiteness).
A vector space 
If you have studied any relativity, you might recognize that these properties are somewhat problematic. Null vectors, which are non-zero vectors with zero norm, exist in relativity. Moreover, the metric in relativity can be negative, which violates the positive-definiteness property. These issues arise because the metric in relativity is not positive-definite. Instead, it is a pseudo-inner product, which relaxes the positive-definiteness property to allow for null vectors and negative norms.
As the complex inner product is not actually bilinear, we need to be careful when manipulating inner products. It is more accurate to say that the inner product is sesquilinear (meaning "one and a half linear"), or Hermitian.
We can use the following shorthand notations for inner products:
Here are some examples of inner products:
- 
The standard inner product on
 is defined as follows. For any two vectors and in , - 
For
 , the space of infinite sequences of complex numbers, we can define the inner product as follows. For any two sequences and in ,provided that the series converges.
 - 
Suppose
 and are two functions in (the space of complex polynomials in ). We can define the inner product as follows:Here,
 is a weight function that is positive and integrable on the interval . - 
Suppose
 and are two functions in (the space of continuous functions on the interval ). We can define the inner product as follows: 
Definition 2.2.4 (orthonormal) Two vectors 
where 
Suppose 
Also, if we define the identification 
Here are some examples of orthonormal bases:
- 
In
 or , the standard basis defined aswhere the
 is in the -th position, is an orthonormal basis with respect to the standard inner product. - 
In
 , the set of functions is an orthonormal basis with respect to the inner product defined as 
As one can see, orthonormal bases are very useful in inner product spaces. They allow us to easily compute inner products and norms of vectors by simply taking the coefficients of the vectors in the basis. If we have another basis that is not orthonormal, we can always use the Gram-Schmidt process to convert it into an orthonormal basis.
The Gram-Schmidt process is a method for orthonormalizing a set of vectors in an inner product space.
Suppose we have a basis 
Consider the first two vectors 
Next, if we decompose 
and we can find 
Thus, we have
We can then normalize 
For the third, we can repeat the process.
We decompose 
where
Thus, we have
We can then normalize 
More generally, for the 
where
Thus, we have
so
Repeating this process for all vectors in the basis 
Also, important to the discussion of inner products is the Schwarz inequality.
For any vectors 
Equality holds if and only if 
Proof. Consider the vector 
Expanding the left-hand side, we get
Choosing 
which implies
If 
It is certainly possible to visualize the Schwarz inequality in 
The norm of a vector 
The norm satisfies the following properties for any vectors 
 and (positive-definiteness), (absolute homogeneity), (triangle inequality).
Also, we write the shorthand 
A vector space equipped with a norm is called a normed vector space. Normed vector spaces are more general than inner product spaces, as not all norms can be derived from an inner product. However, every inner product space is a normed vector space, as the norm can be derived from the inner product.
Also, a norm induces a metric on the vector space, defined as
If 
for all vectors 
Proof. (
(
It can be verified that this inner product satisfies all the properties of an inner product. 
By the way, why is it called the "parallelogram law"?
Because in 
Every finite-dimensional vector space can be equipped with an inner product.
Proof. Let 
Then, we just need to define 
Also, as the inner product is positive-definite, we have 
In summary, we can define an inner product on 
Thus, every finite-dimensional vector space can be equipped with an inner product. 
The matrix 
Consider 
where 
Another norm on 
for any positive real number 
To verify that this is indeed a norm, we need to check the three properties of a norm:
- 
Positive-definiteness:
 and . This is clearly true, as the sum of non-negative numbers is non-negative, and the sum is zero if and only if all are zero. - 
Absolute homogeneity:
 for any scalar . This is also true, as - 
Triangle inequality:
 . This is a bit more involved, but it can be proven using Minkowski's inequality, which states that for any sequences of real numbers and ,We can apply this inequality to the sequences
 and to obtain the triangle inequality for the -norm. Thus, the -norm is indeed a norm on . 
This norm is not induced by an inner product unless 
Summary and Next Steps
In this section, we defined inner product spaces, which are vector spaces equipped with an inner product. We discussed the properties of inner products, norms, and metrics, and we saw that every finite-dimensional vector space can be equipped with an inner product.
Here are the key points to remember:
- An inner product is a function that takes two vectors and returns a scalar, satisfying conjugate symmetry, linearity in one argument, and positive-definiteness.
 - An inner product space is a vector space equipped with an inner product.
 - The norm of a vector is derived from the inner product and satisfies positive-definiteness, absolute homogeneity, and the triangle inequality.
 - A norm induces a metric on the vector space.
 - Every finite-dimensional vector space can be equipped with an inner product.
 
Now, our main obstacle is the fact that we are restricted to one vector space. How does one traverse between different vector spaces? This is where the concept of linear maps comes in, which we will discuss in the next section.