with boundary conditions given by
The Laplace difference equation is equivalent to the discrete mean value property
Umn=.25*(Um-1,n+Um,n-1+Um+1,n+Um,n+1)
which states that the solution value at (m,n) is the average of the solution values at the four compass-point neighbor grid points.The mean value property motivates a method for solving the system of difference equations. Let us make an initial guess of the interior solution values of
We have chosen the initial guess on the interior to be the average of the boundary values. Next, successively apply the discrete mean value property with the aim of improving our initial guess. The Jacobi iterative method applied to this problem calls for successive estimates of Umni to be computed from iterating on i until the maximal residual value given by the maximum over m,n = 1,2,...,50 of is less than some user prescribed tolerance.