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.

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}$$
