You already know that *
At an extremum,
That is .
To know the nature of these points we compute the second order derivative.
If x = -1 then and we have a minimum.
If x = 2 then and we have a point of inflection.
We also have a point of inflection at x=0 because .