I have two definitions of derivatives. The first one is the one provided in Rudin:
Let $f: [a,b] \to \mathbb{R}$ be a function. Let $x \in [a,b]$.
Let $\phi: (a,b) \setminus \{x\}\to\mathbb{R}: t \mapsto \frac{f(t)- f(x)}{t-x}$
Then we define $f'(x) = \lim_{t \to x} \phi(t)$, provided that the limit exists.
Here's the second one:
Let $f: E \subseteq \mathbb{R} \to \mathbb{R}$ be a function, $x \in E$ and $x$ a limit point of $E$. Put
$\phi: E \setminus \{x\} \to \mathbb{R}: t \mapsto \frac{f(t)- f(x)}{t-x} $.
Then we define $f'(x) = \lim_{x \to t} \phi (t)$, provided that the limit exists.
I want to show that the second definition implies the first, when we put $E = [a,b]$.
So, in particular, I want to show that for every $x \in [a,b]$
$\lim_{t \to x, t \in (a,b) \setminus \{x\}} \frac{f(t)-f(x)}{t-x}$ exists $\iff$ $\lim_{t \to x, t \in [a,b] \setminus \{x\}} \frac{f(t)-f(x)}{t-x}$
and if one of the two exists, both are equal.
Clearly, $\Leftarrow$ is satisfied (immediately from the limit definition).
For the other direction, put $q:= \lim_{t \to x, t \in (a,b) \setminus \{x\}} \frac{f(t)-f(x)}{t-x}$. If $x \in (a,b)$, then it is an interior point and the limit is equal to the other one.
WLOG, assume $x = a$. Let $\epsilon > 0$. Choose $\delta > 0$ such that $|q - \frac{f(t)-f(a)}{t-a}| < \epsilon$ for all $t \in (a,b)$ with $0 < |t-x|< \delta$.
Then, if $t \in [a,b] \setminus \{a\}$ with $0 < |t-a| < \min \{\delta, |b-a|\}$, then $t \neq b, t \neq a$ and we can make the quantity smaller than $\epsilon$.
Does this seem correct? Are there any arguments against using the second definition over the first one, as it seems more general?