Suppose $$ F(z)= \begin{cases} \dfrac{f(z)-f(a)}{z-a}, & z\ne a\\[2ex] \quad f'(a), & z=a \end{cases} $$ Here $f$ is analytic on a simply connected domain $D$ containing $a$. Clearly, $F$ is analytic on $D\setminus\{a\}$ since it is a composition of analytic functions. I want to show that $F$ is analytic on $D$.
I tried to prove it using the definition. To show analyticity on $D$, we can show differentiability at $a$. So I tried evaluating the limit: $$ \lim_{z\to a} \dfrac{F(z)-F(a)}{z-a} $$
Substituting $F(z)$, $$ \lim_{z\to a} \dfrac{\dfrac{f(z)-f(a)}{z-a}-f'(a)}{z-a} $$
Since $f$ is analytic, $\lim_{z\to a}\dfrac{f(z)-f(a)}{z-a}=f'(a)$. It's been a long time since I evaluated limits but I know that I can't just substitute this in the numerator since I need to account for the denominator as well. Any help would be appreciated.
If the Taylor series of $f$ centered at $a$ is $\sum_{n=0}^\infty a_n(z-a)^n$, then $a_0=f(a)$ and therefore near $a$ you have$$F(z)=\frac{f(z)-f(a)}{z-a}=\sum_{n=1}^\infty a_n(z-a)^{n-1}=\sum_{n=0}^\infty a_{n+1}(z-a)^n.$$