Let $F$ be an infinite field and let $f \in F[x_{11},x_{12},...,x_{nn}]$ be an arbitrary polynomial in $n^2$ variables. Consider the function $\phi : M_n(F)\longrightarrow F$ defined by $\phi((a_{ij})) = f(a_{11},a_{12}, ..., a_{nn})$ and suppose that $\phi(I_n) = 1$ and $\phi(AB)= \phi(A)\phi(B)$, for any $A,B \in M_n(F)$. Is it true that $f$ is equal to some power of the determinant (considered as a polynomial of $n^2$ valiables $x_{ij}$).
Comment: When $f$ is a homogeneous polynomial then the problem is known to be true but I have no idea for the general case.