In my homework i have the problem 3x^2-2x+2 p=[0,1,2,3,4], and i need to solve it by using the definition of the derivative using upper and lower limits. What i am not sure about is how to do the limits when the right side is not always max or min (on 0,1 left side is max but for 1,2 2,3 and 3,4 the right side is max)