the generalized Liouville theorem The Liouville theorem state:

Let $f$ be an entire function for which there exists a positive number M such that $|f(z)|\leq M$ for all z in $\mathbb{C}$, the $f$ must be a constant.

more general form of this theorem is :

Let $f$ be an entire function for which there exists a positive number M and a polynomial $P$ such that $|f(z)|\leq M |P(z)|$ for all z in $\mathbb{C}$ then $f(z)=k P(z)$ for $k$ a constant.

who know a good proof of this generalized form ?
Generalized Liouville's theorem.  Suppose $f(z)$ is an entire function such that $|f(z)|\le c|z|^n$ for some constant $c$ and some nonnegative integer $n$ for sufficiently large $|z|$. Then $f$ is a polynomial of degree at most $n$.

Proof. By Liouville's theorem, the statement is true for $n=0$. Suppose true for $n-1$. Consider $$g(z)=\left\{\begin{array}{ll} \frac{f(z)-f(0)}{z}, &amp; z\neq 0\\ f'(0), &amp; z=0\end{array}\right.$$
Then $g$ is entire, and for sufficiently large $|z|$, $$|g(z)|\le c_1|z|^{n-1}$$ for some constant $c_1$. (This is because $|f(0)|/|z|, |f'(0)|$ are bounded for large $|z|$, and $a+b|z|^{n-1}\le c_1|z|^{n-1}$ for large $|z|$.)

Hence by induction hypothesis, $g$ is a polynomial of degree at most $n-1$. Then it follows easily by the definition of $g$ that $f$ is a polynomial of degree at most $n$.
If f is dominated by P like in your statement, then it is dominated by many other polynomials. If your generalization were correct, it would imply that all these polynomials are collinear. This can not be true, as soon as you consider nonconstant polynomials P.
You might want to prove that f is a polynomial, not necessarily of the type you mention.
Maybe you can start by looking at the case when $|f(z)\leq M|z|^n$.
Then you can see that the general case boils down to the latter.

Reference: see exercises 3 and 4 p.227 in Rudin's Real and Complex Analysis.