I'm trying to solve the following limit, but plotting the functions shows clearly that I'm wrong. I can't understand what's wrong with my reasoning, although I'm pretty sure I'm missing some basilar thing.
$$\lim_{x \to \infty} \sqrt{x}(\sqrt{x-1}-\sqrt{x}) = \lim_{x \to \infty} (\sqrt{x^2-x}-x) = \lim_{x \to \infty} (x\sqrt{1- \frac{1}{x}}-x) = \lim_{x \to \infty} (x - x) = 0 $$
This is how I'm ding it, but plotting the function shows that the limit should be $-\frac{1}{2}$.
Could someone show me what's wrong with what I'm doing?