496
Chapter
10.
More about
finite
element methods
which
is the
ordinary eigenvalue problem
for the
matrix
M
1
K.
However, this
transformation
has
several drawbacks,
not the
least
of
which
is
that
M
-1
K
will
usually
not be
symmetric even
if
both
K and M are
symmetric. (The reader should
recall
that
symmetric matrices have many special properties with respect
to the
eigenvalue problem: real eigenvalues, orthogonal eigenvectors, etc.)
The
preferred method
for
converting
Ku
=
AMu
into
an
ordinary eigenvalue
problem uses
the
Cholesky factorization
.
Every
SPD
matrix
can be
written
as
the
product
of a
nonsingular
lower triangular matrix times
its
transpose.
The
mass matrix, being
a
Gram matrix,
is SPD
(see Exercise 10.2.6),
so
there exists
a
nonsingular lower triangular matrix
L
such
that
M =
LL
T
.
We can
then rewrite
the
problem
as
follows:
This
is an
ordinary eigenvalue problem
for A, and A is
symmetric because
K is.
This
shows
that
the
generalized eigenvalue problem
Ku = AMu has
real eigenval-
ues.
The
eigenvectors corresponding
to
distinct eigenvalues
are
orthogonal when
expressed
in the
transformed variable
x, but not
necessarily
in the
original variable
u.
However, given distinct eigenvalues
A and
//
and
corresponding eigenvectors
u
and v, the
piecewise linear
function
Uh
and
Vh
with nodal values given
by u and v
are
orthogonal
in the
L
2
norm (see Exercise
1).
There
is a
drawback
to
using
the
above method
for
converting
the
generalized
eigenvalue problem
to an
ordinary one: There
is no
reason
why A
should
be
sparse,
even
though
K and M are
sparse.
For
this reason,
the
most
efficient
algorithms
for
the
generalized eigenvalue problem
treat
the
problem directly instead
of
using
the
above transformation. However,
the
transformation
is
useful
if one has
access only
to
software
for the
ordinary eigenvalue problem.
Example
10.4.
We
will
estimate
the
smallest eigenvalue
and the
corresponding
eigenfunction
of
the
negative Laplacian
(subject
to
Dirichlet conditions)
on the
unit
square
fi. The
reader
will
recall
that
the
exact
eigenpair
is
We
establish
a
regular
mesh
on
£),
with
2n
2
triangles,
(n+1)
2
nodes,
and
(n—I)
2
free
nodes.
We
compute
the
stiffness
matrix
K and the
mass matrix
M, and
solve
the
generalized
eigenvalue problem using
the
function
eig
from
MATLAB.
The
results,
for
various values
ofn,
are
shown
in
Table
10.3.
The
reader
should
notice that
the
eigenvalue
estimate
is
converging
faster than
the
eigenfunction
estimate.
This
is
typical.
As the
results suggest,
the
error
in the
eigenvalue
is
O(h
2
),
while
the
error
in the
eigenfunction
is
O(h)
(measured
in the
energy
norm).
496
Chapter 10. More
about
finite element methods
which is the ordinary eigenvalue problem for the matrix
M-1K.
However, this
transformation has several drawbacks, not the least of which is
that
M-
1
K will
usually not be symmetric even if
both
K and M are symmetric. (The reader should
recall
that
symmetric matrices have many special properties with respect
to
the
eigenvalue problem: real eigenvalues, orthogonal eigenvectors, etc.)
The preferred method for converting
Ku
=
.AMu
into an ordinary eigenvalue
problem uses
the
Cholesky factorization. Every SPD matrix can be written as
the
product of a nonsingular lower triangular matrix times its transpose. The
mass matrix, being a Gram matrix,
is
SPD (see Exercise 10.2.6),
so
there exists a
nonsingular lower triangular matrix
L such
that
M = LLT.
We
can then rewrite
the
problem as follows:
Ku=.AMu
:::}
Ku
=
.ALLT
U
:::}
L
-lKu
=
.ALT
u
:::}
L
-lKL
-T
(LT
u)
=
.A
(LT u)
:::}
Ax
=
.Ax,
A = L
-lKL
-T,
x = LT
u.
This
is
an
ordinary eigenvalue problem for
A,
and A
is
symmetric because K is.
This shows
that
the generalized eigenvalue problem
Ku
=
.AMu
has real eigenval-
ues. The eigenvectors corresponding
to
distinct eigenvalues are orthogonal when
expressed in the transformed variable
x,
but
not necessarily in
the
original variable
u.
However, given distinct eigenvalues
.A
and
J.1.
and corresponding eigenvectors u
and v, the piecewise linear function
Uh
and
Vh
with nodal values given by u and v
are orthogonal in the
L2
norm (see Exercise 1).
There
is
a drawback to using
the
above method for converting the generalized
eigenvalue problem
to
an ordinary one: There
is
no reason why A should be sparse,
even though K and M are sparse. For this reason, the most efficient algorithms for
the
generalized eigenvalue problem
treat
the problem directly instead of using the
above transformation. However,
the
transformation
is
useful if one has access only
to
software for the ordinary eigenvalue problem.
Example
10.4.
We
will estimate the smallest eigenvalue and the corresponding
eigenfunction
of
the negative Laplacian (subject to Dirichlet conditions) on the
unit
square
n.
The reader will recall
that
the exact eigenpair is
We
establish a regular
mesh
on
n,
with
2n
2
triangles, (n+1)2 nodes,
and
(n-1)2
free
nodes. We compute the stiffness
matrix
K and the mass
matrix
M,
and solve the
genemlized eigenvalue problem using the
function
eig
from
MATLAB.
The results,
for various values
of
n,
are shown
in
Table 10.B. The reader should notice
that
the
eigenvalue estimate is converging faster
than
the eigenfunction estimate. This is
typical.
As
the results suggest, the error
in
the eigenvalue is
O(h
2
),
while the error
in
the eigenfunction is
O(h)
(measured
in
the energy
norm).