5.3.
Solving
the BVP
using Fourier
series
167
when
k(x)
is
nonconstant,
it is
more
work
to find the
eigenfunctions
than
to
just
solve
the
problem using
a
different
method.
For
this reason,
we
discuss
a
more
broadly applicable method,
the finite
element method, beginning
in
Section 5.4.
and
Here
is a
summary
of the
Fourier series method
for
solving BVPs.
0.
Pose
the BVP as a
differential
operator equation.
1.
Verify
that
the
operator
is
symmetric,
and find the
eigenvalue/eigenfunction
pairs.
2.
Express
the
unknown
function
u as a
series
in
terms
of the
eigenfunctions.
The
coefficients
are the
unknowns
of the
problem.
3.
Express
the
right-hand side
/ of the
differential
equation
as a
series
in
terms
of
the
eigenfunctions.
Use the
formula
for the
projection
of /
onto
the
eigen-
functions
to
compute
the
coefficients.
4.
Express
the
left-hand side
of the
differential
equation
in a
series
in
terms
of
the
eigenfunctions. This
is
done
by
simply multiplying
the
Fourier
coefficients
of
u by the
corresponding eigenvalues.
5.
Equate
the
coefficients
in the
series
for the
left-
and
right-hand sides
of the
differential
equation,
and
solve
for the
unknowns.
As
mentioned above,
the
Fourier series method
is
analogous
to
what
we
called
(in
Section 3.5)
the
spectral method
for
solving
Ax = b.
This method
is
only
applicable
if the
matrix
A is
symmetric,
so
that
the
eigenvectors
are
orthogonal.
In
the
same way,
the
method described above
fails
at the first
step
if the
eigenfunctions
are not
orthogonal,
that
is, if the
differential
operator
is not
symmetric.
An
even more pertinent observation
is
that
one
rarely uses
the
spectral method
to
solve
Ax = 6, for the
simple reason
that
computing
the
eigenpairs
of A is
more
costly,
in
most cases, than solving
Ax = b
directly
by
other means.
It is
only
in
special cases
that
one
knows
the
eigenpairs
of a
matrix.
In the
same way,
it is
only
for
very
special
differential
operators
that
the
eigenvalues
and
eigenfunctions
can be
found.
Therefore,
the
method
of
Fourier series, which works very
well
when
it can
be
used,
is
applicable
to
only
a
small
set of
problems.
On
most problems, such
as
the BVP
5.3. Solving the BVP using Fourier
series
167
and
00
u(x) =
2:
~:
1Pn(x).
n=l
Here is a summary of
the
Fourier series method for solving BVPs.
O.
Pose
the
BVP
a.s
a differential operator equation.
1.
Verify
that
the
operator is symmetric,
and
find
the
eigenvalue/eigenfunction
pairs.
2.
Express
the
unknown function u as a series in terms of
the
eigenfunctions.
The
coefficients are
the
unknowns of
the
problem.
3. Express
the
right-hand side f of
the
differential equation
a.s
a series in terms
of
the
eigenfunctions. Use the formula for
the
projection of f onto
the
eigen-
functions
to
compute the coefficients.
4. Express
the
left-hand side of the differential equation in a series in terms of
the
eigenfunctions. This
is
done by simply multiplying
the
Fourier coefficients
of
u by
the
corresponding eigenvalues.
5.
Equate
the
coefficients in
the
series for
the
left- and right-hand sides of the
differential equation,
and
solve for
the
unknowns.
As
mentioned above,
the
Fourier series method
is
analogous
to
what
we
called
(in Section 3.5)
the
spectral method for solving
Ax
=
b.
This method is only
applicable if the matrix A is symmetric, so
that
the
eigenvectors are orthogonal. In
the
same way,
the
method described above fails
at
the
first step if
the
eigenfunctions
are not orthogonal,
that
is, if
the
differential operator is
not
symmetric.
An even more pertinent observation is
that
one rarely uses
the
spectral method
to
solve
Ax
=
b,
for
the
simple reason
that
computing
the
eigenpairs of A is more
costly, in most cases,
than
solving
Ax
= b directly by
other
means.
It
is only in
special cases
that
one knows
the
eigenpairs of a matrix. In
the
same way,
it
is only
for very special differential operators that the eigenvalues and eigenfunctions can
be
found. Therefore,
the
method of Fourier series, which works very well when
it
can
be used, is applicable
to
only a small set of problems. On most problems, such as
the
BVP
d (
dU)
-
dx
k(x)
dx
=
f(x),
0 < x <
£,
u(O)
= 0,
u(£)
= 0
when k(x) is nonconstant,
it
is
more work
to
find
the
eigenfunctions
than
to
just
solve
the
problem using a different method. For this reason,
we
discuss a more
broadly applicable method,
the
finite element method, beginning in Section 5.4.