dimensional, there exists a basis φ
k
|
N
k=1
of the length N there. Any function
u
N
can be expanded in terms of this basis as u
N
(x) =
P
N
k=1
α
k
φ
k
with some
coefficients α
k
. The variational equation has to be satisfied for every func-
tion v
N
∈ V
N
, for example, for the functions belonging to an arbitrary basis
ψ
k
|
N
k=1
. Writing down these N equations, we get
N
X
k=1
A(φ
k
, ψ
i
)α
k
= f(ψ
i
), i = 1 . . . N. (24)
It is convenient to write these e quations as the matrix equation:
ˆ
Aˆα =
ˆ
f, where
ˆ
A
ik
= A(φ
k
, ψ
i
), ˆα
i
= α
i
,
ˆ
f
i
= f(ψ
i
). (25)
The matrix
ˆ
A is called the stiffness matrix, and the vector
ˆ
f is called the
load vector. Hence, the solution of the variational equation is reduced to the
solution of the linear system of the algebraic equations (25). We remind that
due to the Lax-Milgram lemma, the solution of this system always exists and
is unique.
It is very imp ortant to note that the existence and uniqueness of the
solution of the discrete problem do not guarantee the convergence of this
solution to the exact one when N → ∞. Let us consider the following
Example 2. We are looking for the solution of the ordinary differential
equation on the interval [0, 1]:
−
d
2
d
2
x
u(x) = 2 (26)
among the functions in H
1
0
([0, 1]). As the problem is symmetric, we can use
the Ritz method. As the sequence of the finite dimensional spaces, we choose
the linear hulls of the functions φ
k
(x) = sin (2πkx) which belong to H
1
0
([0, 1]).
Any function from v
N
∈ V
N
can be represented as a linear combination
v
N
(x) =
P
N
k=1
α
k
φ
k
(x). In order to find the expansion coefficients α
k
, we
should minimize the following functional:
J(v
N
) =
1
2
Z
1
0
(v
0
N
(x))
2
dx −
Z
1
0
2
N
X
k=1
α
k
φ
k
dx. (27)
18