I have the following homework question:
Let G be the bounded open set shown in gray in this picture, whose boundary consists of eight line segments. The endpoints of those segments are, as shown, the points $-2,-1,-1+4i,1+4i,1,2,2+5i,-2+5i$.
Let $f:\, G\to\mathbb{C}$ be an arbitrary function which is holomorphic in $G$. Does there a function $g:\, G\to\mathbb{C}$ which satisfies $g'(z)=f(z)$ for all $z\in G$ ? one tool that might be useful here is the Identity Theorem.
What I did:
I believe that I can construct such a function, but I am unsure if my construction is correct:
I would take some sequence of points $\{z_{i}\}_{i=1}^{\infty}$, s.t there exist $\{r_{i}\}_{i=1}^{\infty}$ s.t $D(z_{i},r_{i})\subseteq G$ and s.t $$\cup_{i=1}^{\infty}D(z_{i},r_{i})=G$$
I believe that such a sequence of points can be obtained by choosing all the points $x+iy\in G$ s.t $x,y\in\mathbb{Q}$.
Moreover, I think that the points can be arranged s.t $$D(z_{i},r_{i})\cap D(z_{i+1},r_{i+1})\neq\emptyset$$
We first consider $D(z_{0},r_{0})$ - there is some $g_{0}:\, D(z_{0},r_{0})\to\mathbb{\mathbb{C}}$ s.t $g_{0}'=f$ in $D(z_{0},r_{0})$, since $f$ is holomorphic.
We continue with $z_{1}$and get $\widetilde{g_{1}}$, since $g_{0}'=\widetilde{g_{1}}'$ for all points in $D(z_{0},r_{0})\cap D(z_{1},r_{1})$ then $g_{0}-\widetilde{g_{1}}$ is a constant $c$, and we can pick $g_{1}=\widetilde{g_{1}}+c$. We take $g(z)$ will be eventually defined for every $z\in G$ as one of the $g_{i}$'s.
This construction looks a bit fishy to me, I am not sure about the "moreover" part and even if so, I am not totally convinced I can arrange the constants to fit to get a holomorphic function $g$.
ADDED:
Instead of $$D(z_{i},r_{i})\cap D(z_{i+1},r_{i+1})\neq\emptyset$$ we can relax the condition to be $$\cup_{i=1}^{r}D(z_{i},r_{i})\cap D(z_{i+1},r_{i+1})\neq\emptyset$$
Is my construction correct ?
I would also appreciate to see another approach (maybe one that uses the Identity Theorem as suggested)
