[step:Construct a polynomial that vanishes on all of $\mathbb{F}_q^n$]Write $P(X) = \prod_{i=1}^m (1 - f_i(X)^{q-1})$ and $Q(X) = \prod_{i=1}^n \prod_{s \in \mathbb{F}_q^\times}(X_i - s)$. By Fermat's little theorem in $\mathbb{F}_q$, every $a \in \mathbb{F}_q^\times$ satisfies $a^{q-1} = 1$, and $0^{q-1} = 0$. Therefore $1 - f_i(x)^{q-1}$ equals $1$ when $f_i(x) = 0$ and $0$ when $f_i(x) \neq 0$, so $P(x) = 1$ if $x$ is a common zero of $f_1, \ldots, f_m$ and $P(x) = 0$ otherwise.
For $Q$: the factor $\prod_{s \in \mathbb{F}_q^\times}(X_i - s)$ vanishes at $x_i$ if and only if $x_i \in \mathbb{F}_q^\times$, i.e., $x_i \neq 0$. So the full product $Q(x) = 0$ if and only if some $x_i \neq 0$, i.e., $x \neq (0, \ldots, 0)$. In particular, $Q(0, \ldots, 0) = \prod_{i=1}^n \prod_{s \in \mathbb{F}_q^\times}(-s) \neq 0$.
Set $\gamma = 1 / Q(0, \ldots, 0) \in \mathbb{F}_q^\times$ and define
\begin{align*}
f(X) = P(X) - \gamma\, Q(X).
\end{align*}
We verify $f$ vanishes on every $x \in \mathbb{F}_q^n$:
- **$x = (0, \ldots, 0)$:** Here $P(0) = 1$ (the origin is a common zero) and $\gamma \, Q(0) = 1$ by the choice of $\gamma$, so $f(0) = 0$.
- **$x \neq (0, \ldots, 0)$:** Since the origin is the unique common zero, $x$ is not a common zero of $f_1, \ldots, f_m$, so $P(x) = 0$. Since $x \neq 0$, some coordinate $x_i \neq 0$, so $Q(x) = 0$. Therefore $f(x) = 0 - 0 = 0$.[/step]