Blue is graph of function. Red is selected point.\ Green is derivative Magenta are critical points. Cyan is inflection point.
An experiment on cubics