Visualising derivatives of functions