now, we get critical points from zeroing out the derivative, and also from zeroing out the denominator, but those at the denominator are critical points where the function is not differentiable, namely a sharp spike or cusp or an asymptote.
so, from zeroing out the derivative we get no critical points there, from the denominator we get x = 8, but can't use it because f(x) is undefined.
therefore, we settle for the endpoints, 4 and 6,
f(4) =3 and f(6) = 7
doing a first-derivative test, we see the slope just goes up at both points and in between, but the highest is f(6), so the absolute maximum is there, while we can take say f(4) as the only minimum and therefore the absolute minumum as well.