Taylor expansion square Consider the following expansion $$\sqrt{1+x} = 1 + \dfrac{1}{2}x - \dfrac{1}{8}x^2 + \dfrac{1}{16}x^3 .. $$

Show this equation holds by squaring both sides and comparing terms up to $x^3$.

I wonder, how can I square the right hand side? 

$$ \left( 1 + \dfrac{1}{2}x - \dfrac{1}{8}x^2 + \dfrac{1}{16}x^3 + \dots \right)^2 = \left( 1 + \dfrac{1}{2}x - \dfrac{1}{8}x^2 + \dfrac{1}{16}x^3 + O(x^4) \right)^2  =$$
$$= 1+ \dfrac{1}{4}x^2 + \dfrac{1}{64}x^4 + \dfrac{1}{256} x^6+1-\dfrac{1}{4}x^2 - \dfrac{1}{8}x^3 +  \dfrac{1}{8}x^3 +\dfrac{1}{16}x^4 - \dfrac{1}{64}x^5 + O(x^4) =$$
$$=1+x  + O(x^4)$$
