(a) Following the development in class for Laplace's equation
, derive the equivalent differencing procedure
for solving Poisson's equation:
(where we have chosen units such that
). Show
that the Jacobi algorithm becomes
where
is the grid spacing (assumed uniform in both
and
), and
.
(b) Solve this rescaled version of Poisson's equation in the
square
,
, with
for
, and
otherwise. Apply boundary
conditions
for
,
for
. Use a
grid (
zones) to represent the
solution, and iterate until
. As indicators of the solution,
- plot
for
and
for
,
- plot the equipotential curves corresponding to
, and
, and
- construct a 2-D image representing
at
the end of the calculation. [Use linear
interpolation from the
grid to
reconstruct the continuous function
.]