For a real analytic function $f:(a,b)\to\Bbb R$ we have that if $f'(x)\neq 0$ for all $x$ in the interval $(a,b)$, then $f$ is injective. My question is whether similar holds if $f$ is a holomorphic function $$f:G\to\Bbb C$$ where $G\subseteq\Bbb C$ is a simply connected, open area and $f'(z)\neq 0$.
A simple counter example is $f:z\mapsto z^2$ if $G$ is simply connected such that $-1,1\in G$ but $0\notin G$. Then $f$ is not injective even though $f'(z)\neq 0$ everywhere. So the idea is to fix the preconditions somehow. A second take:
Question: Let $f:G\to S$ be holomorphic with $f'(z)\neq0$ and where $G,S\subseteq\Bbb C$ are open and simply connected areas with $f(G) = S$. Does this imply that $f$ is injective?
It seems to fix the case $f:z\mapsto z^2$ because if $-1,1\in G$, there is some path $\gamma$ that connects $-1$ and $1$. But then $f(\gamma)$ runs around $0$, and because $S=f(G)$ is simply connected, there must be $0\in S$. This means $0\in G$ and thus $f'(z)\neq0$ does not hold and the conjectured theorem does not apply.