I'm new to this all concept of O-notation and be glad if you could help me with understanding the following proof:
Calculate : $$\frac{f(x) + O(|x-x_0|))}{f(x) + O(|x-x_0|)}$$ Where $f(x)$ is continuous and $f(x_0) \ne 0$.
The author does the following:
Denoting $\delta = |x-x_0|$ (it should be possible as far as I understand)
$$\frac{f(x)}{f(x)+O(|\delta|)} \simeq \frac{f(x)}{f(x)+c\delta} \simeq \frac{f(x) + c\delta - c\delta}{f(x)+c\delta} = 1 - \frac{c\delta}{f(x)+c\delta} \color{red}{=} 1 + O(\delta) $$
$$\frac{O(\delta)}{f(x)+O(\delta)} \stackrel{\text{by continuity }}{\simeq} \frac{O(\delta)}{k+O(\delta)} \color{green}{\simeq} O(\delta)$$
I marked with colors two equation I don't quite understand and be glad for explanation.
Thanks!