.

This is continous on .

By Fermat's principle a relative extrema occurs when the derivative does not exist or is zero. Since the derivative is zero the only points on the interval is when derivative is zero. And we need to check the boundardy points because they are not gaurennted by the theorem.

Thus,

,

Und,

Thus,

---> Max

---> Min