Find the global max and global min of the function on the specified interval.
on the interval [-1,1]
Rewrite the function to make life easier:
The derivative is
f'(x) = -(x2 + 1) - 2(2x)
which is zero when x = 0.
Now evaluate f at the critical point and the endpoints of the interval:
The global max is y = 1 and the global min is y = 0.5.