This question concerns the best answer to another post on this website:How is the derivative truly, literally the "best linear approximation" near a point?.
The author writes this lemma and gives a proof.
Lemma: If a differentiable function $f$ can be written, for all $x$ in some neighborhood of $a$, as $$f(x) = A + B\cdot(x-a) + R(x-a)$$ where $A, B$ are constants and $R\in o(x-a)$, then $A=f(a)$ and $B=f'(a)$.
Proof: First notice that because $f$, $A$, and $B\cdot(x-a)$ are continuous at $x=a$, $R$ must be too. Then setting $x=a$ we immediately see that $f(a)=A$.
The proof then continues...
What I am confused about is the conclusion that $f(a)=A$. I do not see how the author concludes this. To have $f(a)=A$, we must have $R(a-a)=R(0)=0$. But how do we know $R(0)=0$?
We know that $R$ is continuous at $x=a$ and therefore at $0$. So we know that $\lim _{x \to 0}R(x)=R(0)$. But $R\in o(x-a)$, so $\lim_{x \to a} \frac{R(x)}{x-a}=0$. Letting $\epsilon=1$ and applying the definition of limit we see $-(x-a)<R(x)<(x-a)$, and by squeeze theorem $\lim_{x \to a} R(x)=0$, but that doesn't help because we need to find $R(0)$ and we haven't proven that $R$ is continuous at $a$ so we can't conclude $R(a)=0$. Is there some mistake here? Anyway, those are just my thoughts. Please provide feedback, and if you spot any error, please correct me.
The point of the post is this: how do we know $R(0)=0$?