34

From a bank of past master's exams I am going through:

Let $F$ be a finite field. Show that any function from $F$ to $F$ is a polynomial function.

I know that finite fields are fields of $p$ elements for $p$ prime [EDIT: It's actually $p^n$ for $p$ prime; see comment below]. Since I have $p$ choices for the $p$ elements to map to, then I have $p^p$ distinct functions. I think every function can be written in the form $f(x) = a_{p-1}x^{p-1} + \dots + a_0x^0$. For then given the values $f(0), f(1), \ldots f(p-1)$, I can solve for the coefficents by the linear system of equations

$$ a_0 + \sum_{i=1}^{p-1} n^i a_i = f(n).$$

This then gives me a $p-1 \times p-1$ square matrix over the field $\mathbb{F}_p$:

$$\left( \begin{array}{ccccc} 1& 0 & 0 & \ldots & 0 \\ 1& 1 & 1 & \dots & 1 \\ 1& 2 & 4 & \dots & 2^{p-1} \\ \vdots & \vdots & \vdots & & \vdots \\ 1 & p-1 & (p-1)^2 & \dots & (p-1)^{p-1} \end{array} \right) \left( \begin{array}{c} a_0 \\ a_1 \\ a_2 \\ \vdots \\ a_{p-1} \end{array}\right) = \left( \begin{array}{c} f(0) \\ f(1) \\ f(2) \\ \vdots \\ f(p-1) \end{array} \right)$$

If I can show this matrix is invertible, then I can always find the $a_i$. But I am a bit stumped on how to show this (partially because I don't think I've ever done linear algebra in a vector space over a finite field). It does not seem easy to show linear independence, or nonzero determinant, or full row rank.


Alternatively (I just thought of this), can I show this is true by arguing that the map between the two sets (the set of polynomials of degree $p-1$; and the set of functions $F \to F$) is injective, and that it must be a bijection because the sets have the same cardinality $p^p$?

Michael Chen
  • 4,251

5 Answers5

19

It might be interesting to you to look up the Lagrange Interpolation Formula. Given a function $f$ from the finite field to itself, it will give you an explicit polynomial $P$ such that the associated polynomial function is equal to $f$.

André Nicolas
  • 514,336
  • Interesting! This is useful, and quick - it turns out that a friend in my study group came up with this when we met. – Michael Chen Apr 10 '11 at 20:48
18

Yes, your second method works and indeed generalizes nicely to functions in $n$ variables.

A similar method to show that every function $f: \mathbb{F}_q^n \rightarrow \mathbb{F}_q$ is given by a polynomial in which the degree in each variable is at most $q-1$ is to give an explicit polynomial formula for the "Dirac delta function" $\mathbb{1}_0(x)$ which is equal to $1$ if $x = (0,\ldots,0)$ and $0$ otherwise. Indeed, we have

$\mathbb{1}_0(x_1,\ldots,x_n) = \prod_{i=1}^n (1-x_i^{q-1})$

as it is a pleasant and easy exercise to check.

Again a cardinality argument shows that any such function $f$ has a unique representation by a reduced polynomial, i.e., by a polynomial whose degree in each variable is at most $q-1$. These observations lead quickly to a proof of the celebrated Chevalley-Warning Theorem: see these notes for a treatment of all these topics.

Pete L. Clark
  • 100,402
  • Do you know whether it is still true that, given $f \colon \mathbb{F}_q^n \mapsto K$ where $K$ is a field extension of $\mathbb{F}_q$ is still a degree-$q-1$ polynomial with coefficients in $K$? To me this seems obviously true, although I would like to know if there are counterexamples. – Another User Mar 28 '24 at 17:41
  • 1
    @AnotherUser: Yes, it is true. For $y \in \mathbb{F}q^n$, the function $1_y(x) = 1_0(x-y)$ is the delta function at $y$ (taking the value $1$ at $y$ and $0$ elsewhere). Just as the $\mathbb{F}_q$-linear span of the functions ${1_y}{y \in \mathbb{F}_q^n}$ gives all maps from $\mathbb{F}_q^n$ to $\mathbb{F}_q$, their $K$-linear span gives all maps from $\mathbb{F}_q^n$ to $K$. Is this useful for something? – Pete L. Clark Apr 02 '24 at 17:47
  • Probably overkill, but it was useful to me for showing that any function on ${-1, 1}^n$ which takes real values is a polynomial in ${s_k}_{k=1}^n$ where each $s_k$ has values in the field. In particular this was relevant for me for probability distributions for spins-1/2 (although the argument should hold for any finite spin). – Another User Apr 03 '24 at 07:35
12

First off, a finite field doesn't necessarily have $p$ elements for $p$ prime. For every prime $p$ and natural number $m>0$ there is a finite field with $p^m$ elements.

Second, your approach is sound - the only piece you're missing is that your matrix is a Vandermonde matrix which, over any field, has a simple expression for its determinant.

Olórin
  • 12,448
Alon Amit
  • 16,091
  • First, this is true for $m>0$ only. (I edited your answer) Second, if $m=1$, the finite field with $p$ elements is "unique" indeed, meaning by that it represents a functor, namely, it is the initial object of the category of rings of characteristic $p$. Finally, if $m>1$, there is no "unique" finite field with $p^n$ elements. It is nevertheless unique in an algebraic closure of $\mathbf{F}_p$, but this algebraic closure is also not "unique". – Olórin Jan 24 '15 at 18:23
  • 4
    Unique up to isomorphism. It is very common to speak of the existence and uniqueness of finite fields of order $p^m$ in this sense. – Alon Amit Jan 26 '15 at 01:42
  • But usually when it is the case, some ambient alg closure of the finite field with p elements has been fixed before etc. Anyway... – Olórin Jan 26 '15 at 01:46
  • There's no need for any ambient field, algebraically closed or not, to be fixed beforehand. All finite fields of the same size are isomorphic. It is usually not the case that an algebraic closure is fixed. – Alon Amit Aug 24 '21 at 21:54
  • They are all isomorphic, but not up to a unique isomorphism, you have non trivial Galois groups, hence the fact that saying "the", implying some unicity/universality, has no sense. Same happens for algebraic closure of a field. It is not unique up to a unique isomorphism, hence one is not supposed to write "the algebraic closure of a given field". – Olórin Aug 25 '21 at 15:46
  • If $p>0$ is prime and if $m\in\mathbf{N}^{}$ then (Galois) there exist a field with $p^m$ elements, and two such fields are isomorphic, the isomoprhism being not* unique. Hence no one speaks of the field with $p^m$ elements. But, if you fix an algebraic closure $k$ of the field with $p$ elements, then, inside it, there is only one field with $p^m$ elements. When someones write "the field with $p^m$ elements", it is usually implied that everything happens in a fixed algebraic closure of the field with $p$ elements. If not, saying the has no sense. – Olórin Aug 25 '21 at 15:47
12

There is a very simple argument based only on dimension and root counting. You want to show that the map$~g$ from the polynomials in $\def\Fq{{\Bbb F_q}}\Fq[X]$ to their polynomial functions in $\Fq^\Fq=\{\,f:\Fq\to\Fq\mid\,\}$ is surjective. It is easy to see the map is $\Fq$-linear and that $\dim(\Fq^\Fq)=q$. It is actually easier to show the stronger statement that the restriction$~\tilde g$ of$~g$ to the subspace $V=\{\,P\in\Fq[X]\mid\deg(P)<q\,\}$ is bijective (so in particular$~\tilde g$ is surjective, and a fortiori so is $g$).

Now $\dim(V)=q$ so$~\tilde g$ is a linear map between two vector spaces of the same dimension; such maps are bijective if and only if they are injective, i.e., have $\{0\}$ as kernel. Now $\ker(\tilde g)$ consists of those $P\in V$ whose polynomial function is the zero function. The part $P\in V$ means that $\deg(P)<q$, and the polynomial function being zero means that all $q$ elements of$~\Fq$ are roots of$~P$. It is well known that a nonzero polynomial over a field cannot have more roots than its degree. This shows that $\ker(\tilde g)=\{0\}$, so $\tilde g$ is bijective, as desired.

11

Hint: Vandermonde matrix.

t.b.
  • 80,986
Fabian
  • 24,230
  • 2
    Wow. I don't think I could come up with that on an exam, but the proof of the determinant formula linked by Wikipedia here is quite beautiful. – Michael Chen Apr 08 '11 at 06:33