For second derivatives , calculating the change in slope requires 3 points:

If we subtract subtract the equations as :

Solving for gives:

Formulas

Numerical Differentiation for 2nd Derivative.png

Numerical Differentiation for 2nd Derivative-1.png

Numerical Differentiation for 2nd Derivative-2.png