Skip to main content

Section 8.5 Inner Products of Functions

The applet below shows the product (see Section 8.4) of two trigonometric functions whose periods are related by a factor of \(2\text{.}\) There is about as much area above the graph of this product as below, so it is plausible that the integral of this product should be \(0\text{,}\) which turns out to be correct. This result holds for the product of any two sine or cosine functions whose periods are related by a rational number other than \(1\text{,}\) so long as the integral is taken over (a multiple of) a full period of both functions.

You can verify this remarkable fact by inserting any two distinct integers into the functions in the applet, and/or changing one or both functions from cosine to sine. What happens if you use the same integer twice?

Figure 8.5. The product of two trigonometric functions.

If we interpret periodic functions as “vectors” in an abstract vector space (see Section 8.1), and the integral as the “dot product”, then these functions are orthogonal! We can therefore use these functions as a natural basis for this vector space of periodic functions.

More formally, there is an inner product (see Section 8.2) on (suitably smooth, periodic) functions given by  1 

\begin{equation} \langle f|g\rangle = \int_0^L f(x)^*g(x)\,dx\tag{8.5.1} \end{equation}

under which the functions \(\left\{1,\cos\left(\frac{2m\pi x}{L}\right), \sin\left(\frac{2m\pi x}{L}\right)\right\}\) are orthogonal. However, they are not normalized, as you can verify using the applet above.

The “bra-ket” notation used here is often used in quantum mechanics and is further discussed in Section 8.2. In the context of real functions, such as those considered here, the complex conjugation doesn't do anything, but is included anyway to better match the notation used in more general contexts.