Limit of an indeterminate form with a quadratic expression under square root The problem is:
$$ \lim_{x\to0}\frac{\sqrt{1+x+x^2}-1}{x} $$
So far, I've tried substituting $\sqrt{1+x+x^2}-1$ with some variable $t$, but when $x\to0$, $t\to\sqrt{1}$.   
I have also tried to rationalize the numerator, and applied l'hospital.   
I simply can't figure out this limit.   
Any help would be greatly appreciated! Thanks in advance.
 A: $$\lim _{ x\to 0 } \frac { \sqrt { 1+x+x^{ 2 } } -1 }{ x } \cdot \frac { \sqrt { 1+x+x^{ 2 } } +1 }{ \sqrt { 1+x+x^{ 2 } } +1 } =\lim _{ x\to 0 } \frac { x+{ x }^{ 2 } }{ x\sqrt { 1+x+x^{ 2 } } +1 } =\lim _{ x\to 0 } \frac { 1+x }{ \sqrt { 1+x+x^{ 2 } } +1 } =\frac { 1 }{ 2 } $$
A: Rationalizing the numerator is the way to go.  We have
$$\frac{\sqrt{x^2+x+1}-1}{x}\times \frac{\sqrt{x^2+x+1}+1}{\sqrt{x^2+x+1}+1}=\frac{x(x+1)}{x(\sqrt{x^2+x+1}+1)}=\frac{x+1}{\sqrt{x^2+x+1}+1}$$
Can you finish now?
A: Also you can use L'Hopital's rule:
$$ \lim_{x\to0}\frac{\sqrt{1+x+x^2}-1}{x}=\frac00=\lim_{x\to0}\frac{\frac{d}{dx}\left[\sqrt{1+x+x^2}-1\right]}{\frac{d}{dx}\left[x\right]}=\lim_{x\to0}\frac{1+2x}{2\sqrt{1+x+x^2}}=\color{red}{\frac12} $$
A: The binomial expansion for a square root is simple:
$$\sqrt{a+b}=(a+b)^{1/2}=a^{1/2}+\frac12b\cdot a^{-1/2}+\mathcal O(b^2\cdot a^{-3/2})$$
Thus,
$$\sqrt{1+x+x^2}=1^{1/2}+\frac12(x+x^2)1^{-1/2}+\mathcal O(x^2)$$
$$\begin{align}\frac{\sqrt{1+x+x^2}-1}x&=\frac{1+\frac12(x+x^2)-1+\mathcal O(x^2)}x\\&=\frac{\frac12(x+x^2)+\mathcal O(x^2)}x\\&=\frac12(1+x)+\mathcal O(x)\\&\to\frac12(1+0)=\frac12\end{align}$$
