How to solve $\lim_{x\to1}=\frac{x^2+x-2}{1-\sqrt{x}}$? let $f(x)=\dfrac{x^2+x-2}{1-\sqrt{x}}$
How do I solve this limit?
$$\lim_{x\to1}f(x)$$
I can replace the function with its content
$$\lim_{x\to1}\dfrac{x^2+x-2}{1-\sqrt{x}}$$
Then rationalizing the denominator
$$\lim_{x\to1}\dfrac{x^2+x-2}{1-\sqrt{x}}\cdot\dfrac{1+\sqrt{x}}{1+\sqrt{x}}$$
With $(a + b)(a - b) = a^2 - b^2$, I can remove the irrational denominator.
$$\lim_{x\to1}\dfrac{(x^2+x-2)(1+\sqrt{x})}{1-x}$$
I the multiply the two parenthesis
$$\lim_{x\to1}\dfrac{\sqrt{x} \cdot x^2+\sqrt{x}\cdot x- \sqrt{x} \cdot 2 + x^2 + x - 2}{1-x}$$
I'm not sure where to continue to solve this limit.

Alternatively you can alwasy factor the hard way:
$\frac {x^2 + x - 2}{-\sqrt x + 1}=$
$\frac {x^{\frac 32}(\sqrt{x} - 1) + x^{\frac 32} + x - 2}{-\sqrt x + 1}=$
$-x^{\frac 32} + \frac {x(\sqrt x-1) + 2x - 2}{-\sqrt x+ 1}=$
$-x^{\frac 32} -x + \frac {2\sqrt x(\sqrt x -1) +2\sqrt x - 2}{-\sqrt x +1}=$
$-x^{\frac 32} - x - 2\sqrt{x}-2$
So $\lim\limits_{x\to 1} \frac {x^2 + x - 2}{-\sqrt x + 1}=\lim\limits_{x\to 1}(-x^{\frac 32} - x - 2\sqrt{x}-2) = -(1^{\frac 32}) - 1 - 2\sqrt 1 - 2= -1-1-2-2 = -6$.
Which is kind of difficult and hard and one ought to have seen and made use of $x^2 +x -2= (x+2)(x-1)$ and somehow noticed that $(x -1) = (\sqrt x+1)(\sqrt x -1)$ to make it easier.  
But sometimes we don't see things and it's nice to know that brute force can work when we don't.
........
Or if we just let $y = \sqrt x$ then $\lim_{x\to 1} \frac {x^2 + x - 2}{1-\sqrt x }= \lim\limits_{y^2 \to 1;y > 0}\frac {y^4 + y^2 - 2}{1-y}$ and psychologically that seems easier.  We just factor $y^4 + y^2 -2 = (y^2 + 2)(y^2 - 1) = (y^2+2)(y+1)(y-1)$ and the $y-1$s cancel out.
