3.6. Preview
of
methods
for
solving ODEs
and
PDEs
77
(c)
The
discrete sine waves
are
orthogonal (since they
are the
eigenvectors
of
a
symmetric matrix corresponding
to
distinct eigenvalues)
and
thus
form
an
orthogonal basis
for
R
n
.
Moreover,
it can be
shown
that
every
s(^
has the
same norm:
Therefore,
I
V2hs^
l
\
^/2hs^
2
\
...,
\/2hs^
>
is an
orthonormal
basis
for
R
n
.
We
will
call
a
vector
x
e
R
n
smooth
or
rough depending
on
whether
its
components
in the
discrete sine wave basis
are
heavily weighted toward
the low or
high frequencies, respectively. Show
that
the
solution
x of
Lx
= b is
smoother
than
b.
3.6
Preview
of
methods
for
solving ODEs
and
PDEs
The
close formal relation between
the
concepts
of
linear
differential
equation
and
linear algebraic system suggests
that
ideas about linear operators might play
a
role
in
solving
the
former,
as is the
case
for the
latter.
In
order
to
make this parallel
explicit,
we
will
apply
the
machinery
of
linear algebra
in the
context
of
differential
equations: view solutions
as
vectors
in a
vector space,
identify
the
linear operators
which
define
linear
differential
equations,
and
understand
how
facts such
as the
Fredholm alternative appear
in the
context
of
differential
equations.
In the
chapters
to
follow
we
will
accomplish
all of
this.
In the
process,
we
will
develop
three general classes
of
methods
for
solving linear ODEs
and
PDEs, each
one
closely analogous
to a
method
for
solving linear algebraic systems:
1.
The
method
of
Fourier
series:
Differential
operators, like
d?/dx
2
,
can
have
eigenvalues
and
eigenfunctions;
for
example
The
method
of
Fourier series
is a
spectral method, using
the
eigenfunctions
of
the
differential operator.
2.
The
method
of
Green's
functions:
A
Green's function
for a
differential
equation
is the
solution
to a
special
form
of the
equation
(just
as
A"
1
is the
solution
to AB = /)
that
allows
one to
immediately write down
the
solution
to the
equation (just
as we
could write down
x =
A
-1
b).
3.
The
method
of finite
elements:
This
is a
direct numerical method
that
can be
used when
(1) or (2)
fails
(or is
intractable).
It can be
compared
with
Gaussian elimination,
the
standard
direct numerical method
for
solving
Ax
=
b.
Like Gaussian elimination,
finite
element methods
do not
produce
a
formula
for the
solution; however, again like Gaussian elimination, they
are
broadly applicable.
3.6. Preview
of
methods for solving
ODEs
and
PDEs
77
(c)
The
discrete sine waves are orthogonal (since they are the eigenvectors
of a symmetric matrix corresponding to distinct eigenvalues)
and
thus
form
an
orthogonal basis for Rn. Moreover,
it
can
be
shown
that
every
s(j)
has the same norm:
II
(j)
11-
1 . - 1 2
s - V2h' J - , ,
..
. ,n.
Therefore, {
V2hs(1)
,
V2hS(2),
... ,V2hs(n)} is
an
orthonormal basis for
Rn.
We
will call a vector x E Rn smooth or rough depending on whether
its components in the discrete sine wave basis are heavily weighted toward
the low or high frequencies, respectively. Show
that
the solution x of
Lx
= b
is
smoother
than
b.
3.6 Preview of methods
for
solving
ODEs
and
PDEs
The close formal relation between the concepts of linear differential equation and
linear algebraic system suggests
that
ideas about linear operators might
playa
role
in solving the former, as
is
the case for the latter. In order
to
make this parallel
explicit,
we
will apply the machinery of linear algebra in the context of differential
equations: view solutions as vectors in a vector space, identify
the
linear operators
which define linear differential equations, and understand how facts such as the
Fredholm alternative appear in
the
context of differential equations.
In
the
chapters
to
follow
we
will accomplish all of this.
In
the process,
we
will
develop three general classes of methods for solving linear ODEs and PDEs, each
one closely analogous
to
a method for solving linear algebraic systems:
1.
The
method
of
Fourier
series:
Differential operators, like d
2
/
dx
2
,
can have
eigenvalues and eigenfunctions; for example
;:2
[sin(wx)] =
_w
2
sin(wx).
The
method of Fourier series
is
a spectral method, using the eigenfunctions
of
the
differential operator.
2.
The
method
of
Green's
functions:
A Green's function for a differential
equation
is
the solution
to
a special form of
the
equation (just as
A-I
is
the
solution
to
AB
=
J)
that
allows one
to
immediately write down the solution
to
the equation (just as
we
could write down x = A
-lb).
3.
The
method
of
finite
elements:
This
is
a direct numerical method
that
can be used when (1) or (2) fails (or
is
intractable).
It
can be compared
with Gaussian elimination,
the
standard
direct numerical method for solving
Ax
=
h.
Like Gaussian elimination, finite element methods do not produce
a formula for the solution; however, again like Gaussian elimination, they are
broadly applicable.