numerical example on differentiation