Given the function f (x) = - 2 / (x-1), X ∈ {2,3}, find the maximum and minimum of the function

Given the function f (x) = - 2 / (x-1), X ∈ {2,3}, find the maximum and minimum of the function

When the denominator is close to 0, it will be the largest (regardless of the sign, if it is a sign, it will be the smallest)
So the maximum value is when x = 3 and the minimum value is when x = 2