Solutions to Partial Differential Equations Using Fourier Series
Definition
For the function f∈L2[−π,π] in the Hilbert space, and for ak=π1∫−ππf(x)coskxdx and bk=π1∫−ππf(x)sinkxdx,
f(x)∼2a0+k=1∑∞(akcoskx+bxsinkx)
is called the Fourier series of f.
Description
Unlike the Taylor series, which approximates a function with polynomials, the Fourier series approximates it with trigonometric polynomials. This complex form of the Fourier series can be applied to a variety of functions that are difficult to approach with the conventional Taylor series, making it useful. However, there is no guarantee that the Fourier series will converge, and even if it does converge, whether it will precisely converge to f is a separate issue. For undergraduate-level solutions to partial differential equations, these issues are set aside for the time being, but one should be aware of these flaws.
For the even function sinkx and the odd function coskx, there is ⟨coskx,coslx⟩=⟨sinkx,coslx⟩=0 for k=l. Of course, ⟨coslx,sinlx⟩=⟨sinlx,coslx⟩=0 also holds for k=l. The only case where 0 does not occur in the inner product of trigonometric functions is ⟨coslx,coslx⟩=0=⟨sinlx,sinlx⟩.
By using the above facts, calculating ⟨f,coslx⟩f, we obtain
Approximating f with trigonometric polynomials means projecting f into the vector space of trigonometric functions. From the perspective of linear algebra, thinking about each term means that it looks like either ⟨f(x),cosnx⟩cosnx or ⟨f(x),sinnx⟩sinnx, which can be seen as projecting the function f onto the basis {cosnx,sinnx∣n∈N}.
Using the properties of odd and even functions, not only this but also the following formula can significantly reduce calculations.
If f∈L2[−π,π] is an odd function, for ak=π2∫0πf(x)coskxdx
f(x)∼2a0+k=1∑∞akcoskx
If f∈L2[−π,π] is an even function, for bk=π2∫0πf(x)sinkxdx
f(x)∼k=1∑∞bksinkx
Meanwhile, by introducing the following definition for f,g:[−π,π]→C, a generalization to complex numbers is possible.
Therefore, although it seems that the standardization constant has changed at first glance, in reality, it properly covers f,g:[−π,π]→R. As you can see, to understand these techniques, even roughly, background knowledge in linear algebra, complex analysis, and real analysis is required.