Ok, I have more time than I thought I did, so I can reply more fully.
The derivative describes the slope of the line of the graph of the function, and the maximums and minimums are at those points where the slope is 0. There are no points for which this equation or its derivative is undefined, so we won't go into that.
First you take the derivative of the function:
Now solve for f'(x) = 0:
Both of those critical numbers are in the domain specified, so we can proceed to testing the points using the first-derivative test:
- (x,f(x)) is a relative maximum if
- f'(x) > 0 for all x on an open interval (a,x) to the left of x
- f'(x) < 0 for all x on an open interval (x,b)to the right of x
- (x,f(x)) is a relative minimum if
- f'(x) < 0 for all x on an open interval (a,x)to the left of x
- f'(x) > 0 for all x on an open interval (x,a)to the right of x
Thus we find that at (-1,-1) there is a relative minimum and at (1,1) there is a relative maximum. To prove that those are actually absolute extremums requires the application of the intermediate value theorum, which is a fancy way of saying that by showing that the value of the function at x = -2 is less than 1 and the value of the function at x = 4 greater than -1, you can argue that the function on this interval is never less than -1 or more than 1 and that the points represent absolute extremums.