9.2.
Fourier
series
and the FFT
401
9.2
Fourier
series
and the FFT
We
now
show
that
there
is a
very
efficient
way to
estimate Fourier
coefficients
and
evaluate (partial) Fourier series.
We
will
use the BVP
as our first
example.
To
solve this
by the
method
of
Fourier series,
we
express
u
and
/ in
complex Fourier series,
say
(c
n
,
n
=
0, ±1,
±2,...
unknown)
and
(d
n
,n
=
0,±l,±2,...
known).
The
differential
equation
can
then
be
written
as
and we
obtain
The
reader
will
notice
the
similarity
to how the
problem
was
solved
in
Section
6.3.2. (The calculations, however,
are
simpler when using
the
complex Fourier
series
instead
of the
full
Fourier series.)
As in
Section 6.3.2,
the
coefficient
do
must
be
zero,
that
is,
must hold,
in
order
for a
solution
to
exist. When this compatibility condition holds,
the
value
of
CQ
is not
determined
by the
equation
and
infinitely
many solutions exist,
differing
only
in the
choice
of
c
0
.
For
analytic purposes,
the
formula
(9.6)
may be all we
need.
For
example,
as
we
discuss
in
Section 9.5.1, (9.6) shows
that
the
solution
u is
considerably smoother
than
the
forcing
function
/
(since
the
Fourier
coefficients
of u
decay
to
zero faster
than
those
of
/).
However,
in
many
cases,
we
want
to
produce
a
numerical
estimate
of
the
solution
u. We may
wish,
for
example,
to
estimate
the
values
of u on a
grid
so
that
we can
graph
the
solution accurately. This requires three steps:
9.2. Fourier series and
the
FFT
401
9.2 Fourier
series
and
the FFT
We
now show
that
there
is
a very efficient way
to
estimate Fourier coefficients
and
evaluate (partial) Fourier series.
We
will use the
BVP
cf2u
-K,-
=
f(x)
-£
< x < £
dx
2
,-
,
u(
-e)
=
u(£),
(9.4)
du(_£) = du(£)
dx dx
as our first example. To solve this by the method of Fourier series,
we
express u
and f in complex Fourier series, say
00
u(x) =
n=-oo
(en,
n =
0,
±1, ±2,
...
unknown) and
00
f(x)
= L
dnei7rnx/f
n=~oo
(d
n
,
n =
0,
±1, ±2,
...
known). The differential equation can
then
be written as
00
22
00
'""'
K,n
1f
c
ei7rnx/f
=
'""'
d
ei7rnx/f
~
£2
n
~n,
(9.5)
n=-oo
n=-oo
and
we
obtain
(9.6)
The reader will notice the similarity to how
the
problem was solved in Section
6.3.2. (The calculations, however, are simpler when using
the
complex Fourier
series instead of
the
full Fourier series.) As in Section 6.3.2,
the
coefficient
do
must
be zero,
that
is,
1
f
f(x)
dx = 0
~f
must hold, in order for a solution
to
exist. When this compatibility condition holds,
the
value of
Co
is not determined by
the
equation and infinitely many solutions exist,
differing only in the choice of
Co.
For analytic purposes, the formula (9.6) may
be
all
we
need. For example, as
we
discuss in Section 9.5.1, (9.6) shows
that
the
solution u is considerably smoother
than
the forcing function f (since the Fourier coefficients of u decay
to
zero faster
than
those of
f).
However, in many cases,
we
want
to
produce a numerical estimate
of the solution
u.
We
may wish, for example, to estimate the values of u on a grid
so
that
we
can graph the solution accurately. This requires three steps: