8.4 Method of Weighted Residuals 529
The approximation is better, the smaller R is. In general, R is a function of space.
The strategy is to analyze appropriately chosen averages of R in order to determine
criteria that allow one to find the best coefficients c
i
, such that the functions ϕ
i
in
eq. (8.109) – the so-called basis functions – yield the desired approximation. The
method of weighted residuals consists of defining at least n so-called weight
functions w
k
, whereby the mean values of the so formed integrals must vanish
when integrating over the entire volume:
.
(8.111)
If the number of basis functions is equal to the number of weight functions, then
one obtains n linearly independent equations which determine the n coefficients c
i
.
If the number of weight functions is larger, then the solution is overdetermined, and
it may be inconsistent and is initially not solvable (if, indeed, the equations are
linearly independent). In this case, as in curve fitting, the method of least squares is
employed to find the best fitting coefficients.
Various variants of this method exist. The basis and weight functions may be
identical, which leads to the Galerkin method. If the weight functions are the
eigenfunctions of the given operator and they form a complete set of basis
functions, then one obtains the usual representation of the solution by expanding
them with respect to these functions (as was presented in detail in Chapter 3). With
the exception of the Monte-Carlo method, all the numerical methods which we will
discuss subsequently can be regarded as special cases of the method of weighted
residuals.
A few specific methods shall now be described briefly.
8.4.1 Collocation Method
The δ-functions can also serve as weight functions. This has the advantage that it
makes the integration trivial, which otherwise can be difficult at times. One obtains
a system of equations, which lets the residual exactly vanish at the so-called
collocation points, however, not at all other points. Usually, the number of δ-
functions and thereby the number of collocation points is the same as the number
of basis functions. If this number is larger, it is called an overdetermined
collocation. An approximation method frequently used in field theory, the so-called
image method or method of virtual charges, is (including various generalizations
and modifications) a typical collocation method.
The procedure shall be demonstrated by means of a simple example.
Consider the one-dimensional Poisson equation
(8.112)
with Dirichlet boundary conditions
.
(8.113)
Its exact solution is easy to find
Rw
k
τd
V
∫
c
i
w
k
Lϕ
i
τd
V
∫
i 1=
n
∑
w
k
f τd
V
∫
–0==
∇
2
ux() x
2
=0x 1≤≤
u 0() u 1() 0==