At those points where the graph of the function has a horizontal tangent (gradient equal to zero), the derivative is zero.
In the figure, we see that this happens when x=-3 and x=2.