I had to minimise the function
$$f(x) = \frac{x^2 - x +4}{x-1}$$
I did the method where I found the range of this function and found the minimum value. However I know some basic calculus and was trying to find it using that but I am not able to. So, how do we find minima of this expression using calculus?