Let $V\subseteq\mathbb{C}$ be a simply connected domain such that $V\neq\mathbb{C}$, with $a,b\in V, a\neq b.$ Prove that if $g:V\rightarrow V$ is analytic with fixpoints $a,b$, then $\forall z\in V, g(z) = z$.
Here's my attempt at a solution.
Let $$f(z) = g(z) - z.$$ As $V$ is simply connected, for every cycle $\gamma\in V$, $$0 = \int_{\gamma}{f(z)}dz = \int_{\gamma}{(g(z)-z)}dz = \int_{\gamma}{g(z)}dz - \int_{\gamma}{z}dz,$$ so for every cycle $\gamma\in V$, $$\int_{\gamma}{g(z)}dz = \int_{\gamma}{z}dz.$$
This can only be the case if $\forall z\in V, g(z) = z$, so we are done.
I'm not sure whether my last line is correct or not, but I have a feeling that it isn't. Could anyone either confirm that this is a correct proof or point me in the right direction if it's incorrect? Thanks!