This can be solved like Equation 38, and we see the familiar weights for the first and second derivatives:

The second derivative equation is

The coefficients for the derivative approximations with different grid spacings, or with more grid points, can be computed with this method.