For $k$ an infinite field, for integer $n\geq2$, for $p \in k[x_1,\ldots,x_n]$, if $p(\vec{a}) = 0$ for all $\vec{a} \in k^n$, then is $p$ the zero polynomial? (Here by "infinite" field we mean a field having infinitely many elements.)
My understanding so far is as follows:
If $k$ is algebraically closed, then $p$ is contained in all max ideals of $k[x_1,\ldots,x_n]$, but the intersection of all max ideals in this situation is 0.
For $k = \mathbb{R}$, from analysis we know a polynomial vanishing everywhere is the zero polynomial. Similarly we can use analysis for the $k=\mathbb{Q}$ case.
(If I'm not mistaken, an example of a nonzero polynomial vanishing everywhere with $n\geq2$ but $k$ finite can be achieved by taking $\prod_{a \in k}(x_1-a)$.)