The diagrams solve an explicitly bounded Dirichlet problem in a uniform charge-free medium of constant permittivity. Take a width scale and terminal electric potential difference . Two zero-thickness ideal plate segments occupy at , with electric potentials . Fix on the entire rectangle , . This boundary is an additional enclosing equipotential, rather than a condition at infinity. The model is invariant along the omitted third direction. The connection between the electric potential, its gradient, and the charge-free Laplace equation follows from electrostatics.[ref]
On a square mesh of spacing , the finite difference method imposes
at free nodes, while plate and outer nodes retain their prescribed electric potentials. There are nodes. Each plotted gap aligns exactly with the mesh; the smallest gap has 16 mesh intervals. The generators solve the resulting linear system by the Conjugate gradient method, stopping when the maximum dimensionless five-point residual is below , and use central finite differences to approximate away from plate nodes.
The discrete maximum principle keeps the computed electric potential between and . Reflection checks require evenness in and oddness in ; halving tests discretization effects, while enlarging the outer rectangle tests sensitivity to its artificial boundary conditions. These are different checks: a small residual only establishes that the discrete equations were solved. Differentiating near zero-thickness endpoints is especially sensitive to the mesh, so the plots do not report a converged edge peak. No total electric charge, exact open-domain three-dimensional capacitance, or measured material property is extracted from this model.
For a bounded numerical check, compare with the plotted at midplane positions . At , the largest change in is approximately , at ; the other five sampled changes are below . At , moving the outer rectangle from to while retaining changes these samples by at most approximately . These calculated sensitivities support the qualitative comparison and expose its limits; they are not experimental uncertainties or evidence that the artificial boundary has converged to infinity.
For the square-grid nine-point finite-difference stencil for the Laplacian,
If , both displayed correction terms vanish: the mixed sixth derivatives sum to , and the pure sixth derivatives sum to the negative of that sum. Expanding two orders further yields for a smooth harmonic function. Thus the compact harmonic scheme has sixth-order normalized consistency of a numerical method and, with the discrete maximum principle inverse bound, sixth-order nodal convergence on a square with exact smooth Dirichlet boundary data. For example shows that the sixth-order term need not vanish.
On the unit square with exact Dirichlet boundary data, let and suppose the normalized residual on the exact smooth solution has supremum norm at most . The error satisfies and vanishes on the boundary. The barrier has , on the boundary, and maximum . Apply the discrete maximum principle to and , obtaining . Thus , and fourth-order residual gives fourth-order supremum norm nodal convergence. The proof needs a uniform smoothness bound and a compatible boundary discretization.
Consider on a rectangle, with prescribed Dirichlet boundary conditions, and assume initially that the solution is smooth up to the boundary. A finite difference method chooses grid values as unknowns, approximates the differential operator by a local stencil, incorporates the boundary data, and solves the resulting sparse linear system. Accuracy of a stencil by itself is insufficient: one also needs a well-posed discrete problem, a stability estimate uniform under refinement, and a sufficiently accurate algebraic solve.
For a square grid of spacing , centered second differences give the five-point Laplacian
Expanding each opposite pair in a Taylor series gives
Thus the standard equation has second-order normalized local truncation error. Known boundary values move to the right-hand side; they are not iterated as independent unknowns. Nonrectangular geometry requires a consistent boundary approximation rather than silently retaining a full interior stencil outside the domain.
The negative interior operator has positive diagonal and nonpositive off-diagonal entries. For a grid vector extended by zero on the boundary,
The edge sum includes links to the fixed boundary. Connectivity makes the matrix positive definite, proving uniqueness and providing an energy structure. The same sign pattern gives a discrete maximum principle: at a negative interior minimum, is nonpositive. If and the boundary is nonnegative, equality can only persist by propagating that minimum through all neighbors to the boundary, a contradiction. Therefore .
On the unit square, the barrier satisfies exactly. If has zero boundary values and , apply the maximum principle to to obtain
The bound is independent of , so the consistency error gives an nodal error. It also separates the algebraic residual from the discretization error: solving the linear system much less accurately than would spoil the spatial accuracy.
A direct higher-order design is possible. In one coordinate,
has fourth-order accuracy. Adding the corresponding formula in the other coordinate gives a wider stencil. Its advantages must be balanced against boundary closures, more distant couplings, and the possible loss of monotonicity. Higher order does not automatically imply a stable or geometrically convenient scheme.
The Mehrstellen method takes a different route: it uses the Poisson equation to eliminate leading truncation derivatives while keeping a compact unknown stencil. Define the nine-point finite-difference stencil
Here each sum has four terms. Equivalently . Expanding gives
The uncorrected nine-point operator is only second order for a general function. But implies . Moving this known leading defect to the source and approximating its Laplacian with gives
Indeed , and multiplication by makes that replacement's error fourth order. In explicit compact form the right-hand side is . Only known source samples, not additional distant solution unknowns, enter this correction. The corresponding unscaled stencil residual is . If , the leading term already vanishes, which explains harmonic superconvergence of the nine-point stencil.
For zero boundary data, has axial link weights and diagonal link weights . Their energy sum proves positive definiteness, and their sign pattern again proves the discrete maximum principle. The same quadratic barrier is exact for , so
For smooth solutions and accurately imposed boundary values this proves fourth-order nodal convergence of the corrected scheme. Singular corners, rough sources or low-order boundary treatment can reduce the observed rate; a formal interior expansion is not a global regularity theorem.
More generally, compact high-order schemes choose a solution stencil and a source stencil together, match their Taylor expansions, and use differentiated forms of the PDE to remove derivatives that would otherwise need a wide solution stencil. Variable coefficients require their derivatives and mixed terms to be treated consistently; the constant-coefficient identity cannot be reused unchanged for a different elliptic operator. On irregular meshes, conservation and consistent fluxes may be more useful starting points than a symmetric Cartesian formula.
Finally, discretization and solution cost are coupled. The five-point Dirichlet matrix has eigenvalues proportional to sums of squared sine frequencies, so its smallest eigenvalue stays of order one while its largest is . Its condition number grows like ; simple relaxation therefore becomes slow. Sparse direct elimination, Conjugate gradient method with appropriate matrix preconditioning, and the multigrid method are alternatives. A sound design combines local accuracy, boundary fidelity, mesh-independent stability, and an algebraic solver whose residual is small enough for the intended error tolerance.
A Mehrstellen method gains accuracy by exploiting the differential equation in the local truncation error of a compact finite difference method stencil. The extra nearby values alone do not guarantee higher order: one must also modify the source term. Consider on a square with prescribed Dirichlet boundary data, using the same spacing in both directions.
For comparison, the five-point Laplacian has expansion
Its leading error is not a multiple of , because the mixed fourth derivative is missing. To obtain an isotropic leading error, consider a symmetric nine-point finite-difference stencil with weight on each axial neighbor, on each diagonal neighbor, and on the center, all divided by . Vanishing on constants and consistency of a numerical method require and . Taylor expansion then gives the fourth-derivative contribution
For this to equal we must choose , hence , . The resulting nine-point finite-difference stencil operator is
Its expansion, retaining the next term for later use, is
Thus by itself is second order on a general function. On a Poisson equation solution, however, . Approximating this known source derivative by gives the fourth-order Mehrstellen method equation
Equivalently, its two stencils are
The normalized local truncation error is , since . If the equation is multiplied by , the row residual is ; this change of normalization does not make the solution sixth order. The fourth-order correction of the nine-point Poisson stencil retains only the closest axial and diagonal unknowns. A fourth-order one-dimensional second derivative instead uses , widening the unknown stencil and introducing negative outer weights. Mehrstellen method accuracy is obtained by correcting known source values rather than widening that unknown stencil.
The compact scheme has useful stability and solvability properties. With homogeneous Dirichlet boundary data, is symmetric, has positive diagonal and nonpositive off-diagonal entries, and is a positive definite symmetric operator. Indeed its quadratic form is a sum of positive edge weights times squared differences, with boundary values set to zero. Vanishing of this sum would force a constant on the connected grid and then zero by connection to the boundary. Consequently the Dirichlet boundary condition linear system has a unique solution. The same weights give a discrete maximum principle: if at every interior node and on the boundary, a positive maximum inside would make every weighted difference to its neighbors nonpositive. Equality forces the maximum to propagate to the boundary, which is impossible. Thus everywhere.
This also turns consistency of a numerical method into a quantitative convergence result, rather than merely suggesting an order. Let , let be the normalized residual of the exact solution, and set . Exact Dirichlet boundary data imply on the boundary and . On the unit square the quadratic barrier
has exactly, is nonnegative on the boundary, and has maximum . If , then and , while both comparison functions are nonpositive on the boundary. The discrete maximum principle proves
This is maximum-norm convergence of the corrected nine-point Poisson scheme. It requires sufficient smoothness of the solution up to the boundary for the uniform truncation bound. On other domains the source and boundary closures must retain the required accuracy; boundary singularities can invalidate a smooth-solution order estimate.
The same expansion reveals how to add still more accuracy. Differentiating gives
Thus the sixth derivatives appearing in the term can also be expressed solely through the source. With exact source derivatives,
is the sixth-order source correction of the nine-point Poisson stencil, with normalized residual . If source derivatives are replaced by differences, must be approximated through fourth order and the fourth derivatives through second order to retain that accuracy. The unknowns still occupy the same nine-point finite-difference stencil; only evaluation of known source data becomes more elaborate. The same inverse bound yields sixth-order convergence when these approximations and the boundary data have matching accuracy.
A particularly instructive case is the Laplace equation, . Both displayed error corrections automatically vanish: and , which also makes the pure sixth derivatives sum to zero. Expanding the stencil two orders further gives, for a sufficiently smooth harmonic function,
For verification, the three eighth-derivative contributions are , and . Because is a harmonic function, their sum is . The example has , so this term is genuinely present. The unmodified harmonic nine-point scheme therefore has sixth-order nodal convergence under the same smoothness and boundary assumptions. This harmonic superconvergence of the nine-point stencil is special to harmonic functions; it should not be confused with the fourth-order source-corrected scheme for general Poisson equation data.
The appeal of Mehrstellenverfahren is this combination of a compact sparse matrix, favorable discrete maximum principle properties, and high accuracy obtained by using the governing equation. The derivation also shows precisely which accuracy belongs to the operator on arbitrary functions, which belongs to its action on solutions, and which survives in the computed boundary-value solution.
Let be the sampled exact solution and let denote the update matrix of the Forward Euler diffusion scheme. For ,
is a convex combination, with the homogeneous boundary values included. Therefore
This is the parabolic discrete maximum principle and proves max-norm stability directly.
The Taylor theorem and the second-order central difference give the exact-grid residual
for a sufficiently smooth solution on a fixed interval . If , then
Iteration for yields
Thus implies convergence when the initial grid values converge to the initial data.
Let . A one-dimensional Taylor expansion gives
Adding the three coordinate directions shows that the exact solution has stencil defect
This is the local defect of the seven-point Dirichlet Laplacian. Its inverse has max-norm size : this follows from the discrete maximum principle, for example by comparison with the grid restriction of , whose stencil is . Therefore the grid error is .
The question writes this error as , so
In the more usual terminology, the finite difference method is second-order accurate.
The nine-point finite-difference stencil for the Laplacian has expansion . If , differentiating this equation gives and . Hence the corrected compact equation
has sixth-order normalized consistency of a numerical method. Source derivatives can be supplied analytically; numerical approximation of must be fourth order and of the fourth derivatives second order. With exact square-grid Dirichlet boundary data and uniformly smooth solution, the discrete maximum principle inverse bound converts this residual into sixth-order nodal convergence. The unknown stencil stays compact even if more distant known source values are used.