Section 16.5 Fourier Coefficients
We are now ready to find formulas for the Fourier coefficients \(a_m\) and \(b_m\text{.}\) Using the idea outlined at the start of Section 16.4, the coefficient of each basis element can be obtained from the inner product, i.e. the analogue of the “dot product” of that basis element with the original “vector”.
Let's start with the \(a_m\) coefficients for \(m\ne0\text{.}\) The corresponding basis elements are \(\cos\left(\frac{2\pi m x}{L}\right)\text{,}\) so we compute
where we see the squared norm of the basis function appear in the next-to-last line. In conclusion,
where we have replaced \(n\) by \(m\text{.}\)
Activity 16.4. Finding Fourier Coefficients.
Use similar reasoning to obtain the formulas
and
Let's start with the constant term. The normalized basis element is \(\frac{1}{\sqrt{L}}\text{,}\) so this term in the expansion should be
Comparison with the form of the Fourier series in the theorem (in the previous section) shows that
Thus, the term \(a_0/2\) in the series correctly represents the average value of \(f\) (on the given interval).
Proceeding similarly for the other basis elements, the term involving \(\cos\left(\frac{2\pi mx}{L}\right)\) is
and comparison with the Fourier series yields
Similar reasoning leads to
The conventional factor of \(\frac12\) in the definition of \(a_0\) can now be justified by noting that the factor preceding the integral in (16.5.3) is the same as the factors preceding the integrals in (16.5.2) and (16.5.4).
Expressions (16.5.6), (16.5.8), and (16.5.9) can also be obtained by inserting the assumed form of the Fourier series into the integrals, thus determining the constant factors in front of the integrals without having first normalized the basis elements.