4.3 More on the Fourier Series
Before reading the lecture, it may be good to first try Project IV (Fourier series) from the IODE website: https://conf.math.illinois.edu/iode/fsgui.html. After reading the lecture it may be good to continue with Project V (Fourier series again).
2L-Periodic Functions
We have computed the Fourier series for a -periodic function, but what about functions of different periods. Well, fear not, the computation is a simple case of change of variables. We can just rescale the independent axis. Suppose that we have a -periodic function ( is called the half period). Let . Then the function
is -periodic. We want to also rescale all our sines and cosines. We want to write
If we change variables to we see that
We compute and as before. After we write down the integrals we change variables from back to .
The two most common half periods that show up in examples are and because of the simplicity. We should stress that we have done no new mathematics, we have only changed variables. If you understand the Fourier series for -periodic functions, you understand it for -periodic functions. All that we are doing is moving some constants around, but all the mathematics is the same.
Convergence
We will need the one sided limits of functions. We will use the following notation
If you are unfamiliar with this notation, means we are taking a limit of as approaches from below (i.e. ) and means we are taking a limit of as approaches from above (i.e. ). For example, for the square wave function
we have and .
Let be a function defined on an interval . Suppose that we find finitely many points in the interval, such that is continuous on the intervals . Also suppose that all the one sided limits exist, that is, all of exist and are finite. Then we say is piecewise continuous.
If moreover, is differentiable at all but finitely many points, and is piecewise continuous, then is said to be piecewise smooth.
If we happen to have that at all the discontinuities, the Fourier series converges to everywhere. We can always just redefine by changing the value at each discontinuity appropriately. Then we can write an equals sign between and the series without any worry. We mentioned this fact briefly at the end last section.
Note that the theorem does not say how fast the series converges. Think back to the discussion of the Gibbs phenomenon in the last section. The closer you get to the discontinuity, the more terms you need to take to get an accurate approximation to the function.
Differentiation and Integration of Fourier Series
Not only does Fourier series converge nicely, but it is easy to differentiate and integrate the series. We can do this just by differentiating or integrating term by term.
It is important that the function is continuous. It can have corners, but no jumps. Otherwise the differentiated series will fail to converge. For an exercise, take the series obtained for the square wave and try to differentiate the series. Similarly, we can also integrate a Fourier series.
Note that the series for is no longer a Fourier series as it contains the term. The antiderivative of a periodic function need no longer be periodic and so we should not expect a Fourier series.
Rates of Convergence and Smoothness
Let us do an example of a periodic function with one derivative everywhere.
Let us compute the Fourier series coefficients. The actual computation involves several integration by parts and is left to student.
That is, the series is
This series converges very fast. If you plot up to the third harmonic, that is the function
it is almost indistinguishable from the plot of in Figure . In fact, the coefficient is already just 0.0096 (approximately). The reason for this behavior is the term in the denominator. The coefficients in this case go to zero as fast as goes to zero.
For functions constructed piecewise from polynomials as above, it is generally true that if you have one derivative, the Fourier coefficients will go to zero approximately like . If you have only a continuous function, then the Fourier coefficients will go to zero as . If you have discontinuities, then the Fourier coefficients will go to zero approximately as . For more general functions the story is somewhat more complicated but the same idea holds, the more derivatives you have, the faster the coefficients go to zero. Similar reasoning works in reverse. If the coefficients go to zero like you always obtain a continuous function. If they go to zero like you obtain an everywhere differentiable function.
To justify this behavior, take for example the function defined by the Fourier series
When we differentiate term by term we notice
Therefore, the coefficients now go down like , which means that we have a continuous function. The derivative of is defined at most points, but there are points where is not differentiable. It has corners, but no jumps. If we differentiate again (where we can) we find that the function , now fails to be continuous (has jumps)
This function is similar to the sawtooth. If we tried to differentiate the series again we would obtain
which does not converge!Adapted from Differential Equations for Engineers by Jiří Lebl (Oklahoma State University), hosted on LibreTexts (math.libretexts.org) and licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.