Theorem (monodromy theorem for analytic continuation)
Let $D,E\subseteq U\subseteq \C$ be domains and $γ_1, γ_2: [0,1]\to U$ be paths in $U$ from $a$ to $b$.
Suppose
-
$(f,D)$${}\approx_{γ_i}{}$$(g_i, E)$ for $i=1,2$,
-
$γ_1$${}\simeq{}$$γ_2$ as paths, and
-
$(f,D)$ has an analytic continuation along any path starting from $a$ in $U$.
Then $g_1 = g_2$.
Therefore, if $U$ is simply connected and $(f,D)$ can be analytically continued along every path starting from some $a\in D$ in $U$, then $f$ extends to an analytic function on $U$.