Using a graphing calculator to find local extrema of a polynomial function