19Absolute max on a closed interval
Find the absolute maximum value of on .
Compare f at the critical points and endpoints. Critical points are x=0,2 (where f'=0); candidates are x=-1,0,2,4 with f-values -3, 1, -3, 17. The absolute maximum is 17, at x=4.