



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Fourier series come in two flavors. What we have studied so far are called real Fourier series: these decompose a given periodic function into terms of the form sin(nx) and cos(nx). This document describes an alternative, where a function is instead decomposed into terms of the form einx. These series are called complex Fourier series, since they make use of complex numbers. In practice, it is easier to work with the complex Fourier series for most of a calculation, and then convert it to a real Fourier series only at the end. This pattern is very typical of many of the situations where complex numbers are useful. Throughout this document, I will make two significant simplifications, in order to focus on the conceptual points and avoid technical baggage.
Recall that we begun discussing Fourier series by attempting to write a given 2π-periodic function f (x) in the following form (notation differs from author to author; I am following Stewart’s notation here).
f (x) = a 0 +
n=
(an cos(nx) + bn sin(nx))
In words, the goal was to break f (x) into its constituent frequencies. The miracle of Fourier series is that as long as f (x) is continuous (or even piecewise-continuous, with some caveats discussed in the Stewart text), such a decomposition is always possible. The functions sin(nx) and cos(nx) form a sort of periodic table: they are the atoms that all other waves are built out of. By contrast, a complex Fourier series aims instead to write f (x) in a series of the following form.
f (x) =
n=−∞
cneinx
There are some technical points about what this notation means (namely what I mean by a sum that starts at −∞), but I am going to gloss over them since we will focus on the case of finite series anyway. Here the numbers cn are complex constants. They are called the complex Fourier coefficients of f (x).
Example 1.1. Consider the following function.
f (x) = 2e−^2 ix^ + (1 + i)e−ix^ + 5 + (1 − i)eix^ + 2e^2 ix The complex Fourier coefficients of this function are just the constants in front of these terms. The ones that aren’t zero are as follows.
c− 2 = 2 c− 1 = 1 + i c 0 = 5 c 1 = 1 − i c 2 = 2
The other Fourier coefficients (cn for all other values of n) are all 0. C There are two primary ways to identify the complex Fourier coefficients.
Since our scope is quite narrow in this course, we will focus on the second of these two options, and specifically on the case where the real Fourier series is finite.
Recall Euler’s formula, which is the basic bridge that connects exponential and trigonometric functions, by way of complex numbers. It states that eix^ = cos x + i sin x. This formula is probably the most important equation in all of mathematics. It is often important to notice that when x is replaced with −x, this formula changes in a simple way. This simply reflects the facts that cos(−x) = cos x (cosine is an even function) and sin(−x) = − sin x (sine is an odd function).
eix^ = cos x + i sin x (1) e−ix^ = cos x − i sin x (2)
Together, these two formulas show how a complex exponential can always be converted to trigonometric functions. The following two formulas show that it is also possible to convert the other direction.
cos x =
e−ix^ +
eix^ (3)
sin x =
i 2 e−ix^ −
i 2 eix^ (4)
Both of these formulas follow from the first two formulas: adding them together yields 2 cos x (and dividing by 2 yields cos x alone), while subtracting the first from the second yields − 2 i sin x (and multiplying by 2 i yields sin x alone).
The most straightforward way to convert a real Fourier series to a complex Fourier series is to use formulas 3 and 4. First each sine or cosine can be split into two exponential terms, and then the matching terms must be collected together. The following examples show how to do this with a finite real Fourier series (often called a trigonometric polynomial).
Solution. Using formulas 1 and 2 and collecting like terms:
(3 + 4i)e−^2 ix^ + (3 − 4 i)e^2 ix^ = (3 + 4i) [cos(2x) − i sin(2x)] + (3 − 4 i) [cos(2x) + i sin(2x)] = (3 + 4i) cos(2x) + (4 − 3 i) sin(2x) + (3 − 4 i) cos(2x) + (4 + 3i) sin(2x) = [(3 + 4i) + (3 − 4 i)] cos(2x) + [(4 − 3 i) + (4 + 3i)] sin(2x) = 6 cos(2x) + 8 sin(2x)
Note that in the second line I have used the fact that (3 + 4i)i = −4 + 3i and (3 − 4 i)i = 4 + 3i in finding the coefficients in front of the sin(2x) terms. C
Example 2.4. Convert the (finite) complex Fourier series
2 e−^2 ix^ + (1 + i)e−ix^ + 5 + (1 − i)eix^ + 2e^2 ix
to a (finite) real Fourier series.
Solution. Using formulas 1 and 2 and collecting like terms:
2 e−^2 ix^ + (1 + i)e−ix^ + 5 + (1 − i)eix^ + 2e^2 ix^ = 2 [cos(2x) − i sin(2x)] + (1 + i) [cos x − i sin x] +5 + (1 − i) [cos x + i sin x] + 2 [cos(2x) + i sin(2x)] = 2 cos(2x) − 2 i sin(2x) + (1 + i) cos x + (1 − i) sin x +5 + (1 − i) cos x + (1 + i) sin x + 2 cos(2x) + 2i sin(2x) = 5 + [(1 + i) + (1 − i)] cos x + [(1 − i) + (1 + i)] sin x
Note that I have used the fact that (1 + i)i = −1 + i and (1 − i)i = 1 + i when going from the first line to the second line. C
The process described above (splitting each eins^ using Euler’s formula and collecting sine and cosine terms) can become tedious, especially when there are many terms. One alternative which may be less cumbersome to apply is to instead use formulas 3 and 4 after regrouping the exponential terms in a different way. The following example illustrates what I mean.
Example 2.5. Consider the same complex Fourier series as in example 2.4.
2 e−^2 ix^ + (1 + i)e−ix^ + 5 + (1 − i)eix^ + 2e^2 ix
This time, instead of splitting the exponential terms immediately, begin by rearranging as follows.
2 e−^2 ix^ + (1 + i)e−ix^ + 5 + (1 − i)eix^ + 2e^2 ix^ = 5 + 1 ·
e−ix^ + eix
e−ix^ − eix
e−^2 ix^ + e^2 ix
= 5 + 2 cos x + 2 sin x + 4 cos(2x)
C The idea here is to find multiples either of e−inx^ + einx^ or e−inx^ − einx.
Another way to perform the conversions above is to simply observe the following formulas relating the real Fourier coefficients to the complex Fourier coefficients. I hesitate to worsen the already dense thicket of formulas in this unit of the course, but I will produce the formulas here in case you find them useful. To compute complex coefficients from real coefficients, the following formulas can be used.
c 0 = a 0
cn =
(an − ibn) (for n ≥ 1)
c−n =
(an + ibn) (for n ≥ 1)
These formulas are easy to remember as long as you know formulas 3 and 4: simply think about which of the terms an cos(nx) and bn sin(nx) will end up contributing to which terms in the complex Fourier series. The compute real coefficients from complex coefficients, the following formulas can be used.
a 0 = c 0 an = cn + c−n (for n ≥ 1) bn = i (cn − c−n)