Find the global max and global min of the function on the specified interval.
f (x) = xex on the interval [-2,-1]
The derivative is f'(x) = xex + ex = ex(x + 1). The only critical point occurs at x = -1, which is also an endpoint of the interval in question. It turns out that we only need to evaluate f (x) at the endpoints.
The global maximum of f on this interval is -2e-2 and the global minimum is -e-1.