In this case, calculating a derivative will not locate any maximums or minimums,
because differentiation locates local maximums and minimums, where a curve's slope changes sign.
The process discovers slopes = 0.
Your curve always has a negative slope everywhere.
If you bound it between x=-4 to x=-2, it is decreasing from f(-4) to f(-2),
so the maximum value is f(-4) and the minimum value is f(-2),
but these are not "local" maximums or minimums.
Do you see the difference?
In this case, we know the maximum and minimum because we know the slope is negative,
so the graph is continually decreasing from f(-4) to f(-2).
If you differentiate the function, you get f[sup:3dpewxtt]'[/sup:3dpewxtt](x) = -1/(1+x)[sup:3dpewxtt]2[/sup:3dpewxtt].
As the denominator is a square, it's +, so the slope is negative always, for all x.