For the first derivative:

where

To find the second derivative, first look at the first derivatives
at the half intervals (x_{0}+h/2) and (x_{0}-h/2):

and

The slope between these two points then is:

.

Continuing in this fashion, the first and second derivatives correct
to fourth order in h are: