# Using High Order Finite Differences/Preliminary Estimates
## The One-dimensional Problem
### Continuous Problem

This book is primarily concerned with finite difference approximations to the solutions of partial differential equations. However, it is both useful in itself and instructive to study the solution of some one-dimensional problems by finite differences.
Consider the meager problem to solve
$-y^{\prime \prime }(x)\;=\;f(x)$ on $a\;\leq \;x\;\leq \;b$
subject to the boundary conditions
$y(a)\;=\;y(b)\;=\;0$.
The following inequality derived next motivates the analysis of the higher-dimensional problems involving the Laplacian operator.
$\int _{a}^{b}-y(x)y^{\prime \prime }(x)dx\;=\;\mid _{a}^{b}\,-y(x)y^{\prime }(x)+\int _{a}^{b}\left\vert \,y^{\prime }(x)\,\right\vert ^{2}\,dx\;=\;\int _{a}^{b}\left\vert \,y^{\prime }(x)\,\right\vert ^{2}\,dx$
Making use of inequality that
$\int _{a}^{b}\left\vert \,y^{\prime }(x)\,\right\vert ^{2}\,dx\;\geq \;{\frac {\pi ^{2}}{(b-a)^{2}}}\int _{a}^{b}\left\vert \,y(x)\,\right\vert ^{2}\,dx$
and using the equation together with the Cauchy Schwartz inequality
$\int _{a}^{b}-y(x)y^{\prime \prime }(x)\,dx\;=\;\int _{a}^{b}y(x)f(x)\,dx\;\leq \;{\sqrt {\int _{a}^{b}\left\vert \,y(x)\,\right\vert ^{2}\,dx\;}}{\sqrt {\int _{a}^{b}\left\vert \,f(x)\,\right\vert ^{2}\,dx\;}}$.
It follows
${\frac {\pi ^{2}}{(b-a)^{2}}}\int _{a}^{b}\left\vert \,y(x)\,\right\vert ^{2}\,dx\;\leq \;{\sqrt {\int _{a}^{b}\left\vert \,y(x)\,\right\vert ^{2}\,dx\;}}{\sqrt {\int _{a}^{b}\left\vert \,f(x)\,\right\vert ^{2}\,dx\;}}$.
and that
${\sqrt {\int _{a}^{b}\left\vert \,y(x)\,\right\vert ^{2}\,dx\;}}\;\leq \;{\frac {(b-a)^{2}}{\pi ^{2}}}{\sqrt {\int _{a}^{b}\left\vert \,f(x)\,\right\vert ^{2}\,dx\;}}$.
Now, consider when $z(x)$ solves the approximate problem
$-z^{\prime \prime }(x)\;=\;g(x)$ on $a\;\leq \;x\;\leq \;b$
subject to the boundary conditions $z(a)\;=\;z(b)\;=\;0$,  with $g(x)$ near $f(x)$. Since $-(y(x)-z(x))^{\prime \prime }\;=\;(f(x)-g(x))$ ,
${\sqrt {\int _{a}^{b}\left\vert \,y(x)-z(x)\,\right\vert ^{2}\,dx\;}}\;\leq \;{\frac {(b-a)^{2}}{\pi ^{2}}}{\sqrt {\int _{a}^{b}\left\vert \,f(x)-g(x)\,\right\vert ^{2}\,dx\;}}$.
This inequality just above will be generalized to both discrete and higher dimensional analogs. This will enable the analysis of the accuracy of finite difference methods for several kinds of equations.
Another point to make is, if non-zero boundary conditions
$y(a)\;=A,\quad \;y(b)\;=\;B$,
are wanted, then
$y(x)+{\frac {(B-A)}{(b-a)}}(x-a)+A$
will solve the new problem. So there will not be a loss of generality by assuming zero boundary conditions, in most cases. In the higher dimensional case this will have the effect of separating the problem into two parts.

### Solution by Finite Differences

