Fourier series are often expressed in terms of the complex-valued basis functions einπx∕L. Next, we derive this version of the Fourier series, which is the most popular version we see in textbooks and papers (we will see why this version is popular).
Using Euler’s formula (this is a bridge between representations using real numbers and complex numbers)
| (10) |
and
| (11) |
in Eq. (5), we obtain
| (12) |
Define
| (13) |
then, by using a−n = an b−n = −bn, we know that
| (14) |
Then Eq. (12) is written
| (15) |
Using the expressions of an and bn given by Eq. (3) and (4), cn is expressed as
| (16) |
Equation (15) along with Eq. (16) is the version of Fourier series using complex basis functions. In this version, the index n is an integer ranging from negative infinity to positive infinity, which is unlike Eq. (1), where n is from zero to positive infinity. An advantage of Eqs. (15) and (16) is that no special treatment is needed for the edge case of n = 0.
Using Eq. (16) in Eqs. (15), we obtain
Noting that the +n terms cancel the −n terms in both line (17) and line (18), the above expression is reduced to Define new expansion coefficients
| (20) |
and
| (21) |
then expression (19) is written as
| (22) |
which recovers expression (6). Note that n ∈ (−∞,+∞) in this version, which differs from Eq. (5). Also this expression has no edge case that needs special treatment.
As a benchmark, we can start from exression (6) to derive the complex Fourier expansion: Using the Euler formula in expression (6), we obtain
h(x)∑ n=−∞∞einπx∕L. |
Using Eq. (13), the coefficients an and bn appearing in Eq. (5) can be recovered from cn by
| (23) |
| (24) |
If h(x) is real, then the coefficients an and bn are real. Then equation (13) implies that cn and c−n are complex conjugates. In this case, expressions (23) and (24) are simplified as
| (25) |
| (26) |
[In the above, we use the basis functions einπx∕L to expand h(x). If we choose the basis functions to be e−inπx∕L, then it is ready to verify that the Fourier series are written
| (27) |
with cn given by
| (28) |
In this case, the coefficients an and bn can be recovered from cn by
| (29) |
| (30) |
In using the Fourier series, we should be aware of which basis functions are used.]