What is a derivative function? The derivative function f  is a function f’ that maps each value of x to the gradient or slope of the line tangent to f(x). Let’s have an example. Suppose your function f is defined by f(x)=x2. The derivative of f is the function f’ defined by f’(x) =2x. This