Find the maximum and minimum of function f (x) = x / X-1 in the interval [2,5]

Find the maximum and minimum of function f (x) = x / X-1 in the interval [2,5]

f(x)=x/(x-1)=[(x-1)+1]/(x-1)=1+1/(x-1) ,
So the function is a decreasing function in [2,5],
So the minimum value is f (5) = 1 + 1 / 4 = 5 / 4, and the maximum value is f (2) = 1 + 1 / (2-1) = 2