Fourier Series 2016
Fourier Series 2016
Fourier Series
𝑦 ′′ + 𝛽 2 𝑦 = 𝐹 cos 𝜔𝑡
𝐹
𝑦𝑝 = cos 𝜔𝑡.
𝛽2 − 𝜔2
If the forcing function is a linear combination of simple cosine functions, so
that the differential equation is
𝑁
∑
𝑦 ′′ + 𝛽 2 𝑦 = 𝐹𝑛 cos 𝜔𝑛 𝑡
𝑛=1
This simple procedure can be extended to any function that can be repre-
sented as a sum of cosine (and sine) functions, even if that summation is not
a finite sum. It turns out that the functions that can be represented as sums
in this form are very general, and include most of the periodic functions that
are usually encountered in applications.
723
724 10 Fourier Series
Periodic Functions
𝑓 (𝑡 + 𝑝) = 𝑓 (𝑡)
for all 𝑡 in the domain of 𝑓 . This means that the graph of 𝑓 repeats in
successive intervals of length 𝑝, as can be seen in the graph in Figure 10.1.
𝑝 2𝑝 3𝑝 4𝑝 5𝑝
Fig. 10.1 An example of a periodic function with period 𝑝. Notice how the graph repeats
on each interval of length 𝑝.
The functions sin 𝑡 and cos 𝑡 are periodic with period 2𝜋, while tan 𝑡 is
periodic with period 𝜋 since
sin(𝑡 + 𝜋) − sin 𝑡
tan(𝑡 + 𝜋) = = = tan 𝑡.
cos(𝑡 + 𝜋) − cos 𝑡
𝑦 𝑦
1 1
𝑡 𝑡
−1 0 1 2 3 4 −2 −1 0 1 2 3 4 5
(a) Square wave sw(𝑡) (b) Triangular wave tw(𝑡)
Fig. 10.2
10.1 Periodic Functions and Orthogonality Relations 725
for all 𝑡. In fact, a similar argument shows that 𝑛𝑝 is also a period for any
positive integer 𝑛. Thus 2𝑛𝜋 is a period for sin 𝑡 and cos 𝑡 for all positive
integers 𝑛.
If 𝑃 > 0 is a period of 𝑓 and there is no smaller period then we say 𝑃 is the
fundamental period of 𝑓 although we will usually just say the period. Not
all periodic functions have a smallest period. The constant function 𝑓 (𝑡) = 𝑐
is an example of such a function since any positive 𝑝 is a period. The funda-
mental period of the sine and cosine functions is 2𝜋, while the fundamental
period of the square wave and triangular wave from Figure 10.2 is 2.
If 𝑓 (𝑡) is periodic of period 𝑝 and 𝑎 is any positive number let 𝑔(𝑡) = 𝑓 (𝑎𝑡).
Then for all 𝑡
( 𝑝) ( ( 𝑝 ))
𝑔 𝑡+ = 𝑓 𝑎 𝑡+ = 𝑓 (𝑎𝑡 + 𝑝) = 𝑓 (𝑎𝑡) = 𝑔(𝑡).
𝑎 𝑎
Thus
𝑝
If 𝑓 (𝑡) is periodic with period 𝑝, then 𝑓 (𝑎𝑡) is periodic with period .
𝑎
It is also true that if 𝑃 is the fundamental period for the periodic function
𝑓 (𝑡), then the fundamental period of 𝑔(𝑡) = 𝑓 (𝑎𝑡) is 𝑃/𝑎. To see this it is only
necessary to verify that any period 𝑟 of 𝑔(𝑡) is at least as large as 𝑃/𝑎, which
is already a period as observed above. But if 𝑟 is a period for 𝑔(𝑡), then 𝑟𝑎 is
a period for 𝑔(𝑡/𝑎) = 𝑓 (𝑡) so that 𝑟𝑎 ≥ 𝑃 , or 𝑟 ≥ 𝑃/𝑎.
726 10 Fourier Series
Applying these observations to the functions sin 𝑡 and cos 𝑡 with funda-
mental period 2𝜋 gives the following facts.
Theorem 1. For any 𝑎 > 0 the functions cos 𝑎𝑡 and sin 𝑎𝑡 are periodic with
period 2𝜋/𝑎. In particular, if 𝐿 > 0 then the functions
𝑛𝜋 𝑛𝜋
cos 𝑡 and sin 𝑡, 𝑛 = 1, 2, 3, . . . .
𝐿 𝐿
are periodic with fundamental period 𝑃 = 2𝐿/𝑛.
Note that since the fundamental period of the functions cos 𝑛𝜋 𝑛𝜋
𝐿 𝑡 and sin 𝐿 𝑡
is 𝑃 = 2𝐿/𝑛, it follows that 2𝐿 = 𝑛𝑃 is also a period for each of these
functions. Thus, a sum
∞
∑ ( 𝑛𝜋 𝑛𝜋 )
𝑎𝑛 cos 𝑡 + 𝑏𝑛 sin 𝑡
𝑛=1
𝐿 𝐿
1 1
−𝜋 𝜋 −𝜋 𝜋
−1 −1
(a) The graphs of cos 𝑡 and cos 3𝑡. (b) The graphs of sin 𝑡 and sin 3𝑡.
Fig. 10.3
▶ Solution. 1. 𝑃 = 2𝜋/2 = 𝜋.
2. sin 32 (𝑡 − 𝜋) = sin( 32 𝑡 − 23 𝜋) = sin 32 𝑡 cos 32 𝜋 − cos 32 𝑡 sin 32 𝜋 = cos 32 𝑡. Thus,
𝑃 = 2𝜋/(3/2) = 4𝜋/3.
10.1 Periodic Functions and Orthogonality Relations 727
For (3) with 𝑛 = 𝑚, use the identity cos2 𝐴 = (1 + cos 2𝐴)/2 to get
∫ 𝐿 ∫ 𝐿(
𝑛𝜋 𝑚𝜋 𝑛𝜋 )2
cos 𝑡 cos 𝑡 𝑑𝑡 = cos 𝑡 𝑑𝑡 =
−𝐿 𝐿 𝐿 −𝐿 𝐿
∫ 𝐿 ( ) ( )𝐿
1 2𝑛𝜋 1 𝐿 2𝑛𝜋
= 1 + cos 𝑡 𝑑𝑡 = 𝑡+ sin 𝑡 = 𝐿.
−𝐿 2 𝐿 2 2𝑛𝜋 𝐿 −𝐿
The proof of (4) is similar, making use of the identities sin2 𝐴 = (1−cos 2𝐴)/2
in case 𝑛 = 𝑚 and
1
sin 𝐴 sin 𝐵 = (cos(𝐴 − 𝐵) − cos(𝐴 + 𝐵))
2
in case 𝑛 ∕= 𝑚. The proof of (2) is left as an exercise.
▶ Solution. 1. Since 𝑓 (−𝑡) = 3(−𝑡)2 + cos 5(−𝑡) = 3𝑡2 + cos 5𝑡 = 𝑓 (𝑡) for
all 𝑡, it follows that 𝑓 is an even function.
10.1 Periodic Functions and Orthogonality Relations 729
2. Since 𝑔(−𝑡) = 3(−𝑡) − (−𝑡)2 sin 3(−𝑡) = −3𝑡 + 𝑡2 sin 3𝑡 = −𝑔(𝑡) for all 𝑡,
it follows that 𝑔 is an odd function.
3. Since ℎ(−𝑡) = (−𝑡)2 + (−𝑡) + 1 = 𝑡2 − 𝑡 + 1 = 𝑡2 + 𝑡 + 1 = ℎ(𝑡) ⇐⇒
−𝑡 = 𝑡 ⇐⇒ 𝑡 = 0, we conclude that ℎ is not even. Similarly, ℎ(−𝑡) =
−ℎ(𝑡) ⇐⇒ 𝑡2 −𝑡+1 = −𝑡2 −𝑡−1 ⇐⇒ 𝑡2 +1 = (−𝑡2 +1) ⇐⇒ 𝑡2 +1 = 0,
which is not true for any 𝑡. Thus ℎ is not odd, and hence it is neither
even or odd.
◀
The graph of an even function is symmetric with respect to the 𝑦-axis, while
the graph of an odd function is symmetric with respect to the origin, as
illustrated in Figure 10.4.
𝑓 (𝑡)
𝑓 (−𝑡) 𝑓 (𝑡)
−𝑡
−𝑡 𝑡 𝑡
𝑓 (−𝑡) = −𝑓 (𝑡)
(a) The graph of an even function. (b) The graph of an odd function.
Fig. 10.4
Here is a list of basic properties of even and odd functions that are useful
in applications to Fourier series. All of them follow easily from the definitions,
and the verifications will be left to the exercises.
Proposition 5. Suppose that 𝑓 and 𝑔 are functions defined on the interval
−𝐿 ≤ 𝑡 ≤ 𝐿.
1. If both 𝑓 and 𝑔 are even then 𝑓 + 𝑔 and 𝑓 𝑔 are even.
2. If both 𝑓 and 𝑔 are odd, then 𝑓 + 𝑔 is odd and 𝑓 𝑔 is even.
3. If 𝑓 is even and 𝑔 is odd, then 𝑓 𝑔 is odd.
4. If 𝑓 is even, then
∫ 𝐿 ∫ 𝐿
𝑓 (𝑡) 𝑑𝑡 = 2 𝑓 (𝑡) 𝑑𝑡.
−𝐿 0
5. If 𝑓 is odd, then
∫ 𝐿
𝑓 (𝑡) 𝑑𝑡 = 0.
−𝐿
Since the integral of 𝑓 computes the signed area under the graph of 𝑓 , the
integral equations can be seen from the graphs of even and odd functions in
Figure 10.4.
730 10 Fourier Series
Exercises
1–9. Graph each of the following periodic functions. Graph at least 3 periods.
{
3 if 0 < 𝑡 < 3
1. 𝑓 (𝑡) = ; 𝑓 (𝑡 + 6) = 𝑓 (𝑡).
−3 if −3 < 𝑡 < 0
⎧
⎨−3 if −2 ≤ 𝑡 < −1
2. 𝑓 (𝑡) = 0 if −1 ≤ 𝑡 ≤ 1 ; 𝑓 (𝑡 + 4) = 𝑓 (𝑡).
⎩
3 if 1 < 𝑡 < 2
11. sin 2𝑡
14. 𝑡 + sin 2𝑡
15. sin2 𝑡
28. Use the properties of even and odd functions (Proposition 10.4) to eval-
uate the following integrals.
∫ 1 ∫ 1
(a) 𝑡 𝑑𝑡 (b) 𝑡4 𝑑𝑡
−1 −1
∫ 𝜋 ∫ 𝜋
(c) 𝑡 sin 𝑡 𝑑𝑡 (d) 𝑡 cos 𝑡 𝑑𝑡
−𝜋 −𝜋
∫ 𝜋 ∫ 𝜋
𝑛𝜋 𝑚𝜋
(e) cos 𝑡 sin 𝑡 𝑑𝑡 (f) 𝑡2 sin 𝑡 𝑑𝑡
−𝜋 𝐿 𝐿 −𝜋
Thus,
∫ 𝐿
1 𝑚𝜋
𝑎𝑚 = 𝑓 (𝑡) cos 𝑡 𝑑𝑡, 𝑚 = 1, 2, 3, . . .
𝐿 −𝐿 𝐿
or, replacing the index 𝑚 by 𝑛,
∫ 𝐿
1 𝑛𝜋
𝑎𝑛 = 𝑓 (𝑡) cos 𝑡 𝑑𝑡, 𝑛 = 1, 2, 3, . . . (2)
𝐿 −𝐿 𝐿
Thus,
∫ 𝐿
1
𝑎0 = 𝑓 (𝑡) 𝑑𝑡. (3)
𝐿 −𝐿
10.2 Fourier Series 733
Hence, 𝑎0 is two times the average value of the function 𝑓 (𝑡) over the interval
−𝐿 ≤ 𝑡 ≤ 𝐿. Observe that the value of 𝑎0 is obtained from (2) by setting
𝑛 = 0. Of course, if the constant 𝑎0 in (1) were not divided by 2, we would
need a separate formula for 𝑎0 . It is for this reason that the constant term
in (1) is labeled 𝑎0 /2. Thus, for all 𝑛 ≥ 0, the coefficients 𝑎𝑛 are given by a
single formula
∫ 𝐿
1 𝑛𝜋
𝑎𝑛 = 𝑓 (𝑡) cos 𝑡 𝑑𝑡, 𝑛 = 0, 1, 2, . . . (4)
𝐿 −𝐿 𝐿
We have arrived at what are known as the Euler Formulas for a function
𝑓 (𝑡) that is the sum of a trigonometric series as in (1):
∫ 𝐿
1
𝑎0 = 𝑓 (𝑡) 𝑑𝑡 (6)
𝐿 −𝐿
∫ 𝐿
1 𝑛𝜋
𝑎𝑛 = 𝑓 (𝑡) cos 𝑡 𝑑𝑡, 𝑛 = 1, 2, 3, . . . (7)
𝐿 −𝐿 𝐿
∫ 𝐿
1 𝑛𝜋
𝑏𝑛 = 𝑓 (𝑡) sin 𝑡 𝑑𝑡, 𝑛 = 1, 2, 3, . . . (8)
𝐿 −𝐿 𝐿
The numbers 𝑎𝑛 and 𝑏𝑛 are known as the Fourier coefficients of the func-
tion 𝑓 . Note that while we started with a periodic function of period 2𝐿, the
formulas for 𝑎𝑛 and 𝑏𝑛 only use the values of 𝑓 (𝑡) on the interval [−𝐿, 𝐿].
734 10 Fourier Series
We can then reverse the process, and start with any function 𝑓 (𝑡) defined on
the symmetric interval [−𝐿, 𝐿] and use the Euler formulas to determine a
trigonometric series. We will write
∞ ( )
𝑎0 ∑ 𝑛𝜋𝑡 𝑛𝜋𝑡
𝑓 (𝑡) ∼ + 𝑎𝑛 cos + 𝑏𝑛 sin , (9)
2 𝑛=1
𝐿 𝐿
where the 𝑎𝑛 , 𝑏𝑛 are defined by (6), (7), and (8), to indicate that the right
hand side of (9) is the Fourier series of the function 𝑓 (𝑡) defined on [−𝐿, 𝐿].
Note that the symbol ∼ indicates that the trigonometric series on the right
of (9) is associated with the function 𝑓 (𝑡); it does not imply that the series
converges to 𝑓 (𝑡) for any value of 𝑡. In fact, there are functions whose Fourier
series do not converge to the function. Of course, we will be interested in the
conditions under which the Fourier series of 𝑓 (𝑡) converges to 𝑓 (𝑡), in which
case ∼ can be replaced by =; but for now we associate a specific series using
Equations (6), (7), and (8) with 𝑓 (𝑡) and call it the Fourier series. The mild
conditions under which the Fourier series of 𝑓 (𝑡) converges to 𝑓 (𝑡) will be
considered in the next section.
Remark 1. If an integrable function 𝑓 (𝑡) is periodic with period 𝑝, then the
integral of 𝑓 (𝑡) over any interval of length 𝑝 is the same; that is
∫ 𝑐+𝑝 ∫ 𝑝
𝑓 (𝑡) 𝑑𝑡 = 𝑓 (𝑡) 𝑑𝑡 (10)
𝑐 0
for any choice of 𝑐. To see this, first observe that for any 𝛼 and 𝛽, if we use
the change of variables 𝑡 = 𝑥 − 𝑝, then
so that
∫ 𝑐+𝑝 ∫ 0 ∫ 𝑐+𝑝
𝑓 (𝑡) 𝑑𝑡 = 𝑓 (𝑡) 𝑑𝑡 + 𝑓 (𝑡) 𝑑𝑡
𝑐 𝑐 0
∫ 𝑝 ∫ 𝑐+𝑝 ∫ 𝑝
= 𝑓 (𝑡) 𝑑𝑡 + 𝑓 (𝑡) 𝑑𝑡 = 𝑓 (𝑡) 𝑑𝑡,
𝑐+𝑝 0 0
which is (10). This formula means that when computing the Fourier coeffi-
cients, the integrals can be computed over any convenient interval of length
2𝐿. For example,
10.2 Fourier Series 735
∫ 𝐿 ∫ 2𝐿
1 𝑛𝜋 1 𝑛𝜋
𝑎𝑛 = 𝑓 (𝑡) cos 𝑡 𝑑𝑡 = 𝑓 (𝑡) cos 𝑡 𝑑𝑡.
𝐿 −𝐿 𝐿 𝐿 0 𝐿
𝑦
1
𝑡
−3𝐿 −2𝐿 −𝐿 𝐿 2𝐿 3𝐿
−1
▶ Solution. Use the Euler formulas for 𝑎𝑛 (Equations (6) and (7)) to con-
clude ∫
1 𝐿 𝑛𝜋
𝑎𝑛 = 𝑓 (𝑡) cos 𝑡 𝑑𝑡 = 0
𝐿 −𝐿 𝐿
for all 𝑛 ≥ 0. This is because the function 𝑓 (𝑡) cos 𝑛𝜋
𝐿 𝑡 is the product of an
odd and even function, and hence is odd, which implies by Proposition 5
(Part 5) of Section 10.1 that the integral is 0. It remains to compute the
coefficients 𝑏𝑛 from (8).
∫ 𝐿 ∫ 0 ∫ 𝐿
1 𝑛𝜋 1 𝑛𝜋 1 𝑛𝜋
𝑏𝑛 = 𝑓 (𝑡) sin 𝑡 𝑑𝑡 = 𝑓 (𝑡) sin 𝑡 𝑑𝑡 + 𝑓 (𝑡) sin 𝑡 𝑑𝑡
𝐿 −𝐿 𝐿 𝐿 −𝐿 𝐿 𝐿 0 𝐿
∫ 0 ∫ 𝐿
1 𝑛𝜋 1 𝑛𝜋
= (−1) sin
𝑡 𝑑𝑡 + (+1) sin 𝑡 𝑑𝑡
𝐿−𝐿 𝐿 𝐿 0 𝐿
{[ ]0 [ ]𝐿 }
1 𝐿 𝑛𝜋 𝐿 𝑛𝜋
= cos 𝑡 − cos 𝑡
𝐿 𝑛𝜋 𝐿 −𝐿 𝑛𝜋 𝐿 0
1
= [(1 − cos(−𝑛𝜋)) + (1 − cos(𝑛𝜋))]
𝑛𝜋
2 2
= (1 − cos 𝑛𝜋) = (1 − (−1)𝑛 ).
𝑛𝜋 𝑛𝜋
Therefore,
736 10 Fourier Series
{
0 if 𝑛 is even,
𝑏𝑛 = 4
𝑛𝜋 if 𝑛 is odd,
and the Fourier series is
( )
4 𝜋 1 3𝜋 1 5𝜋 1 7𝜋
𝑓 (𝑡) ∼ sin 𝑡 + sin 𝑡 + sin 𝑡 + sin 𝑡+ ⋅⋅⋅ . (11)
𝜋 𝐿 3 𝐿 5 𝐿 7 𝐿
◀
Example 3. Compute the Fourier series of the even square wave function
of period 2𝐿 and amplitude 1 given by
⎧
⎨−1 −𝐿 ≤ 𝑡 < −𝐿/2,
𝑓 (𝑡) = 1 −𝐿/2 ≤ 𝑡 < 𝐿/2, ; 𝑓 (𝑡 + 2𝐿) = 𝑓 (𝑡).
⎩
−1 𝐿/2 ≤ 𝑡 < 𝐿,
1𝑦
𝑡
− 5𝐿
2
− 3𝐿
2
−𝐿
2
𝐿
2
3𝐿
2
5𝐿
2
−1
Example 4. Compute the Fourier series of the even triangular wave func-
tion of period 2𝜋 given by
{
−𝑡 −𝜋 ≤ 𝑡 < 0,
𝑓 (𝑡) = ; 𝑓 (𝑡 + 2𝜋) = 𝑓 (𝑡).
𝑡 0 ≤ 𝑡 < 𝜋,
−3𝜋 −2𝜋 −𝜋 0 𝜋 2𝜋 3𝜋
For 𝑛 ≥ 1, using the fact that 𝑓 (𝑡) is even, and taking advantage of the
integration by parts formula
∫
𝑥 cos 𝑥 𝑑𝑥 = 𝑥 sin 𝑥 + cos 𝑥 + 𝐶,
∫ ∫
1 𝜋 2 𝜋
𝑎𝑛 = 𝑓 (𝑡) cos 𝑛𝑡 𝑑𝑡 = 𝑓 (𝑡) cos 𝑛𝑡 𝑑𝑡
𝜋 −𝜋 𝜋 0
∫ ( )
2 𝜋 𝑥 𝑑𝑥
= 𝑡 cos 𝑛𝑡 𝑑𝑡 let 𝑥 = 𝑛𝑡 so 𝑡 = and 𝑑𝑡 =
𝜋 0 𝑛 𝑛
∫
2 𝑛𝜋 𝑥 𝑑𝑥 2 𝑥=𝑛𝜋
= cos 𝑥 = 2 [𝑥 sin 𝑥 + cos 𝑥]𝑥=0
𝜋 0 𝑛 𝑛 𝑛 𝜋
2 2
= 2 [cos 𝑛𝜋 − 1] = 2 [(−1)𝑛 − 1]
𝑛 𝜋 𝑛 𝜋
Therefore, {
0 if 𝑛 is even,
𝑎𝑛 =
− 𝑛42 𝜋 if 𝑛 is odd
and the Fourier series is
( )
𝜋 4cos 𝑡 cos 3𝑡 cos 5𝑡 cos 7𝑡
𝑓 (𝑡) ∼ − + + + + ⋅⋅⋅
2 𝜋 12 32 52 72
∞
𝜋 4 ∑ cos(2𝑘 + 1)𝑡
= − .
2 𝜋 (2𝑘 + 1)2
𝑘=0
𝑡
−3𝐿 −2𝐿 −𝐿 𝐿 2𝐿 3𝐿
−𝐿
∫
𝑥 sin 𝑥 𝑑𝑥 = sin 𝑥 − 𝑥 cos 𝑥 + 𝐶,
∫ 𝐿
1 𝑛𝜋
𝑏𝑛 = 𝑓 (𝑡) sin 𝑡 𝑑𝑡
𝐿 −𝐿 𝐿
∫ ( )
2 𝐿 𝑛𝜋 𝑛𝜋 𝐿 𝐿
= 𝑡 sin 𝑡 𝑑𝑡 let 𝑥 = 𝑡 so 𝑡 = 𝑥 and 𝑑𝑡 = 𝑑𝑥
𝐿 0 𝐿 𝐿 𝑛𝜋 𝑛𝜋
∫ 𝑛𝜋 ∫ 𝑛𝜋
2 𝐿 𝐿 𝑑𝑥 2𝐿
= 𝑥 sin 𝑥 = 2 2 𝑥 sin 𝑥 𝑑𝑥
𝐿 0 𝑛𝜋 𝑛𝜋 𝑛 𝜋 0
2𝐿 𝑥=𝑛𝜋
= 2 2 [sin 𝑥 − 𝑥 cos 𝑥]𝑥=0
𝑛 𝜋
2𝐿 2𝐿
= − 2 2 (𝑛𝜋 cos 𝑛𝜋) = − (−1)𝑛 .
𝑛 𝜋 𝑛𝜋
Therefore, the Fourier series is
( )
2𝐿 𝜋 1 2𝜋 1 3𝜋 1 4𝜋
𝑓 (𝑡) ∼ sin 𝑡 − sin 𝑡 + sin 𝑡 − sin 𝑡+ ⋅⋅⋅
𝜋 𝐿 2 𝐿 3 𝐿 4 𝐿
∞ 𝑛+1
2𝐿 ∑ (−1) 𝑛𝜋
= sin 𝑡.
𝜋 𝑛=1 𝑛 𝐿
All of the examples so far have been of functions that are either even or
odd. If a function 𝑓 (𝑡) is even, the resulting Fourier series will only have
cosine terms, as in the case of Examples 3 and 4, while if 𝑓 (𝑡) is odd, the
resulting Fourier series will only have sine terms, as in Examples 2 and 5.
Here are some examples where both sine an cosine terms appear.
𝑦
2
𝑡
−6 −4 −2 2 4 6
▶ Solution. This function is neither even nor odd, so we expect both sine
and cosine terms to be present. The period is 4 = 2𝐿 so 𝐿 = 2. Because
𝑓 (𝑡) = 0 on the interval (−2, 0), each of the integrals in the Euler formulas,
which should be an integral from 𝑡 = −2 to 𝑡 = 2, can be replaced with an
integral from 𝑡 = 0 to 𝑡 = 2. Thus, the Euler formulas give
∫ 2 [ ]2
1 1 𝑡2
𝑎0 = 𝑡 𝑑𝑡 = = 1;
2 0 2 2 0
∫ ( )
1 2 𝑛𝜋 𝑛𝜋 2𝑥 2𝑑𝑥
𝑎𝑛 = 𝑡 cos 𝑡 𝑑𝑡 let 𝑥 = 𝑡 so 𝑡 = and 𝑑𝑡 =
2 0 2 2 𝑛𝜋 𝑛𝜋
∫ 𝑛𝜋 ∫ 𝑛𝜋
1 2𝑥 2𝑑𝑥 2
= cos 𝑥 = 2 2 𝑥 cos 𝑥 𝑑𝑥
2 0 𝑛𝜋 𝑛𝜋 𝑛 𝜋 0
2 𝑥=𝑛𝜋
= [cos 𝑥 + 𝑥 sin 𝑥]𝑥=0
𝑛 𝜋2
2
2 2
= 2 2
(cos 𝑛𝜋 − 1) = 2 2 ((−1)𝑛 − 1).
𝑛 𝜋 𝑛 𝜋
Therefore, ⎧
⎨1
if 𝑛 = 0,
𝑎𝑛 = 0 if 𝑛 is even and 𝑛 ≥ 2,
− 𝑛24𝜋2
⎩
if 𝑛 is odd.
Now compute 𝑏𝑛 :
∫ 2 ( )
1 𝑛𝜋 𝑛𝜋 2𝑥 2𝑑𝑥
𝑏𝑛 = 𝑡 sin 𝑡 𝑑𝑡 let 𝑥 = 𝑡 so 𝑡 = and 𝑑𝑡 =
2 0 2 2 𝑛𝜋 𝑛𝜋
10.2 Fourier Series 741
∫ 𝑛𝜋 ∫ 𝑛𝜋
1 2𝑥 2𝑑𝑥 2
= sin 𝑥 = 2 2 𝑥 sin 𝑥 𝑑𝑥
2 0 𝑛𝜋 𝑛𝜋 𝑛 𝜋 0
2
= [sin 𝑥 − 𝑥 cos 𝑥]𝑥=𝑛𝜋
𝑥=0
𝑛2 𝜋 2
2 2
= 2 2 (−𝑛𝜋 cos 𝑛𝜋) = − (−1)𝑛 .
𝑛 𝜋 𝑛𝜋
Thus,
2(−1)𝑛+1
𝑏𝑛 = for all 𝑛 ≥ 1.
𝑛𝜋
Therefore, the Fourier series is
∞ ∞
1 4 ∑ 1 (2𝑘 + 1)𝜋 2 ∑ (−1)𝑛+1 𝑛𝜋
𝑓 (𝑡) ∼ − 2 cos 𝑡 + sin 𝑡.
2 𝜋 (2𝑘 + 1)2 2 𝜋 𝑛=1 𝑛 2
𝑘=0
Example 7. Compute the Fourier series of the square pulse wave function
of period 2𝜋 given by
{
1 0 ≤ 𝑡 < ℎ,
𝑓 (𝑡) = ; 𝑓 (𝑡 + 2𝜋) = 𝑓 (𝑡).
0 ℎ ≤ 𝑡 < 2𝜋,
−4𝜋 −2𝜋 0 ℎ 2𝜋 4𝜋
◀
If the square pulse wave 𝑓 (𝑡) is divided by ℎ, then one obtains a function
whose graph is a series of tall thin rectangles of height 1/ℎ and base ℎ, so
that each of the rectangles with the bases starting at 2𝑛𝜋 has area 1, as
in Figure 10.11. Now consider the limiting case where ℎ approaches 0. The
1
ℎ
−4𝜋 −2𝜋 0 ℎ 2𝜋 4𝜋
sin 𝑛ℎ 1
𝑎𝑛 = → and
𝜋𝑛ℎ 𝜋
1 − cos 𝑛ℎ
𝑏𝑛 = → 0 as ℎ → 0
𝜋𝑛ℎ
Also, 𝑎0 /ℎ = 1/𝜋. Thus, the 2𝜋-periodic delta function has a Fourier series
∞ ∞
∑ 1 1∑
𝛿(𝑡 − 2𝑛𝜋) ∼ + cos 𝑛𝑡. (12)
𝑛=−∞
2𝜋 𝜋 𝑛=1
It is worth pointing out that this is one series that definitely does not converge
for all 𝑡. In fact it does not converge for 𝑡 = 0. However, there is a sense of
convergence in which convergence makes sense. We will discuss this in the
next section.
10.2 Fourier Series 743
−4𝜋 −2𝜋 0 2𝜋 4𝜋
Exercises
Then,
∫ 1
𝑎𝑛 = 𝑒𝑡 cos 𝑛𝜋𝑡 𝑑𝑡
−1
10.3 Convergence of Fourier Series 745
1
1 𝑡
= 𝑒 [cos 𝑛𝜋𝑡 + 𝑛𝜋 sin 𝑛𝜋𝑡]
1 + 𝑛2 𝜋 2
−1
1
= [𝑒1 cos 𝑛𝜋 − 𝑒−1 cos(−𝑛𝜋)]
1 + 𝑛2 𝜋 2
(𝑒1 − 𝑒−1 )(−1)𝑛 2(−1)𝑛 sinh(1)
= 2 2
= ,
1+𝑛 𝜋 1 + 𝑛2 𝜋 2
and,
∫ 1
𝑏𝑛 = 𝑒𝑡 sin 𝑛𝜋𝑡 𝑑𝑡
−1
1
1 𝑡
= 2 2
𝑒 [sin 𝑛𝜋𝑡 − 𝑛𝜋 cos 𝑛𝜋𝑡]
1+𝑛 𝜋
−1
1 1 −1
= [𝑒 (−𝑛𝜋 cos 𝑛𝜋) − 𝑒 (−𝑛𝜋 cos(−𝑛𝜋))]
1 + 𝑛2 𝜋 2
(𝑒1 − 𝑒−1 )(−𝑛𝜋)(−1)𝑛 2(−1)𝑛 (−𝑛𝜋) sinh(1)
= = .
1 + 𝑛2 𝜋 2 1 + 𝑛2 𝜋 2
Therefore, the Fourier series is
∞
∑ (−1)𝑛 (cos 𝑛𝜋𝑡 − 𝑛𝜋 sin 𝑛𝜋𝑡)
𝑓 (𝑡) ∼ sinh(1) + 2 sinh(1) .
𝑛=1
1 + 𝑛2 𝜋 2
The questions that we wish to consider are (1) under what conditions on
the function 𝑓 (𝑡) is it true that the series converges, and (2) when does it
converge to the original function 𝑓 (𝑡)? ∑∞
As with any infinite series,
∑𝑚 to say that 𝑛=1 𝑐𝑛 = 𝐶 means that the
sequence of partial sums 𝑛=1 𝑐𝑛 = 𝑆𝑚 converges to 𝐶, that is,
746 10 Fourier Series
lim 𝑆𝑚 = 𝐶.
𝑚→∞
Example 1. Consider the odd square wave function of period 2 and am-
plitude 1 from Example 2 of Section 10.2
{
−1 −1 ≤ 𝑡 < 0,
𝑓 (𝑡) = ; 𝑓 (𝑡 + 2) = 𝑓 (𝑡). (5)
1 0 ≤ 𝑡 < 1,
Since 𝑓 (0) = 1, it follows that the Fourier series does not converge to 𝑓 (𝑡)
for all 𝑡. Several partial sums 𝑆𝑚 are graphed along with the graph of 𝑓 (𝑡) in
Figure 10.13. It can be seen that the graph of 𝑆15 (𝑡) is very close to the graph
of 𝑓 (𝑡), except at the points of discontinuity, which are 0, ±1, ±2, . . .. This
suggests that the Fourier series of 𝑓 (𝑡) converges to 𝑓 (𝑡) at all points except
for where 𝑓 (𝑡) has a discontinuity, which occurs whenever 𝑡 is an integer 𝑛.
For each integer 𝑛,
[2]
𝑚
[2] 𝑚
4∑ 1 4∑
𝑆𝑚 (𝑛) = sin(2𝑘 + 1)𝜋𝑛 = 0 = 0.
𝜋 2𝑘 + 1 𝜋
𝑘=0 𝑘=0
Hence the Fourier series converges to 𝑓 (𝑡) whenever 𝑡 is not an integer and
it converges to 0, which is the midpoint of the jump of 𝑓 (𝑡) at each integer.
10.3 Convergence of Fourier Series 747
𝑡
−3 −2 −1 1 2 3
−1
4
𝑆1 (𝑡) = 𝜋
sin 𝜋𝑡
𝑡
−3 −2 −1 1 2 3
−1
4 1 1
( )
𝑆5 (𝑡) = 𝜋
sin 𝜋𝑡 + 3
sin 3𝜋𝑡 + 5
sin 5𝜋𝑡
𝑡
−3 −2 −1 1 2 3
−1
4
∑7 1
𝑆15 (𝑡) = 𝜋 𝑘=0 2𝑘+1 sin(2𝑘 + 1)𝜋𝑡
Fig. 10.13 Fourier series approximations 𝑆𝑚 to the odd square wave of period 2 for
𝑚 = 1, 5, and 15.
Similar results are true for a broad range of functions. We will describe the
types of functions to which the convergence theorem applies and then state
the convergence theorem.
Recall that a function 𝑓 (𝑡) defined on an interval 𝐼 has a jump discon-
tinuity at a point 𝑡 = 𝑎 if the left hand limit 𝑓 (𝑎− ) = lim𝑡→𝑎− 𝑓 (𝑡) and the
right hand limit 𝑓 (𝑎+ ) = lim𝑡→𝑎+ 𝑓 (𝑡) both exist (as real numbers, not ±∞)
and
𝑓 (𝑎+ ) ∕= 𝑓 (𝑎− ).
748 10 Fourier Series
Note that 12 [𝑓 (𝑡+ ) + 𝑓 (𝑡− )] is the average of the left-hand and right-hand
limits of 𝑓 at the point 𝑡. If 𝑓 is continuous at 𝑡, then 𝑓 (𝑡+ ) = 𝑓 (𝑡) = 𝑓 (𝑡− ),
so that
𝑓 (𝑡+ ) + 𝑓 (𝑡− )
𝑓 (𝑡) = , (7)
2
for any 𝑡 where 𝑓 is continuous. Hence Theorem 2 can be rephrased as follows:
The Fourier series of a piecewise smooth periodic function 𝑓 converges for
every 𝑡 to the average of the left-hand and right-hand limits of 𝑓 .
10.3 Convergence of Fourier Series 749
𝑓 (𝑛+ ) + 𝑓 (𝑛− )
= 0.
2
This is consistent with Theorem 2 since the Fourier series (6) converges to 0
whenever 𝑡 is an integer 𝑛 (because sin(2𝑘 + 1)𝜋𝑛 = 0).
For any point 𝑡 other than an integer, the function 𝑓 (𝑡) is continuous, so
Theorem 2 gives an equality
( )
4 1 1 1
𝑓 (𝑡) = sin 𝜋𝑡 + sin 3𝜋𝑡 + sin 5𝜋𝑡 + sin 7𝜋𝑡 + ⋅ ⋅ ⋅ .
𝜋 3 5 7
𝑡
−3 −2 −1 1 2 3
−1
Fig. 10.14 The odd square wave of period 2 redefined so that the Fourier series converges
to 𝑓 (𝑡) for all 𝑡.
1 1 1 𝜋
1− + − + ⋅⋅⋅ = .
3 5 7 4
Example 4. Let 𝑓 be periodic of period 2 and defined on the interval 0 ≤
𝑡 < 2 by 𝑓 (𝑡) = 𝑡2 . Without computing the Fourier coefficients, give an
explicit description of the sum of the Fourier series of 𝑓 for all 𝑡.
Both 𝑓 (𝑡) and 𝑓 ′ (𝑡) are continuous everywhere except at the even integers.
Thus, the Fourier series converges to 𝑓 (𝑡) everywhere except at the even
integers. At the even integer 2𝑚 the left and right limits are
𝑦
4
b b b b b b b
𝑡
−6 −4 −2 2 4 6
Fig. 10.15 The graph of sum of the Fourier series of the period 2 function 𝑓 (𝑡) for Example
4.
∑∞
Example 5. The 2𝜋-periodic delta function 𝑛=−∞ 𝛿(𝑡 − 2𝑛𝜋) has a
Fourier series ∞ ∞
∑ 1 1∑
𝛿(𝑡 − 2𝑛𝜋) ∼ + cos 𝑛𝑡 (8)
𝑛=−∞
2𝜋 𝜋 𝑛=1
10.3 Convergence of Fourier Series 751
that
∑∞ was computed in Section 10.2. See Figure 10.12 for the graph of
𝑛=−∞ 𝛿(𝑡 − 2𝑛𝜋). The 2𝜋-periodic delta function does not satisfy the con-
ditions of the convergence theorem. Moreover, it is clear that the series does
not converge since the individual terms do not approach 0. If 𝑡 = 0 the series
becomes
1 1
+ [1 + 1 + 1 + ⋅ ⋅ ⋅ ],
2𝜋 𝜋
while, if 𝑡 = 𝜋 the series is
1 1
+ [−1 + 1 − 1 + ⋅ ⋅ ⋅ ].
2𝜋 𝜋
Neither of these series are convergent.
∑∞ However, there is a sense of∑convergence
∞
in which the Fourier series of 𝑛=−∞ 𝛿(𝑡−2𝑛𝜋) "converges" to 𝑛=−∞ 𝛿(𝑡−
2𝑛𝜋). To explore this phenomenon, we will explicitly compute the 𝑛𝑡ℎ partial
sum 𝛥𝑛 (𝑡) of the series (8):
1 1
𝛥𝑛 (𝑡) = + [cos 𝑡 + cos 2𝑡 + ⋅ ⋅ ⋅ + cos 𝑛𝑡]
2𝜋 𝜋
1
= [1 + 2 cos 𝑡 + 2 cos 2𝑡 + ⋅ ⋅ ⋅ + 2 cos 𝑛𝑡]
2𝜋
Now use the Euler identity 2 cos 𝜃 = 𝑒𝑖𝜃 + 𝑒−𝑖𝜃 to get
1 [ ]
𝛥𝑛 (𝑡) = 1 + 𝑒𝑖𝑡 + 𝑒−𝑖𝑡 + 𝑒𝑖2𝑡 + 𝑒−𝑖2𝑡 + ⋅ ⋅ ⋅ + 𝑒𝑖𝑛𝑡 + 𝑒−𝑖𝑛𝑡 .
2𝜋
Letting 𝑧 = 𝑒𝑖𝑡 , this is seen to be a geometric series of ratio 𝑧 that begins
with the term 𝑧 −𝑛 and ends with the term 𝑧 𝑛 . Since the sum of a geometric
series is known: 𝑎 + 𝑎𝑟 + 𝑎𝑟2 + ⋅ ⋅ ⋅ + 𝑎𝑟𝑚 = 𝑎(1 − 𝑟𝑚+1 )/(1 − 𝑟) it follows that
1 [ ]
𝛥𝑛 (𝑡) = 1 + 𝑒𝑖𝑡 + 𝑒−𝑖𝑡 + 𝑒𝑖2𝑡 + 𝑒−𝑖2𝑡 + ⋅ ⋅ ⋅ + 𝑒𝑖𝑛𝑡 + 𝑒−𝑖𝑛𝑡
2𝜋
1 [ −𝑛 ] 1 −𝑛 [ ]
= 𝑧 + 𝑧 −𝑛+1 + ⋅ ⋅ ⋅ + 𝑧 𝑛 = 𝑧 1 + 𝑧 + ⋅ ⋅ ⋅ + 𝑧 2𝑛
2𝜋 2𝜋
1 −𝑛 1 − 𝑧 2𝑛+1 1 𝑧 −𝑛 − 𝑧 𝑛+1
= 𝑧 =
2𝜋 1−𝑧 2𝜋 1−𝑧
1 𝑒−𝑖𝑛𝑡 − 𝑒𝑖(𝑛+1)𝑡 1 𝑒𝑖(𝑛+1)𝑡 − 𝑒−𝑖𝑛𝑡 𝑒−𝑖𝑡/2
= =
2𝜋 1 − 𝑒𝑖𝑡 2𝜋 𝑒𝑖𝑡 − 1 𝑒−𝑖𝑡/2
𝑖(𝑛+ 12 )𝑡 −𝑖(𝑛+ 12 )𝑡
1 𝑒 −𝑒
= 𝑖𝑡/2
2𝜋 𝑒 − 𝑒−𝑖𝑡/2
( 1
)
1 sin 𝑛 + 2 𝑡
= .
2𝜋 sin 12 𝑡
752 10 Fourier Series
For those values of 𝑡 where sin 12 𝑡 = 0, the value of 𝛥𝑛 (𝑡) is the limiting value.
The graphs of 𝛥𝑛 (𝑡) for 𝑛 = 5 and 𝑛 = 15 over 1 period −𝜋 ≤ 𝑡 ≤ 𝜋] are
shown in Figure 10.16. As 𝑛 increases the central hump increases in height
and becomes narrower, while away from 0 the graph is a rapid oscillation of
small amplitude. Also, the area enclosed by 𝛥𝑛 (𝑡) in one period −𝜋 ≤ 𝑡 ≤ 𝜋
is always 1. This is easily seen from the expression of 𝛥𝑛 (𝑡) as a sum of cosine
terms:
∫ 𝜋 ∫ 𝜋
1
𝛥𝑛 (𝑡) 𝑑𝑡 = [1 + 2 cos 𝑡 + 2 cos 2𝑡 + ⋅ ⋅ ⋅ + 2 cos 𝑛𝑡] 𝑑𝑡 = 1
−𝜋 −𝜋 2𝜋
∫𝜋
since −𝜋 cos 𝑚𝑡 𝑑𝑡 = 0 for all nonzero integers 𝑚. Most of the area is con-
centrated in the first hump since the rapid oscillation cancels out the contri-
butions above and below the 𝑡 axis away from this hump.
3 𝛿15 (𝑡)
1 𝛿5 (𝑡)
−𝜋 𝜋
−1
Fig. 10.16 The graphs of the partial sums 𝛿𝑛 (𝑡) for 𝑛 = 5 and 𝑛 = 15.
∑∞
To see the sense in which 𝛥𝑛 (𝑡) converges to 𝑛=−∞ 𝛿(𝑡 − 2𝑛𝜋), recall
that ∫𝛿(𝑡) is described via integration by the property that 𝛿(𝑡) = 0 if 𝑡 ∕= 0,
and 𝑓 (𝑡)𝛿(𝑡) 𝑑𝑡 = 𝑓 (0) for all test functions 𝑓 (𝑡). Since we are working
with periodic functions, consider the integrals over 1 period, in our case
[−𝜋, 𝜋].∑Thus let 𝑓 (𝑡) be a smooth function and expand it in a cosine series
𝑓 (𝑡) = 𝑎𝑚 cos 𝑚𝑡. Multiply by 𝛥𝑛 (𝑡) and integrate, using the orthogonality
conditions to get ∫ 𝜋
𝛥𝑛 (𝑡)𝑓 (𝑡) 𝑑𝑡 = 𝑎0 + ⋅ ⋅ ⋅ + 𝑎𝑛 . (9)
−𝜋
Exercises
1–9. In each exercise, (a) Sketch the graph of 𝑓 (𝑡) over at least 3 periods.
(b) Determine the points 𝑡 at which the Fourier series of 𝑓 (𝑡) converges to
𝑓 (𝑡). (c) At each point 𝑡 of discontinuity, give the value of 𝑓 (𝑡) and the value
to which the Fourier series converges.
{
3 if 0 ≤ 𝑡 < 2
1. 𝑓 (𝑡) = ; 𝑓 (𝑡 + 4) = 𝑓 (𝑡).
−1 if 2 ≤ 𝑡 < 4
2. 𝑓 (𝑡) = 𝑡, −1 ≤ 𝑡 ≤ 1, 𝑓 (𝑡 + 2) = 𝑓 (𝑡).
3. 𝑓 (𝑡) = 𝑡, 0 ≤ 𝑡 ≤ 2, 𝑓 (𝑡 + 2) = 𝑓 (𝑡).
5. 𝑓 (𝑡) = 𝑡2 , −2 ≤ 𝑡 ≤ 2, 𝑓 (𝑡 + 4) = 𝑓 (𝑡).
1 1 1 𝜋
1− + − + ⋅⋅⋅ = .
3 5 7 4
12. Use the Fourier series of the function 𝑓 (𝑡) = ∣𝑡∣, −𝜋 < 𝑡 < 𝜋 (see Example
4 of Section 10.2) to compute the sum of the series
1 1 1
1+ 2
+ 2 + 2 + ⋅⋅⋅ .
3 5 7
14. Using the Fourier series in problem 13, find the sum of the following
series ∞ ∞
∑ 1 ∑ (−1)𝑛+1
and .
𝑛=1
𝑛2 𝑛=1
𝑛2
In Section 10.2 we observed (see the discussion following Example 5) that the
Fourier series of an even function will only have cosine terms, while the Fourier
series of an odd function will only have sine terms. We will take advantage
of this feature to obtain new types of Fourier series representations that are
valid for functions defined on some interval 0 ≤ 𝑡 ≤ 𝐿. In practice, we will
frequently want to represent 𝑓 (𝑡) by a Fourier series that involves only cosine
terms or only sine terms. To do this, we will first extend 𝑓 (𝑡) to the interval
−𝐿 ≤ 𝑡 ≤ 0. We may then extend 𝑓 (𝑡) to all of the real line by assuming that
𝑓 (𝑡) is 2𝐿 periodic. That is, assume 𝑓 (𝑡 + 2𝐿) = 𝑓 (𝑡). We will extend 𝑓 (𝑡) in
such a way as to obtain either an even function or an odd function.
If 𝑓 (𝑡) is defined only for 0 ≤ 𝑡 ≤ 𝐿, then the even 2𝐿-periodic exten-
sion of 𝑓 (𝑡) is the function 𝑓𝑒 (𝑡) defined by
10.4 Fourier Sine Series and Fourier Cosine Series 755
{
𝑓 (𝑡) if 0 ≤ 𝑡 ≤ 𝐿,
𝑓𝑒 (𝑡) = ; 𝑓𝑒 (𝑡 + 2𝐿) = 𝑓𝑒 (𝑡). (1)
𝑓 (−𝑡) if −𝐿 ≤ 𝑡 < 0,
These two extensions are illustrated for a particular function 𝑓 (𝑡) in Figure
10.17. Note that both 𝑓𝑒 (𝑡) and 𝑓𝑜 (𝑡) agree with 𝑓 (𝑡) on the interval 0 < 𝑡 <
𝐿.
𝑡
𝐿
𝑦 𝑦
𝑡 𝑡
−3𝐿 −2𝐿 −𝐿 𝐿 2𝐿 3𝐿 −3𝐿 −2𝐿 −𝐿 𝐿 2𝐿 3𝐿
The graph of 𝑓𝑒 (𝑡), the even The graph of 𝑓𝑜 (𝑡), the odd
2𝐿-periodic extension of 𝑓 (𝑡). 2𝐿-periodic extension of 𝑓 (𝑡).
Fig. 10.17
Since 𝑓𝑒 (𝑡) is an even 2𝐿-periodic function, then 𝑓𝑒 (𝑡) has a Fourier series
expansion
∞ ( )
𝑎0 ∑ 𝑛𝜋𝑡 𝑛𝜋𝑡
𝑓𝑒 (𝑡) ∼ + 𝑎𝑛 cos + 𝑏𝑛 sin
2 𝑛=1
𝐿 𝐿
where ∫ 𝐿
1 𝑛𝜋𝑡
𝑎𝑛 = 𝑓𝑒 (𝑡) cos 𝑑𝑡, for 𝑛 ≥ 0.
𝐿 −𝐿 𝐿
Since the integrand is even and 𝑓𝑒 (𝑡) = 𝑓 (𝑡) for 0 ≤ 𝑡 ≤ 𝐿, it follows that
∫ 𝐿
2 𝑛𝜋𝑡
𝑎𝑛 = 𝑓 (𝑡) cos 𝑑𝑡, for 𝑛 ≥ 0. (3)
𝐿 0 𝐿
where the coefficients are given by (3) and this series converges to the average
of the left-hand and right-hand limits of 𝑓 at each 𝑡 in the interval [0, 𝐿]. The
series in (4) is called the Fourier cosine series for 𝑓 on the interval [0, 𝐿].
Similarly, by using the Fourier series expansion of the odd 2𝐿-periodic
extension of 𝑓 (𝑡), and restricting to the interval 0 ≤ 𝑡 ≤ 𝐿, we obtain the
series expansion
∞
∑ 𝑛𝜋𝑡
𝑓 (𝑡) ∼ 𝑏𝑛 sin , for 0 ≤ 𝑡 ≤ 𝐿, (5)
𝑛=1
𝐿
and this series converges to the average of the left-hand and right-hand limits
of 𝑓 at each 𝑡 in the interval [0, 𝐿]. The series in (5) is called the Fourier
sine series for 𝑓 on the interval [0, 𝐿].
Example 1. Let 𝑓 (𝑡) = 𝜋 − 𝑡 for 0 ≤ 𝑡 ≤ 𝜋. Compute both the Fourier
cosine series and the Fourier sine series for the function 𝑓 (𝑡). Sketch the graph
of the function to which the Fourier cosine series converges and the graph of
the function to which to Fourier sine series converges.
▶ Solution. In this case, the length of the interval is 𝐿 = 𝜋 and from (4),
the Fourier cosine series of 𝑓 (𝑡) is
∞
𝑎0 ∑
𝑓 (𝑡) ∼ + 𝑎𝑛 cos 𝑛𝑡,
2 𝑛=1
with ∫ 𝜋 ∫ 𝜋
2 2
𝑎0 = 𝑓 (𝑡) 𝑑𝑡 = (𝜋 − 𝑡) 𝑑𝑡 = 𝜋,
𝜋 0 𝜋 0
and for 𝑛 ≥ 1,
∫ ∫
2 𝜋 2 𝜋
𝑎𝑛 = 𝑓 (𝑡) cos 𝑛𝑡 𝑑𝑡 = (𝜋 − 𝑡) cos 𝑛𝑡 𝑑𝑡
𝜋 0 𝜋 0
𝜋 ∫ 𝜋
2 2
= sin 𝑛𝑡 − 𝑡 cos 𝑛𝑡 𝑑𝑡
𝑛 0 𝜋 0
[ 𝜋 ∫ ]
2 𝑡 1 𝜋
=− sin 𝑛𝑡 −
sin 𝑛𝑡 𝑑𝑡
𝜋 𝑛 0 𝑛 0
𝜋
2 2
= 2
(− cos 𝑛𝑡) = (− cos 𝑛𝜋 + 1)
𝜋𝑛 0 𝜋𝑛2
2
= 2
(1 − (−1)𝑛 )
𝜋𝑛
{
0 if 𝑛 is even,
= 4
𝜋𝑛2 if 𝑛 is odd.
−3𝜋 −2𝜋 −𝜋 𝜋 2𝜋 3𝜋
Fig. 10.18 The even 2𝜋-periodic extension 𝑓𝑒 (𝑡) of the function 𝑓 (𝑡) = 𝜋 − 𝑡 defined on
0 ≤ 𝑡 ≤ 𝜋.
with (for 𝑛 ≥ 1)
∫ 𝜋 ∫
2 2 𝜋
𝑏𝑛 = 𝑓 (𝑡) sin 𝑛𝑡 𝑑𝑡 = (𝜋 − 𝑡) sin 𝑛𝑡 𝑑𝑡
𝜋0 𝜋 0
𝜋 ∫
2 2 𝜋
= − cos 𝑛𝑡 − 𝑡 sin 𝑛𝑡 𝑑𝑡
𝑛 0 𝜋 0
𝜋 [ 𝜋 ∫ ]
2 2 𝑡 1 𝜋
= − cos 𝑛𝑡 −
− cos 𝑛𝑡 + cos 𝑛𝑡 𝑑𝑡
𝑛 0 𝜋 𝑛 0 𝑛 0
2
=
𝑛
Thus, the Fourier sine series of 𝑓 (𝑡) is
∞
∑ sin 𝑛𝑡
𝑓 (𝑡) = 𝜋 − 𝑡 = 2 .
𝑛=1
𝑛
This series converges to 𝑓 (𝑡) for 0 < 𝑡 < 𝜋 and to the odd 2𝜋-periodic
extension 𝑓𝑜 (𝑡) otherwise, except for the jump discontinuities of 𝑓𝑜 (𝑡), which
occur at the multiples of 𝑛𝜋, as can be seen from the graph of 𝑓𝑜 (𝑡) which is
given in Figure 10.19. At 𝑡 = 𝑛𝜋, the series converges to 0. ◀
−3𝜋 −2𝜋 −𝜋 𝜋 2𝜋 3𝜋
−𝜋
Fig. 10.19 The odd 2𝜋-periodic extension 𝑓𝑒 (𝑡) of the function 𝑓 (𝑡) = 𝜋 − 𝑡 defined on
0 ≤ 𝑡 ≤ 𝜋.
10.5 Operations on Fourier Series 759
Exercises
1–11. A function 𝑓 (𝑡) is defined on an interval 0 < 𝑡 < 𝐿. Find the Fourier
cosine and sine series of 𝑓 and sketch the graphs of the two extensions of 𝑓
to which these two series converge.
1. 𝑓 (𝑡) = 1, 0 < 𝑡 < 𝐿
and
760 10 Fourier Series
∞ ( )
𝑐0 ∑ 𝑛𝜋𝑡 𝑛𝜋𝑡
𝑔(𝑡) ∼ + 𝑐𝑛 cos + 𝑑𝑛 sin ,
2 𝑛=1
𝐿 𝐿
then for any constants 𝛼 and 𝛽 the function defined by ℎ(𝑡) = 𝛼𝑓 (𝑡) + 𝛽𝑔(𝑡)
is 2𝐿-periodic with Fourier series
∞ ( )
𝛼𝑎0 + 𝛽𝑐0 ∑ 𝑛𝜋𝑡 𝑛𝜋𝑡
ℎ(𝑡) ∼ + (𝛼𝑎𝑛 + 𝛽𝑐𝑛 ) cos + (𝛼𝑏𝑛 + 𝛽𝑑𝑛 ) sin . (1)
2 𝑛=1
𝐿 𝐿
This result follows immediately from the Euler formulas for the Fourier
coefficients and from the linearity of the definite integral.
and ∞
2𝐿 ∑ (−1)𝑛+1 𝑛𝜋
𝑡= sin 𝑡.
𝜋 𝑛=1 𝑛 𝐿
Since ℎ1 is 2𝜋-periodic, we take 𝐿 = 𝜋 in the Fourier series for 𝑡 over the
interval 𝐿 ≤ 𝑡 ≤ 𝐿. By the linearity theorem we then obtain
∞ ∞
𝜋 4 ∑ cos(2𝑘 + 1)𝑡 ∑ (−1)𝑛+1
ℎ1 (𝑡) = 𝑡 + ∣𝑡∣ = − + 2 sin 𝑛𝑡.
2 𝜋 (2𝑘 + 1)2 𝑛=1
𝑛
𝑘=0
Since ℎ1 (𝑡) is piecewise smooth, the equality is valid here, with the convention
that the function is redefined to be (ℎ1 (𝑡+ ) + ℎ1 (𝑡− ))/2 at each point 𝑡 where
the function is discontinuous. The graph of ℎ1 (𝑡) is similar to that of the half
sawtooth wave from Figure 10.9, where the only difference is that the period
of ℎ1 (𝑡) is 2𝜋, rather than 4.
The function ℎ2 (𝑡) = 1 + 2𝑡 is a sum of an even function 1 and an odd
function 2𝑡. Since the constant function 1 is it’s own Fourier series (that is,
𝑎0 = 2, 𝑎𝑛 = 0 = 𝑏𝑛 for 𝑛 ≥ 1, then letting 𝐿 = 1 in the Fourier series for 𝑡,
we get
∞
4 ∑ (−1)𝑛+1
ℎ2 (𝑡) = 1 + 2𝑡 = 1 + sin 𝑛𝜋𝑡.
𝜋 𝑛=1 𝑛
◀
10.5 Operations on Fourier Series 761
𝑑 𝑑
𝑓 ′ (𝑡 + 𝑝) = 𝑓 (𝑡 + 𝑝) = 𝑓 (𝑡) = 𝑓 ′ (𝑡).
𝑑𝑡 𝑑𝑡
Theorem 3. Suppose that 𝑓 is a 2𝐿-periodic function that is continuous for
all 𝑡, and suppose that the derivative 𝑓 ′ is piecewise smooth for all 𝑡. If the
Fourier series of 𝑓 is
∞ ( )
𝑎0 ∑ 𝑛𝜋𝑡 𝑛𝜋𝑡
𝑓 (𝑡) ∼ + 𝑎𝑛 cos + 𝑏𝑛 sin , (2)
2 𝑛=1
𝐿 𝐿
To prove the theorem, it is sufficient to show that the series in Equations (3)
and (4) are the same. From the Euler formulas for the Fourier coefficients of
𝑓 ′,
762 10 Fourier Series
∫ 𝐿
1 1
𝐴0 = 𝑓 ′ (𝑡) 𝑑𝑡 = 𝑓 (𝑡)∣𝐿
−𝐿 = 𝑓 (𝐿) − 𝑓 (−𝐿) = 0
𝐿 −𝐿 𝐿
since 𝑓 is continuous and 2𝐿-periodic. For 𝑛 ≥ 1, the Euler formulas for both
𝑓 ′ and 𝑓 , and integration by parts give
∫ 𝐿
1 𝑛𝜋𝑡
𝐴𝑛 = 𝑓 ′ (𝑡) cos 𝑑𝑡
𝐿 −𝐿 𝐿
𝐿 ∫
1 𝑛𝜋𝑡 𝑛𝜋 1 𝐿 𝑛𝜋𝑡
= 𝑓 (𝑡) cos + ⋅ 𝑓 (𝑡) sin 𝑑𝑡
𝐿 𝐿 −𝐿 𝐿 𝐿 −𝐿 𝐿
𝑛𝜋
= 𝑏𝑛 ,
𝐿
since 𝑓 (−𝐿) = 𝑓 (𝐿), and
∫ 𝐿
1 𝑛𝜋𝑡
𝐵𝑛 = 𝑓 ′ (𝑡) sin 𝑑𝑡
𝐿 −𝐿 𝐿
𝐿 ∫
1 𝑛𝜋𝑡 𝑛𝜋 1 𝐿 𝑛𝜋𝑡
= 𝑓 (𝑡) sin − ⋅ 𝑓 (𝑡) cos 𝑑𝑡
𝐿 𝐿 −𝐿 𝐿 𝐿 −𝐿 𝐿
𝑛𝜋
= − 𝑎𝑛 .
𝐿
Therefore, the series in Equations (3) and (4) are the same. ⊔
⊓
which is the Fourier series of the odd square wave of period 2𝜋 computed in
Eq (11) of Section 10.2. ◀
Since the function 𝑡 is continuous, it might seem that this function satisfies the
hypotheses of Theorem 3. However, looking at the graph of the function (see
Figure 10.8) shows that the function is discontinuous at the points 𝑡 = ±𝐿,
𝑡 = ±3𝐿, . . .. Term-by-term differentiation of the Fourier series of 𝑓 gives
( )
𝜋 2𝜋 3𝜋 4𝜋
2 cos 𝑡 − cos 𝑡 + cos 𝑡 − cos 𝑡+ ⋅⋅⋅
𝐿 𝐿 𝐿 𝐿
∞
∑ 𝑛𝜋
=2 (−1)𝑛+1 cos 𝑡.
𝑛=1
𝐿
This series does not converge for any point 𝑡. However, it is possible to make
some sense out of this series using the Dirac delta function. ◀
it follows that
∫ 𝑡+2𝐿 ∫ 𝐿 ∫ 𝑡+2𝐿
𝑔(𝑡 + 2𝐿) = 𝑓 (𝑥) 𝑑𝑥 = 𝑓 (𝑥) 𝑑𝑥 + 𝑓 (𝑥) 𝑑𝑥
−𝐿 −𝐿 𝐿
764 10 Fourier Series
∫ 𝑡+2𝐿
= 𝑓 (𝑥 − 2𝐿) 𝑑𝑥 since 𝑓 is 2𝐿-periodic
𝐿
∫ 𝑡
= 𝑓 (𝑢) 𝑑𝑢 using the change of variables 𝑢 = 𝑥 − 2𝐿
−𝐿
= 𝑔(𝑡),
where ∫ 𝐿
1
𝐴0 = − 𝑡𝑓 (𝑡) 𝑑𝑡. (9)
𝐿 −𝐿
∫𝑡
The integrated series (8) converges to 𝑔(𝑡) = −𝐿
𝑓 (𝑥) 𝑑𝑥 for all 𝑡.
Proof. Since 𝑓 is assumed to be 2𝐿-periodic and piecewise continuous and
𝑎0 = 0, Theorem 6 and the convergence theorem shows that the Fourier series
of 𝑔(𝑡) converges to 𝑔(𝑡) at each 𝑡. That is,
∞ ( )
𝐴0 ∑ 𝑛𝜋𝑡 𝑛𝜋𝑡
𝑔(𝑡) = + 𝐴𝑛 cos + 𝐵𝑛 sin , (10)
2 𝑛=1
𝐿 𝐿
𝐿
Hence, 𝐴𝑛 = − 𝑛𝜋 𝑏𝑛 where 𝑏𝑛 is the corresponding Fourier coefficient for 𝑓 .
𝐿
Similarly, 𝐵𝑛 = 𝑛𝜋 𝑎𝑛 and using integration by parts with 𝑢 = 𝑔(𝑡), 𝑑𝑣 = 𝑑𝑡
so that 𝑑𝑢 = 𝑔 ′ (𝑡) 𝑑𝑡 = 𝑓 (𝑡) 𝑑𝑡, 𝑣 = 𝑡,
∫ 𝐿 𝐿 ∫ ∫
1 1 1 𝐿 1 𝐿
𝐴0 = 𝑔(𝑡) 𝑑𝑡 = 𝑡𝑔(𝑡) − 𝑡𝑓 (𝑡) 𝑑𝑡 = − 𝑡𝑓 (𝑡) 𝑑𝑡.
𝐿 −𝐿 𝐿 −𝐿 𝐿 −𝐿 𝐿 −𝐿
⊔
⊓
with 2𝐿 periodic extension to the rest of the real line. See Figure 10.20.
Theorem 7 then gives, for −𝐿 ≤ 𝑡 ≤ 𝐿,
( )
𝐴0 4 𝐿 𝜋 𝐿 3𝜋 𝐿 5𝜋
𝑔(𝑡) = ∣𝑡∣ − 𝐿 = + − cos 𝑡 − cos 𝑡− cos 𝑡 − ⋅ ⋅ ⋅
2 𝜋 𝜋 𝐿 9𝜋 𝐿 25𝜋 𝐿
( )
𝐴0 4𝐿 𝜋 1 3𝜋 1 5𝜋
= − 2 cos 𝑡 + cos 𝑡+ cos 𝑡+ ⋅⋅⋅
2 𝜋 𝐿 9 𝐿 25 𝐿
766 10 Fourier Series
𝑦 𝑦
1 𝐿
−3𝐿 −2𝐿 −𝐿 𝐿 2𝐿 3𝐿
𝑡 𝑡
−3𝐿 −2𝐿 −𝐿 𝐿 2𝐿 3𝐿
−1 −𝐿
{ ∫𝑡
−1 −𝐿 ≤ 𝑡 < 0, (b) 𝑔(𝑡) = 𝑓 (𝑥) 𝑑𝑥
(a) 𝑓 (𝑡) = −𝐿
1 0 ≤ 𝑡 < 𝐿.
Fig. 10.20
∞
𝐴0 4𝐿 ∑ 1 (2𝑘 − 1)𝜋
= − 2 2
cos 𝑡.
2 𝜋 (2𝑘 − 1) 𝐿
𝑘=1
Exercises
∞
𝜋 2 ∑ cos 𝑛𝑡 ∑ sin 𝑛𝑡
𝑓2 (𝑡) ∼ − + (−1)𝑛+1 .
4 𝜋 𝑛2 𝑛=1
𝑛
𝑛=odd
Without further integration, find the Fourier series for the following 2𝜋-
periodic functions:
(a) 𝑓3 (𝑡) = 1, −𝜋 ≤ 𝑡 < 0; 𝑓3 (𝑡) = 0, 0 ≤ 𝑡 < 𝜋;
(b) 𝑓4 (𝑡) = 𝑡, −𝜋 ≤ 𝑡 < 0; 𝑓4 (𝑡) = 0, 0 ≤ 𝑡 < 𝜋;
(c) 𝑓5 (𝑡) = 1, −𝜋 ≤ 𝑡 < 0; 𝑓5 (𝑡) = 𝑡, 0 ≤ 𝑡 < 𝜋;
(d) 𝑓6 (𝑡) = 2, −𝜋 ≤ 𝑡 < 0; 𝑓6 (𝑡) = 0, 0 ≤ 𝑡 < 𝜋;
(e) 𝑓7 (𝑡) = 2, −𝜋 ≤ 𝑡 < 0; 𝑓7 (𝑡) = 3, 0 ≤ 𝑡 < 𝜋;
(f) 𝑓8 (𝑡) = 1, −𝜋 ≤ 𝑡 < 0; 𝑓8 (𝑡) = 1 + 2𝑡, 0 ≤ 𝑡 < 𝜋;
(g) 𝑓9 (𝑡) = 𝑎 + 𝑏𝑡, −𝜋 ≤ 𝑡 < 0; 𝑓9 (𝑡) = 𝑐 + 𝑑𝑡, 0 ≤ 𝑡 < 𝜋.
2. Let 𝑓1 (𝑡) = 𝑡 for −𝜋 < 𝑡 < 𝜋 and 𝑓1 (𝑡 + 2𝜋) = 𝑓1 (𝑡) so that the Fourier
series expansion for 𝑓1 (𝑡) is
∞
∑ (−1)𝑛+1
𝑓1 (𝑡) = 2 sin 𝑛𝑡.
𝑛=1
𝑛
Using this expansion and Theorem 7 compute the Fourier series of each
of the following 2𝜋-periodic functions.
(a) 𝑓2 (𝑡) = 𝑡2 for −𝜋 < 𝑡 < 𝜋.
(b) 𝑓3 (𝑡) = 𝑡3 for −𝜋 < 𝑡 < 𝜋.
(c) 𝑓4 (𝑡) = 𝑡4 for −𝜋 < 𝑡 < 𝜋.
3. Given that
𝜋 4 ∑ 1
∣𝑡∣ = − cos 𝑛𝑡, for −𝜋 < 𝑡 < 𝜋
2 𝜋 𝑛2
𝑛=odd
4. Compute the Fourier series for each of the following 2𝜋-periodic functions.
You should take advantage of Theorem 1 and the Fourier series already
computed or given in Exercises 2 and 3.
(a) 𝑔1 (𝑡) = 2𝑡 − ∣𝑡∣, −𝜋 < 𝑡 < 𝜋.
(b) 𝑔2 (𝑡) = 𝐴𝑡2 + 𝐵𝑡 + 𝐶, −𝜋 < 𝑡 < 𝜋, where 𝐴, 𝐵, and 𝐶 are constants.
(c) 𝑔3 (𝑡) = 𝑡(𝜋 − 𝑡)(𝜋 + 𝑡), −𝜋 < 𝑡 < 𝜋.
(a) Verify that the hypotheses of Theorem 3 are satisfied for 𝑓 (𝑡).
(b) Compute the Fourier series of the derivative 𝑓 ′ (𝑡).
(c) Verify that the hypotheses of Theorem 3 are not satisfied for 𝑓 ′ (𝑡).
𝑦 ′ + 2𝑦 = 𝑓 (𝑡) (1)
Comparing coefficients of cos 𝑛𝑡 and sin 𝑛𝑡 shows that the coefficients 𝐴𝑛 and
𝐵𝑛 must satisfy the following equations:
𝑎0
𝐴0 = ,
2
and for 𝑛 ≥ 1,
2𝐴𝑛 + 𝑛𝐵𝑛 = 𝑎𝑛
(3)
−𝑛𝐴𝑛 + 2𝐵𝑛 = 𝑏𝑛 ,
which can be solved to give
2𝑎𝑛 − 𝑛𝑏𝑛 𝑛𝑎𝑛 + 2𝑏𝑛
𝐴𝑛 = and 𝐵𝑛 = . (4)
𝑛2 + 4 𝑛2 + 4
Hence, the only 2𝜋-periodic solution of (1) has the Fourier series expansion
∞ ( )
𝑎0 ∑ 2𝑎𝑛 − 𝑛𝑏𝑛 𝑛𝑎𝑛 + 2𝑏𝑛
𝑦(𝑡) = + cos 𝑛𝑡 + sin 𝑛𝑡 .
4 𝑛=1
𝑛2 + 4 𝑛2 + 4
For a concrete example of this situation, let 𝑓 (𝑡) be the odd square wave of
period 2𝜋:
{
−1 −𝜋 ≤ 𝑡 < 0,
𝑓 (𝑡) = ; 𝑓 (𝑡 + 2𝜋) = 𝑓 (𝑡).
1 0 ≤ 𝑡 < 𝜋,
Since all of the cosine terms and the even sine terms are 0, (4) gives 𝐴𝑛 =
𝐵𝑛 = 0 for 𝑛 even, and for 𝑛 odd
−4 8
𝐴𝑛 = and 𝐵𝑛 =
𝜋(𝑛2 + 4) 𝜋𝑛(𝑛2 + 4)
where √
√ 4 4
𝐶𝑛 = 𝐴2𝑛 + 𝐵𝑛2 = 1+ .
𝜋(𝑛2 + 4) 𝑛2
Thus, computing numerical values gives
𝐶1 = 0.5985
𝐶3 = 0.1227
𝐶5 = 0.0493
𝐶7 = 0.0260
𝐶9 = 0.0160
The amplitudes are decreasing, but they are decreasing at a slow rate. This
is typical of first order equations. ◀
𝑎𝑦 ′′ + 𝑏𝑦 ′ + 𝑐𝑦 = 𝑓 (𝑡), (5)
To simplify notation, let 𝜔 = 𝜋/𝐿 denote the frequency. Then the Fourier
series is written as
∞
𝑎0 ∑
𝑓 (𝑡) ∼ + (𝑎𝑛 cos 𝑛𝜔𝑡 + 𝑏𝑛 sin 𝑛𝜔𝑡) . (7)
2 𝑛=1
10.6 Applications of Fourier Series 771
Since
∞
∑
𝑦 ′ (𝑡) = (−𝑛𝜔𝐴𝑛 sin 𝑛𝜔𝑡 + 𝑛𝜔𝐵𝑛 cos 𝑛𝜔𝑡)
𝑛=1
∑∞
( 2 2 )
𝑦 ′′ (𝑡) = −𝑛 𝜔 𝐴𝑛 cos 𝑛𝜔𝑡 − 𝑛2 𝜔 2 𝐵𝑛 sin 𝑛𝜔𝑡
𝑛=1
,
Equating coefficients of cos 𝑛𝜔𝑡 and sin 𝑛𝜔𝑡 leads to equations for 𝐴𝑛 and
𝐵𝑛 :
𝐴0 𝑎0
𝑐 =
2 2
and for 𝑛 ≥ 1, ( )
𝑐 − 𝑎𝑛2 𝜔 2 𝐴𝑛 + 𝑏𝑛𝜔𝐵𝑛 = 𝑎𝑛
( ) (10)
−𝑏𝑛𝜔𝐴𝑛 + 𝑐 − 𝑎𝑛2 𝜔 2 𝐵𝑛 = 𝑏𝑛 .
This system can be solved for 𝐴𝑛 and 𝐵𝑛 as long as the determinant of the
coefficient matrix is not zero. That is, if
𝑐 − 𝑎𝑛2 𝜔 2 𝑏𝑛𝜔 ( )2
= 𝑐 − 𝑎𝑛2 𝜔 2 + (𝑏𝑛𝜔)2 ∕= 0.
−𝑏𝑛𝜔 𝑐 − 𝑎𝑛2 𝜔 2
4 ∑ sin 𝑛𝜋𝑡
𝑓 (𝑡) ∼ .
𝜋 𝑛
𝑛=odd
√
Since 𝑛𝜋 ∕= 10 for any 𝑛 ≥ 1, there is a unique 2-periodic solution 𝑦𝑝 (𝑡) of
(12) with Fourier series (whose coefficients are computed from (11))
4 ∑ 1
𝑦𝑝 (𝑡) = sin 𝑛𝜋𝑡.
𝜋 𝑛(10 − 𝑛2 𝜋 2 )
𝑛=odd
Since all the terms in the Fourier series except for the first sine term are
extremely small, the effect of the square wave input (forcing function) is an
output that is essentially a single sinusoidal term
10.6 Applications of Fourier Series 773
𝑦𝑝 (𝑡) ∼
= 9.76443 sin 𝜋𝑡.
4(25 − 𝑛2 ) 0.08
𝐴𝑛 = and 𝐵𝑛 = .
𝑛2 𝜋((25 − 𝑛2 )2 + (0.02𝑛)2 ) 𝑛𝜋((25 − 𝑛2 )2 + (0.02𝑛)2 )
Using the phase amplitude formula, each term 𝑦𝑛 (𝑡) = 𝐴𝑛 cos 𝑛𝑡 + 𝐵𝑛 sin 𝑛𝑡
can be represented in the form 𝐶𝑛 sin(𝑛𝑡 − 𝜃𝑛 ) where
√ 4
𝐶𝑛 = 𝐴2𝑛 + 𝐵𝑛2 = √
𝑛2 𝜋 (25 − 𝑛2 )2 + (0.02𝑛)2
𝐶1 = 0.0530
𝐶3 = 0.0088
𝐶5 = 0.5100
𝐶7 = 0.0011
𝐶9 = 0.0003
Thus
𝑦(𝑡) ∼
= (0.0530) sin(𝑡 + 𝜃1 ) + (0.0088) sin(3𝑡 + 𝜃3 ) + (0.5100) sin(5𝑡 + 𝜃5 )
+ (0.0011) sin(7𝑡 + 𝜃7 ) + (0.0003) sin(9𝑡 + 𝜃9 ) + ⋅ ⋅ ⋅ .
The relatively large magnitude of 𝐶5 is due to the fact that the quantity
(25 − 𝑛2 )2 + (0.02𝑛)2 in the denominator is very small for 𝑛 = 5, making
(0.5100) sin(5𝑡 + 𝜃5 ) the dominate term in the Fourier series expansion of
𝑦(𝑡). Thus, the dominant motion of a spring represented by the differential
equation (13) almost a sinusoidal oscillation whose frequency is five times
that of the periodic forcing function. ◀
Exercises
Hint: First
∑∞ solve 𝑦 ′′ + 𝑦 = cos 𝑡 by undetermined coefficients. Then let
𝑓 (𝑡) = 𝑛=2 𝑛 cos 𝑛𝑡 and solve 𝑦 ′′ + 𝑦 = 𝑓 (𝑡).
−2
10.6 Applications of Fourier Series 775
4–7. Find the unique periodic solution of the given differential equation.
4. 𝑦 ′′ + 3𝑦 = 𝑓 (𝑡) where 𝑓 (𝑡) is the 2𝜋-periodic function defined by 𝑓 (𝑡) = 5
if 0 < 𝑡 < 𝜋 and 𝑓 (𝑡) = −5 if −𝜋 < 𝑡 < 0.
of the mass under the 2𝐿-periodic forcing function 𝑓 (𝑡). Compute the first
three nonzero terms 𝐶𝑛 .
8. 𝑚 = 1, 𝜇 = 0.1, 𝑘 = 4; 𝑓 (𝑡) is the force in Problem 4.