1.

Notice, that the derivative has a double root from what results, that the function is a hyperbola with focus in ,

the extrema are then and :

2. , belongs to the interval,

all we have to do now is to check the function values for the variable of , and and pick the highest and the lowest one.