Section 14.5 Inner Products of Functions
The applet below shows the product (see Section 14.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?
If we interpret periodic functions as “vectors” in an abstract vector space (see Section 14.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 14.2) on (suitably smooth, periodic) functions given by 1
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.