Derivative and the the shape of a graph