Let $f, g$ be two functions defined on a deleted neighbourhood of $a ∈ R$. If $g(x) \neq 0$ for every x on the deleted neighbourhood and $$\lim_{x\to a}{f(x)\over g(x)} = 1$$
then
$$\lim_{x\to a}{(f(x) - g(x))} = 0$$
I'm asked to prove or disprove this claim, along with others. My instinct in these type of questions is to start figuring out if there are any piecewise function that contradict the statements but I almost feel like I'm searching in the dark with no clear strategy.. is there an agreed upon process regarding searching for counter examples?
What about
$$\begin{cases} f(x) &= \frac{1}{(x-a)^2}+1\\ g(x) &= \frac{1}{(x-a)^2} \end{cases}$$
The idea to find this counterexample is that if $\lim\limits_{x \to a} f(x)$ or $\lim\limits_{x \to a} g(x)$ exists and is finite, then the two limits are equal and therefore the limit of $f-g$ vanishes. So in the counterexample above, I looked at maps having non finite limits.