f(x)=2+(x+1)2 for -2≤x<7.
f(-2)=2+1=3; f(7)=2+64=66.
f'(x)=2x+2; when f'(-1)=0, which is the absolute minimum point (-1,2), the vertex of the parabola.
x=-1 lies between -2 and 7, so the absolute minimum is smaller than f(-2). The local maximum is f(7)<66, because the given interval does not include f(7), so the local maximum is NONE, although it approaches 66.

The green vertical lines mark the given interval.