Return to the problem to solve from the previous section.
$-y^{\prime \prime }(x)\;=\;f(x)$ on $a\;\leq \;x\;\leq \;b$
subject to the boundary conditions
$y(a)\;=\;y(b)\;=\;0$.
This problem may be better by means other than finite differences. For example,
letting $g(x)\;=\;\int _{a}^{x}(x-t)f(t)\,dt$, and applying the rule, $g^{\prime }(x)\;=\;(x-x)f(x)+\int _{a}^{x}{\tfrac {\partial }{\partial x}}(x-t)f(t)\,dt\;=\;\int _{a}^{x}f(t)\,dt$ so that $g^{\prime \prime }(x)\;=\;f(x)$.
Then $y(x)\;=\;g(x)-{\frac {g(b)}{b-a}}(x-a)$ is a solution of the problem.
However, it will illustrate the finite difference method without being to difficult to follow, for a start. Partial differential equations can on the other hand be difficult to solve by direct analytic methods.
Begin with a partition of the interval given by
$a\;=\;x_{0}\;<\;x_{1}\;<\;x_{2}\;<\;\ldots \;<\;x_{n}\;<\;x_{n+1}\;=\;b$.
For simplicities sake, assume a uniform mesh $h\;=\;(b-a)\,/\,(n+1)$.
That is to say $x_{i}-x_{i-1}\,=\,h$ for $i\,=\,1,\;2\;,\ldots ,\;n+1$.
For the beginning approximate the second derivative by the second order accurate difference operator
${\frac {d_{h}^{2}}{d_{h}x^{2}}}y(x)\,=\,h^{-2}(y(x-h)-2\,y(x)+y(x+h))$.
Define $f_{i}\,=\,f(x_{i})$. It will be shown that there exist unique
$y_{0},\;y_{1},\;y_{2},\;,\ldots ,\;y_{n},\;y_{n+1}$ with $y_{0}\,=\,y_{n+1}\,=\,0$
that solve the equations
$-h^{-2}(y_{i-1}-2\,y_{i}+y_{i+1})\;=\;f_{i}$ for $i\,=\,1,\;2,\ldots ,\;n$.
In addition, and most importantly, the $y_{i}$ approximate $y(x)$ in the sense
${\sqrt {\textstyle \sum _{i\,=\,1}^{\,n}\left\vert \,y(x_{i})-y_{i}\,\right\vert ^{2}\;}}\;\leq \;{\sqrt {n}}\,B\,h^{2}$
for some bound $B$ independent of $h$.
At this point some clarification must be made and some notation introduced. The term finite difference operator is used for two different, but related operators. One is the difference quotient applied to the function $y(x)$, namely
${\frac {d_{h}^{2}}{d_{h}x^{2}}}y(x)\,=\,h^{-2}(y(x-h)-2\,y(x)+y(x+h))$
and the other is the linear operator
$h^{-2}(y_{i-1}-2\,y_{i}+y_{i+1})$
applied to the vector ${\vec {y}}\,=\,<y_{0}\;\,y_{1}\;\,y_{2}\;\ldots \;y_{n}\;\,y_{n+1}>$.
The notation
$({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{i}\,{\vec {y}}\,=\,h^{-2}(y_{i-1}-2\,y_{i}+y_{i+1})$
will be used to distinguish between the two. The equations can be written as
$-({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{i}\,{\vec {y}}\,=\,f_{i}$.
The linear operator $({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{I}$ is defined by
$({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{I}\,{\vec {y}}\;=\;<({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{1}\,{\vec {y}}\;\;\;({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{2}\,{\vec {y}}\;\;\ldots \;\;({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{n}\,{\vec {y}}>$.
Then $({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{I}$ can be thought of as
$({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{I}\;=\;<({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{1}\;\;({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{2}\;\;\ldots \;\;({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{n}>$.
This representation of a linear operator differs from the matrix notation usually used. This has the advantage of allowing estimates to be generalized more easily to higher order operators and two or three dimensional domains.
In fact this linear operator is well studied and has the matrix representation
${\begin{bmatrix}-2&1&0&0&\cdots &0&0&0&0\\1&-2&1&0&\cdots &0&0&0&0\\\vdots &\vdots &\ddots &\vdots &\cdots &\vdots &\vdots &\vdots &\vdots \\\vdots &\vdots &\vdots &\vdots &\ddots &\vdots &\vdots &\vdots &\vdots \\\vdots &\vdots &\vdots &\vdots &\cdots &\vdots &\ddots &\vdots &\vdots \\0&0&0&0&\cdots &0&1&-2&1\\0&0&0&0&\cdots &0&0&1&-2\\\end{bmatrix}}$,
when applied to the vector $<y_{1}\;\,y_{2}\;\,\ldots \;\,y_{n}>^{T}$.
The eigenvalues, eigenvectors, and inverse are known for this matrix, and can be found in some references. If it were just for the sake of this one introductory example the details of this matrix would be used for the analysis. As is being pointed out a method of analysis that generalizes to higher order operators and domains is being developed instead.
Finally the equations can be written as
$-({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{I}\,{\vec {y}}\,=\,{\vec {f}}$,
where the vector ${\vec {f}}\,=\,<f_{1}\;\,f_{2}\;\ldots \;f_{n}>$.
One last piece of notation, for the vector ${\vec {y}}\;=\;<y_{0}\,\;y_{1}\,\;y_{2}\,\;\,\ldots \,\;y_{n}\,\;y_{n+1}>$, the interior points of ${\vec {y}}$, denoted by ${\vec {y}}^{\,o}$, is the $n$ dimensional vector
${\vec {y}}^{\,o}\;=\;<y_{1}\,\;y_{2}\,\;\,\ldots \,\;y_{n}>$.
Restating the problem, it will be shown that there exist unique
${\vec {y}}\;=\;<y_{0}\,\;y_{1}\,\;y_{2}\,\;\,\ldots \,\;y_{n}\,\;y_{n+1}>$ with $y_{0}\,=\,y_{n+1}\,=\,0$
that solve the equation
$-({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{I}\,{\vec {y}}\,=\,{\vec {f}}$,
In addition, and most importantly, the $y_{i}$ approximate $y(x)$ in the sense
${\sqrt {\textstyle \sum _{i\,=\,1}^{\,n}\left\vert \,y(x_{i})-y_{i}\,\right\vert ^{2}\;}}\;\leq \;{\sqrt {n}}\,B\,h^{2}$
where the bound $B$ is independent of $h$ and if fact a good estimate of $B$ is
$B\;=\;M\,(\alpha _{n})^{-1}\,h^{2}$
where $M\;=\;{\tfrac {1}{12}}\;{\underset {a\;\leq \;x\;\leq \;b}{\max }}(f^{(iv)}(x))$,
$\alpha _{n}\;=\;2\,(1-\cos(\pi \,{\tfrac {1}{n+2}}))\;\to \;{\frac {\pi ^{2}}{(n+2)^{2}}}$,
and $B\;\to \;{\frac {M}{\pi ^{2}}}$.
The remainder of this section is a proof of the claim immediately above.
The proof is done by first showing that the operator $-({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{I}$ is positive definite.
In particular for $\alpha _{n}\;=\;2\,(1-\cos(\pi \,{\tfrac {1}{n+2}}))\;\to \;{\frac {\pi ^{2}}{(n+2)^{2}}}$
$-({\vec {y}}^{\,o})^{T}({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{I}\,{\vec {y}}\;\geq \;\alpha _{n}\,h^{-2}\,\lVert \,{\vec {y}}^{\,o}\,\rVert _{2}^{2}$.
To prove what is said immediately above
${\begin{aligned}-h^{2}({\vec {y}}^{\,o})^{T}({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{I}\,{\vec {y}}\;=&\;\textstyle \sum _{i\,=\,1}^{\,n}y_{i}(-y_{i-1}+2\,y_{i}-y_{i+1})\\\;=&\;-\textstyle \sum _{i\,=\,1}^{\,n}y_{i}((y_{i+1}-y_{i})-(y_{i}-y_{i-1}))\end{aligned}}$.
Rearrange summation by parts 
$\sum _{i=1}^{m}w_{i}\,(v_{i}-v_{i-1})=w_{m}\,v_{m}-w_{0}\,v_{0}-\sum _{i=0}^{m-1}v_{i}\,(w_{i+1}-w_{i})$
as
$-\sum _{i=0}^{m-1}v_{i}\,(w_{i+1}-w_{i})\;=\;-w_{m}\,v_{m}+w_{0}\,v_{0}\;+\sum _{i=1}^{m}w_{i}\,(v_{i}-v_{i-1})$
Now, let $m\;=\;n+1$ to get
$-\sum _{i=0}^{\,n}v_{i}\,(w_{i+1}-w_{i})\;=\;-w_{n+1}\,v_{n+1}+w_{0}\,v_{0}\;+\sum _{i=1}^{\,n+1}w_{i}\,(v_{i}-v_{i-1})$
Set $v_{i}\;=\;y_{i}$ for $i\;=\;0,\;1,\;\ldots ,\;n+1$.
Set $w_{0}\;=\;y_{0}$ and $w_{i}\;=\;y_{i}-y_{i-1}$ for $i\;=\;1,\;2,\;\ldots ,\;n+1$.
Since $v_{0}\;=\;v_{n+1}\;=\;0$, the identity becomes
$-\sum _{i=1}^{\,n}v_{i}\,(w_{i+1}-w_{i})\;=\;\sum _{i=1}^{\,n+1}w_{i}\,(v_{i}-v_{i-1})$,
which is then in turn
$-\sum _{i=1}^{\,n}y_{i}\,((y_{i+1}-y_{i})-(y_{i}-y_{i-1}))\;=\;\sum _{i=1}^{\,n+1}(y_{i}-y_{i-1})(y_{i}-y_{i-1})$.
This has proven the equality
$-h^{2}({\vec {y}}^{\,o})^{T}({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{I}\,{\vec {y}}\;=\;\sum _{i=1}^{\,n+1}(y_{i}-y_{i-1})^{2}$.
Making use of
If $v_{0}\,=\,v_{n+1}\,=\,0$ then
${\sqrt {\textstyle \sum _{\,i\,=\,1}^{\,n+1}(v_{i}-v_{i-1})^{2}}}\geq \,{\sqrt {2\,(1-\cos(\pi \,{\tfrac {1}{n+2}}))}}\,{\sqrt {\textstyle \sum _{\,i\,=\,1}^{\,n}\,v_{i}^{2}}}$
and
${\sqrt {2\,(1-\cos(\pi \,{\tfrac {1}{n+2}}))}}\;\to \;{\frac {\pi }{n+2}}$.
We have the following
$\textstyle \sum _{\,i\,=\,1}^{\,n+1}(y_{i}-y_{i-1})^{2}\;\geq \;2\,(1-\cos(\pi \,{\tfrac {1}{n+2}}))\,\textstyle \sum _{\,i\,=\,1}^{\,n}\,y_{i}^{2}$,
where $2\,(1-\cos(\pi \,{\tfrac {1}{n+2}}))\;\to \;{\frac {\pi ^{2}}{(n+2)^{2}}}$.
This finishes the proof of the claim.
Since the operator is linear and positive definite, ${\vec {y}}$, the solution to, exists and is unique.
The next part is to observe
$-({\vec {y}}^{\,o})^{T}({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{I}\,{\vec {y}}\;=\;({\vec {y}}^{\,o})^{T}{\vec {f}}\;\leq \;{\sqrt {({\vec {y}}^{\,o})^{T}{\vec {y}}^{\,o}\;}}{\sqrt {({\vec {f}})^{T}{\vec {f}}\;}}$.
and putting this together with $-({\vec {y}}^{\,o})^{T}({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{I}\,{\vec {y}}\;\geq \;\alpha _{n}\,h^{-2}\lVert \,{\vec {y}}^{\,o}\,\rVert ^{2}$
$\alpha _{n}\,h^{-2}({\vec {y}}^{\,o})^{T}{\vec {y}}^{\,o}\;\leq \;{\sqrt {({\vec {y}}^{\,o})^{T}{\vec {y}}^{\,o}\;}}{\sqrt {({\vec {f}})^{T}{\vec {f}}\;}}$
and
${\sqrt {({\vec {y}}^{\,o})^{T}{\vec {y}}^{\,o}\;}}\;\leq \;(\alpha _{n})^{-1}h^{2}\,{\sqrt {({\vec {f}})^{T}{\vec {f}}\;}}$.
The notation
${\vec {y}}(x)\;=\;<y(x_{0})\;\,y(x_{1})\;\,y(x_{2})\;\,\ldots \;\,y(x_{n})\;\,y(x_{n+1})>$
will be used for the exact values of $y(x)$, as well as the notation
${\vec {y}}^{\,o}(x)\;=\;<y(x_{1})\;\,y(x_{2})\;\,\ldots \;\,y(x_{n})>$
for the interior points of ${\vec {y}}(x)$.
The vector $({\vec {y}}(x)-{\vec {y}}\,)$ satisfies the problem
$-({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{I}\,({\vec {y}}(x)-{\vec {y}}\,)\,=\,({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{I}\,{\vec {y}}(x)-{\vec {f}}$,
with $(y(a)-y_{0})\;=\;(y(b)-y_{n+1})\;=\;0$.
So the estimate can be applied to get
${\sqrt {({\vec {y}}^{\,o}(x)-{\vec {y}}^{\,o})^{T}({\vec {y}}^{\,o}(x)-{\vec {y}}^{\,o})\;}}\;\leq \;(\alpha _{n})^{-1}h^{2}\,{\sqrt {(({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{I}\,{\vec {y}}(x)-{\vec {f}}\;)^{T}(({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{I}\,{\vec {y}}(x)-{\vec {f}}\;)\;}}$.
Recall
${\frac {d_{h}^{2}}{d_{h}x^{2}}}\,f(x)\;=\;f^{\prime \prime }(x)+({\tfrac {1}{24}}\,f^{(iv)}(z_{h})+{\tfrac {1}{24}}\,f^{(iv)}(z_{-h}))\,h^{2}$,
where $x-h\;<\;z_{-h}\;<\;x$ and $x\;<\;z_{h}\;<\;x+h$.
Now,
$({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{I}\,{\vec {y}}(x)\;=\;<{\frac {d_{h}^{2}}{d_{h}x^{2}}}\,y(x_{1})\;\;{\frac {d_{h}^{2}}{d_{h}x^{2}}}\,y(x_{2})\;\;\ldots \;\;{\frac {d_{h}^{2}}{d_{h}x^{2}}}\,y(x_{n})>$
and
${\vec {f}}\;=\;<y^{\prime \prime }(x_{1})\;\;y^{\prime \prime }(x_{2})\;\;\ldots \;\;y^{\prime \prime }(x_{n})>$.
So each component of $(({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{I}\,{\vec {y}}(x)-{\vec {f}}\;)$ has the form
$({\tfrac {1}{24}}\,f^{(iv)}(z_{h})+{\tfrac {1}{24}}\,f^{(iv)}(z_{-h}))\,h^{2}$.
This leads to the estimate
${\sqrt {(({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{I}\,{\vec {y}}(x)-{\vec {f}}\;)^{T}(({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{I}\,{\vec {y}}(x)-{\vec {f}}\;)\;}}\;\leq \;{\sqrt {n}}\,M\,h^{2}$,
where
$M\;=\;{\tfrac {1}{12}}\;{\underset {a\;\leq \;x\;\leq \;b}{\max }}(f^{(iv)}(x))$.
After combining the inequalities and
$\lVert \,{\vec {y}}^{\,o}(x)-{\vec {y}}^{\,o}\,\rVert _{2}\;\leq \;{\sqrt {n}}\,M\,(\alpha _{n})^{-1}\,h^{4}$.

### Generalities about Difference Solutions

Before moving on to describe the effect of using a higher order finite difference operator, it is useful to study some generalities about the solutions of linear equations. This provides the needed motivation to the design of methods and proofs.
Suppose $L$ is a linear operator that is positive definite, which means to say there exists a constant $\alpha \;>\;0$, not depending on ${\vec {x}}$ such that
${\vec {x}}^{\,T}L\,{\vec {x}}\;\geq \;\alpha \,{\vec {x}}^{\,T}{\vec {x}}$.
Then as was explained for matrices at
$\lVert \,L^{-1}\,\rVert _{2}\;\leq \;(\alpha )^{-1}$.
Now, if the exact solution ${\vec {y}}(x)$ to some problem is given by
$L\,{\vec {y}}(x)\;=\;{\vec {f}}(x)$
except that ${\vec {f}}(x)$ is only known up to some degree of approximation by ${\vec {f}}$, then the solution ${\vec {y}}$ to the equation
$L\,{\vec {y}}\;=\;{\vec {f}}$,
is an approximation to the desired exact solution ${\vec {y}}(x)$. Since
$L\,({\vec {y}}(x)-{\vec {y}})\;=\;({\vec {f}}(x)-{\vec {f}}\,)$,
the closeness of the approximation can be estimated with
$\lVert \,({\vec {y}}(x)-{\vec {y}})\,\rVert _{2}\;\leq \;\lVert \,L^{-1}\,\rVert _{2}\,\lVert \,({\vec {f}}(x)-{\vec {f}}\,)\,\rVert _{2}\;\leq \;\,(\alpha )^{-1}\lVert \,({\vec {f}}(x)-{\vec {f}}\,)\,\rVert _{2}$.
With regards to finite difference methods the strategy will be to define a linear operator $L_{h}$ such that
${\vec {y}}^{\,T}L_{h}\,{\vec {y}}\;\geq \;\alpha \,{\vec {y}}^{\,T}{\vec {y}}$,
with $\alpha$ independent of $h$. Then for the exact solution ${\vec {y}}(x)$, to whatever problem,
$\lVert \,({\vec {y}}(x)-{\vec {y}})\,\rVert _{2}\;\leq \;\,(\alpha )^{-1}\lVert \,(L_{h}\,{\vec {y}}(x)-L_{h}\,{\vec {y}})\,\rVert _{2}$.
When $L_{h}\,{\vec {y}}(x)$ is known to some degree of approximation by ${\vec {f}}$, that is when
$\lVert \,L_{h}\,{\vec {y}}(x)-{\vec {f}}\,\rVert _{2}\;\leq \;B_{h}$
then for ${\vec {y}}$, the solution to $L_{h}\,{\vec {y}}\;=\;{\vec {f}}$,
$\lVert \,({\vec {y}}(x)-{\vec {y}})\,\rVert _{2}\;\leq \;\,(\alpha )^{-1}\lVert \,(L_{h}\,{\vec {y}}(x)-{\vec {f}}\,)\,\rVert _{2}\;\leq \;(\alpha )^{-1}B_{h}$.

### Third Order Estimation

In this section the properties of the five-point finite difference operator for the approximation to the second derivative is studied. The notations introduced in the previous sections of this chapter will be reused. The notations ${\vec {y}}$ and ${\vec {y}}^{\,o}$ will have the same meaning as in the section Solution by Finite Differences. The notations
$({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{i}$ and $({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{I}$
are redefined to represent the five-point operator.
$-h^{2}({\partial _{h}^{2} \over \partial _{h}x^{2}})_{1}\ y\ =$. ${\frac {1}{12}}\,y_{4}-{\frac {1}{3}}\,y_{3}-{\frac {1}{2}}\,y_{2}+{\frac {5}{3}}\,y_{1}-{\frac {11}{12}}\,y_{0}$
$-h^{2}({\partial _{h}^{2} \over \partial _{h}x^{2}})_{i}\ y\ =$. ${\frac {1}{12}}\,y_{i+2}-{\frac {4}{3}}\,y_{i+1}+{\frac {5}{2}}\,y_{i}-{\frac {4}{3}}\,y_{i-1}+{\frac {1}{12}}\,y_{i-2}$
${\text{for}}\ i\,=\,2,\ 3,\ \ldots \,n-1\quad {\text{and}}$
$-h^{2}({\partial _{h}^{2} \over \partial _{h}x^{2}})_{n}\ y\ =$.
$-{\frac {11}{12}}\,y_{n+1}+{\frac {5}{3}}\,y_{n}-{\frac {1}{2}}\,y_{n-1}-{\frac {1}{3}}\,y_{n-2}+{\frac {1}{12}}\,y_{n-3}$
The five-point operator for the second derivative is third-order accurate at the ponts nearest the endpoints of the interval and being a centered difference operator, is fourth-order accurate for the more internal points.
The expressions for $({\frac {d_{h}^{2}}{d_{h}x^{2}}})_{i}$ are rearranged to make the summation procedure to be performed easier to follow. These identities are verified simply by comparing coefficients.
$-h^{2}({\partial _{h}^{2} \over \partial _{h}x^{2}})_{1}\ y\;=\;{\frac {7}{6}}(-y_{2}+2\,y_{1}-y_{0})$
${\begin{aligned}+\;&({\frac {1}{12}}\,(y_{4}-y_{3})-{\frac {1}{3}}\,(y_{3}-y_{2})+{\frac {5}{12}}\,(y_{2}-y_{1})-{\frac {1}{6}}\,(y_{1}-y_{0}))\\\end{aligned}}$
$-{\frac {1}{12}}\,(-y_{2}+2\,y_{1}-y_{0})$
$-{\frac {1}{12}}\,(-y_{3}+2\,y_{2}-y_{1})$
$-h^{2}({\partial _{h}^{2} \over \partial _{h}x^{2}})_{i}\ y\;=\;{\frac {7}{6}}\,(-y_{i+1}+2\,y_{i}-y_{i-1})$
$-{\frac {1}{12}}\,(-y_{i+2}+2\,y_{i+1}-y_{i})$
$-{\frac {1}{12}}\,(-y_{i}+2\,y_{i-1}-y_{i-2})$
${\text{for}}\ i\,=\,2,\ 3,\ \ldots \,n-1\quad {\text{and}}$
$-h^{2}({\partial _{h}^{2} \over \partial _{h}x^{2}})_{n}\ y\;=\;{\frac {7}{6}}(-y_{n+1}+2\,y_{n}-y_{n-1})$
${\begin{aligned}+\;&(-{\frac {1}{12}}\,(y_{n-2}-y_{n-3})+{\frac {1}{3}}\,(y_{n-1}-y_{n-2})-{\frac {5}{12}}\,(y_{n}-y_{n-1})+{\frac {1}{6}}\,(y_{n+1}-y_{n}))\\\end{aligned}}$
$-{\frac {1}{12}}\,(-y_{n}+2\,y_{n-1}-y_{n-2})$
$-{\frac {1}{12}}\,(-y_{n+1}+2\,y_{n}-y_{n-1})$
The intent of this section is to establish the inequality.
$-h^{2}({\vec {y}}^{\,o})^{T}({\partial _{h}^{2} \over \partial _{h}x^{2}})_{I}\;{\vec {y}}\;\geq \;{\frac {2}{3}}\,{\textstyle \sum _{\,i\,=\,1}^{\,n+1}}\,(y_{i}-y_{i-1})^{2}$.
This is the most technically difficult part of making estimates as to the accuracy of finite difference approximations. The remainder of the analysis follows by applying the reasoning described in the section Generalities about Difference Solutions. The estimates of the accuracy to which five-point finite differences estimate the second derivative of a function are easier and will be covered in a separate section.
Take into account that $y_{0}\,=\,0$. So $y_{1}\,=\,(y_{1}-y_{0})$ and then
$-h^{2}y_{1}\,({\partial _{h}^{2} \over \partial _{h}x^{2}})_{1}{\vec {y}}\;={\frac {7}{6}}\,y_{1}(-y_{2}+2\,y_{1}-y_{0})$
${\begin{aligned}+\;&y_{1}({\frac {1}{12}}\,(y_{4}-y_{3})-{\frac {1}{3}}\,(y_{3}-y_{2})+{\frac {5}{12}}\,(y_{2}-y_{1})-{\frac {1}{6}}\,(y_{1}-y_{0}))\\\end{aligned}}$
$-{\frac {1}{12}}\,y_{1}(-y_{2}+2\,y_{1}-y_{0})-{\frac {1}{12}}\,y_{1}(-y_{3}+2\,y_{2}-y_{1})$
$={\frac {7}{6}}\,y_{1}(-y_{2}+2\,y_{1}-y_{0})$
$-{\frac {1}{12}}\,y_{1}(-y_{2}+2\,y_{1}-y_{0})-{\frac {1}{12}}\,y_{2}(-y_{3}+2\,y_{2}-y_{1})$
$+{\frac {1}{12}}\,(y_{2}-y_{1})^{2}+{\frac {1}{6}}\,(y_{1}-y_{0})^{2}$
$-{\frac {1}{12}}\,(y_{3}-y_{2})(y_{2}-y_{1})+{\frac {1}{12}}\,(y_{2}-y_{1})(y_{1}-y_{0})$
${\begin{aligned}+\;&({\frac {1}{12}}\,(y_{4}-y_{3})-{\frac {1}{3}}\,(y_{3}-y_{2})+{\frac {1}{3}}\,(y_{2}-y_{1})-{\frac {1}{3}}\,(y_{1}-y_{0}))(y_{1}-y_{0})\\\end{aligned}}$
$-h^{2}y_{i}\,({\partial _{h}^{2} \over \partial _{h}x^{2}})_{i}\,{\vec {y}}\;={\frac {7}{6}}\,y_{i}\,(-y_{i+1}+2\,y_{i}-y_{i-1})$
$-{\frac {1}{12}}\,y_{i}\,(-y_{i+2}+2\,y_{i+1}-y_{i})-{\frac {1}{12}}\,y_{i}\,(-y_{i}+2\,y_{i-1}-y_{i-2})$
$={\frac {7}{6}}\,y_{i}\,(-y_{i+1}+2\,y_{i}-y_{i-1})$
$-{\frac {1}{12}}\,y_{i+1}\,(-y_{i+2}+2\,y_{i+1}-y_{i})-{\frac {1}{12}}\,y_{i-1}\,(-y_{i}+2\,y_{i-1}-y_{i-2})$
$+{\frac {1}{12}}\,(y_{i+1}-y_{i})^{2}\,+{\frac {1}{12}}\,(y_{i}-y_{i-1})^{2}$
$-{\frac {1}{12}}\,(y_{i+2}-y_{i+1})(y_{i+1}-y_{i})\,-\,{\frac {1}{12}}\,(y_{i}-y_{i-1})(y_{i-1}-y_{i-2})$
${\text{for}}\ i\,=\,2,\ 3,\ \ldots \,n-1\quad {\text{and}}$
Take into account that $y_{n+1}\,=\,0$. So $y_{n}\,=\,-(y_{n+1}-y_{n})$ and then
$-h^{2}y_{n}\,({\partial _{h}^{2} \over \partial _{h}x^{2}})_{n}\,{\vec {y}}\;={\frac {7}{6}}\,y_{n}\,(-y_{n+1}+2\,y_{n}-y_{n-1})$
${\begin{aligned}+\;&y_{n}(-{\frac {1}{12}}\,(y_{n-2}-y_{n-3})+{\frac {1}{3}}\,(y_{n-1}-y_{n-2})-{\frac {5}{12}}\,(y_{n}-y_{n-1})+{\frac {1}{6}}\,(y_{n+1}-y_{n}))\\\end{aligned}}$
$-{\frac {1}{12}}\,y_{n}\,(-y_{n}+2\,y_{n-1}-y_{n-2})-{\frac {1}{12}}\,y_{n}\,(-y_{n+1}+2\,y_{n}-y_{n-1})$
$={\frac {7}{6}}\,y_{n}\,(-y_{n+1}+2\,y_{n}-y_{n-1})$
$-{\frac {1}{12}}\,y_{n-1}\,(-y_{n}+2\,y_{n-1}-y_{n-2})-{\frac {1}{12}}\,y_{n}\,(-y_{n+1}+2\,y_{n}-y_{n-1})$
$+{\frac {1}{6}}\,(y_{n+1}-y_{n})^{2}\,+{\frac {1}{12}}\,(y_{n}-y_{n-1})^{2}$
$-{\frac {1}{12}}\,(y_{n}-y_{n-1})(y_{n-1}-y_{n-2})+{\frac {1}{12}}\,(y_{n+1}-y_{n})(y_{n}-y_{n-1})$
${\begin{aligned}+\;&(y_{n+1}-y_{n})({\frac {1}{12}}\,(y_{n-2}-y_{n-3})-{\frac {1}{3}}\,(y_{n-1}-y_{n-2})+{\frac {1}{3}}\,(y_{n}-y_{n-1})-{\frac {1}{3}}\,(y_{n+1}-y_{n}))\\\end{aligned}}$
This organization of the terms leads to
$-h^{2}({\vec {y}}^{\,o})^{T}({\partial _{h}^{2} \over \partial _{h}x^{2}})_{I}\;{\vec {y}}\;=\;-h^{2}{\textstyle \sum _{\,i\,=\,1}^{\,n}}\,y_{i}\,({\partial _{h}^{2} \over \partial _{h}x^{2}})_{i}\;{\vec {y}}\;=$
${\textstyle \sum _{\,i\,=\,1}^{\,n}}\,y_{i}\,(-y_{i+1}+2\,y_{i}-y_{i-1})+{\frac {1}{6}}\,{\textstyle \sum _{\,i\,=\,1}^{\,n+1}}\,(y_{i}-y_{i-1})^{2}-{\frac {1}{6}}\,{\textstyle \sum _{\,i\,=\,2}^{\,n-1}}\,(y_{i+1}-y_{i})(y_{i}-y_{i-1})$
${\begin{aligned}+\;&({\frac {1}{12}}\,(y_{4}-y_{3})-{\frac {1}{3}}\,(y_{3}-y_{2})+{\frac {1}{3}}\,(y_{2}-y_{1})-{\frac {1}{3}}\,(y_{1}-y_{0}))(y_{1}-y_{0})\\\end{aligned}}$
${\begin{aligned}+\;&(y_{n+1}-y_{n})({\frac {1}{12}}\,(y_{n-2}-y_{n-3})-{\frac {1}{3}}\,(y_{n-1}-y_{n-2})+{\frac {1}{3}}\,(y_{n}-y_{n-1})-{\frac {1}{3}}\,(y_{n+1}-y_{n}))\\\end{aligned}}$
It is known from that the sum ${\textstyle \sum _{\,i\,=\,1}^{\,n}}\,y_{i}\,(-y_{i+1}+2\,y_{i}-y_{i-1})\,=\,{\textstyle \sum _{\,i\,=\,1}^{\,n+1}}\,(y_{i}-y_{i-1})^{2}$. Using this and moving the first and last terms of the second sum
$-h^{2}({\vec {y}}^{\,o})^{T}({\partial _{h}^{2} \over \partial _{h}x^{2}})_{I}\;{\vec {y}}\;=$
${\textstyle \sum _{\,i\,=\,1}^{\,n+1}}\,(y_{i}-y_{i-1})^{2}+{\frac {1}{6}}\,{\textstyle \sum _{\,i\,=\,2}^{\,n}}\,(y_{i}-y_{i-1})^{2}-{\frac {1}{6}}\,{\textstyle \sum _{\,i\,=\,2}^{\,n-1}}\,(y_{i+1}-y_{i})(y_{i}-y_{i-1})$
${\begin{aligned}+\;&({\frac {1}{12}}\,(y_{4}-y_{3})-{\frac {1}{3}}\,(y_{3}-y_{2})+{\frac {1}{3}}\,(y_{2}-y_{1})-{\frac {1}{6}}\,(y_{1}-y_{0}))(y_{1}-y_{0})\\\end{aligned}}$
${\begin{aligned}+\;&(y_{n+1}-y_{n})({\frac {1}{12}}\,(y_{n-2}-y_{n-3})-{\frac {1}{3}}\,(y_{n-1}-y_{n-2})+{\frac {1}{3}}\,(y_{n}-y_{n-1})-{\frac {1}{6}}\,(y_{n+1}-y_{n}))\\\end{aligned}}$
Using
$\left\vert \,{\textstyle \sum _{\,i\,=\,3}^{\,n-2}}\,(y_{i+1}-y_{i})(y_{i}-y_{i-1})\,\right\vert \;\leq \;{\frac {1}{2}}\,(y_{3}-y_{2})^{2}\,+\,{\textstyle \sum _{\,i\,=\,4}^{\,n-2}}\,(y_{i}-y_{i-1})^{2}\,+\,{\frac {1}{2}}\,(y_{n-1}-y_{n-2})^{2}$,
$\left\vert \,(y_{3}-y_{2})(y_{2}-y_{1})\,\right\vert \;\leq \;{\frac {1}{2}}\,\alpha _{1}^{2}\,(y_{2}-y_{1})^{2}\,+\,{\frac {1}{2}}\,(y_{3}-y_{2})^{2}\,/\,\alpha _{1}^{2}$,
$\left\vert \,(y_{n}-y_{n-1})(y_{n-1}-y_{n-2})\,\right\vert \;\leq \;{\frac {1}{2}}\,\beta _{1}^{2}\,(y_{n}-y_{n-1})^{2}\,+\,{\frac {1}{2}}\,(y_{n-1}-y_{n-2})^{2}\,/\,\beta _{1}^{2}$,
the inequality next follows.
$-h^{2}({\vec {y}}^{\,o})^{T}({\partial _{h}^{2} \over \partial _{h}x^{2}})_{I}\;{\vec {y}}\;\geq \;{\textstyle \sum _{\,i\,=\,1}^{\,n+1}}\,(y_{i}-y_{i-1})^{2}-{\frac {1}{6}}\,(y_{1}-y_{0})^{2}-{\frac {1}{6}}\,(y_{n+1}-y_{n})^{2}$
$+\,{\frac {1}{12}}\,(1-1\,/\,\alpha _{1}^{2})(y_{3}-y_{2})^{2}\,+\,{\frac {1}{6}}\,(1-{\frac {1}{2}}\,\alpha _{1}^{2})(y_{2}-y_{1})^{2}$
$+\,{\frac {1}{6}}\,(1-{\frac {1}{2}}\,\beta _{1}^{2})(y_{n}-y_{n-1})^{2}\,+\,{\frac {1}{12}}\,(1-1\,/\,\beta _{1}^{2})(y_{n-1}-y_{n-2})^{2}$
${\begin{aligned}+\;&({\frac {1}{12}}\,(y_{4}-y_{3})-{\frac {1}{3}}\,(y_{3}-y_{2})+{\frac {1}{3}}\,(y_{2}-y_{1}))(y_{1}-y_{0})\\\end{aligned}}$
${\begin{aligned}+\;&(y_{n+1}-y_{n})({\frac {1}{12}}\,(y_{n-2}-y_{n-3})-{\frac {1}{3}}\,(y_{n-1}-y_{n-2})+{\frac {1}{3}}\,(y_{n}-y_{n-1}))\\\end{aligned}}$
Now, using
$\left\vert \,({\frac {1}{12}}\,(y_{4}-y_{3})-{\frac {1}{3}}\,(y_{3}-y_{2})+{\frac {1}{3}}\,(y_{2}-y_{1}))(y_{1}-y_{0})\,\right\vert \;\leq$
${\frac {1}{24}}\,(\alpha _{2}^{2}\,(y_{4}-y_{3})^{2}+{\frac {1}{\alpha _{2}^{2}}}\,(y_{1}-y_{0})^{2})+{\frac {1}{6}}\,(\alpha _{3}^{2}\,(y_{3}-y_{2})^{2}+{\frac {1}{\alpha _{3}^{2}}}\,(y_{1}-y_{0})^{2})$
${\frac {1}{6}}\,(\alpha _{4}^{2}\,(y_{2}-y_{1})^{2}+{\frac {1}{\alpha _{4}^{2}}}\,(y_{1}-y_{0})^{2})$.
Taking $\alpha _{1}^{2}\,=\,{\frac {1+{\sqrt {5}}}{2}},\;\alpha _{2}^{2}\,=\,8,$ and $\alpha _{3}^{2}\,=\,\alpha _{4}^{2}\,=\,2+{\frac {3-{\sqrt {5}}}{4}}$ yields
$-{\frac {1}{6}}\,(y_{1}-y_{0})^{2}+\,{\frac {1}{12}}\,(1-1\,/\,\alpha _{1}^{2})(y_{3}-y_{2})^{2}\,+\,{\frac {1}{6}}\,(1-{\frac {1}{2}}\,\alpha _{1}^{2})(y_{2}-y_{1})^{2}$
$+({\frac {1}{12}}\,(y_{4}-y_{3})-{\frac {1}{3}}\,(y_{3}-y_{2})+{\frac {1}{3}}\,(y_{2}-y_{1}))(y_{1}-y_{0})\;\geq$
$-{\frac {1}{3}}((y_{4}-y_{3})^{2}\,+\,(y_{3}-y_{2})^{2}\,+\,(y_{2}-y_{1})^{2}\,+\,(y_{1}-y_{0})^{2})$.
In identical fashion
$-{\frac {1}{6}}\,(y_{n+1}-y_{n})^{2}+\,{\frac {1}{6}}\,(1-{\frac {1}{2}}\,\beta _{1}^{2})(y_{n}-y_{n-1})^{2}\,+\,{\frac {1}{12}}\,(1-1\,/\,\beta _{1}^{2})(y_{n-1}-y_{n-2})^{2}$
$+(y_{n+1}-y_{n})({\frac {1}{12}}\,(y_{n-2}-y_{n-3})-{\frac {1}{3}}\,(y_{n-1}-y_{n-2})+{\frac {1}{3}}\,(y_{n}-y_{n-1}))\;\geq$
$-{\frac {1}{3}}((y_{n+1}-y_{n})^{2}\,+\,(y_{n}-y_{n-1})^{2}\,+\,(y_{n-1}-y_{n-2})^{2}\,+\,(y_{n-2}-y_{n-3})^{2})$.
The sought inequality has been established.
$-h^{2}({\vec {y}}^{\,o})^{T}({\partial _{h}^{2} \over \partial _{h}x^{2}})_{I}\;{\vec {y}}\;\geq \;{\frac {2}{3}}\,{\textstyle \sum _{\,i\,=\,1}^{\,n+1}}\,(y_{i}-y_{i-1})^{2}$.

### Two-dimensional Domain

$-h^{2}({\partial _{h}^{2} \over \partial _{h}x^{2}})_{1,\,j}\ e\ =$.
${\frac {1}{12}}\,e_{4,\,j}-{\frac {1}{3}}\,e_{3,\,j}-{\frac {1}{2}}\,e_{2,\,j}+{\frac {5}{3}}\,e_{1,\,j}-{\frac {11}{12}}\,e_{0,\,j}$
$={\frac {7}{6}}(-{\frac {1}{1}}\,e_{2,\,j}+{\frac {2}{1}}\,e_{1,\,j}-{\frac {1}{1}}\,e_{0,\,j})$
${\begin{aligned}+\;&({\frac {1}{12}}\,(e_{4,\,j}-e_{3,\,j})-{\frac {1}{4}}\,(e_{3,\,j}-e_{2,\,j})+{\frac {5}{12}}\,(e_{2,\,j}-e_{1,\,j})-{\frac {1}{4}}\,(e_{1,\,j}-e_{0,\,j}))\\\end{aligned}}$
$-h^{2}({\partial _{h}^{2} \over \partial _{h}x^{2}})_{i,\,j}\ e\ =$.
${\frac {1}{12}}\,e_{i+2,\,j}-{\frac {4}{3}}\,e_{i+1,\,j}+{\frac {5}{2}}\,e_{i,\,j}-{\frac {4}{3}}\,e_{i-1,\,j}+{\frac {1}{12}}\,e_{i-2,\,j}$
$={\frac {7}{6}}\,(-{\frac {1}{1}}\,e_{i+1,\,j}+{\frac {2}{1}}\,e_{i,\,j}-{\frac {1}{1}}\,e_{i-1,\,j})$
$+{\frac {1}{12}}\,(e_{i+2,\,j}-e_{i+1,\,j})-{\frac {1}{12}}\,(e_{i+1,\,j}-e_{i,\,j})$
$+{\frac {1}{12}}\,(e_{i,\,j}-e_{i-1,\,j})-{\frac {1}{12}}\,(e_{i-1,\,j}-e_{i-2,\,j})$
${\text{for}}\ i\,=\,2,\ 3,\ \ldots \,m-1\quad {\text{and}}$
$-h^{2}({\partial _{h}^{2} \over \partial _{h}x^{2}})_{m,\,j}\ e\ =$.
$-{\frac {11}{12}}\,e_{m+1,\,j}+{\frac {5}{3}}\,e_{m,\,j}-{\frac {1}{2}}\,e_{m-1,\,j}-{\frac {1}{3}}\,e_{m-2,\,j}+{\frac {1}{12}}\,e_{m-3,\,j}$
$={\frac {7}{6}}(-{\frac {1}{1}}\,e_{m+1,\,j}+{\frac {2}{1}}\,e_{m,\,j}-{\frac {1}{1}}\,e_{m-1,\,j})$
${\begin{aligned}+\;&(-{\frac {1}{12}}\,(e_{m-2,\,j}-e_{m-3,\,j})+{\frac {1}{4}}\,(e_{m-1,\,j}-e_{m-2,\,j})-{\frac {5}{12}}\,(e_{m,\,j}-e_{m-1,\,j})+{\frac {1}{4}}\,(e_{m+1,\,j}-e_{m,\,j}))\\\end{aligned}}$

## Discrete Laplacian

To approximate u(x, y) numerically, use the grid
$(x_{i},y_{j}),\ 0\leq i\leq m+1,\ 0\leq j\leq n+1$. with $x_{i}=i\,h,\,y_{i}=j\ k$ and $h=a\,/\,(m+1),k=b\,/\,(n+1)$
The second partial derivatives
${\partial ^{2} \over \partial x^{2}}\ u(x,y)$  and  ${\partial ^{2} \over \partial y^{2}}\ u(x,y)$
can be approximated on the grid by difference quotients
$({\partial _{h}^{2} \over \partial _{h}x^{2}})\ u(x_{i},y_{j})$  and  $({\partial _{k}^{2} \over \partial _{k}y^{2}})\ u(x_{i},y_{j})$.
These difference quotients can be chosen by the number of points or the order of accuracy. In either case they will be the same as explained in the section on difference quotients in the chapter Definitions and Basics. The possibilities arising from choosing difference quotients with less than the maximum order of accuracy using some other criteria such as a minimization of the size of or differences in the coefficients, relative to order, is not analyzed at this point.
Since it is cumbersome to include many indices in notations for difference operators the same expression for a difference quotient that approximates a second derivative will be reused for different order operators. The matter as to which one will be made clear when needed. Certain generalities apply to any one of them and can be discussed in this light.
The Laplacian $\Delta u(x,y)$ then can be approximated on the interior of the grid by
$\Delta _{h,\,k}u(x_{i},y_{j})={\partial _{h}^{2} \over \partial _{h}x^{2}}u(x_{i},y_{j})+{\partial _{k}^{2} \over \partial _{k}y^{2}}u(x_{i},y_{j})$
$({\partial _{h}^{2} \over \partial _{h}x^{2}})\ u(x_{1},y_{j})\ =$.
${-{\frac {1}{12}}\,u(x_{1}+3\,h,y_{j})+{\frac {1}{3}}\,u(x_{1}+2\,h,y_{j})+{\frac {1}{2}}\,u(x_{1}+h,y_{j})-{\frac {5}{3}}\,u(x_{1},y_{j})+{\frac {11}{12}}\,u(x_{1}-h,y_{j}) \over \ h^{2}}$
$({\partial _{h}^{2} \over \partial _{h}x^{2}})\ u(x_{i},y_{j})\ =$.
${-{\frac {1}{12}}\,u(x_{i}+2\,h,y_{j})+{\frac {4}{3}}\,u(x_{i}+h,y_{j})-{\frac {5}{2}}\,u(x_{i},y_{j})+{\frac {4}{3}}\,u(x_{i}-h,y_{j})-{\frac {1}{12}}\,u(x_{i}-2\,h,y_{j}) \over \ h^{2}}$
${\text{for}}\ i\,=\,2,\ 3,\ \ldots \,m-1\quad {\text{and}}$
$({\partial _{h}^{2} \over \partial _{h}x^{2}})\ u(x_{m},y_{j})\ =$.
${{\frac {11}{12}}\,u(x_{m}+h,y_{j})-{\frac {5}{3}}\,u(x_{m},y_{j})+{\frac {1}{2}}\,u(x_{m}-h,y_{j})+{\frac {1}{3}}\,u(x_{m}-2\,h,y_{j})-{\frac {1}{12}}\,u(x_{m}-3\,h,y_{j}) \over \ h^{2}}$
The second partial derivative ${\partial ^{2} \over \partial y^{2}}\ u(x,y)$ can be approximated on the grid by difference quotients $({\partial _{k}^{2} \over \partial _{k}y^{2}})\ u(x_{i},y_{j})$.
These difference quotients are given by
$({\partial _{k}^{2} \over \partial _{k}y^{2}})\ u(x_{i},y_{1})\ =$.
${-{\frac {1}{12}}\,u(x_{i},y_{1}+3\,k)+{\frac {1}{3}}\,u(x_{i},y_{1}+2\,k)+{\frac {1}{2}}\,u(x_{i},y_{1}+k)-{\frac {5}{3}}\,u(x_{i},y_{1})+{\frac {11}{12}}\,u(x_{i},y_{1}-k) \over \ k^{2}}$
$({\partial _{k}^{2} \over \partial _{k}y^{2}})\ u(x_{i},y_{j})\ =$.
${-{\frac {1}{12}}\,u(x_{i},y_{j}+2\,k)+{\frac {4}{3}}\,u(x_{i},y_{j}+k)-{\frac {5}{2}}\,u(x_{i},y_{j})+{\frac {4}{3}}\,u(x_{i},y_{j}-k)-{\frac {1}{12}}\,u(x_{i},y_{j}-2\,k) \over \ k^{2}}$
${\text{for}}\ j\,=\,2,\ 3,\ \ldots \,n-1\quad {\text{and}}$
$({\partial _{k}^{2} \over \partial _{k}y^{2}})\ u(x_{i},y_{n})\ =$.
${{\frac {11}{12}}\,u(x_{i},y_{n}+k)-{\frac {5}{3}}\,u(x_{i},y_{n})+{\frac {1}{2}}\,u(x_{i},y_{n}-k)+{\frac {1}{3}}\,u(x_{i},y_{n}-2\,k)-{\frac {1}{12}}\,u(x_{i},y_{n}-3\,k) \over \ k^{2}}$