I'm trying to prove a version of the Identity Theorem for single variable real functions:
Let $J\subset I \subset \mathbb{R}$ be non-empty, open intervals. Show that, if functions $f, g: I \to \mathbb{R}$ are real analytic on the interval $I$ such that $$f(x)=g(x) \ \forall x \in J,$$ then $$f(x)=g(x) \ \forall x \in I.$$
I have read this question, but unfortunately I'm only a beginner in real analysis and I don't know anything about topology etc, so the answer for that question goes over my head.
My idea for proving this was to expand the set for which the functions are equal step by step. Let $J=\left]a,b\right[$ and $I=\left]c,d\right[$. First, consider the function $f-g$ at the point $a$. To the right of $a$, the function $f-g$ must be zero, and using the power series expansion for $f-g$, one can conclude that $f-g$ must also be zero left of $a$, but only for some distance $\delta_1>0$ as given by the analyticity of $f$ and $g$. Now just repeat at each new endpoint until the set $I$ is reached.
However, what guarantees that the sequence $\{\delta_i\}$ doesn't approach zero too fast? Too fast in the sense that the endpoint of $I$ is never reached using this method. Is there a way to restrict the size of $\delta_i$ or is this approach simply not viable?