To compute the infimum and supremum of $f(x)=\frac{x^2+x}{x-1}$. I have observed that is increasing for $$x\in\left[\frac1{\sqrt{3}},+\infty\right]\vee \left[-\infty, \frac{-1}{\sqrt{3}}\right]$$ Moreover $x_1=\frac1{\sqrt{3}}$ is local minimum and $x_2=\frac{-1}{\sqrt{3}}$ a local maximum.
But $\displaystyle \lim_{x\to \infty}f(x)=-\infty$ and $\displaystyle \lim_{x\to \infty}f(x)=-\infty$.
Can I conclude from the limit that the supremum of $f$ is $+\infty$ and $-\infty$ is the infimum?
I guess that you are trying to find inf and sup of the image of $f$. In this case yes, the sole information that $\lim_{x\to\pm\infty}f(x)=\pm\infty$ is sufficient. In the case the local minima and maxima are to be found, then one of course need to find the critical points of $f$ by posing $f'(x)=0$.