What you want to do is create a field of equally spaced coordinate points, and then evaluate the derivative at each of those coordinate points. Since the derivative is the same thing as the slope of the tangent line, finding the derivative at a particular point is like finding the slope of the tangent line there, which of course is an approximation of the slope of the actual function.

Read More