14.6 Variational Methods and the Euler–Lagrange Equations 629
where λ is a numerical weight (relaxation) f actor and the central difference
operator δ
2
x
is given by (14.5.6). This general scheme allows us to approxi-
mate the wave equation with c = 1 by the form
δ
2
t
u
i,j
= ε
2
λ
δ
2
x
u
i,j+1
+ δ
2
x
u
i,j−1
+(1− 2λ) δ
2
x
u
i,j
!
, (14.5.21)
where ε = k/h. This equation reduces to (14.5.16) when λ =
1
2
, and to the
explicit finite difference result when λ =0.
It follows from von Neumann stabi lity anal ysis that the implicit scheme
is unconditionally stable for λ ≥
1
4
. Von Neumann introduced another fairly
general finite difference algorithm for the wave equation (14.4.1) in the form
δ
2
t
u
i,j
= ε
2
δ
2
x
u
i,j
+
ω
h
2
δ
2
t
δ
2
x
u
i,j
. (14.5.22)
This equation with appropriate boundary conditions can be solved by
the tridiagonal method. Von Neumann discussed the question of stability
of this implicit scheme and proved that the scheme is conditionally stable
if ω ≤
1
4
and unconditionally stable if ω>
1
4
.
14.6 Variational Methods and the Euler–Lagrange
Equations
To describe the variational methods and Rayleigh–Ritz appr oximate method,
it is convenient to introd uce the concepts of the inner product (pre-Hilbert)
and Hilbert spaces. An inner product space X consisting of elements u, v,
w, ... over the complex number field C is a complex linear space with an
inner product u, v : X ×X → C such that
(i) u, v =
v, u, where the bar denotes the complex conjugate of v,u,
(ii) αu + βv,w = α u, w + β v, w for any scalars α, β ∈ C,
(iii) u, u≥0; equality holds if and only if u =0.
By (i) u, u =
u, u,andsou, u is real. We denote u, u
1
2
= u,which
is called the norm of u. Thus, the norm is induced by the inner product.
Thus, every inner product space is a normed linear space under the norm
u =
u, u.
Let X be an inner product space. A sequence {u
n
} where u
n
∈ X for
every n is called a Cauchy sequence in X if and only if for every given ε>0
(no matter how small) we can find an N (ε) such that
u
n
− u
m
<ε for all n, m > N (ε) .
The space X is called complete if every Cauchy sequence converges to
apointinX. A complete normed linear space is called a Banach Space.A
complete linear inner product space is called a Hilbert Space and is usually
denoted by H.