Fourier series solutions III - Series representations of periodic functions
Representing periodic functions with sine functions
Our new goal is to replicate the theory of power series, only now using linear combinations of basic periodic functions instead of powers of
So, suppose
"basic" periodic functions. By our earlier work, the periods of a linear combinations of periodic functions are the common integer multiples of the periods of the component functions. Thus, if we want our linear combination to model , which has period 1, we had better restrict our attention to "basic" periodic functions with period 1. The functions that immediately come to mind are probably the scaled versions of sine:
Note that
We might also like to horizontally shift some of these functions, i.e., adjust the phase. For example, to represent
for some numbers
There are at least three follow-up questions to this big idea:
- When can we express a function
as such a linear combination? - Assuming it is possible, how can we determine the unknown numbers
and ? - Assuming we succeed in representing
as such a combination, how is that useful?
We will focus mainly on answering the second and third questions, but we will give some indications as to the answer to the first question. It turns out that Fourier series will be much easier to deal with if we first spend some time learning how to write them in a different (but equivalent) form.
A comparison with power series
Let us quickly compare the above questions and their answers in the case of power series.
We answered the third question for power series previously: we can use power series to help find solutions to differential equations. There are other uses, as well, but for now we will consider this their main utility. The same will be true for us for Fourier series.
The second question for power series is the following: given a function
To answer this, we first suppose we are able to write
You might recognize this as Taylor's formula for the power series representation of
This answers the second question, but it does not actually answer the first. What we have shown is that if
Using both sines and cosines
You might be asking yourself "Why we are not using the cosine function, which is arguably equally as basic as the sine function?" That's a fair question, and fortunately there's a simple answer. We can convert the above "sines-only" Fourier series into a "sines-and-cosine" form. We simply need to use the basic trig identity
Applying this to each term in the series, we can rewrite our original Fourier series in the form
where
Classically, this new sines-and-cosines form was the preferred form of Fourier series. For our needs, however, it is still a bit unwieldy and obfuscates several very nice properties of Fourier series. Instead, we will reformulate our series in an even more elegant and compact form, which will make most of our computations much simpler. We will do this using the complex exponential function.
Using complex exponential functions
Recall[2] that the complex exponential function satisfies the following identity:
For any real number
Here are a few convenient consequences:
- For every real number
, the complex number lies on the unit circle in the complex plane, with polar angle . - The function
is a periodic function of with fundamental period . As increases, we can visualize the values of as orbiting around the origin counterclockwise on the unit circle. When , the point is at coordinates . When , the point is at coordinates . And so on. - The function
is periodic with fundamental period (at least for ; when it's simply the constant function ). In particular, this function always has period (among all of its periods). - There is a nice symmetry to the function
, in that . In other words, the complex numbers and are complex conjugates; i.e., they have the same real part and opposite imaginary parts. Visually, this means the two points are reflections of each other over the real (horizontal) axis.
We can use the two equalities
to express both
and so
Similarly, if we subtract the two equations above we obtain
and so
We can now freely convert back and forth between sines and cosines, and complex exponential functions:
We have the following equalities, for all real values of
Example
Suppose
Using the above relations, we can rewrite this function in terms of complex exponential functions, as so:
Let's rewrite this so that exponential terms with the same exponent have been combined, and then the terms are ordered according to the exponent (from most negative to most positive). We obtain
Let's use an index
This is very suggestive...
Looking at the previous example, it should be clear that any sines-and-cosines Fourier series can be converted to a sum involving these complex exponential functions. More explicitly, if we started with a finite sum of the form
then using our relations above we could rewrite this in the form
If we did as in the above example, and ordered the terms according to the value of the exponent, we could write this more simply in the form
where
It should now be reasonable to define:
A complex Fourier series is a series of the form
where
Note that we are ignoring any questions of convergence, at least for now.
Notice how similar this new type of series is to a power series!
Suggested next notes
Fourier series solutions IV - Computing Fourier coefficients
For most of these notes we will default to using
for our periodic variable. This is because most of our examples will involve periodic functions of time. It will also help us differentiate our new type of series from power series. β©οΈ Eventually I'm make a note on this and include the link here. β©οΈ