The function is
.
To find the absolute extreme of function in given region
, sketch the function.

Observe the graph :
\Left end point
is maximum point over the interval
.
Right end point
is minimum point over the interval
.
Minimum point is
.
Maximum point is
.