Documente Academic
Documente Profesional
Documente Cultură
Problems
Chapter III: Fourier Series
Greg Fasshauer
Fall 2015
Outline
Definition
A function f , defined on [a, b], is piecewise continuous if it is
continuous on [a, b] except at finitely many points.
If both f and f 0 are piecewise continuous, then f is called piecewise
smooth.
Definition
A function f , defined on [a, b], is piecewise continuous if it is
continuous on [a, b] except at finitely many points.
If both f and f 0 are piecewise continuous, then f is called piecewise
smooth.
Remark
This means that the graphs of f and f 0 may have only finitely many
finite jumps.
Example
The function f (x) = |x| defined on
< x < is
Example
The function f (x) = |x| defined on
< x < is piecewise smooth
since
f is continuous throughout the
interval,
and f 0 is discontinuous only at
x = 0.
Example
The function f (x) = |x| defined on
< x < is piecewise smooth
since
f is continuous throughout the
interval,
and f 0 is discontinuous only at
x = 0.
Example
The function
(
x 2, < x < 0
f (x) = 2
x + 1, 0 x <
is
Example
The function f (x) = |x| defined on
< x < is piecewise smooth
since
f is continuous throughout the
interval,
and f 0 is discontinuous only at
x = 0.
Example
The function
(
x 2, < x < 0
f (x) = 2
x + 1, 0 x <
Example
The function
(
ln(1 x), 0 x < 1
f (x) =
1, 1x <2
is
Example
The function
(
ln(1 x), 0 x < 1
f (x) =
1, 1x <2
Periodic Extension
If f is defined on [L, L], then its periodic extension, defined for all x, is
given by
..
.
f (x + 2L), 3L < x < L,
f (x), L < x < L,
f (x) =
f (x 2L), L < x < 3L,
f (x 4L), 3L < x < 5L,
...
Example
Example
Example
(
(x + L)2 , L x 0
Figure: Plot of f (x) = .
x 2 + 1, 0<x <L
Example
(
(x + L)2 , L x 0
Figure: Plot of f for f (x) = .
x 2 + 1, 0<x <L
Outline
Remark
This should not come as a total surprise, since for power series we
also had to determine the interval (or radius) of convergence.
i.e., we can
associate with f this Fourier series,
but not f is equal to this Fourier series.
i.e., we can
associate with f this Fourier series,
but not f is equal to this Fourier series.
The Fourier coefficients of f , on the other hand, are never in doubt.
They are given by
Z L
1
a0 = f (x) dx
2L L
1 L
Z
nx
an = f (x) cos dx, n = 1, 2, . . .
L L L
1 L
Z
nx
bn = f (x) sin dx, n = 1, 2, . . .
L L L
What we need is
Theorem (Fourier Convergence Theorem)
If f is piecewise smooth on [L, L], then the Fourier series of f
converges.
What we need is
Theorem (Fourier Convergence Theorem)
If f is piecewise smooth on [L, L], then the Fourier series of f
converges. Moreover,
1 at those points x where the periodic extension f of f is continuous,
the Fourier series of f converges to f (x) and
What we need is
Theorem (Fourier Convergence Theorem)
If f is piecewise smooth on [L, L], then the Fourier series of f
converges. Moreover,
1 at those points x where the periodic extension f of f is continuous,
the Fourier series of f converges to f (x) and
2 at jump discontinuities of the periodic extension, the Fourier series
converges to
1h i
f (x) + f (x+) ,
2
i.e., the average of the left and right limits at the jump.
What we need is
Theorem (Fourier Convergence Theorem)
If f is piecewise smooth on [L, L], then the Fourier series of f
converges. Moreover,
1 at those points x where the periodic extension f of f is continuous,
the Fourier series of f converges to f (x) and
2 at jump discontinuities of the periodic extension, the Fourier series
converges to
1h i
f (x) + f (x+) ,
2
i.e., the average of the left and right limits at the jump.
Remark
Note that (2) actually includes (1) since
1h i
f (x) + f (x+)
2
fasshauer@iit.edu MATH 461 Chapter 3 13
Convergence of Fourier Series
What we need is
Theorem (Fourier Convergence Theorem)
If f is piecewise smooth on [L, L], then the Fourier series of f
converges. Moreover,
1 at those points x where the periodic extension f of f is continuous,
the Fourier series of f converges to f (x) and
2 at jump discontinuities of the periodic extension, the Fourier series
converges to
1h i
f (x) + f (x+) ,
2
i.e., the average of the left and right limits at the jump.
Remark
Note that (2) actually includes (1) since
1h i 1h i
f (x) + f (x+) = f (x) + f (x)
2 2
fasshauer@iit.edu MATH 461 Chapter 3 13
Convergence of Fourier Series
What we need is
Theorem (Fourier Convergence Theorem)
If f is piecewise smooth on [L, L], then the Fourier series of f
converges. Moreover,
1 at those points x where the periodic extension f of f is continuous,
the Fourier series of f converges to f (x) and
2 at jump discontinuities of the periodic extension, the Fourier series
converges to
1h i
f (x) + f (x+) ,
2
i.e., the average of the left and right limits at the jump.
Remark
Note that (2) actually includes (1) since
1h i 1h i
f (x) + f (x+) = f (x) + f (x) = f (x)
2 2
fasshauer@iit.edu MATH 461 Chapter 3 13
Convergence of Fourier Series
Proof.
The proof of this theorem is not contained in [Haberman] and goes
beyond the scope of this course. It can be found in [Pinsky,
Section 1.2] or [Brown & Churchill, Section 19].
Remark
The theorem above is about pointwise convergence of Fourier series.
Example
(
1, L x < 0
Consider the function f (x) =
2, 0 < x L
Example
(
1, L x < 0
Consider the function f (x) =
2, 0 < x L
Xh nx nx i
The Fourier series of f , a0 + an cos + bn sin , is
L L
n=1
represented by the following graph:
Example
(
1, L x < 0
Consider the function f (x) =
2, 0 < x L
Xh nx nx i
The Fourier series of f , a0 + an cos + bn sin , is
L L
n=1
represented by the following graph:
Example (cont.)
Remark
Even if we know that the series converges, we have
f (x) = its Fourier series only for x (L, L) (and provided f is
continuous at x).
Example (cont.)
Remark
Even if we know that the series converges, we have
f (x) = its Fourier series only for x (L, L) (and provided f is
continuous at x).
At all other values of x the Fourier series equals the periodic
extension of f ,
Example (cont.)
Remark
Even if we know that the series converges, we have
f (x) = its Fourier series only for x (L, L) (and provided f is
continuous at x).
At all other values of x the Fourier series equals the periodic
extension of f ,
except at jump discontinuities, where it equals the average jump.
Example (cont.)
Remark
Even if we know that the series converges, we have
f (x) = its Fourier series only for x (L, L) (and provided f is
continuous at x).
At all other values of x the Fourier series equals the periodic
extension of f ,
except at jump discontinuities, where it equals the average jump.
Example (cont.)
Z L
1
a0 = f (x) dx
2L L
Example (cont.)
Z L
1
a0 = f (x) dx
2L L
"Z #
0 Z L
1
= 1 dx + 2 dx
2L L 0
Example (cont.)
Z L
1
a0 = f (x) dx
2L L
"Z #
0 Z L
1
= 1 dx + 2 dx
2L L 0
1
= [L + 2L]
2L
Example (cont.)
Z L
1
a0 = f (x) dx
2L L
"Z #
0 Z L
1
= 1 dx + 2 dx
2L L 0
1 3
= [L + 2L] =
2L 2
Example (cont.)
Z L
1 nx
an = f (x) cos dx
L L L
Example (cont.)
Z L
1 nx
an = f (x) cos dx
L L
"L #
Z 0 Z L
1 nx nx
= cos dx + 2 cos dx
L L L 0 L
Example (cont.)
Z L
1 nx
an = f (x) cos dx
L L
"L #
Z 0 Z L
1 nx nx
= cos dx + 2 cos dx
L L L 0 L
"Z #
L Z L
1 nx nx
= cos dx + cos dx
L L L 0 L
Example (cont.)
Z L
1 nx
an = f (x) cos dx
L L
"L #
Z 0 Z L
1 nx nx
= cos dx + 2 cos dx
L L L 0 L
"Z #
L Z L
1 nx nx
= cos dx + cos dx
L L L 0 L
| {z }
=0
Example (cont.)
Z L
1 nx
an = f (x) cos dx
L L
"L #
Z 0 Z L
1 nx nx
= cos dx + 2 cos dx
L L L 0 L
"Z #
L Z L
1 nx nx
= cos dx + cos dx
L L L 0 L
| {z }
=0
L h nx iL
= sin
nL L 0
Example (cont.)
Z L
1 nx
an = f (x) cos dx
L L
"L #
Z 0 Z L
1 nx nx
= cos dx + 2 cos dx
L L L 0 L
"Z #
L Z L
1 nx nx
= cos dx + cos dx
L L L 0 L
| {z }
=0
L h nx iL
= sin =0
nL L 0
Example ((cont.))
Z L
1 nx
bn = f (x) sin dx
L L L
Example ((cont.))
Z L
1 nx
bn = f (x) sin dx
L L
"L
Z 0 #
Z L
1 nx nx
= sin dx + 2 sin dx
L L L 0 L
Example ((cont.))
Z L
1 nx
bn = f (x) sin dx
L L
"L
Z 0 Z L #
1 nx nx
= sin dx + 2 sin dx
L L L 0 L
"Z #
L Z L
1 nx nx
= sin dx + sin dx
L L L 0 L
Example ((cont.))
Z L
1 nx
bn = f (x) sin dx
L L
"L
Z 0 Z L #
1 nx nx
= sin dx + 2 sin dx
L L L 0 L
"Z #
L Z L
1 nx nx
= sin dx + sin dx
L L L 0 L
| {z }
=0
Example ((cont.))
Z L
1 nx
bn = f (x) sin dx
L L
"L
Z 0 Z L #
1 nx nx
= sin dx + 2 sin dx
L L L 0 L
"Z #
L Z L
1 nx nx
= sin dx + sin dx
L L L 0 L
| {z }
=0
L h nx iL
= cos
nL L 0
Example ((cont.))
Z L
1 nx
bn = f (x) sin dx
L L
"L
Z 0 Z L #
1 nx nx
= sin dx + 2 sin dx
L L L 0 L
"Z #
L Z L
1 nx nx
= sin dx + sin dx
L L L 0 L
| {z }
=0
L h nx iL
= cos
nL L 0
cos n cos 0
= +
n n
Example ((cont.))
Z L
1 nx
bn = f (x) sin dx
L L
"L
Z 0 Z L #
1 nx nx
= sin dx + 2 sin dx
L L L 0 L
"Z #
L Z L
1 nx nx
= sin dx + sin dx
L L L 0 L
| {z }
=0
L h nx iL
= cos
nL L 0
cos n cos 0
= +
n n
1 (1)n
=
n
fasshauer@iit.edu MATH 461 Chapter 3 20
Convergence of Fourier Series
Example ((cont.))
Z L
1 nx
bn = f (x) sin dx
L L
"L
Z 0 Z L #
1 nx nx
= sin dx + 2 sin dx
L L L 0 L
"Z #
L Z L
1 nx nx
= sin dx + sin dx
L L L 0 L
| {z }
=0
L h nx iL
= cos
nL L 0
cos n cos 0
= +
n n
(
1 (1)n 0, n even
= = 2
n n , n odd
Example (cont.)
Summarizing, we have found that the function
(
1, L x < 0
f (x) =
2, 0 < x L
Example (cont.)
Summarizing, we have found that the function
(
1, L x < 0
f (x) =
2, 0 < x L
Example (cont.)
3
Figure: Plot of 0-term Fourier series approximation f (x) = 2 (red) together
with graph of f (blue).
Example (cont.)
3 2
Figure: Plot of 1-term Fourier series approximation f (x) = 2 + sin x
L (red)
together with graph of f (blue).
Example (cont.)
Example (cont.)
Example (cont.)
Remark
Compared to the previous example, the sines are simpler since L = ,
and we have a vertical shift by a0 = 0 and a vertical stretching so that
(
1 (1)n 0, n even
bn = 2 = 4 .
n n , n odd
fasshauer@iit.edu MATH 461 Chapter 3 23
Convergence of Fourier Series
To find the zeros of this function we multiply both sides by sin x, i.e.,
0 4
sin xf2N1 (x) = [sin x cos x + sin x cos 3x + . . . + sin x cos(2N 1)x]
To find the zeros of this function we multiply both sides by sin x, i.e.,
0 4
sin xf2N1 (x) = [sin x cos x + sin x cos 3x + . . . + sin x cos(2N 1)x]
sin(k +1)xsin(k 1)x
Using the trigonometric identity sin x cos kx = 2 we get
0 2
sin xf2N1 (x) = [(sin 2x sin 0) + (sin 4x sin 2x) + . . . + (sin 2Nx sin(2N 2)x)]
To find the zeros of this function we multiply both sides by sin x, i.e.,
0 4
sin xf2N1 (x) = [sin x cos x + sin x cos 3x + . . . + sin x cos(2N 1)x]
sin(k +1)xsin(k 1)x
Using the trigonometric identity sin x cos kx = 2 we get
0 2
sin xf2N1 (x) = [(sin 2x sin 0) + (sin 4x sin 2x) + . . . + (sin 2Nx sin(2N 2)x)]
2
= sin 2Nx.
Now,
sin 2Nx = 0 if 2Nx = , 2, . . . , 2N.
Now,
sin 2Nx = 0 if 2Nx = , 2, . . . , 2N.
The maximum overshoot occurs at x = 2N
Now,
sin 2Nx = 0 if 2Nx = , 2, . . . , 2N.
The maximum overshoot occurs at x = 2N and its value is
N (2k 1)
4 X sin 2N
f2N1 =
2N 2k 1
k =1
Now,
sin 2Nx = 0 if 2Nx = , 2, . . . , 2N.
The maximum overshoot occurs at x = 2N and its value is
N (2k 1)
4 X sin 2N
f2N1 =
2N 2k 1
k =1
N (2k 1)
2 2N X sin 2N
=
N 2k 1
k =1
Now,
sin 2Nx = 0 if 2Nx = , 2, . . . , 2N.
The maximum overshoot occurs at x = 2N and its value is
N (2k 1)
4 X sin 2N
f2N1 =
2N 2k 1
k =1
N (2k 1)
2 2N X sin 2N
=
N 2k 1
k =1
N 1)
2 X sin (2k2N
= (2k 1) N
.
k =1 2N
If we interpret
N 1)
X sin (2k2N
(2k 1) N
k =1 2N
as a partial Riemann sum with x = N and midpoints
x = 2N , 2N , . . . , (2N1)
3
2N for the partition 0, N , 2
N ,...,
(N1)
N , of [0, ]
then
If we interpret
N 1)
X sin (2k2N
(2k 1) N
k =1 2N
as a partial Riemann sum with x = N and midpoints
x = 2N , 2N , . . . , (2N1)
3
2N for the partition 0, N , 2
N ,...,
(N1)
N , of [0, ]
then
2 sin x
Z
f2N1 dx for N .
2N 0 x
If we interpret
N 1)
X sin (2k2N
(2k 1) N
k =1 2N
as a partial Riemann sum with x = N and midpoints
x = 2N , 2N , . . . , (2N1)
3
2N for the partition 0, N , 2
N ,...,
(N1)
N , of [0, ]
then
2 sin x
Z
f2N1 dx for N .
2N 0 x
This integral can be evaluated numerically to get
f2N1 1.178979744472167 . . . .
2N
Remark
The Gibbs phenomenon was actually discovered by Henry
Wilbraham in 1848. Gibbs was just more famous, published in a better
journal (50 years later), and built in some mistakes perhaps drawing
more attention to his work (for further discussion see [Trefethen,
Chapter 9]).
fasshauer@iit.edu MATH 461 Chapter 3 27
Fourier Sine and Cosine Series
Outline
Remark
The graph of an odd function is symmetric about the origin.
Remark
The graph of an odd function is symmetric about the origin.
RL
For an odd function we have L f (x) dx = 0.
Remark
The graph of an odd function is symmetric about the origin.
RL
For an odd function we have L f (x) dx = 0.
Z L Z 0 Z L
f (x) dx = f (x) dx + f (x) dx
L L 0
Remark
The graph of an odd function is symmetric about the origin.
RL
For an odd function we have L f (x) dx = 0.
Z L Z 0 Z L
f (x) dx = f (x) dx + f (x) dx
L L | {z } 0
u = x
du = dx
Remark
The graph of an odd function is symmetric about the origin.
RL
For an odd function we have L f (x) dx = 0.
Z L Z 0 Z L
f (x) dx = f (x) dx + f (x) dx
L L |{z} 0
u = x
du = dx
Z 0 Z L
= f (u) du + f (x) dx
L 0
Remark
The graph of an odd function is symmetric about the origin.
RL
For an odd function we have L f (x) dx = 0.
Z L Z 0 Z L
f (x) dx = f (x) dx + f (x) dx
L L |{z} 0
u = x
du = dx
Z 0 Z L
= f (u) du + f (x) dx
L | {z } 0
=f (u)
Remark
The graph of an odd function is symmetric about the origin.
RL
For an odd function we have L f (x) dx = 0.
Z L Z 0 Z L
f (x) dx = f (x) dx + f (x) dx
L L |{z} 0
u = x
du = dx
Z 0 Z L
= f (u) du + f (x) dx
L | {z } 0
=f (u)
Z L Z L
= f (u) du + f (x) dx
0 0
Remark
The graph of an odd function is symmetric about the origin.
RL
For an odd function we have L f (x) dx = 0.
Z L Z 0 Z L
f (x) dx = f (x) dx + f (x) dx
L L |{z} 0
u = x
du = dx
Z 0 Z L
= f (u) du + f (x) dx
L | {z } 0
=f (u)
Z L Z L
= f (u) du + f (x) dx = 0
0 0
Definition
f is an even function if f (x) = f (x) for all x in the domain of f .
Definition
f is an even function if f (x) = f (x) for all x in the domain of f .
Remark
The graph of an even function is symmetric about the y -axis.
Definition
f is an even function if f (x) = f (x) for all x in the domain of f .
Remark
The graph of an even function is symmetric about the y -axis.
For an even function we have
Z L Z L
f (x) dx = 2 f (x) dx,
L 0
with
Z L Z L
1 1 nx
a0 = f (x) dx, an = f (x) cos dx
2L L L L L
1 L
Z
nx
bn = f (x) sin dx
L L L
with
Z L Z L
1 1 nx
a0 = f (x) dx, an = f (x) cos dx
2L L |{z} L L L
odd
Z L
1 nx
bn = f (x) sin dx
L L L
with
Z L Z L
1 1 nx
a0 = f (x) dx = 0, an = f (x) cos dx
2L L |{z} L L L
odd
Z L
1 nx
bn = f (x) sin dx
L L L
with
Z L Z L
1 1 nx
a0 = f (x) dx = 0, an = f (x) cos dx
2L L |{z} L L |{z} | {z L }
odd odd
even
Z L
1 nx
bn = f (x) sin dx
L L L
with
Z L Z L
1 1 nx
a0 = f (x) dx = 0, an = f (x) cos dx = 0
2L L |{z} L L |{z} | {z L }
odd odd
even
| {z }
odd
Z L
1 nx
bn = f (x) sin dx
L L L
with
Z L Z L
1 1 nx
a0 = f (x) dx = 0, an = f (x) cos dx = 0
2L L |{z} L L |{z} | {z L }
odd odd
even
| {z }
odd
Z L
1 nx
bn = f (x) sin dx
L L |{z} | {zL }
odd
odd
with
Z L Z L
1 1 nx
a0 = f (x) dx = 0, an = f (x) cos dx = 0
2L L |{z} L L |{z} | {z L }
odd odd
even
| {z }
odd
Z L
1 nx
bn = f (x) sin dx
L L |{z} | {zL }
odd
odd
| {z }
even
with
Z L Z L
1 1 nx
a0 = f (x) dx = 0, an = f (x) cos dx = 0
2L L |{z} L L |{z} | {z L }
odd odd
even
| {z }
odd
Z L Z L
1 nx 2 nx
bn = f (x) sin dx = f (x) sin dx(= Bn )
L L |{z} | {z }L L 0 L
odd
odd
| {z }
even
with
Z L Z L
1 1 nx
a0 = f (x) dx = 0, an = f (x) cos dx = 0
2L L |{z} L L |{z} | {z L }
odd odd
even
| {z }
odd
Z L Z L
1 nx 2 nx
bn = f (x) sin dx = f (x) sin dx(= Bn )
L L |{z} | {z }L L 0 L
odd
odd
| {z }
even
Therefore,
X nx
f (x) Bn sin ,
L
n=1
with
Z L Z L
1 1 nx
a0 = f (x) dx = 0, an = f (x) cos dx = 0
2L L |{z} L L |{z} | {z L }
odd odd
even
| {z }
odd
Z L Z L
1 nx 2 nx
bn = f (x) sin dx = f (x) sin dx(= Bn )
L L |{z} | {z }L L 0 L
odd
odd
| {z }
even
Therefore,
X nx
f (x) Bn sin ,
L
n=1
Theorem
If f is piecewise smooth on [0, L], then the Fourier sine series of f
converges.
Theorem
If f is piecewise smooth on [0, L], then the Fourier sine series of f
converges. Moreover,
1 at those points x where the odd periodic extension of f is
continuous, the Fourier sine series converges to the odd periodic
extension and
Theorem
If f is piecewise smooth on [0, L], then the Fourier sine series of f
converges. Moreover,
1 at those points x where the odd periodic extension of f is
continuous, the Fourier sine series converges to the odd periodic
extension and
2 at jump discontinuities of the odd periodic extension, the Fourier
sine series converges to the average of the left and right limits at
the jump.
Example
x
Figure: Plot of f (x) = 1 L with x [0, L].
Example
Example
Remark
Even if f is not an odd function, it may still be necessary to represent it
by a Fourier sine series.
Remark
Even if f is not an odd function, it may still be necessary to represent it
by a Fourier sine series.
Example
The heat equation problem
u 2u
(x, t) = k 2 (x, t), 0 < x < L, t >0
t x
u(0, t) = u(L, t) = 0
x
u(x, 0) = cos
L
has sines as eigenfunctions, so we need to find the Fourier sine series
expansion of f (x) = cos x
L .
Example (cont.)
n 2
We know u(x, t) = (x)G(t), with eigenvalues n = L ,
n = 1, 2, 3, . . . and eigenfunctions
nx
n (x) = sin
L
as well as Gn (t) = en kt .
Example (cont.)
n 2
We know u(x, t) = (x)G(t), with eigenvalues n = L ,
n = 1, 2, 3, . . . and eigenfunctions
nx
n (x) = sin
L
as well as Gn (t) = en kt .
Therefore
X nx k ( n )2 t
u(x, t) = Bn sin e L
L
n=1
Example (cont.)
n 2
We know u(x, t) = (x)G(t), with eigenvalues n = L ,
n = 1, 2, 3, . . . and eigenfunctions
nx
n (x) = sin
L
as well as Gn (t) = en kt .
Therefore
X nx k ( n )2 t
u(x, t) = Bn sin e L
L
n=1
and
X nx
u(x, 0) = Bn sin
L
n=1
Example (cont.)
n 2
We know u(x, t) = (x)G(t), with eigenvalues n = L ,
n = 1, 2, 3, . . . and eigenfunctions
nx
n (x) = sin
L
as well as Gn (t) = en kt .
Therefore
X nx k ( n )2 t
u(x, t) = Bn sin e L
L
n=1
and
X nx ! x
u(x, 0) = Bn sin = cos
L L
n=1
Example (cont.)
In HW 3.3.2a you should showa
(
Z L 0, n odd
2 x nx
Bn = cos sin dx = 4n
L 0 L L (n2 1)
, n even
a
Remember that we established the orthogonality of sine and cosine only
on [L, L], not on [0, L]
fasshauer@iit.edu MATH 461 Chapter 3 36
Fourier Sine and Cosine Series
Example (cont.)
In HW 3.3.2a you should showa
(
Z L 0, n odd
2 x nx
Bn = cos sin dx = 4n
L 0 L L (n2 1)
, n even
and the equality is true for 0 < x < L (since the cosine equals its odd
periodic extension there).
a
Remember that we established the orthogonality of sine and cosine only
on [L, L], not on [0, L]
fasshauer@iit.edu MATH 461 Chapter 3 36
Fourier Sine and Cosine Series
Example (cont.)
In HW 3.3.2a you should showa
(
Z L 0, n odd
2 x nx
Bn = cos sin dx = 4n
L 0 L L (n2 1)
, n even
and the equality is true for 0 < x < L (since the cosine equals its odd
periodic extension there).
For x = 0 and x = L the series is zero (which is equal to the average
jump of the cosine function there).
a
Remember that we established the orthogonality of sine and cosine only
on [L, L], not on [0, L]
fasshauer@iit.edu MATH 461 Chapter 3 36
Fourier Sine and Cosine Series
with
Z L
1
a0 = f (x) dx
2L L
1 L
Z
nx
an = f (x) cos dx
L L L
1 L
Z
nx
bn = f (x) sin dx
L L L
with
Z L
1
a0 = f (x) dx
2L L |{z}
even
Z L
1 nx
an = f (x) cos dx
L L L
Z L
1 nx
bn = f (x) sin dx
L L L
with
Z L Z L
1 2
a0 = f (x) dx = f (x) dx
2L L |{z} 2L 0
even
Z L
1 nx
an = f (x) cos dx
L L L
Z L
1 nx
bn = f (x) sin dx
L L L
with
Z L Z L
1 1
a0 = f (x) dx = f (x) dx(= A0 )
2L L |{z} L 0
even
Z L
1 nx
an = f (x) cos dx
L L L
Z L
1 nx
bn = f (x) sin dx
L L L
with
Z L Z L
1 1
a0 = f (x) dx = f (x) dx(= A0 )
2L L |{z} L 0
even
Z L
1 nx
an = f (x) cos dx
L L |{z} | {z L}
even
even
Z L
1 nx
bn = f (x) sin dx
L L L
with
Z L Z L
1 1
a0 = f (x) dx = f (x) dx(= A0 )
2L L |{z} L 0
even
Z L
1 nx
an = f (x) cos dx
L L | {z L }
even
Z L
1 nx
bn = f (x) sin dx
L L L
with
Z L Z L
1 1
a0 = f (x) dx = f (x) dx(= A0 )
2L L |{z} L 0
even
Z L Z L
1 nx 2 nx
an = f (x) cos dx = f (x) cos dx(= An )
L L | {z L } L 0 L
even
Z L
1 nx
bn = f (x) sin dx
L L L
with
Z L Z L
1 1
a0 = f (x) dx = f (x) dx(= A0 )
2L L |{z} L 0
even
Z L Z L
1 nx 2 nx
an = f (x) cos dx = f (x) cos dx(= An )
L L | {z L } L 0 L
even
Z L
1 nx
bn = f (x) sin dx
L L |{z} | {zL}
even
odd
with
Z L Z L
1 1
a0 = f (x) dx = f (x) dx(= A0 )
2L L |{z} L 0
even
Z L Z L
1 nx 2 nx
an = f (x) cos dx = f (x) cos dx(= An )
L L | {z L } L 0 L
even
Z L
1 nx
bn = f (x) sin dx = 0
L L | {z L }
odd
with
Z L Z L
1 1
a0 = f (x) dx = f (x) dx(= A0 )
2L L |{z} L 0
even
Z L Z L
1 nx 2 nx
an = f (x) cos dx = f (x) cos dx(= An )
L L | {z L } L 0 L
even
Z L
1 nx
bn = f (x) sin dx = 0
L L | {z L }
odd
Therefore,
X nx
f (x) A0 + An cos ,
L
n=1
with
Z L Z L
1 1
a0 = f (x) dx = f (x) dx(= A0 )
2L L |{z} L 0
even
Z L Z L
1 nx 2 nx
an = f (x) cos dx = f (x) cos dx(= An )
L L | {z L } L 0 L
even
Z L
1 nx
bn = f (x) sin dx = 0
L L | {z L }
odd
Therefore,
X nx
f (x) A0 + An cos ,
L
n=1
Theorem
If f is piecewise smooth on [0, L], then the Fourier cosine series of f
converges.
Theorem
If f is piecewise smooth on [0, L], then the Fourier cosine series of f
converges. Moreover,
1 at those points x where the even periodic extension of f is
continuous, the Fourier cosine series converges to the even
periodic extension and
Theorem
If f is piecewise smooth on [0, L], then the Fourier cosine series of f
converges. Moreover,
1 at those points x where the even periodic extension of f is
continuous, the Fourier cosine series converges to the even
periodic extension and
2 at jump discontinuities of the even periodic extension, the Fourier
cosine series converges to the average of the left and right limits
at the jump.
Theorem
If f is piecewise smooth on [0, L], then the Fourier cosine series of f
converges. Moreover,
1 at those points x where the even periodic extension of f is
continuous, the Fourier cosine series converges to the even
periodic extension and
2 at jump discontinuities of the even periodic extension, the Fourier
cosine series converges to the average of the left and right limits
at the jump.
Remark
Note that jump discontinuities are possible only for 0 < x < L, i.e., if f
itself had jump discontinuities. The even periodic extension cannot
have any jumps at x = 0 or x = L.
Example
Example
Example
Example
Find the Fourier cosine series expansion of the function
(
1, 0 x < L2
f (x) =
0, 2L x L
Example
Find the Fourier cosine series expansion of the function
(
1, 0 x < L2
f (x) =
0, 2L x L
Example
Find the Fourier cosine series expansion of the function
(
1, 0 x < L2
f (x) =
0, 2L x L
Example
Find the Fourier cosine series expansion of the function
(
1, 0 x < L2
f (x) =
0, 2L x L
Example
Find the Fourier cosine series expansion of the function
(
1, 0 x < L2
f (x) =
0, 2L x L
fasshauer@iit.edu MATH 461 Chapter 3 X nx 40
Fourier Sine and Cosine Series
Example (cont.)
Lets compute the Fourier cosine coefficients:
Z L
1
A0 = f (x) dx
L 0
Example (cont.)
Lets compute the Fourier cosine coefficients:
Z L
1
A0 = f (x) dx
L
"0Z #
L/2 Z L
1
= 1 dx + 0 dx
L 0 L/2
Example (cont.)
Lets compute the Fourier cosine coefficients:
Z L
1
A0 = f (x) dx
L
"0Z #
L/2 Z L
1
= 1 dx + 0 dx
L 0 L/2
1L
=
L2
Example (cont.)
Lets compute the Fourier cosine coefficients:
Z L
1
A0 = f (x) dx
L
"0Z #
L/2 Z L
1
= 1 dx + 0 dx
L 0 L/2
1L 1
= =
L2 2
Example (cont.)
Z L
2 nx
An = f (x) cos dx
L 0 L
Example (cont.)
Z L
2 nx
An = f (x) cos dx
L L
"0Z #
L/2 Z L
2 nx nx
= 1 cos dx + 0 cos dx
L 0 L L/2 L
Example (cont.)
Z L
2 nx
An = f (x) cos dx
L L
"0Z #
L/2 Z L
2 nx nx
= cos dx + 0 cos dx
L 0 L L/2 L
2 L h nx iL/2
= sin
L n L 0
Example (cont.)
Z L
2 nx
An = f (x) cos dx
L L
"0Z #
L/2 Z L
2 nx nx
= cos dx + 0 cos dx
L 0 L L/2 L
2 L h nx iL/2
= sin
L n L 0
2 n
= sin
n 2
Example (cont.)
Z L
2 nx
An = f (x) cos dx
L L
"0Z #
L/2 Z L
2 nx nx
= cos dx + 0 cos dx
L 0 L L/2 L
2 L h nx iL/2
= sin
L n L 0
(
2 n 0, n = 2k even
= sin = 2 k +1
n 2 (2k 1) (1) , n = 2k 1 odd
Example (cont.)
Z L
2 nx
An = f (x) cos dx
L L
"0Z #
L/2 Z L
2 nx nx
= cos dx + 0 cos dx
L 0 L L/2 L
2 L h nx iL/2
= sin
L n L 0
(
2 n 0, n = 2k even
= sin = 2 k +1
n 2 (2k 1) (1) , n = 2k 1 odd
Therefore
1 X 2(1)k +1 (2k 1)x
f (x) + cos
2 (2k 1) L
k =1
Example (cont.)
Z L
2 nx
An = f (x) cos dx
L L
"0Z #
L/2 Z L
2 nx nx
= cos dx + 0 cos dx
L 0 L L/2 L
2 L h nx iL/2
= sin
L n L 0
(
2 n 0, n = 2k even
= sin = 2 k +1
n 2 (2k 1) (1) , n = 2k 1 odd
Therefore
1 X 2(1)k +1 (2k 1)x
f (x) + cos
2 (2k 1) L
k =1
Proof.
Indeed, fe is even
1
fe (x) = [f (x) + f (x)]
2
Proof.
Indeed, fe is even
1
fe (x) = [f (x) + f (x)] = fe (x),
2
Proof.
Indeed, fe is even
1
fe (x) = [f (x) + f (x)] = fe (x),
2
and fo is odd
1
fo (x) = [f (x) f (x)]
2
Proof.
Indeed, fe is even
1
fe (x) = [f (x) + f (x)] = fe (x),
2
and fo is odd
1 1
fo (x) = [f (x) f (x)] = [f (x) f (x)]
2 2
Proof.
Indeed, fe is even
1
fe (x) = [f (x) + f (x)] = fe (x),
2
and fo is odd
1 1
fo (x) = [f (x) f (x)] = [f (x) f (x)] = fo (x).
2 2
Therefore,
h
X nx nx i
a0 + an cos + bn sin
L L
n=1
| {z }
Fourier series of f
X nx X nx
= a0 + an cos + bn sin
L L
n=1
| {z } |n=1 {z }
cosine series of fe sine series of fo
Outline
u
(1, ) = f (),
r
where
X
u(r , ) = Bn r 2n sin 2n.
n=1
u
(1, ) = f (),
r
where
X
u(r , ) = Bn r 2n sin 2n.
n=1
u
(1, ) = f (),
r
where
X
u(r , ) = Bn r 2n sin 2n.
n=1
Example
Consider the function f (x) = x, and find its Fourier sine series.
Then, compare the termwise derivative of the series with the correct
derivative f 0 (x) = 1.
Example
Consider the function f (x) = x, and find its Fourier sine series.
Then, compare the termwise derivative of the series with the correct
derivative f 0 (x) = 1.
We know
X nx
x Bn sin
L
n=1
with Z L
2 nx
Bn = x sin dx.
L 0 L
Example (cont.)
Using integration by parts we have
Z L
2 nx
Bn = x sin dx
L 0 L
Example (cont.)
Using integration by parts we have
Z L
2 nx
Bn = x sin dx
L L
"0 #
nx L
Z L
2 L L nx
= x cos + cos dx
L n L 0 n 0 L
Example (cont.)
Using integration by parts we have
Z L
2 nx
Bn = x sin dx
L L
"0 #
nx L
Z L
2 L L nx
= x cos + cos dx
L n L 0 n 0 L
L2 L2
2 nx L
= cos n + sin
L n (n)2 L 0
Example (cont.)
Using integration by parts we have
Z L
2 nx
Bn = x sin dx
L L
"0 #
nx L
Z L
2 L L nx
= x cos + cos dx
L n L 0 n 0 L
L2 L2
2 nx L
= cos n + sin
L n (n)2 L 0
L2
2
= cos n
L n
Example (cont.)
Using integration by parts we have
Z L
2 nx
Bn = x sin dx
L L
"0 #
nx L
Z L
2 L L nx
= x cos + cos dx
L n L 0 n 0 L
L2 L2
2 nx L
= cos n + sin
L n (n)2 L 0
L2
2 2L
= cos n = (1)n
L n n
Example (cont.)
Using integration by parts we have
Z L
2 nx
Bn = x sin dx
L L
"0 #
nx L
Z L
2 L L nx
= x cos + cos dx
L n L 0 n 0 L
L2 L2
2 nx L
= cos n + sin
L n (n)2 L 0
L2
2 2L
= cos n = (1)n
L n n
Therefore,
2L X (1)n+1 nx
x sin (1)
n L
n=1
Example (cont.)
Using integration by parts we have
Z L
2 nx
Bn = x sin dx
L L
"0 #
nx L
Z L
2 L L nx
= x cos + cos dx
L n L 0 n 0 L
L2 L2
2 nx L
= cos n + sin
L n (n)2 L 0
L2
2 2L
= cos n = (1)n
L n n
Therefore,
2L X (1)n+1 nx
x sin (1)
n L
n=1
Example (cont.)
Now we consider the termwise derivative of the Fourier sine series
2L X (1)n+1 nx
x sin ,
n L
n=1
Example (cont.)
Now we consider the termwise derivative of the Fourier sine series
2L X (1)n+1 nx
x sin ,
n L
n=1
i.e.,
2L X (1)n+1 n nx
cos
n L L
n=1
Example (cont.)
Now we consider the termwise derivative of the Fourier sine series
2L X (1)n+1 nx
x sin ,
n L
n=1
i.e.,
2L X (1)n+1 n nx
cos
n L L
n=1
X nx
= 2 (1)n+1 cos .
L
n=1
Example (cont.)
Now we consider the termwise derivative of the Fourier sine series
2L X (1)n+1 nx
x sin ,
n L
n=1
i.e.,
2L X (1)n+1 n nx
cos
n L L
n=1
X nx
= 2 (1)n+1 cos .
L
n=1
Remark
Note that this is a divergent series since the terms in the sequence do
not approach zero for n , and therefore the series diverges by the
standard test for divergence from calculus.
fasshauer@iit.edu MATH 461 Chapter 3 53
Term-by-Term Differentiation of Fourier Series
Example (cont.)
Obviously, we must conclude that
X nx
1 6= 2 (1)n+1 cos .
L
n=1
Example (cont.)
Obviously, we must conclude that
X nx
1 6= 2 (1)n+1 cos .
L
n=1
f 0 (x) = 1 1,
i.e.,
a0 = 1, an = 0 for n 1.
Example (cont.)
Obviously, we must conclude that
X nx
1 6= 2 (1)n+1 cos .
L
n=1
f 0 (x) = 1 1,
i.e.,
a0 = 1, an = 0 for n 1.
Obviously, we could replace by =.
Example (cont.)
Why did this not work?
What caused the trouble?
Example (cont.)
Why did this not work?
What caused the trouble?
Example (cont.)
Example (cont.)
Example (cont.)
The jumps in the Fourier sine series at odd multiples of L prevent the
series from being differentiable.
fasshauer@iit.edu MATH 461 Chapter 3 57
Term-by-Term Differentiation of Fourier Series
Remark
In other words, the Fourier series of a continuous function f which
satisfies f (L) = f (L) can be differentiated term-by-term provided
f 0 is piecewise smooth.
Remark
In other words, the Fourier series of a continuous function f which
satisfies f (L) = f (L) can be differentiated term-by-term provided
f 0 is piecewise smooth.
Piecewise smoothness of f 0 ensures that its Fourier series
converges.
Proof
The Fourier series of f is
h
X nx nx i
f (x) a0 + an cos + bn sin (2)
L L
n=1
with
Z L Z L Z L
1 1 nx 1 nx
a0 = f (x)dx, an = f (x) cos dx, bn = f (x) sin dx.
2L L L L L L L L
Proof
The Fourier series of f is
h
X nx nx i
f (x) a0 + an cos + bn sin (2)
L L
n=1
with
Z L Z L Z L
1 1 nx 1 nx
a0 = f (x)dx, an = f (x) cos dx, bn = f (x) sin dx.
2L L L L L L L L
would yield
would yield
h
0
X n nx n nx i
f (x) an sin + bn cos .
L L L L
n=1
would yield
h
0
X n nx n nx i
f (x) an sin + bn cos .
L L L L
n=1
A0 = 0.
Z L
1 nx
An = f 0 (x) cos dx
L L L
Z L
1 nx parts
h
u = cos nx , du = n sin nx
dx
i
An = f 0 (x) cos dx = L
dv = f 0 (x)dx, v = f (x)
L L
L L L
Z L
1 nx parts
h
u = cos nx , du = n sin nx dx
i
An = f 0 (x) cos
dx = 0
L
dv = f (x)dx, v = f (x)
L L
L L
"L Z L #
1 nx L n nx
= f (x) cos + f (x) sin dx
L L L L L L
Z L
1 nx parts
h
u = cos nx , du = n sin nx dx
i
An = f 0 (x) cos
dx = 0
L
dv = f (x)dx, v = f (x)
L L
L L
" L Z L #
1 nx L n nx
= f (x) cos + f (x) sin dx
L L L L L
| L {z }
=nbn
Z L
1 nx parts
h
u = cos nx , du = n sin nx dx
i
An = f 0 (x) cos
dx = 0
L
dv = f (x)dx, v = f (x)
L L
L L
" L Z L #
1 nx L n nx
= f (x) cos + f (x) sin dx
L L L L L
| L {z }
=nbn
1h i
= f (L) cos n f (L) cos(n) + nbn
L
Z L
1 nx parts
h
u = cos nx , du = n sin nx dx
i
An = f 0 (x) cos
dx = 0
L
dv = f (x)dx, v = f (x)
L L
L L
" L Z L #
1 nx L n nx
= f (x) cos + f (x) sin dx
L L L L L
| L {z }
=nbn
1h i
= f (L) cos n f (L) cos(n) +nbn
L | {z }
=cos n
Z L
1 nx parts
h
u = cos nx , du = n sin nx dx
i
An = f 0 (x) cos
dx = 0
L
dv = f (x)dx, v = f (x)
L L
L L
" L Z L #
1 nx L n nx
= f (x) cos + f (x) sin dx
L L L L L
| L {z }
=nbn
1h i
= f (L) cos n f (L) cos(n) +nbn
L | {z }
=cos n
1 h i
= f (L) f (L) cos n + nbn
L
Z L
1 nx parts
h
u = cos nx , du = n sin nx dx
i
An = f 0 (x) cos
dx = 0
L
dv = f (x)dx, v = f (x)
L L
L L
" L Z L #
1 nx L n nx
= f (x) cos + f (x) sin dx
L L L L L
| L {z }
=nbn
1h i
= f (L) cos n f (L) cos(n) +nbn
L | {z }
=cos n
1 h i
= f (L) f (L) cos n + nbn
L | {z }
=0, since F.S. of f cont.
Z L
1 nx parts
h
u = cos nx , du = n sin nx dx
i
An = f 0 (x) cos
dx = 0
L
dv = f (x)dx, v = f (x)
L L
L L
" L Z L #
1 nx L n nx
= f (x) cos + f (x) sin dx
L L L L L
| L {z }
nbn
1h i
= f (L) cos n f (L) cos(n) +nbn
L | {z }
=cos n
1 h i
= f (L) f (L) cos n + nbn
L | {z }
=0, since F.S. of f cont.
n
= bn .
L
Z L
1 nx parts
h
u = cos nx , du = n sin nx dx
i
An = f 0 (x) cos
dx = 0
L
dv = f (x)dx, v = f (x)
L L
L L
" L Z L #
1 nx L n nx
= f (x) cos + f (x) sin dx
L L L L L
| L {z }
nbn
1h i
= f (L) cos n f (L) cos(n) +nbn
L | {z }
=cos n
1 h i
= f (L) f (L) cos n + nbn
L | {z }
=0, since F.S. of f cont.
n
= bn .
L
Bn is treated similarly.
If the Fourier series of f is not continuous, i.e., if f (L) 6= f (L), then the
proof above shows us that
1
A0 = [f (L) f (L)] ,
2L
1 n
An = (1)n [f (L) f (L)] + bn ,
L L
n
Bn = an .
L
If the Fourier series of f is not continuous, i.e., if f (L) 6= f (L), then the
proof above shows us that
1
A0 = [f (L) f (L)] ,
2L
1 n
An = (1)n [f (L) f (L)] + bn ,
L L
n
Bn = an .
L
Therefore, even if the Fourier series of f itself is not continuous, the
Fourier series of the derivative of a continuous function f is given by
(1)n
1 X n nx
f 0 (x) [f (L) f (L)] + [f (L) f (L)] + bn cos
2L L L L
n=1
n nx
an sin .
L L
Remark
In other words, the Fourier cosine series of a continuous function f
can be differentiated term-by-term provided f 0 is piecewise
smooth.
Remark
In other words, the Fourier cosine series of a continuous function f
can be differentiated term-by-term provided f 0 is piecewise
smooth.
No additional end conditions are required for f since f (L) = f (L)
is automatically satisfied due to even extension.
Remark
In other words, the Fourier cosine series of a continuous function f
can be differentiated term-by-term provided f 0 is piecewise
smooth.
No additional end conditions are required for f since f (L) = f (L)
is automatically satisfied due to even extension.
Proof.
HW 3.4.4b
Example
Consider again the function f (x) = x, but now find its Fourier cosine
series.
Can we apply term-by-term differentiation?
If so, what is the derivative?
Example
Consider again the function f (x) = x, but now find its Fourier cosine
series.
Can we apply term-by-term differentiation?
If so, what is the derivative?
We know
X nx
x A0 + An cos
L
n=1
with
Z L
1
A0 = x dx
L 0
Example
Consider again the function f (x) = x, but now find its Fourier cosine
series.
Can we apply term-by-term differentiation?
If so, what is the derivative?
We know
X nx
x A0 + An cos
L
n=1
with
L
1 L2
Z
1
A0 = x dx =
L 0 L 2
Example
Consider again the function f (x) = x, but now find its Fourier cosine
series.
Can we apply term-by-term differentiation?
If so, what is the derivative?
We know
X nx
x A0 + An cos
L
n=1
with
L
1 L2
Z
1 L
A0 = x dx = = ,
L 0 L 2 2
Example
Consider again the function f (x) = x, but now find its Fourier cosine
series.
Can we apply term-by-term differentiation?
If so, what is the derivative?
We know
X nx
x A0 + An cos
L
n=1
with
L
1 L2
Z
1 L
A0 = x dx = = ,
L 0 L 2 2
Z L
2 nx
An = x cos dx.
L 0 L
Example (cont.)
Z L
2 nx
An = x cos dx
L 0 L
Example (cont.)
Z L
2 nx
An = x cosdx
L 0 L
" #
nx L
Z L
parts 2 L L nx
= x sin sin dx
L n L 0 n 0 L
Example (cont.)
Z L
2 nx
An = x cos dx
L 0 L
" #
nx L
Z L
parts 2 L L nx
= x sin sin dx
L n L 0 n 0 L
2 L nx L
= cos
n n L 0
Example (cont.)
Z L
2 nx
An = x cos dx
L 0 L
" #
nx L
Z L
parts 2 L L nx
= x sin sin dx
L n L 0 n 0 L
2 L nx L
= cos
n n L 0
2L
= [(1)n 1]
(n)2
Example (cont.)
Z L
2 nx
An = x cos dx
L 0 L
" #
nx L
Z L
parts 2 L L nx
= x sin sin dx
L n L 0 n 0 L
2 L nx L
= cos
n n L 0
(
2L 0, for n even
= 2
[(1)n 1] = 4L
(n) (n)2 , for n odd
Example (cont.)
Z L
2 nx
An = x cos dx
L 0 L
" #
nx L
Z L
parts 2 L L nx
= x sin sin dx
L n L 0 n 0 L
2 L nx L
= cos
n n L 0
(
2L 0, for n even
= 2
[(1)n 1] = 4L
(n) (n)2 , for n odd
Therefore, with n = 2k 1,
L 4L X 1 (2k 1)x
x 2 2
cos (4)
2 (2k 1) L
k =1
Example (cont.)
Example (cont.)
Example (cont.)
Figure: Plot of odd periodic extension (i.e., Fourier cosine series) of f (x) = x.
Example (cont.)
Figure: Plot of odd periodic extension (i.e., Fourier cosine series) of f (x) = x.
Example (cont.)
Since f and its Fourier cosine series are continuous we can now
perform the term-by-term derivative of the Fourier cosine series from
(4)
L 4L X 1 (2k 1)x
x 2 cos ,
2 (2k 1)2 L
k =1
Example (cont.)
Since f and its Fourier cosine series are continuous we can now
perform the term-by-term derivative of the Fourier cosine series from
(4)
L 4L X 1 (2k 1)x
x 2 cos ,
2 (2k 1)2 L
k =1
i.e.,
4L X (2k 1)x
1 2
sin
(2k 1)L L
k =1
Example (cont.)
Since f and its Fourier cosine series are continuous we can now
perform the term-by-term derivative of the Fourier cosine series from
(4)
L 4L X 1 (2k 1)x
x 2 cos ,
2 (2k 1)2 L
k =1
i.e.,
4L X (2k 1)x
1 2
sin
(2k 1)L L
k =1
4 X 1 (2k 1)x
= sin . (5)
(2k 1) L
k =1
Example (cont.)
Since f and its Fourier cosine series are continuous we can now
perform the term-by-term derivative of the Fourier cosine series from
(4)
L 4L X 1 (2k 1)x
x 2 cos ,
2 (2k 1)2 L
k =1
i.e.,
4L X (2k 1)x
1 2
sin
(2k 1)L L
k =1
4 X 1 (2k 1)x
= sin . (5)
(2k 1) L
k =1
Remark
Note that this is the Fourier sine series of f 0 (x) = 1, for 0 < x < L.
Example (cont.)
Note that due to the jumps in the graph of the Fourier sine series
equals = in (5) only for 0 < x < L.
fasshauer@iit.edu MATH 461 Chapter 3 69
Term-by-Term Differentiation of Fourier Series
Remark
In other words, the Fourier sine series of a continuous function f which
satisfies f (0) = f (L) = 0 can be differentiated term-by-term provided f 0
is piecewise smooth.
Remark
In other words, the Fourier sine series of a continuous function f which
satisfies f (0) = f (L) = 0 can be differentiated term-by-term provided f 0
is piecewise smooth.
Proof.
See the textbook [Haberman] on pages 116117.
From the proof of the theorem we get that if f is continuous, but does
not satisfy f (0) = f (L) = 0, with Fourier sine series
X nx
f (x) Bn sin
L
n=1
Example
We saw earlier that for the function f (x) = x we have
2L X (1)n+1 nx
x= sin , 0 < x < L.
n L
n=1
Example
We saw earlier that for the function f (x) = x we have
2L X (1)n+1 nx
x= sin , 0 < x < L.
n L
n=1
Since f (0) = 0 6= f (L) = L we cant expect term-by-term differentiation
to yield f 0 (x) (and we observed this in the earlier example).
Example
We saw earlier that for the function f (x) = x we have
2L X (1)n+1 nx
x= sin , 0 < x < L.
n L
n=1
Since f (0) = 0 6= f (L) = L we cant expect term-by-term differentiation
to yield f 0 (x) (and we observed this in the earlier example).
However, (6) does provide the expected (and correct) answer
0 1 X n 2 n nx
f (x) [f (L) f (0)] + Bn + [(1) f (L) f (0)] cos
L L L L
n=1
Example
We saw earlier that for the function f (x) = x we have
2L X (1)n+1 nx
x= sin , 0 < x < L.
n L
n=1
Since f (0) = 0 6= f (L) = L we cant expect term-by-term differentiation
to yield f 0 (x) (and we observed this in the earlier example).
However, (6) does provide the expected (and correct) answer
0 1 X n 2 n nx
f (x) [f (L) f (0)] + Bn + [(1) f (L) f (0)] cos
L L L L
n=1
X n 2L(1)n+1 2
1 nx
= [L 0] + + [(1)n L 0] cos
L L n L L
n=1
Example
We saw earlier that for the function f (x) = x we have
2L X (1)n+1 nx
x= sin , 0 < x < L.
n L
n=1
Since f (0) = 0 6= f (L) = L we cant expect term-by-term differentiation
to yield f 0 (x) (and we observed this in the earlier example).
However, (6) does provide the expected (and correct) answer
0 1 X n 2 n nx
f (x) [f (L) f (0)] + Bn + [(1) f (L) f (0)] cos
L L L L
n=1
X n 2L(1)n+1 2
1 nx
= [L 0] + + [(1)n L 0] cos
L L n L L
n=1
h
X i nx
= 1+ 2(1)n+1 + 2(1)n cos
L
n=1
Example
We saw earlier that for the function f (x) = x we have
2L X (1)n+1 nx
x= sin , 0 < x < L.
n L
n=1
Since f (0) = 0 6= f (L) = L we cant expect term-by-term differentiation
to yield f 0 (x) (and we observed this in the earlier example).
However, (6) does provide the expected (and correct) answer
0 1 X n 2 n nx
f (x) [f (L) f (0)] + Bn + [(1) f (L) f (0)] cos
L L L L
n=1
X n 2L(1)n+1 2
1 nx
= [L 0] + + [(1)n L 0] cos
L L n L L
n=1
h
X i nx
= 1+ 2(1)n+1 + 2(1)n cos
| {z } L
n=1
=0
Example
We saw earlier that for the function f (x) = x we have
2L X (1)n+1 nx
x= sin , 0 < x < L.
n L
n=1
Since f (0) = 0 6= f (L) = L we cant expect term-by-term differentiation
to yield f 0 (x) (and we observed this in the earlier example).
However, (6) does provide the expected (and correct) answer
0 1 X n 2 n nx
f (x) [f (L) f (0)] + Bn + [(1) f (L) f (0)] cos
L L L L
n=1
X n 2L(1)n+1 2
1 nx
= [L 0] + + [(1)n L 0] cos
L L n L L
n=1
h
X i nx
= 1+ 2(1)n+1 + 2(1)n cos =1
| {z } L
n=1
=0
Remark
The main advantage of taking this different point of view is that it can
be applied to nonhomogeneous problems as well (see HW 3.4.9 and
3.4.12).
Example
Lets once more solve the 1D heat equation
u 2u
= k 2, 0 < x < L, t > 0
t x
u(0, t) = u(L, t) = 0
u(x, 0) = f (x).
Example
Lets once more solve the 1D heat equation
u 2u
= k 2, 0 < x < L, t > 0
t x
u(0, t) = u(L, t) = 0
u(x, 0) = f (x).
Example
Lets once more solve the 1D heat equation
u 2u
= k 2, 0 < x < L, t > 0
t x
u(0, t) = u(L, t) = 0
u(x, 0) = f (x).
Example
Lets once more solve the 1D heat equation
u 2u
= k 2, 0 < x < L, t > 0
t x
u(0, t) = u(L, t) = 0
u(x, 0) = f (x).
Example (cont.)
The first thing to do is to enforce the initial condition u(x, 0) = f (x), i.e.,
X nx
f (x) Bn (0) sin
L
n=1
with Z L
2 nx
Bn (0) = f (x) sin dx, n = 1, 2, 3, . . .
L 0 L
Example (cont.)
The first thing to do is to enforce the initial condition u(x, 0) = f (x), i.e.,
X nx
f (x) Bn (0) sin
L
n=1
with Z L
2 nx
Bn (0) = f (x) sin dx, n = 1, 2, 3, . . .
L 0 L
Remark
Note that now we are approaching the problem from a different angle,
and so we dont know yet whether u satisfies the heat equation.
Example (cont.)
To check whether u satisfies the heat equation we compute all the
required partial derivatives using term-by-term differentiation:
Example (cont.)
To check whether u satisfies the heat equation we compute all the
required partial derivatives using term-by-term differentiation:
X nx
u(x, t) Bn (t) sin
L
n=1
Example (cont.)
To check whether u satisfies the heat equation we compute all the
required partial derivatives using term-by-term differentiation:
X nx
u(x, t) Bn (t) sin
L
n=1
u X n nx
= (x, t) Bn (t) cos (7)
x L L
n=1
Example (cont.)
To check whether u satisfies the heat equation we compute all the
required partial derivatives using term-by-term differentiation:
X nx
u(x, t) Bn (t) sin
L
n=1
u X n nx
= (x, t) Bn (t) cos (7)
x L L
n=1
2u X n 2 nx
= (x, t) Bn (t) sin (8)
x 2 L L
n=1
Example (cont.)
To check whether u satisfies the heat equation we compute all the
required partial derivatives using term-by-term differentiation:
X nx
u(x, t) Bn (t) sin
L
n=1
u X n nx
= (x, t) Bn (t) cos (7)
x L L
n=1
2u X n 2 nx
= (x, t) Bn (t) sin (8)
x 2 L L
n=1
u X nx
and (x, t) Bn0 (t) sin (9)
t L
n=1
Example (cont.)
Were all of these differentiations justified?
Example (cont.)
Were all of these differentiations justified?
(7) was OK since we differentiated the sine series of a continuous
function (for fixed t) which satisfies u(0, t) = u(L, t) = 0.
Example (cont.)
Were all of these differentiations justified?
(7) was OK since we differentiated the sine series of a continuous
function (for fixed t) which satisfies u(0, t) = u(L, t) = 0.
(8) was OK since we differentiated the cosine series of a
continuous function (for fixed t).
Example (cont.)
Were all of these differentiations justified?
(7) was OK since we differentiated the sine series of a continuous
function (for fixed t) which satisfies u(0, t) = u(L, t) = 0.
(8) was OK since we differentiated the cosine series of a
continuous function (for fixed t).
(9) was questionable. So far we have no theorem covering this
case see below.
Example (cont.)
Using (8) and (9), u satisfies the heat equation if
X nx X n 2 nx
Bn0 (t) sin =k Bn (t) sin .
L L L
n=1 n=1
Example (cont.)
Using (8) and (9), u satisfies the heat equation if
X nx X n 2 nx
Bn0 (t) sin =k Bn (t) sin .
L L L
n=1 n=1
Example (cont.)
Using (8) and (9), u satisfies the heat equation if
X nx X n 2 nx
Bn0 (t) sin =k Bn (t) sin .
L L L
n=1 n=1
Example (cont.)
Using (8) and (9), u satisfies the heat equation if
X nx X n 2 nx
Bn0 (t) sin =k Bn (t) sin .
L L L
n=1 n=1
We close the section with the theorem that justifies the derivation of (9)
above.
We close the section with the theorem that justifies the derivation of (9)
above.
Theorem
If u = u(x, t) is a continuous function of t with time-dependent Fourier
series
h
X nx nx i
u(x, t) = a0 (t) + an (t) cos + bn (t) sin
L L
n=1
then
u Xh nx n i
(x, t) = a00 (t) + an0 (t) cos + bn0 (t) sin
t L L
n=1
u
provided t is piecewise smooth.
Outline
Theorem
The Fourier series of a piecewise smooth function f can always be
integrated term-by-term.
Theorem
The Fourier series of a piecewise smooth function f can always be
integrated term-by-term.
Moreover, the result is a continuous infinite series (but not necessarily
a Fourier series) which converges to the integral of f on the interval
[L, L],
Theorem
The Fourier series of a piecewise smooth function f can always be
integrated term-by-term.
Moreover, the result is a continuous infinite series (but not necessarily
a Fourier series) which converges to the integral of f on the interval
[L, L], i.e., if f has the Fourier series
h
X nx nx i
f (x) a0 + an cos + bn sin , L x L
L L
n=1
Remark
The integrals in the theorem need not be from L to x.
Remark
The integrals in the theorem need not be from L to x.
They can also be from a to b, a, b [L, L], since we can always write
Z b
... =
a
Remark
The integrals in the theorem need not be from L to x.
They can also be from a to b, a, b [L, L], since we can always write
Z b Z L Z b
... = ... + ...
a a L
Remark
The integrals in the theorem need not be from L to x.
They can also be from a to b, a, b [L, L], since we can always write
Z b Z L Z b Z a Z b
... = ... + ... = ... + ...,
a a L L L
and the latter two integrals are covered by the formula in the theorem.
nt x
Z x
nt L L nx
cos dt = sin = sin
L L n L L n L
nt x
Z x
nt L L nx
cos dt = sin = sin
L L n L L n L
Z x x
nt L nt L nx
sin dt = cos = cos n cos
L L n L n L L
nt x
Z x
nt L L nx
cos dt = sin = sin
L L n L L n L
Z x x
nt L nt L nx
sin dt = cos = cos n cos
L L n L n L L
This shows that the coefficients in formula (10) indeed are likely
candidates for term-by-term integration of the Fourier series.
Proof.
We begin by defining the function F as
Z x
F (x) = f (t) dt.
L
Proof.
We begin by defining the function F as
Z x
F (x) = f (t) dt.
L
Proof.
We begin by defining the function F as
Z x
F (x) = f (t) dt.
L
Proof.
We begin by defining the function F as
Z x
F (x) = f (t) dt.
L
Proof.
We begin by defining the function F as
Z x
F (x) = f (t) dt.
L
Proof.
We begin by defining the function F as
Z x
F (x) = f (t) dt.
L
Proof.
We begin by defining the function F as
Z x
F (x) = f (t) dt.
L
Proof (cont.)
Rx
In addition to F (x) = L f (t) dt we
now also define
H(x) = a0 (x + L)
and
Proof (cont.)
Rx
In addition to F (x) = L f (t) dt we
now also define
H(x) = a0 (x + L)
and
Proof (cont.)
Rx
In addition to F (x) = L f (t) dt we
now also define
H(x) = a0 (x + L)
and
Proof (cont.)
Rx
In addition to F (x) = L f (t) dt we
now also define
H(x) = a0 (x + L)
and
Proof (cont.)
Lets write the Fourier series of G in the form
h
X nx nx i
G(x) = A0 + An cos + Bn sin
L L
n=1
Proof (cont.)
Z L
1 nx
An = [F (x) a0 (x + L)] cos dx
L L L
Proof (cont.)
Z L
1 nx
An = [F (x) a0 (x + L)] cos
dx
L L L
1 L 1 L
Z Z
nx nx
= [F (x) a0 L] cos dx a0 x cos dx
L L L L L L
Proof (cont.)
Z L
1 nx
An = [F (x) a0 (x + L)] cos dx
L L L
Z L Z L
1 nx 1 nx
= [F (x) a0 L] cos dx a0 x cos dx
L L | {z } | {z L } L L L
=u, du=f (x)dx L nx
| {z }
=dv , v = n sin L =0, odd
Proof (cont.)
Z L
1 nx
An = [F (x) a0 (x + L)] cos dx
L L L
Z L Z L
1 nx 1 nx
= [F (x) a0 L] cos dx a0 x cos dx
L L | {z } | {z L } L L L
=u, du=f (x)dx L nx
| {z }
=dv , v = n sin L =0, odd
" #
nx L
Z L
1 L L nx
= (F (x) a0 L) sin f (x) sin dx
L n L L n L L
Proof (cont.)
Z L
1 nx
An = [F (x) a0 (x + L)] cos dx
L L L
Z L Z L
1 nx 1 nx
= [F (x) a0 L] cos dx a0 x cos dx
L L | {z } | {z L } L L L
=u, du=f (x)dx L nx
| {z }
=dv , v = n sin L =0, odd
" L Z L #
1 L nx L nx
= (F (x) a0 L) sin f (x) sin dx
L n | {zL } n L L
L | {z }
0 =Lbn
Proof (cont.)
Z L
1 nx
An = [F (x) a0 (x + L)] cos dx
L L L
Z L Z L
1 nx 1 nx
= [F (x) a0 L] cos dx a0 x cos dx
L L | {z } | {z L } L L L
=u, du=f (x)dx L nx
| {z }
=dv , v = n sin L =0, odd
" L Z L #
1 L nx L nx
= (F (x) a0 L) sin f (x) sin dx
L n | {zL } n L L
L | {z }
0 =Lbn
L
= bn
n
Proof (cont.)
Z L
1 nx
An = [F (x) a0 (x + L)] cos dx
L L L
Z L Z L
1 nx 1 nx
= [F (x) a0 L] cos dx a0 x cos dx
L L | {z } | {z L } L L L
=u, du=f (x)dx L nx
| {z }
=dv , v = n sin L =0, odd
" L Z L #
1 L nx L nx
= (F (x) a0 L) sin f (x) sin dx
L n | {zL } n L L
L | {z }
0 =Lbn
L
= bn
n
L
Bn = an is computed similarly (see HW 3.5.5)
n
fasshauer@iit.edu MATH 461 Chapter 3 87
Integration of Fourier Series
Proof (cont.)
To compute A0 we note that
X nL nL
G(L) = A0 + An cos + Bn sin
L L
n=1
Proof (cont.)
To compute A0 we note that
" #
X nL nL
G(L) = A0 + An cos + Bn sin
L | {zL }
n=1
=0
Proof (cont.)
To compute A0 we note that
" #
X nL nL
0 = G(L) = A0 + An cos + Bn sin
L | {zL }
n=1
=0
Proof (cont.)
To compute A0 we note that
" #
X nL nL
0 = G(L) = A0 + An cos + Bn sin
L | {zL }
n=1
=0
Therefore
X
A0 = An cos n
n=1
Proof (cont.)
To compute A0 we note that
" #
X nL nL
0 = G(L) = A0 + An cos + Bn sin
L | {zL }
n=1
=0
Therefore
X X L
A0 = An cos n = bn cos n.
n
n=1 n=1
Proof (cont.)
To compute A0 we note that
" #
X nL nL
0 = G(L) = A0 + An cos + Bn sin
L | {zL }
n=1
=0
Therefore
X X L
A0 = An cos n = bn cos n.
n
n=1 n=1
Putting everything together we get
Example
Integrate the following Fourier cosine series (see (4)) from 0 to x:
L 4L X 1 (2k 1)x
x= 2 2
cos
2 (2k 1) L
k =1
Example
Integrate the following Fourier cosine series (see (4)) from 0 to x:
L 4L X 1 (2k 1)x
x= 2 2
cos
2 (2k 1) L
k =1
Solution
We immediately have
x
x2
Z
t dt =
0 2
and Z x
L Lx
dt =
0 2 2
Solution (cont.)
The remaining part becomes
x
x
(2k 1)t 4L2 X (2k 1)t
Z
4L X 1 1
cos dt = 3 sin
2 (2k 1)2 L (2k 1)3 L
k =1 0 k =1
0
Solution (cont.)
The remaining part becomes
x
x
(2k 1)t 4L2 X (2k 1)t
Z
4L X 1 1
cos dt = 3 sin
2 (2k 1)2 L (2k 1)3 L
k =1 0 k =1
0
2 X
4L 1 (2k 1)x
= sin
3 (2k 1)3 L
k =1
Solution (cont.)
The remaining part becomes
x
x
(2k 1)t 4L2 X (2k 1)t
Z
4L X 1 1
cos dt = 3 sin
2 (2k 1)2 L (2k 1)3 L
k =1 0 k =1
0
2 X
4L 1 (2k 1)x
= sin
3 (2k 1)3 L
k =1
Solution (cont.)
The remaining part becomes
x
x
(2k 1)t 4L2 X (2k 1)t
Z
4L X 1 1
cos dt = 3 sin
2 (2k 1)2 L (2k 1)3 L
k =1 0 k =1
0
2 X
4L 1 (2k 1)x
= sin
3 (2k 1)3 L
k =1
Solution (cont.)
The remaining part becomes
x
x
(2k 1)t 4L2 X (2k 1)t
Z
4L X 1 1
cos dt = 3 sin
2 (2k 1)2 L (2k 1)3 L
k =1 0 k =1
0
2 X
4L 1 (2k 1)x
= sin
3 (2k 1)3 L
k =1
Note that this is in agreement with the statement of the theorem. Due
to the presence of the linear term Lx this is not a Fourier (sine) series.
Solution (cont.)
We can interpret
2 8L2 X 1 (2k 1)x
x = Lx 3 3
sin
(2k 1) L
k =1
Solution (cont.)
We can interpret
2 8L2 X 1 (2k 1)x
x = Lx 3 3
sin
(2k 1) L
k =1
8L2 X 1 (2k 1)x
Lx x 2 = 3 3
sin
(2k 1) L
k =1
Solution (cont.)
We can interpret
2 8L2 X 1 (2k 1)x
x = Lx 3 3
sin
(2k 1) L
k =1
8L2 X 1 (2k 1)x
Lx x 2 = 3 3
sin
(2k 1) L
k =1
Example
Use the fact established earlier (see (5)) that
4X 1 (2k 1)x
1= sin , 0<x <L
2k 1 L
k =1
to show that
X 1 1 1 2
= 1 + + + . . . = .
(2k 1)2 32 52 8
k =1
Solution
The main idea is to integrate the given identity from 0 to x.
Solution
The main idea is to integrate the given identity from 0 to x. For the
left-hand side we have Z x
1 dt = x,
0
Solution
The main idea is to integrate the given identity from 0 to x. For the
left-hand side we have Z x
1 dt = x,
0
while the right-hand side is
x
(2k 1)t
Z
4X 1
sin dt
0 2k 1 L
k =1
Solution
The main idea is to integrate the given identity from 0 to x. For the
left-hand side we have Z x
1 dt = x,
0
while the right-hand side is
x Z x
(2k 1)t (2k 1)t
Z
4X 1 4X 1
sin dt = sin dt
0 2k 1 L 2k 1 0 L
k =1 k =1
Solution
The main idea is to integrate the given identity from 0 to x. For the
left-hand side we have Z x
1 dt = x,
0
while the right-hand side is
x Z x
(2k 1)t (2k 1)t
Z
4X 1 4X 1
sin dt = sin dt
0 2k 1 L 2k 1 0 L
k =1 k =1
x
4L X 1 (2k 1)t
= 2 cos
(2k 1)2 L
0
k =1
Solution
The main idea is to integrate the given identity from 0 to x. For the
left-hand side we have Z x
1 dt = x,
0
while the right-hand side is
x Z x
(2k 1)t (2k 1)t
Z
4X 1 4X 1
sin dt = sin dt
0 2k 1 L 2k 1 0 L
k =1 k =1
x
4L X 1 (2k 1)t
= 2 cos
(2k 1)2 L
0
k =1
4L X 1 1 (2k 1)x
= 2 2
2
cos
(2k 1) (2k 1) L
k =1
Solution (cont.)
Therefore, splitting into two series,
4L X 1 4L X 1 (2k 1)x
x= 2 2
2 2
cos .
(2k 1) (2k 1) L
k =1 k =1
Solution (cont.)
Therefore, splitting into two series,
4L X 1 4L X 1 (2k 1)x
x= 2 2
2 2
cos .
(2k 1) (2k 1) L
k =1 k =1
Solution (cont.)
Therefore, splitting into two series,
4L X 1 4L X 1 (2k 1)x
x= 2 2
2 2
cos .
(2k 1) (2k 1) L
k =1 k =1
Solution (cont.)
Therefore, splitting into two series,
4L X 1 4L X 1 (2k 1)x
x= 2 2
2 2
cos .
(2k 1) (2k 1) L
k =1 k =1
Solution (cont.)
Therefore, splitting into two series,
4L X 1 4L X 1 (2k 1)x
x= 2 2
2 2
cos .
(2k 1) (2k 1) L
k =1 k =1
Solution (cont.)
Therefore, splitting into two series,
4L X 1 4L X 1 (2k 1)x
x= 2 2
2 2
cos .
(2k 1) (2k 1) L
k =1 k =1
Solution (cont.)
Therefore, splitting into two series,
4L X 1 4L X 1 (2k 1)x
x= 2 2
2 2
cos .
(2k 1) (2k 1) L
k =1 k =1
Solution (cont.)
Alternatively, we could have evaluated the series expansion
4L X 1 4L X 1 (2k 1)x
x= 2 2
2 2
cos
(2k 1) (2k 1) L
k =1 k =1
Solution (cont.)
Alternatively, we could have evaluated the series expansion
4L X 1 4L X 1 (2k 1)x
x= 2 2
2 2
cos
(2k 1) (2k 1) L
k =1 k =1
4L X 1 4L X 1 (2k 1)L
L = cos
2 (2k 1)2 2 (2k 1)2 L
k =1 k =1
Solution (cont.)
Alternatively, we could have evaluated the series expansion
4L X 1 4L X 1 (2k 1)x
x= 2 2
2 2
cos
(2k 1) (2k 1) L
k =1 k =1
4L X 1 4L X 1 (2k 1)L
L = cos
2 (2k 1)2 2 (2k 1)2 L
k =1 k =1
4L X 1 4L X 1
= 2 cos(2k 1)
2 (2k 1)2 (2k 1)2 | {z }
k =1 k =1
=1
Solution (cont.)
Alternatively, we could have evaluated the series expansion
4L X 1 4L X 1 (2k 1)x
x= 2 2
2 2
cos
(2k 1) (2k 1) L
k =1 k =1
4L X 1 4L X 1 (2k 1)L
L = cos
2 (2k 1)2 2 (2k 1)2 L
k =1 k =1
4L X 1 4L X 1
= 2 cos(2k 1)
2 (2k 1)2 (2k 1)2 | {z }
k =1 k =1
=1
so that
4L X 1 X 1 2
L=2 2
= .
(2k 1)2 (2k 1)2 8
k =1 k =1
Solution (cont.)
L
For x = 2 we get
L 4L X 1 4L X 1 (2k 1) L2
= cos
2 2 (2k 1)2 2 (2k 1)2 L
k =1 k =1
Solution (cont.)
L
For x = 2 we get
L 4L X 1 4L X 1 (2k 1) L2
= cos
2 2 (2k 1)2 2 (2k 1)2 L
k =1 k =1
4L X 1 4L X 1
= 2 cos(2k 1)
2 (2k 1)2 (2k 1)2 | 2}
k =1 k =1 {z
=0
Solution (cont.)
L
For x = 2 we get
L 4L X 1 4L X 1 (2k 1) L2
= cos
2 2 (2k 1)2 2 (2k 1)2 L
k =1 k =1
4L X 1 4L X 1
= 2 cos(2k 1)
2 (2k 1)2 (2k 1)2 | 2}
k =1 k =1 {z
=0
so that
L 4L X 1 X 1 2
= 2 = .
2 (2k 1)2 (2k 1)2 8
k =1 k =1
Example
The Basel problem, first proved by
Leonhard Euler in 1735:
Example
The Basel problem, first proved by
Leonhard Euler in 1735:
X 1 2
=
n2 6
n=1
Example
The Basel problem, first proved by
Leonhard Euler in 1735:
X 1 2
=
n2 6
n=1
Example
The Basel problem, first proved by
Leonhard Euler in 1735:
X 1 2
=
n2 6
n=1
at x = L.
Outline
ei = cos i sin ,
and so
ei + ei
cos =
2
ei ei
sin = .
2i
as
nx nx nx nx
" #
X ei L + ei L ei L ei L
f (x) a0 + an + bn
2 2i
n=1
as
nx nx
nx nx
" #
+ ei L
X ei ei L ei L
L
f (x) a0 + an + bn
2 2i
n=1
1X bn i nx bn i nx
= a0 + an + e L + an e L
2 i i
n=1
1
We break this into two series and use i = i to arrive at
1X nx 1X nx
f (x) a0 + (an ibn ) ei L + (an + ibn ) ei L
2 2
n=1 n=1
1
We break this into two series and use i = i to arrive at
1X nx 1X nx
f (x) a0 + (an ibn ) ei L + (an + ibn ) ei L
2 2
n=1 n=1
1
We break this into two series and use i = i to arrive at
1X nx 1X nx
f (x) a0 + (an ibn ) ei L + (an + ibn ) ei L
2 2
n=1 n=1
1
We break this into two series and use i = i to arrive at
1X nx 1X nx
f (x) a0 + (an ibn ) ei L + (an + ibn ) ei L
2 2
n=1 n=1
1
We break this into two series and use i = i to arrive at
1X nx 1X nx
f (x) a0 + (an ibn ) ei L + (an + ibn ) ei L
2 2
n=1 n=1
1
We break this into two series and use i = i to arrive at
1X nx 1X nx
f (x) a0 + (an ibn ) ei L + (an + ibn ) ei L
2 2
n=1 n=1
and
an + ibn
cn =
2
and
an + ibn
cn =
2
" #
Z L Z L
1 nx nx
= f (x) cos dx + i f (x) sin dx
2L L L L L
and
an + ibn
cn =
2
" #
Z L Z L
1 nx nx
= f (x) cos dx + i f (x) sin dx
2L L L L L
Z L
1 h nx nx i
= f (x) cos + i sin dx
2L L L L
and
an + ibn
cn =
2
" #
Z L Z L
1 nx nx
= f (x) cos dx + i f (x) sin dx
2L L L L L
Z L
1 h nx nx i
= f (x) cos + i sin dx
2L L L L
Z L
1 nx
= f (x)ei L dx
2L L
and
an + ibn
cn =
2
" #
Z L Z L
1 nx nx
= f (x) cos dx + i f (x) sin dx
2L L L L L
Z L
1 h nx nx i
= f (x) cos + i sin dx
2L L L L
Z L
1 nx
= f (x)ei L dx
2L L
Note that this formula also gives the correct value for c0 .
and
an + ibn
cn =
2
" #
Z L Z L
1 nx nx
= f (x) cos dx + i f (x) sin dx
2L L L L L
Z L
1 h nx nx i
= f (x) cos + i sin dx
2L L L L
Z L
1 nx
= f (x)ei L dx
2L L
Note that this formula also gives the correct value for c0 .
Remark
Sometimes the formula for the Fourier coefficients cn is referred to as
the finite Fourier transform of f .
References I