Derivative and the shape of a graph