I'm learning about complex analysis and need some help with this problem:
Let $\mathbb{\Omega}$ open, simply connected, $f: \mathbb{\Omega} \rightarrow \mathbb{C}$ analytic without zeros in $\Omega$ and $n \in \mathbb{N}$. Show that there exists $g: \mathbb{\Omega} \rightarrow \mathbb{C}$ analytic such that $g(z)^n = f(z)$ for all $z \in \mathbb{\Omega}$.
If I understand the problem correctly we want to show that there exists $g(z) = \sqrt[n]{f(z)}$ analytic in $\Omega$ but I have no idea how to tackle it.
Since the domain is simply connected, there is an analytic branch of $\log f(z)$ on $\Omega$ given by $L(z)$, where $$L(z) = \int_{z_0}^z {f'(z) \over f(z)}\,dz$$ Here $z_0$ is any fixed point in $\Omega$, and the integral is over any curve starting at $z_0$ and ending at $z$. Since the domain is simply connected, by Cauchy's theorem this definition of $L(z)$ does not depend on which curve is chosen. It is not hard to show that $e^{L(z)} = f(z)$ for all $z \in \Omega$. Therefore ${\displaystyle g(z) = e^{L(z) \over n}}$ will satisfy $$g(z)^n = e^{L(z)} = f(z)$$