Let $k$ be a field and $A^{n}$ denote the affine $n$ space over $k$, consisting of all $n-$tuples with entires from $k$ that is, $A^{n}:=\{(a_{1},\ldots,a_{n})|a_{i}\in k\}$
We know every polynomial $f\in k[x_{1},\ldots,x_{n}]$ defines a map $$f:A^{n}\longrightarrow k$$ given by $$(a_{1},...,a_{n})\longmapsto f(a_{1},...,a_{n})$$
My question is the following,
When several polynomials define the same mapping ?
My attempt:
Suppose our base field has infinite elements. Let $P$ and $Q$ be two polynomial which define the same map. This is equivalent to saying that $P(a_{1},\ldots,a_{n})=Q(a_{1},\ldots,a_{n})$ for all $(a_{1},\ldots,a_{n})\in A^{n}$
Consider the polynomial $H=P-Q$, since $P$ and $Q$ take same value for each point in affine space $H$ has infinitely many roots (as there are infinitely many elements in $k$, so infinitely many points in $A^{n}$). But every polynomial of given degree $n$ has atmost $n$ roots. So the only choice for $H$ is $0$ hence we conclude (by comparing the coefficient ) that $P$ and $Q$ are same.
But what about the case when there are only finitely many elements in our field.
I am pretty much sure that we can find several polynomials that define the same mapping.