A question about two analytic functions $f$ and $g$

analytic-functionscomplex-analysissolution-verification

This particular question was asked in my complex analysis assignment and I am asking for proof verification here.

Question: Is following statement true or false? Justify. Let $f,g :\mathbb{C} \to \mathbb{C} $ be complex analytic and let $ h: [0,1] \to \mathbb{C}$ be a non-constant continuous map. Suppose $f(z)=g(z)$ for every $z \in \text{Im}(h)$, then $f=g$.

As $[0,1]$ is compact so $\text{Im}(h)$ would be compact and not singleton. So, every sequence in $\text{Im}(h)$ would have convergent subsequence whose limit is also in $\text{Im}(h)$. So, I can use identity theorem to prove that $f=g$.

Is my proof correct?

Best Answer

Your argument is not correct. $\{1,2\}$ is compact and not a singleton but it has no limit points. You have to use the connectedness of the range of $h$ to say that there is a limit point.

[Any continuous map from a connected space into a discrete space is a constant].