Professional Documents
Culture Documents
Fourier Series
Fourier Series
3.1 Introduction
Joseph Fourier submitted a paper in 1807 to the Academy of Sciences of Paris. The paper was
a mathematical description of problems involving heat conduction, and was at first rejected
for lack of mathematical rigour. However, it contained ideas which have developed into an
important area of mathematics named in his honour, Fourier analysis.
since " #1
Z 1 Z 1
1
hf1 , f2 i = f1 (x)f2 (x) dx = x2 x3 dx = x6 =0
−1 −1 6
−1
Example 3.2.2 Given f, g as functions with an inner product defined as
Z π
< f, g >= f (t).g(t) dt
−π
Thus sin t and cos t are orthogonal functions in the vector space C[−π, π]
Example 3.2.3 Find the inner product of f (x) = x2 − 3x + 3 and g(x) = 2x3 + x2 + 5x − 5
over [0, 2].
< f, g >= 6
Example 3.2.4 Find the inner product of f (x) = x2 − 3x + 3 and g(x) = 2x3 + x2 + 5x − 5
130
over [−1, 1], then < f, g >= −
3
Example 3.2.5 Find the inner product of f (x) = − 12 + 23 x2 and g(x) = − 32 x + 52 x3 over [0, 1].
1
< f, g >=
8
84
3.3. ORTHOGONAL SETS
RL
cos mπ
L
x cos nπ
L
x dx = 0 m 6= n.
−L
RL
sin mπ
L
x sin nπ
L
x dx = 0 m 6= n.
−L
RL RL
1 · sin nπ
L
x dx = 0 = 1 · cos nπ
L
x dx
−L −L
RL RL
sin2 mπ
L
x dx = L = cos2 mπ
L
x dx
−L −L
Since x2 and 1 are even functions it must be the case that they are orthogonal to x, which
is odd. This suggest that we produce some constant c such that x2 + c is orthogonal to 1.
Hence,
Z 1 1
2 x3 2 1 1
⇔ f2 (x) = x2 −
x + c · 1dx = + cx = + 2c = 0 ⇔ c = −
−1 3 −1 3 3 3
3.) Find a cubic polynomial that is orthogonal to all quadratics. (These are the first few
Legendre polynomials.)
nπ nπ
since cos x, sin x are orthogonal to {1} (see Example 3.3.1 on page 85) then we have
L L
Z L #L
a0 L
Z
a0
f (x) dx = dx = x = La0 .
−L 2 −L 2
−L
To have coefficient a0 as
ZL
1
a0 = f (x) dx (3.4.2)
L
−L
mπ
2). Multiplying equation (3.4.1) by cos x and integrating gives
L
Z L
mπ
f (x) cos x dx (3.4.3)
−L L
∞
" Z #
a0 L L
Z Z L
mπ X mπ nπ mπ nπ
= cos x dx + an cos x cos x dx + bn cos x sin x dx
2 −L L n=1 −L L L −L L L
ZL
mπ mπ
= 0 + 0 + · · · + 0 + am cos x cos x dx + 0 + · · · + 0
−L L L
Z L
mπ mπ
= am cos x cos x dx, since m = n
−L L L
Z L
nπ nπ
= an cos x cos x dx
−L L L
= an L
and
∞ Z L
X mπ nπ
bn cos x sin x dx
n=1 −L L L
Z L Z L
mπ π mπ 2πx
= b1 cos x sin x dx + b2 cos x sin dx
−L L L −L L L
Z L Z L
mπ mπx mπ (m + 1)πx
+ · · · + bm cos x sin dx + bm+1 cos x sin dx + · · ·
−L L L −L L L
= 0 + 0 + ··· + 0 = 0
The above shows how the summation symbol on right hand side ceases to exist.
mπ
3). Multiplying equation (3.4.1) by sin x and integrating gives
L
Z L
mπ
f (x) sin x dx
−L L
∞
Z L " Z #
L Z L
a0 mπ X nπ mπ nπ mπ
= sin x dx + an cos x sin x dx + bn sin x sin x dx
2 −L L n=1 −L L L −L L L
and using orthogonality of the set (Example 3.3.1 on page 85)
Z L
mπ
sin x dx = 0
−L L
Z L
nπ mπ
cos x sin x dx = 0
−L L L
Z L (
mπ nπ 0 m= 6 n
sin x sin x dx =
−L L L L m=n
We get the coefficient bn as
ZL
1 nπ
bn = f (x) sin x dx (3.4.5)
L L
−L
with coefficients (as derived in (3.4.2), (3.4.4), (3.4.5) together with (3.4.1))
ZL
1
a0 = f (x) dx
L
−L
ZL
1 nπ
an = f (x) cos x dx
L L
−L
ZL
1 nπ
bn = f (x) sin x dx
L L
−L
Remark 3.4.1 The function f is said to be 2L-periodic since interval is [−L, L].
The function is defined on [−L, L] = [−π, π]. The coefficients are given by
Zπ Z 0 Z π " #π
1 1 1 1 2 π
a0 = f (x) dx = 0 dx + (π − x) dx = πx − x =
π π −π 0 π 2 2
−π 0
Zπ
1 π 0 π
Z Z Z
1 nπ 1
an = f (x) cos x dx = f (x) cos nxdx = 0 dx + (π − x) cos nxdx
π π π −π π −π 0
−π
π
1 − (−1)n
1 (π − x) 1 1 − cos nπ
= 0+ sin nx − 2 cos nx = =
π n n 0 n2 π n2 π
Zπ
1 π 1 π
Z Z
1 nπ
bn = f (x) sin x dx = f (x) sin nx dx = (π − x) sin nx dx
π π π −π π 0
−π
π
−(π − x) 1 1
= cos nx − 2 sin nx =
n n 0 n
∞
π X 1 − (−1)n
1
f (x) = + cos nx + sin nx
4 n=1 n2 π n
For f (x) = π − x given for this example, the Fourier series can be rewritten as
∞
π X 1 − (−1)n
1
(π − x) = + cos nx + sin nx
4 n=1 n2 π n
Remark 3.4.2 For any arbitrary value of x, we generate a unique Fourier series. For example,
if x = 0
∞
π X 1 − (−1)n
π = +
4 n=1
n2 π
π 2 2 2
π = + 2 + 2 + 2 + ···
4 1π 3π 5π
3 2 2 2
π = 2 + 2 + 2 + ···
4 1 π 3 π 5 π
3 2 2 2 2
π = + + + ···
4 12 32 52
2 4 2 2 2
π = + + + ···
3 12 32 52
generating well-known mathematical series rewritten in different forms. It can also be rewritten
as
∞
4 X 1 − (−1)n
π =
3 n=1 n2 π
a0 = 6
sin (π n)
an = 6 =0
πn
−π n cos (π n) + sin (π n) (−1)n
bn = −4 =4
π n2 n
such that ∞
X (−1)n
(3 − 2x) = 3 + 4 sin (nx)
n=1
n
f (x) = π + x , −π <x<π
cos(−θ) = cos(θ)
sin(−θ) = − sin(θ)
tan(−θ) = − tan(θ)
9
a0 =
2
sin (π n) −5 + 5 cos (π n) + 6 π n sin (π n) −1 + (−1)n
an = + =5
πn n2 π 2 n2 π 2
cos (π n) − 1 π n + 5 sin (π n) − 6 π n cos (π n) (−1)1+n
bn = + = 5
πn n2 π 2 πn
such that ∞
9 X [−1 + (−1)n ] nπ (−1)1+n nπ
f (x) = + 5 cos x + 5 sin x
4 n=1 n2 π 2 5 πn 5
1 3 1 2
a0 = 2π − π
π 2
sin (π n) π 2 −1 − sin (π n) π 2 n + π n sin (π n) + cos (π n) −1 + (−1)n
1
an = − =−
π n n2 π n2
(−1)n
2
π [cos (π n) − 1] −π 2 n + π 2 cos (π n) n − π n cos (π n) + sin (π n)
1
bn = − =
π n n2 n
Such that
∞
[−1 + (−1)n ] (−1)n
X
1 3 1 2
f (x) = 2π − π + − cos(nx) + sin(nx)
2π 2 n=1
π n2 n
a0 = 1
sin (π n)
an = =0
πn
cos (π n) − 1 (−1)1+n + 1
bn = −3 =3
πn πn
Such that, the Fourier series is given by
∞ 1+n
1 X (−1) +1
f (x) = + 3 sin(nx)
2 n=1 πn
Remark 3.4.3 The f (x) to use depends on the value of x you are applying. For example, if
π 3π
let x = − , then f (x) = −1, whereas if, let x = , then f (x) = 2.
2 4
π
Let x = , we deduce
2
1 6 2 6 6 2
2=+ − + − + + ...
2 π π 5π 7π 3π
0, −2 < x < 0
Exercise 3.9 State the Fourier series for f (x) = x , 0 ≤ x < 1
1, 1 ≤ x ≤ 2
3
a0 =
4
1
π n + sin 12 π n π n sin 21 π n − sin (π n)
−2 + 2 cos 2
an = −
π 2n2 πn
−1 + cos 21 π n
= 2
π 2 n2
− π24n2 , n = 2, 6, 10, . . .
= 0, n = 0, 4, 8, 12, . . .
− π22n2 , n odd.
Exercise 3.10 Compute the Fourier series for f (x) = |x|, − 1 < x < 1.
a0 = 1
(−1)n − 1
cos (π n) + sin (π n) nπ − 1 0, if n is even;
an = 2 = 2 =
π 2 n2 π 2 n2 − n24π2 , if n is odd.
bn = 0
Thus
∞
1 X [(−1)n − 1]
|x| = + 2 cos (nπx)
2 n=1 n2 π 2
∞
1 X 4
= + − 2 2 cos (nπx)
2 n=1
nπ
n odd
This function or its variants appear often in applications and the function is called the square
wave.
Note 3.4.1 There is another form of the Fourier series using complex exponentials that is
sometimes easier to work with.
Exercise 3.11 Let
∞
a0 X
f (t) = + an cos(nt) + bn sin(nt).
2 n=1
Use Euler’s formula eiθ = cos(θ) + i sin(θ) to show that there exist complex numbers cm such
that
X∞
f (t) = cm eimt .
m=−∞
Note that the sum now ranges over all the integers including negative ones. Do not worry about
convergence in this calculation. Hint: It may be better to start from the complex exponential
form and write the series as
∞
X
c0 + cm eimt + c−m e−imt .
m=1
Example 3.5.6 The only function that is even and odd is f (x) = 0.
f (−x) = f (x)
g(−x) = g(x)
Φ(−x) = f g(−x)
= f (−x) · g(−x)
= f (x) · g(x)
= Φ(x)
Therefore even.
f (−x) = −f (x)
g(−x) = −g(x)
Φ(−x) = f g(−x)
= f (−x) · g(−x)
= −f (x) · −g(x) = f (x) · g(x)
= Φ(x)
Therefore even.
3). The product of an even function and an odd function is an odd function.
f (−x) = f (x)
g(−x) = −g(x)
Φ(−x) = f g(−x)
= f (−x) · g(−x)
= f (x) · −g(x)
= −Φ(x)
f (−x) = f (x)
g(−x) = g(x)
Φ(−x) = (f + g) (−x)
= f (−x) + g(−x)
= f (x) + g(x)
= (f (x) + g(x))
= (f + g) (x)
= Φ(x)
f (−x) = −f (x)
g(−x) = −g(x)
Φ(−x) = (f + g) (−x)
= f (−x) + g(−x)
= −f (x) − g(x)
= − (f (x) + g(x))
= − (f + g) (x)
= −Φ(x)
The function
h(x) = x3 + 2x
a sum of two odd functions f (x) = x3 and f (x) = 2x is odd as
Proof : Since the definite integral is additive with respect to the interval of
integration, one has
Z a Z 0 Z a
I := f (x) dx = f (x) dx + f (x) dx.
−a −a 0
Making in the first addend the substitution t = −x, dt = − dx (since need moving
from [x1 , x2 ] = [−a, 0] to [t1 , t2 ] = [a, 0]) and swapping the limits of integration
one gets
Z 0 Z a
I = f (−t)(−dt) + f (x) dx
a 0
Z 0 Z a
= − f (−t)(dt) + f (x) dx
a 0
Z a Z a
= f (−t)(dt) + f (x) dx
0 0
Z a Z a
= f (−x) dx + f (x) dx
0 0
with coefficients
1 L
Z
a0 = f (x) dx
L −L
1 L
Z
nπ
an = f (x) cos x dx
L −L L
1 L
Z
nπ
bn = f (x) sin x dx
L −L L
Z L ZL
1 1
a0 = f (x) dx = (odd) dx = 0
L −L L
−L
Z L ZL
1 nπ 1
an = f (x) cos x dx = (odd)(even) dx = 0
L −L L L
−L
Z L ZL
1 nπ 2 nπ
bn = f (x) sin x dx = f (x) sin x dx
L −L L L L
0
∞ h
X nπ i
f (x) ≈ bn sin x (3.6.1)
n=1
L
ZL
2 nπ
bn = f (x) sin x dx (3.6.2)
L L
0
and
Z L Z L
1 nπ 2 nπ
an = f (x) cos x dx = f (x) cos x dx (3.6.5)
L −L L L 0 L
This is called the Fourier cosine series.
Example 3.6.1 Given f (x) = 1 − x, 0 ≤ x ≤ 1, find its Fourier sine series and its Fourier
cosine series.
1.) Fourier sine series: Computing the coefficients
a0 = 0
an = 0
2
bn =
nπ
to have the Fourier sine series for f (x) = 1 − x on [0, 1] as
∞
X 2
f (x) = sin nπx
n=1
nπ
Remark 3.6.1 The limits cant be −1 ≤ x ≤ 1, for Fourier sine series, or Fourier cosine series,
we use half intervals.
Example 3.6.2 For f (x) = x, 0 ≤ x ≤ 2, find its Fourier sine series and its Fourier cosine
series.
−4 4 (−1)n+1
a0 = 0, an = 0, bn = (cos nπ) =
nπ πn
The Fourier sine series is ∞
4 X (−1)n+1 nπ
f (x) = sin x
π n=1 n 2
4 −1 + (−1)n
a0 = 2, an = [cos nπ − 1] = 4 , bn = 0
n2 π 2 π 2 n2
The Fourier cosine series is therefore
∞
4 [−1 + (−1)n ]
X nπ
f (x) = 1 + cos x
n=1
n2 π 2 2
a0 = 2L
an = 0
2L(−1)n
bn =
nπ
Example 3.6.4 Determine whether the given function is even, odd or neither.
Example 3.6.5 Compute the Fourier series for the given function
f (x) = x2 , −π <x<π
The trigonometrical series
∞
a0 X h nπ nπ i
f (x) = + an cos x + bn sin x
2 n=1
L L
with coefficients
1 L
Z
a0 = f (x) dx.
L −L
1 L
Z
nπ
an = f (x) cos x dx.
L −L L
1 L
Z
nπ
bn = f (x) sin x dx.
L −L L
is called the Fourier series of f on [−L, L].
1 L 1 π 2
Z Z
2
a0 = f (x) dx = x dx = π 2
L −L π −π 3
Z π
1 2 4 4 4
an = x2 cos nxdx = π sin(nπ) − 3 sin(nπ) + 2 cos(nπ) = 2 (−1)n
π −π n n n n
Z π 2 2 π
1 2 −n x cos(nx) + 2 cos(nx) + 2nx sin(nx)
bn = x sin nxdx = =0
π −π n3 π −π
∞
1 2 X 4
⇒ f (x) = π + 2
(−1)n cos nx
3 n=1
n
Example 3.6.6 Compute the Fourier series for the given function
f (x) = x(1 − x) , 0 < x < 1
Since half range, we first extend it to a 2L-periodic function
0, −1 < x < 0
f (x) =
x(1 − x), 0<x<1
whose Fourier series has coefficients
1 L
Z Z 1 Z 0 Z 1
1
a0 = f (x) dx = x(1 − x) dx = 0 dx + x(1 − x) dx =
L −L −1 −1 0 6
Z 1 n
1 − [1 + (−1) ]
an = x(1 − x) cos nπx dx =
1 −1 n2 π 2
2 1 + (−1)n+1
Z 1
1
bn = x(1 − x) sin nπx dx =
1 −1 n3 π 3
The Fourier series for the function
f (x) = x(1 − x), 0 < x < 1
is given by
∞
" n+1
#
n
1 X − [1 + (−1) ] 2 1 + (−1)
x(1 − x) = + cos nπx + sin nπx
12 n=1 n2 π 2 n3 π 3
Example 3.6.7 Compute the Fourier series for the given function
is given by
∞
[eπ − 1] e−π X [−eπ + (−1)n ] e−π n [−eπ + (−1)n ] e−π
f (x) = + − 2)
cos nx − 2)
sin nx
2π n=1
π (1 + n π (1 + n
Note 3.6.1 We could also extend by considering the functions either as even or odd and then
compute Fourier sine or Fourier cosine series, or by redefining the undefined half interval into
odd or even. All three techniques might give different results but all Fourier representations of
that function.
Example 3.6.8 Compute the Fourier sine series for the function
2 L
Z
nπ
bn = f (x) sin x dx
L 0 L
2 L 3
Z
nπ
= x sin x dx
L 0 L
2 L4 [−6nπ cos(nπ) + 6 sin(nπ) + n3 π 3 cos(nπ) − 3n2 π 2 sin(nπ)]
= −
L (n4 π 4 )
2L3 [−6nπ(−1)n + n3 π 3 (−1)n ]
= −
(n4 π 4 )
∞
2L3 [−6nπ(−1)n + n3 π 3 (−1)n ]
X nπ
f (x) ≈ − sin x
n=1
(n4 π 4 ) L
Example 3.6.9 The Fourier sine series for f (x) = x2 , 0 < x < π
2 L
Z
nπ
bn = f (x) sin x dx
L 0 L
2 π 2
Z
nπ
= x sin x dx
π 0 π
Z π
2
= x2 sin nxdx
π 0
−2
2 − 2 cos (π n) + n2 cos (π n) π 2 − 2 n sin (π n) π
= 3
πn
2
−2 + 2 (−1)n + (−1)1+n n2 π 2
= 3
πn
∞
X 2 n 1+n 2 2
f (x) ≈ −2 + 2 (−1) + (−1) nπ sin nx
n=1
π n3
2 L
Z
nπ
bn = f (x) sin x dx
L 0 L
2 π
Z
nπ
= sin x sin x dx
π 0 π
2 π
Z
= sin x sin nxdx
π 0
2 1 (sin((−1 + n)π) + sin((−1 + n)π)n + sin((1 + n)π) − sin((1 + n)π)n)
=
π 2 (−1 + n)(1 + n)
sin (π n)
= −2
π (−1 + n2 )
= 0
f (x) ≈ sin x
Example 3.6.11 Compute the Fourier sine series for the function
f (x) = ex , 0 < x < L
2 L
Z
nπ
bn = f (x) sin x dx
L 0 L
2 L x
Z
nπ
= e sin x dx
L 0 L
2 L(eL nπ cos(nπ) − eL L sin(nπ) − nπ)
= −
L (L2 + n2 π 2 )
L
e nπ(−1)n − nπ
= −2
(L2 + n2 π 2 )
The Fourier sine series is given by
∞ L
e nπ(−1)n − nπ
X nπ
f (x) ≈ −2 sin x
n=1
(L2 + n2 π 2 ) L
Example 3.6.12 Compute the Fourier sine series for the function
f (x) = x2 − Lx , 0 < x < L
Since a Fourier sine series, a0 = an = 0, we only need to compute for bn .
2 L
Z
nπ
bn = f (x) sin x dx
L 0 L
2 L 2
Z
nπ
= (x − Lx) sin x dx
L 0 L
2 L3 (nπ sin(nπ) + 2 cos(nπ) − 2)
=
L n3 π 3
n n
2 2(−1) − 2 2 (−1) − 1
= 2L = 4L
n3 π 3 n3 π 3
∞ n
2 (−1) − 1 nπ
X
f (x) ≈ 4L 3π3
sin x
n=1
n L
Example 3.6.13 Compute the Fourier cosine series for the function
f (x) = e−x , 0 < x < 1
2 L
Z Z 1
e−x dx = 2 −e−1 + 1
a0 = f (x) dx = 2
L 0 0
Z L
2 nπ
an = f (x) cos x dx
L 0 L
Z 1
= 2 e−x cos(nπx) dx
0 −1
−e cos(nπ) + e−1 sin(nπ)nπ + 1
= 2
(1 + n2 π 2 )
−1
−e (−1)n + 1
= 2
(1 + n2 π 2 )
∞
−e−1 (−1)n + 1
−1 X
f (x) ≈ −e + 1 + 2 cos nπx
n=1
(1 + n2 π 2 )
Example 3.6.14 Compute the Fourier cosine series for the function
2 L 2 L
Z Z
2 2 sin L
a0 = f (x) dx = cos x dx = sin(L) =
L 0 L 0 L L
Z L Z L
2 nπ 2 nπ
an = f (x) cos x dx = cos x cos x dx
L 0 L L 0 L
−L(−1)n sin L
2 L(−L sin L cos nπ + nπ cos L sin nπ)
= =2
L (−L + nπ)(L + nπ) (−L + nπ)(L + nπ)
∞ n
sin L X −L(−1) sin L
f (x) ≈ + 2 cos nx
L n=1
(−L + nπ)(L + nπ)
Example 3.6.15 The Fourier cosine series for f (x) = π − x , 0 < x < π
2 L 2 π
Z Z
2 1 2
a0 = f (x) dx = (π − x) dx = π =π
L 0 π 0 π 2
2 L 2 π 2 1 − (−1)n
2 1 − cos(nπ)
Z Z
nπ
an = f (x) cos x dx = (π − x) cos(nx) dx = =
L 0 L π 0 π n2 π n2
∞
π X 2 1 − (−1)n
f (x) ≈ + cos nx
2 n=1 π n2
Example 3.6.16 The Fourier cosine series for f (x) = 1 + x , 0 < x < π
2 L 2 π
Z Z
2 1 2
a0 = f (x) dx = (1 + x) dx = π+ π =2+π
L 0 π 0 π 2
Z L Z π
2 nπ 2
an = f (x) cos x dx = (1 + x) cos(nx) dx
L 0 L π 0
2 (−1)n − 1
2 n sin(nπ) + cos(nπ) + nπ sin(nπ) − 1
= =
π n2 π n2
∞
2 + π X 2 (−1)n − 1
f (x) ≈ + 2
cos nx
2 n=1
π n
Example 3.6.17 The Fourier cosine series for f (x) = x − x2 , 0 < x < 1
2 L
Z Z 1
2 1
a0 = f (x) dx = 2 (x − x ) dx = 2
L 0 0 6
Z L Z 1
2 nπ
an = f (x) cos x dx = 2 (x − x2 ) cos(nπx) dx
L 0 L 0
−(nπ cos(nπ) − 2 sin(nπ) + nπ)
= 2
n3 π 3
nπ(−1)n + nπ
= −2
n3 π 3
∞
nπ(−1)n + nπ
1 X
f (x) ≈ + −2 cos nπx
6 n=1 n3 π 3
Example 3.6.18 Find the Fourier series of the periodic function f (t) defined by
(
1 0 ≤ t < T2
f (t) =
−1 T2 ≤ t < T
The coefficients are
an = a0 = 0
2 2
bn = [1 − cos(nπ)] = [1 − (−1)n ]
(nπ) nπ
Example 3.6.19 Compute the Fourier series for
f (x) = x, −π <x<π
Note that f is a 2π-periodic function. We compute each of the coefficients.
1.)
Z π π
1 1 1
a0 = x dx = x =0
π −π π 2 −π
2.)
Z π π
1 1 x 1
an = x cos(nx) dx = sin nx + 2 cos nx =0
π −π π n n −π
3.)
Z π π
1 1 x 1
bn = x sin(nx) dx = − cos nx + 2 sin nx
π −π π n n −π
2 2 2
= − cos nπ = − (−1)n = (−1)n+1
n n n
The Fourier series is therefore given by
∞
X (−1)n+1
f (x) = x ∼ 2 sin nx
n=1
n
Exercise 3.12 The Fourier cosine series for f (x) = x is
L 4L π 1 3π 1 5π
x = − 2 cos x + 2 cos x + 2 cos x + · · · , 0 ≤ x ≤ L (3.6.6)
2 π L 3 L 5 L
1.) Derive equation (3.6.6).
2.) By evaluating (3.6.6) at x = 0, evaluate
1 1 1 1 1
1 + 2 + 2 + 2 + 2 + 2 + ···
2 3 4 5 6
Example 3.6.20 Integrating equation (3.6.6) from 0 to x yields
x2 4L2
L π 1 3π 1 5π
= x − 3 sin x + 3 sin x + 3 sin x + · · · (3.6.7)
2 2 π L 3 L 5 L
using (3.6.7), evaluate
1 1 1
1− + − + ···
33 53 73
L
Let x = to have
2
1 1 1 π3
1− + − + · · · =
33 53 73 32
Exercise 3.13
π
1.) Set x = in the Fourier series for f (x) = x , − π ≤ x ≤ π to obtain the formula
2
π 1 1 1
= 1 − + − + ···
4 3 5 7
π
2.) Set x = in the series in part (1) above to obtain
4
π √
1 1 1 1 1 1
= 2 1 + − − + ··· − 1 − + − + ···
4 3 5 7 3 5 7
π2 4 4
x2 = − 4 cos x + cos 2x − cos 3x + · · · = (−1)m 2 cos mx + · · ·
3 9 m
for −π ≤ x ≤ π
3.) What is
∞
X 1
m=1
m2
Hint: set x = π in part (1) above.
4.) What is
∞
X 1
m=odd
m2
Hint: add (2) and (3)
Note 3.6.2 In Example 3.14, the function f (x) has been given implicitly by f (x) = x2 .
∞
2X1 nπ
defined on the interval [−π, π] . f (x) = cos − cos nπ sin nx.
π n=1 n 2
2.)
Z2
1 nπ
an = f (x) cos x dx
2 2
−2
Z0 Z2
1 nπ 1 nπ
= cos x dx + x cos x dx
2 2 2 2
−2 0
1 h nπ i0 1 h nπ i2 2 h nπ i2
= sin x + x sin x + cos x
nπ 2 −2 nπ 2 0 (nπ)2 2 0
2 h nπ i 2
= 0+0+ 2
cos x
(nπ) 2 0
2
= 2
[(−1)n − 1]
(nπ)
3.)
Z2
1 nπ
bn = f (x) sin x dx
2 2
−2
Z0 Z2
1 nπ 1 nπ
= sin x dx + x sin x dx
2 2 2 2
−2 0
1 h nπ i0 1 h nπ i2 2 h nπ i2
= − cos x − x cos x + sin x
nπ 2 −2 nπ 2 0 (nπ)2 2 0
1 1
= − [1 − (−1)n ] − [2(−1)n ] + 0
nπ nπ
1
= − [(−1)n + 1]
nπ
and deduce
π 1 1 1 1 1
= + − + − + ···
4 2 1.3 3.5 5.7 7.9
Remark 3.6.2 Every function, we can get its full range Fourier series and its Half range
(Fourier cosine and Fourier sine series - regardless whether even or odd function)
Note that, x ∈ 0 ≤ x < π since considered the piece f (x) = sin x and not the piece
f (x) = 0. Also n starts at n = 2, since for n = 0 already covered in a0 and n 6= 1 not
to have denominator equal to zero. Considering odd n values, the term gets to zeros. Lets
choose x = π2 ,
∞
a0 X h nπ nπ i
f (x) = + an cos x + bn sin x
2 n=1
L L
∞
1 X 1 + (−1)n
sin x = + − cos nx
π n=2
π (−1 + n2 )
n even
1 2 2 2 2
1 = + − + − + ···
π 3π 15π 35π 63π
π 1 1 1 1 1
= + − + − + ···
2 2 3 15 35 63
π 1 1 1 1 1
= + − + − + ··· (3.6.8)
2 2 1.3 3.5 5.7 7.9
with
a0 = 0, an = 0, bn = 0
Thus no Fourier sine series.
with
4 1 + cos (π n) [1 − (−1)n ]
a0 = , an = −2 = −2 , bn = 0
π π (−1 + n2 ) π(−1 + n2 )
∞
2 X [1 − (−1)n ]
sin x = + −2 cos nx
π n=2
π(−1 + n2 )
n odd
π
At x =
2
2 4 4 4 4
1 = + − + − + ···
π 3π 15π 35π 63π
π 1 1 1 1 1
= + − + − + ··· (3.6.9)
4 2 1.3 3.5 5.7 7.9
Different range generate a different series as (3.6.8) not equal to (3.6.9) both representing
Fourier series for the same function at the same value of x = π2 .
(
0, −π < x < 0
Exercise 3.16 For f (x) = 2
x , 0≤x<π
deduce
π2 1 1 1
= 1 + 2 + 2 + 2 + ...
6 2 3 4
and
π2 1 1 1
= 1 − 2 + 2 − 2 + ...
12 2 3 4
1 2
a0 = π ,
3
(−1)n
an = 2
n2
2 − 2 (−1)n + (−1)n n2 π 2
bn = −
π n3
whose Fourier series is
∞
1 2 X (−1)n 2 − 2 (−1)n + (−1)n n2 π 2
2
x = π + 2 cos nx − sin nx
6 n=1
n2 π n3
At x = 0
1 2 2 2 2 2 2
0 = π − 2 + 2 − 2 + 2 − 2 + ···
6 1 2 3 4 5
1 2 2 2 2 2 2
π = 2 − 2 + 2 − 2 + 2 + ···
6 1 2 3 4 5
1 2 1 1 1 1 1
π = 2 − 2 + 2 − 2 + 2 + ··· (3.6.10)
12 1 2 3 4 5
js, ddw de ii: Lecture Notes Page 111 of 249
CHAPTER 3. FOURIER SERIES & FOURIER TRANSFORMS
∞ h
X nπ i
2) Half Range - Fourier sine series f (x) ≈ bn sin x . Consider f (x) = x2 , 0 ≤ x < π
n=1
L
with
2 −2 + 2 (−1)n + (−1)1+n n2 π 2
a0 = 0, an = 0, bn =
π n3
Therefore the Fourier sine series is given by
∞
" #
2 −2 + 2 (−1)n + (−1)1+n n2 π 2
X
2
x ≈ sin nx
n=1
π n3
for the value of x = 0 considered in full range, the series becomes trivial, 0 = 0.
∞
a0 X h nπ i
3) Half Range - Fourier cosine series f (x) ≈ + an cos x , f (x) = x2 , 0 ≤ x < π
2 n=1
L
with
2 2 (−1)n
a0 = π , a n = 4 , bn = 0
3 n2
The Fourier cosine series
∞
1 2 X (−1)n
x2 = π + 4 2
cos nx
3 n=1
n
At x = 0
1 2 1 1 1 1 1
π = 2 − 2 + 2 − 2 + 2 + ··· (3.6.11)
12 1 2 3 4 5
At x = π
1 2 1 1 1 1 1
π = 2 + 2 + 2 + 2 + 2 + ··· (3.6.12)
6 1 2 3 4 5
For this particular example, (3.6.10) is same as (3.6.11). However, with a different value of x,
within half range, we get required (3.6.12).
π
Remark 3.6.3 If considered x = − , then we consider f (x) = 0, the corresponding piece of
2
f (x).
Exercise 3.17 Consider the function f (x) with period 4 and given on the interval [−2, 2] by
x, −1 ≤ x ≤ 1
f (x) = 1, 1 ≤ x < 2
−1, −2 < x ≤ −1
∞
X 2 nπ 4 nπ nπ
1.) Show that the Fourier series of f is − cos + 2 2 sin sin x
n=1
nπ 2 n π 2 2
2.) Can you use the Fourier series of f to deduce the Fourier series of f 0 ? Explain.
Since the the function f is not continuous throughout R, then its Fourier series cannot be
differentiated termwise to obtain the Fourier series of f 0 .
Z x
3.) Deduce the Fourier series of the antiderivative F (x) = f (t)dt.
0
∞ Z x
X 2 nπ 4 nπ nπ
F (x) = − cos + 2 2 sin tdt sin
n=1
nπ 2 nπ 0 2 2
∞ h
X 2 nπ 4 nπ −2 nπ i
= − cos + 2 2 sin cos x−1
n=1
nπ 2 nπ 2 nπ 2
Exercise 3.18 Find the Fourier series of each of the following functions
1.) f (x) = 1 − x2 , −1<x<1
2 4 1 1
f (x) = + 2 cos πx − cos 2πx + cos 3πx − · · ·
3 π 4 9
2.) g(x) = |x|, −π <x<π
π 4 1 1
g(x) = − cos x + cos 3x + cos 5x + · · ·
2 π 9 25
0, −2 < x < 0
3.) h(x) =
1, 0 ≤ x < 2.
1 2 π 1 3π 1 5π
h(x) = + sin x + sin x + sin x + ···
2 π 2 3 2 5 2
x2
Exercise 3.19 Find the Fourier series for f (x) = , − π < x < π.
4
1 2 (−1)n
a0 = π , a n = , bn = 0
6 n2
To have ∞
x2 π 2 X (−1)n
= + cos nx
4 12 n=1 n2
or
x2 π2 1 1 1 1
= − 2 cos x + 2 cos 2x − 2 cos 3x + 2 cos 4x − · · ·
4 12 1 2 3 4
Hence deduce that
π2 1 1 1 1
1.) = 1 + 2 + 2 + 2 + 2 + ···
6 2 3 4 5
π2 π2 1 1 1
Set x = π; = + 1 + 2 + 2 + 2 + ···
4 12 2 3 4
π2 1 1 1 1
2.) = 1 − 2 + 2 − 2 + 2 − ···
12 2 3 4 5
π2 1 1 1 1
Set x = 0; 0 = − 1 + 2 − 2 + 2 − 2 ···
12 2 3 4 5
π2 1 1 1 1
3.) = 1 + 2 + 2 + 2 + 2 + ···
8 3 5 7 9
1.) + 2.) gives
π2 π2
1 1 1
+ = 2 1 + 2 + 2 + 2 + ···
6 12 3 5 7
2
π 1 1 1
= 2 1 + 2 + 2 + 2 + ···
4 3 5 7
2
π 1 1 1
= 1 + 2 + 2 + 2 + ···
8 3 5 7
Exercise 3.20 Find the Fourier cosine series and the Fourier sine series for the function
1, 0 < x < 1
f (x) =
0, 1 ≤ x < 2.
Exercise 3.21 Find the Fourier cosine series for the function f (x) = sin x, 0 < x < π. What
is the Fourier sine series for f ? The Fourier sine series is simply f (x) = sin x
∞
X 4 π
Example 3.6.23 In the expansion 1 = sin nx, valid for 0 < x < π, put x = to
n=2
nπ 4
n odd
calculate the sum
1 1 1 1 1 1 1 1 1 1
1− + − + ··· + − + + ··· = 1 + − − + + ···
5 9 13 3 7 11 3 5 7 9
Hint: Since each of the series converges, then can be combined as indicated. However, they
cannot be arbitrarily rearranged because they are only conditionally, not absolutely, convergent.
0, −π ≤ x ≤ 0
1) Full range - Fourier series for f (x) = 1, in interval 0 ≤ x ≤ π, that is f (x) =
1, 0 ≤ x ≤ π
a0 = 1,
an = 0
−1 + (−1)n
0, n even
bn = − = 2
πn nπ
, n odd
with
a0 = 0, an = 0
and
1 + (−1)1+n
0, n even
bn = 2 = 4
πn nπ
, n odd
Therefore the Fourier sine series is given by
∞
X 4
1 ≈ sin nx (3.6.14)
n=1
nπ
n odd
a0 = 2, an = 0, and bn = 0
The Fourier cosine series equation become trivial with 1 = 1. This is meaningless.
Applying any of (3.6.13) or (3.6.14), since are same (if different, you choose one that helps you
π
generate the needed series) at x =
4
∞
X 4
1 = sin nx
n=1
nπ
n odd
4 π 1 3π 1 5π 1 7π
= sin + sin + sin + sin + ···
π 4 3 4 5 4 7 4
"√ √ ! √ ! √ ! #
4 2 1 2 1 2 1 2
= + + − + − + ···
π 2 3 2 5 2 7 2
√ !
4 2 1 1 1
= 1 + − − + ···
π 2 3 5 7
√
2 2 1 1 1
= 1 + − − + ···
π 3 5 7
4 1 1 1
= √ 1 + − − + ···
π 2 3 5 7
Exercise 3.23 Given the Fourier sine series of φ(x) = x on (0, l). Assume the series can be
integrated term by term (a fact that can be shown).
x2
1.) Find the Fourier cosine series of the function . Find the constant of integration that will
2
a0 l2
be the first term in the cosine series. c= =
2 6
2.) Then by setting x = 0 in your result, find the sum of the series
∞
X (−1)n+1
n=1
n
∞
X (−1)n+1 π2
=
n=1
n 12
Example 3.6.24 Without any computation, prediction which of the Fourier coefficients of
| sin x| on the interval (−π, π) must vanish.
Since sin x is odd it follows that | sin x| defines an even function. By Fourier results, we note
that the full Fourier series on (−π, π) has only cosine terms. That is, all of the sine coefficients
must necessarily vanish.
Exercise 3.24 Find the Fourier series of the 2π-periodic function f (x) whose expression over
∞
2 π2 X (−1)n
the interval [−π, π] is f (x) = x . +4 cos nx
3 n=1
n2
Exercise 3.25 Using the Fourier series for f (x) = x2 on −π ≤ x ≤ π, at x = 0 show that
∞ ∞
X 1 π2 X 1 π4
1.) = − 2.) =
n=1
n2 12 n=1
n4 90
Exercise 3.26 The Fourier series of the 2π-periodic function f (x) given on the interval [−π, π]
by f (x) = x3 − π 2 x is given by
∞
X (−1)n sin nx
6π
n=1
n3
Use the Parseval Identity to evaluate
∞
X 1
n=1
n6
∞
X 1 4π 4
=
n=1
n6 945
Theorem 3.8.2 Let f (x) be piecewise continuous on [−L, L] . Then we can integrate its
Fourier series termwise.
Remark 3.8.1 For f with appropriate continuity/ smoothness, we can differentiate and in-
tegrate term by term.
If the derivative f 0 (x) of this function is also piecewise continuous and the function f (x) satisfies
the periodicity conditions
then the Fourier series expansion of the derivative f 0 (x) is expressed by the formula
∞
X
f 0 (x) = (nbn cos nx − nan sin nx).
n=1
Where
bn an
An = − , Bn = .
n n
By setting x = 0, we see that
∞ ∞ ∞
A0 X A 0 X bn A0 X bn
G (0) = 0 = + An = − or = .
2 n=1
2 n=1
n 2 n=1
n
where the series on the right-hand side is obtained by the formal term-by-term integration of
the Fourier series for g(x).
Because of the presence of the term depending on x on the right-hand side, this is not clearly
a Fourier series expansion of the integral of g(x). The result can be rearranged to be a Fourier
series expansion of the function
Zx
a0 x
Φ (x) = g (t) dt − .
2
0
Since the function f (x) is piecewise continuous on the interval [−π, π] ,, we may integrate its
Fourier series term by term to obtain
Zx ∞ Z x
X (−1)n+1
tdt = 2 sin nt dt.
n=1
n
−π −π
Hence,
∞ x
x2 π 2
X cos nt
− = 2 (−1)n+1 − 2 ,
2 2 n=1
n
−π
X (−1)n ∞
x2 π 2
⇒ − = 2 2
[cos nx − cos (−πn)],
2 2 n=1
n
∞ ∞
x2 π 2 X (−1)n X (−1)n (−1)n
⇒ − = 2 cos nx − 2 ,
2 2 n=1
n2 n=1
n2
∞ ∞
x2 π 2 X (−1)n X 1
⇒ − = 2 2
cos nx − 2 2
.
2 2 n=1
n n=1
n
Then we get
∞
2 2
X (−1)n 2π 2
x −π =4 cos nx −
n=1
n2 3
or ∞
2 π2 X (−1)n
x = +4 cos nx.
3 n=1
n2
Example 3.8.3 Find the Fourier series of the function f (x) = x3 knowing that
∞
π2 X (−1)n
x2 = +4 2
cos nx for − π ≤ x ≤ π.
3 n=1
n
Example 3.8.4 Investigate the process of differentiating term by term the Fourier series
expansion of the function f (x) = x defined on the interval [−π, π] .
We obtain a contradiction since the Fourier series for 1 should consist just of a single constant
term. To explain this paradox, we introduce the Dirac delta function or the unit impulse
function δ (x). The so-called “weak” definition of δ (x) implies that
(
0, x 6= 0
δ (x) =
∞, x = 0
assuming that the total area under the graph of the function is 1:
Z∞
δ (x) dx = 1.
−∞
The delta function can also be defined by the limit as n → ∞ in the following way:
1 sin n + 12 x
δ (x) = lim .
n→∞ 2π sin x2
The Fourier series of the delta function is given by
∞
1 1X 1 1
δ (x) = + cos nx = + [cos x + cos 2x + cos 3x + · · · ] .
2π π n=1 2π π
This series has only cosines since the delta function is even.
Now we consider the periodic extension f1 (x) of the original function f (x). This function has
jump discontinuities at the points x = (2m + 1) π, m = 0, ±1, ±2, . . . The derivative f10 (x) of
the periodic extension has an additional delta function concentrated at each jump discontinuity,
so that ∞
X
0
f1 (x) = 1 − 2π δ [x − (2m + 1) π] = 1 − 2π δ̄ (x − π) ,
m=−∞
Hence, the Fourier series expansion of the derivative f10 (x) is given by
∞
X
0
f1 (x) = 1 − 2π δ̄ (x − π) = 2 (−1)n+1 cos nx ∼ 1.
n=1
Thus, the function f1 0 (x) = 1 − 2π δ̄ (x − π) is the Fourier series expansion for the constant
term 1.
Exercise 3.34 Calculate the Fourier series for the saw-tooth function you get as the periodic
extension of f (x) := 1 − |x| from the basic interval [−1, 1]. Differentiate the series term by term
and compare with the Fourier series for the derivative of f (x). Notice that the Fourier series is
not bothered by the corners in the function at −1, 0, and 1.
Exercise 3.35 Calculate the Fourier series for the saw-tooth function you get as the periodic
extension of f (x) := x from the basic interval [−1, 1]. Differentiate the series term by term and
compare with the Fourier series for the derivative of f (x). Explain any discrepancies you find.
Exercise 3.36 Calculate the second derivatives of the Fourier series of Exercise 3.34 and
Exercise 3.35. Does the resulting series converge? If so, to what?
Example 3.8.5
1.) Compute the Fourier series for the function
f (x) = x − x3
defined for −1 < x < 1.
a0 = 0
an = 0
[12(−1)n+1 ]
bn =
(nπ)3
Thus ∞
3
X [12(−1)n+1 ]
x−x = sin nπx
n=1
(nπ)3
2.) Differentiate the terms in the Fourier series for this function , and compare with 1 − 3x2 .
From
∞
3
X [12(−1)n+1 ]
x−x = sin nπx
n=1
(nπ)3
as expected.
3.) Integrating the series for x − x3 term by term, we find that
∞
x2 x4 X [12(−1)n ]
− = cos nπx
2 4 n=1
(nπ)4
Example 3.8.6 Find the Fourier series for the triangle wave
(
π
+ x, if − π ≤ x ≤ 0
f (x) = π2 ,
2
− x, if 0 < x ≤ π
The constants are given by
1.)
Zπ Z0 Zπ
1 1 π π
a0 = f (x) dx = +x dx + −x dx
π π 2 2
−π −π 0
" 0 #
2 2 π
1 π x π x
= x+ + x−
π 2 2 −π 2 2 0
" ! #
π 2 (−π)2 π 2 π 2
1
= 0− − + + − − 0 = 0.
π 2 2 2 2
2.)
0
Zπ Z Zπ
1 1 π π
an = f (x) cos nxdx = + x cos nxdx + − x cos nxdx
π π 2 2
−π −π 0
0 0 π
Z Z Z Zπ
1 π π
= cos nxdx + x cos nxdx + cos nxdx − x cos nxdx .
π 2 2
−π −π 0 0
y 00 + 2y = 3x
We will use the Fourier sine series for representation of the nonhomogeneous solution to satisfy
the boundary conditions. We can write the right side of the equation as the series
∞
6 X (−1)n+1
3x = sin nπx.
π n=1 n
We assume a solution ∞
X
y (x) = bn sin nπx.
n=1
Since the coefficients of each sine mode must be equal to each other, we obtain the algebraic
equation
2 2
6(−1)n+1 6(−1)n+1
2 − n π bn = or bn = .
nπ nπ (2 − n2 π 2 )
Hence, the solution of the given differential equation is described by the series
∞
6 X (−1)n+1
y (x) = sin nπx.
π n=1 n (2 − n2 π 2 )
Substitute the solution x(t), equation (3.9.4), into the ordinary differential equation (3.9.1)
∞
X
00
2 − (nπ)2 an cos (nπt) + 2 − (nπ)2 bn sin (nπt)
x + 2x = a0 +
n=1
= F (t)
∞
1 X 2
= + sin (nπt)
2 n=1
nπ
n odd
Example 3.9.3 (Resonance) Find the steady periodic solution to the equation
2x00 + 18π 2 x = F (t),
where
−1, −1 < t < 0,
F (t) =
1, 0 < t < 1.
extended periodically. We note that We set
∞
c0 X
F (t) = + cn cos (nπt) + dn sin (nπt)
2 n=1
Substitute the solution x(t), equation into the ordinary differential equation
∞
X
00 2
18π 2 − 2(nπ)2 an cos (nπt) + 18π 2 − 2(nπ)2 bn sin (nπt)
2x + 18π x = a0 +
n=1
∞
X 4
= F (t) = sin (nπt)
n=1
nπ
n odd
Thus (with n = 3 inclusive. In order not to have a duplication when n = 3, we pull out that
term and multiply by t.)
∞
1 X 2
x(t) = − t cos(3πt) + sin (nπt)
9π 2 n=1
nπ 3 [9 − n2 ]
n odd
n6=3
x00 + 2x = F (t).
y 00 + y 0 + y = F (x).
x00 + 4x = F (t).
y 00 + y = F (x).
y 0 + ky = f (x) ,
Represent the function f (x) on the right-hand side of the equation as a Fourier series (Note
that we will need the complex form of Fourier series of a periodic function.)
∞
X
f (x) = cn einx .
n=−∞
y 0 + 2y = f (x),
Set
∞
dn einπx .
X
f (x) ∼
−∞
Hence
1
yn = fn , for any n.
2 + in
Therefore, we have
∞
1
fn einπx .
X
y=
−∞
2 + in
y 00 + 2y 0 + y = sin(x).
Because
eix − e−ix
sin(x) = ,
2i
∞
fn einπx with
X
we get sin(x) ∼
−∞
f1 = 1/2i
f−1 = −1/2i
fn = 0 for n 6= ±1.
1
y1 = y−1 = − , and yn = 0 otherwise.
4
Therefore, the differential equation has only one periodic solution
1 1 1
y = − eix − e−ix = − cos(x).
4 4 2
Exercise 3.45 Find the steady periodic solution of the non homogeneous differential equation
00 1, −π < x < 0
y + 3y = f (x) =
2, 0 < x < π.
Using Fourier series, we have
3 2 1 1
f (x) = + sin x + sin 3x + sin 5x + · · ·
2 π 3 5
and hence cn = 0; n = 1, 2, · · · , and
2
c0 = 3, d2n−1 = , d2n = 0; n = 1, 2, · · ·
π(2n − 1)
It follows that ∞
1 X 2
yp (x) = + sin(2n − 1)x
2 n=1 π(2n − 1) [3 − (2n − 1)2 ]
Exercise 3.46 Find the steady periodic solution of the non homogeneous differential equation
y 00 + 5y = x, −2<x<2
Since ∞
4 X (−1)n+1 nπ
x= sin x
π n=1 n 2
The required particular solution is
∞
16 X (−1)n+1 nπ
yp (x) = sin x
π n=1 π (20 − n2 π 2 ) 2
Exercise 3.47 Find periodic particular solutions of the following nonhomogeneous differential
equations:
00 x, −π < x < 0
1.) y + 3y =
0, 0 < x < π
∞
(−1)n
π 2X 1
yp (x) = − − cos(2n − 1)x + sin(nx)
12 π n=1 (2n − 1)2 [(2n − 1)2 − 3] n(n2 − 3)
−x, −1 < x < 0
2.) y 00 + y =
x, 0<x<1
∞
1 4 X 1
yp (x) = + 2 cos(2n − 1)πx
2 π n=1 (2n − 1)2 [(2n − 1)2 π 2 − 1]
3.) y 00 + 2y 0 + 3y = ex , −π <x<π
(−1)n (−1)n−1
a = 2, b = 3, a0 = sinh π, an = sinh π, b n = sinh π
1 + n2 1 + n2
00 0 1, −π < x < 0
4.) y + 3y + 7y =
x, 0 < x < π
π (−1)n − 1 (−1)n (1 − π) − 1
a = 3, b = 7, a0 = 1 + , an = , b n =
2 πn2 πn
js, ddw de ii: Lecture Notes Page 141 of 249
CHAPTER 3. FOURIER SERIES & FOURIER TRANSFORMS
Exercise 3.48 Use Fourier trigonometric series to solve the following initial value problems:
1.)
∞
4 X sin(2n − 1)πx
y 00 + y = , y(0) = 0
π n=1 2n − 1
Solution:
∞
X 1 −x 1
4 e + sin(2n − 1)πx − cos(2n − 1)πx
n=1
1 + (2n − 1)2 π 2 π(2n − 1)
2.)
∞
X cos nx
y 00 + y = , y(0) = 0
n=1
n!
Solution: ∞
X 1 −x
−e + cos nx + n sin nx
n=1
n!(n2 + 1)
3.)
∞
00 4 X sin(2n − 1)x
y + 4y = , y(0) = y 0 (0) = 0
π n=1 2n − 1
Solution: ∞
2X 1 2
− sin 2x + sin(2n − 1)x
π n=1 4 − (2n − 1)2 2n − 1
4.)
∞
00 4 X sin(2n − 1)x
y +y = , y(0) = y 0 (0) = 0.
π n=1 2n − 1
Solution:
∞
2 4X 1 1
(sin x − x cos x) + sin x − sin(2n − 1)x
π π n=2 (2n − 1)2 − 1 2n − 1