
8.6 Method of Finite Differences 543
(8.161)
This represents the three-dimensional mean value theorem, eq (8.36), in discrete
form.
For the one-dimensional case we have of course
(8.162)
and for
.
(8.163)
For comparison purposes, we have already used eq (8.162) in a previous section –
eq. (8.137), , .
Writing the corresponding equation, i.e., one of eqs. (8.158) through (8.163),
depending on the kind of problem, for every internal gridpoint of a one- or two-
dimensional lattice, then one obtains a linear system of algebraic equations. For the
Laplace equation, it is homogeneous. When prescribing the potential at the
boundary, this results in a solvable inhomogeneous system of equations with a
unique solution. The number of equations is equal to the number of grid points
inside and thereby equal to the number of unknowns (that is, the potentials at the
inner gridpoints). One can prove that the coefficient matrix exhibits the necessary
properties (that is, its determinant does not vanish). This reveals that the
uniqueness theorem, proven in the potential theory for the solution of the Dirichlet
boundary value problem (Sect. 3.4.3), because of the discretization, is related to the
theorems of linear algebra.
The solution to Neumann or mixed boundary value problems is similar, but
more tedious, and will not be discussed here.
The given relations need to be adopted in case of arbitrarily shaped
boundaries, which requires to adjust the varying distances of the gridpoints from
the boundary (“boundary region formulas”), which adds to complicating matters.
This too, will be skipped here.
In any case, for all such problems, one obtains uniquely solvable systems of
linear equations. To solve a pure Neumann boundary value problem requires one to
fix a constant, for example, by prescribing the potential at a gridpoint. The results
become increasingly accurate (within certain limits) as the granularity decreases,
i.e., the smaller the lattice constant h is chosen. Of course, this increases the
computing effort as the number of unknowns increases. An advantage is thereby
that the obtained coefficient matrix is only lightly populated, that is, it consists of
mostly vanishing elements. The voluminous systems of equations can either be
solved directly (for example, by Gauss elimination, by left-right decomposition,
etc.) or by means of iteration methods (for example, Jacobi method, Gauss-Seidel
method, or the relaxation method, etc.)
ϕ
ijk,,
1
6
---
ϕ
i 1+ jk,,
ϕ
i 1– jk,,
ϕ
ij 1 k,+,
ϕ
ij 1 k,–,
ϕ
ijk 1+,,
ϕ
ijk 1–,,
+++++()≅
ϕ
i
1
2
---
ϕ
i 1+
ϕ
i 1–
+()
h
2
g
i
2
----------
+≅
g 0=
ϕ
i
1
2
---
ϕ
i 1+
ϕ
i 1–
+() ≅
h 13⁄= gx
2
–=