I'm learning about complex analysis and need some help with this problem:
If $f: \mathbb{C} \rightarrow \mathbb{C}$ is analytic and $\lim_{z \to \infty} f(z) = \infty$ show that $f$ is a polynomial (hint: consider the function $g(z) = f(1/z)$).
Recall that poles are points where evaluating the function would entail dividing by zero. Therefore, since $\lim_{z \to \infty} f(z) = \infty$ this means that $\infty$ is a pole of $f$. How do I continue from here and make use of the hint?
I should mention that this problem has already been asked by other members but I could not find any solution using the given hint.
Suppose $f$ has Taylor series $$ f(z)=\sum_{n=0}^{\infty}a_nz^n \quad\text{and }\quad g(z) =f(1/z) =\sum_{n=0}^{\infty}\frac{a_n}{z^n} $$ If $f$ is not polynomial, then $0$ is an essential singularity of $g$ ($\infty$ is an essential singularity of $f$). By Casorati-Weierstrass theorem, for any $A\in \Bbb{C}$, there is a sequence $z_n\to0$ such that $\lim_{n\to\infty}g(z_n)=A$, i.e. there is $z_n'=1/z_n\to\infty$ such that $\lim_{n\to\infty}f(z_n')=A$, contradicting $\lim_{n\to\infty}f(z)=\infty$.