How to draw the derivative graph based on critical points of f(x) and whether f is increasing or decreasing