Characterising Finite Fields
Building Fields out of Polynomial Rings
In Polynomial Congruences we built the ring , whose elements are the polynomials of degree less than with addition and multiplication carried out modulo . The whole point of this lecture is to work out exactly when that construction produces a field, because the fields it produces turn out to be every finite field there is.
Note
Theorem
Given any ring and polynomial , the set is itself a ring.
Proof. The elements are the possible remainders modulo , and addition and multiplication are defined by doing the operation in and then reducing mod . Reduction is well defined because the Division Theorem gives a unique remainder of degree less than . Associativity, commutativity and distributivity are then inherited straight from (reducing at the end never changes which class you land in), the zero polynomial is the additive identity, is the additive inverse of , and the constant polynomial is the multiplicative identity. So every ring axiom holds.
So the ring structure is free; what is interesting is division. Recall from Rings and Fields that a field is a commutative unital ring in which every nonzero element has a multiplicative inverse. Whether manages that depends entirely on .
Note
Theorem
Given any field and polynomial , the ring is a field if and only if is irreducible in .
Proof. () Suppose is irreducible, and take any nonzero in the quotient, so and . The only monic divisors of an irreducible are and itself, and , so . By Bézout's identity for polynomials there are with
and reducing mod kills the middle term, leaving in . So is the inverse of , and every nonzero element is invertible; the quotient is a field.
() We prove the contrapositive: if is reducible, the quotient is not a field. Write with . Then in the quotient both and are nonzero (their degrees are too small to be multiples of ), yet
So and are zero divisors, and as we saw in Rings and Fields a zero divisor can never be a unit; hence has no inverse and the quotient is not a field. (If instead is a nonzero constant then the quotient collapses to , and if it is all of , which is not a field either.)
Basically, irreducible polynomials are to what primes are to : just as is a field exactly when is prime (from Rings and Fields), is a field exactly when is irreducible. The reducible case fails for the same reason fails — a nontrivial factorisation of the modulus hands you two zero divisors.
Example. Which of and are fields?
By the theorem we only need to know whether each modulus is irreducible over , and for a quadratic that just means checking for roots (a quadratic factors over a field if and only if it has a root).
- : testing both elements of , we get and , so there is no root. Hence is irreducible and is a field.
- : here in , so is a root and over . Hence is reducible and is not a field.
Therefore the first is a field and the second is not. As a sanity check on the second, in that quotient even though ; the element squares to zero, which no element of a field can do.
The Characteristic of a Finite Field
Note
Definition
A finite field is a field with a finite number of elements.
Note
Definition
The characteristic of a finite field is the smallest such that
Basically, the characteristic measures how many times you have to add the multiplicative identity to itself before you loop back round to . Such an always exists in a finite field, because the list cannot go on forever without a repeat, and once two of them are equal their difference is a run of s summing to .
The freshly built fields make the characteristic concrete. Consider where is prime and is irreducible over of degree . Then:
- has characteristic , because the constant lives in the part and adding it to itself times gives (and no fewer, since is the characteristic of ).
- has elements, because each element is a polynomial of degree less than , and there are independent choices for each of the coefficients. We say has order . Be careful: "order" here means the number of elements of the whole field, which is a completely different thing from the order of a single element; both words are unavoidable, so always check from context which one is meant.
That the characteristic came out prime was not a fluke.
Note
Theorem
The characteristic of any finite field is a prime number.
Proof. Let be a finite field with characteristic , and write for the sum of copies of . We know , since in any field. Suppose for contradiction that is composite, say with . Using distributivity,
Since is a field it has no zero divisors, so either or . But and are both smaller than , and was the smallest positive integer with — a contradiction. Hence has no such factorisation; that is, is prime.
Notice this is the exact same argument that made a field only for prime : a composite modulus splits into factors that multiply to zero. The next theorem goes much further, and its proof is genuinely hard, so it is quoted rather than proved.
Note
Theorem
The order of any finite field is for some prime and positive integer .
The proof is beyond this course, but the result is enormously important: it says that the only possible sizes for a finite field are prime powers. So there is no field with , or elements, no matter how cleverly you try to build one — and in particular was never going to be a field. A finite field of size can exist only when is a prime power; commit that to memory, because half the questions in this topic are secretly just asking whether is a prime power.
Every Prime Power Really Occurs
The size theorem rules sizes out. The next result says nothing more is ruled out: every prime power genuinely is achieved, and in essentially only one way.
Note
Theorem
For every prime and positive integer , there exists a finite field of order .
To even state uniqueness we need to say when two fields count as "the same".
Note
Definition (loose)
Two rings and are isomorphic, written , if the elements of can be matched up one-to-one with the elements of so that their addition and multiplication tables become identical under the matching.
For example , the Gaussian integers, via the matching : the relation in the quotient becomes exactly , so all the arithmetic lines up. Basically, isomorphic rings are the same object wearing different clothes; only the names of the elements differ.
Note
Theorem
For a given prime and positive integer , there is only one finite field of order up to isomorphism.
Note
Definition
The finite field of order is called the Galois field of order , written , or more commonly (or just where ).
Note
Corollary
for any irreducible in of degree .
Together these theorems completely characterise the finite fields, which is what the lecture's title is about. They also hand us a recipe: to build the field of order , pick any irreducible polynomial of degree over and form the quotient — which is a field by the irreducibility criterion. Different choices of give fields that look superficially different but are all isomorphic, so it genuinely does not matter which irreducible you grab.
Example. Construct a finite field of order for each from to , or explain why none exists.
A field of order exists exactly when is a prime power ; then when , and for an irreducible degree- modulus when .
| ? | Construction | |
|---|---|---|
| no | is not a prime power with ; a field needs , so at least elements | |
| yes | ||
| yes | ||
| yes | ||
| yes | ||
| no | is not a prime power | |
| yes | ||
| yes | ||
| yes | ||
| no | is not a prime power |
The three composite prime powers need a short justification of the modulus:
- : we need an irreducible quadratic over , and has no root in (checked above), so it works. Note that is not : the ring is not even a field, since is a zero divisor there. This is the single most common mistake in the topic — for a prime power with , the field of that order is a polynomial quotient, never .
- : we need an irreducible cubic over . Now has no root ( and ), and a cubic with no root is irreducible (any factorisation would force a linear factor, i.e. a root), so works.
- : we need an irreducible quadratic over , and has no root in (the values are at ), so it works.
Order and Primitive Elements in Finite Fields
For the rest of the lecture write , so . Recall from Rings and Fields that in any field every nonzero element is a unit, so the unit group is simply
a set of elements. Everything we proved about orders and primitive elements in in Order and Primitive Elements now transplants wholesale, with playing the role that played before.
Note
Definition
Given any , the order of in , written , is the smallest positive integer such that in .
This is the same definition as from before, just with the field in place of . The proofs of the next few results are word-for-word the proofs from Order and Primitive Elements and Fermats Little Theorem and Eulers Theorem, so we state them and move on.
Note
Theorem (Generalisation of Fermat's Little Theorem)
For any we have in . Equivalently, for any we have .
The two forms are equivalent: multiplying by gives for units, and obviously also holds for . This is exactly Fermat's Little Theorem in , promoted from the prime field to every finite field.
Note
Theorem
For any we have .
Basically, this is why computing an order is fast: it must be one of the divisors of , so you only ever test those. It follows from the generalised Fermat theorem and the fact that the exponents giving are exactly the multiples of the order, just as in .
Note
Definition
A primitive element of (or of ) is any with .
Note
Theorem
If is a primitive element of , then generates ; that is,
So a primitive element's powers sweep out every single nonzero element of the field before returning to . Where finite fields improve on is that a primitive element is guaranteed to exist.
Note
Theorem
Every finite field has a primitive element.
The proof is again difficult and omitted. This is a genuine upgrade on the situation in : back in Order and Primitive Elements only some moduli (namely for odd ) had primitive elements, and notoriously did not. Here there is no such restriction, and in particular is allowed to be — the awkward "odd prime" condition from has vanished, because is a genuine field rather than a ring of residues.
There is still no efficient way to find a primitive element; the method is the same trial-and-error as before. To find a primitive element of :
- Start with , the root of inside the field (it satisfies by construction).
- For each prime divisor of , compute in .
- If for all such , then is primitive.
- Otherwise try , then , and so on, until one passes.
This is the identical test to the case: the order must divide , and it equals precisely when it is missing none of the prime factors, which is exactly what the exponents detect.
Note
Theorem
Given a primitive element of , the element is primitive if and only if .
Note
Corollary
Every finite field has exactly primitive elements.
Once you have one primitive element you have them all, and there are of them — the same counting result as in Order and Primitive Elements, with replacing .
Finding Primitive Elements
Both examples below hunt for primitive elements by the trial-and-error test above, and both illustrate a different outcome.
Example. Find the primitive elements of .
This is , so and . The nonzero elements are , and the only prime divisor of is itself, so the test exponent is ; an element is primitive exactly when it is not . Start with the root , using (from and in ):
so and is primitive. For ,
so has order too and is also primitive. Therefore the primitive elements of are and — and indeed of them, as the corollary predicts. Here every non-identity element turned out to be primitive, which happens exactly because is prime.
Example. Find the primitive elements of .
This is , so and . The only prime divisor of is , so the single test is whether . Work with throughout. Start with the root :
so and fails the test — in fact , so the root itself is not primitive. Move to :
so passes the only test and is primitive, with . Therefore is a primitive element of , and by the corollary there are primitive elements in total. Notice that the root was not primitive here; the method's first candidate is not guaranteed to work, which is exactly why the "otherwise try " step exists.
Arithmetic Using a Log Table
Once you have a primitive element , every nonzero element of is a power of , so you can tabulate those powers once and then do all your multiplying, dividing and exponentiating by adding and subtracting exponents modulo . This is the finite-field version of the log-table trick from Order and Primitive Elements. Building the table for in (each step multiplies the previous entry by and reduces using ):
The table has period , as it must, and its eight distinct entries before repeating are precisely the eight nonzero elements of — confirming that generates .
Example. Evaluate the following in , using the table above.
(i) . From the power table , so reduce the exponent modulo :
(ii) . From the table and , so
where . Division is where the log table really earns its keep: instead of hunting for a multiplicative inverse, you just subtract exponents.
(iii) . Addition is the one operation the table does not simplify, so we convert back to polynomials, add, and (if wanted) convert forward again:
using and in .
(iv) . Likewise
Therefore the four answers are , , and . The moral is that powers, products and quotients are trivial in exponent form, but sums force you back to polynomial form; a log table turns multiplication into addition but can do nothing to help genuine addition.
Finite Fields as Vector Spaces
There is one more way to look at . Writing again, every element can be written uniquely as a combination with :
| element | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| as |
For instance and , both in . So is a vector space over with basis — nine elements, being all combinations of two basis vectors with scalars from , exactly matching the count . This is the same notion of basis and dimension from Vector Spaces, now with the scalars drawn from a finite field.
Note
Theorem
If is a primitive element of a finite field (with ), then is a vector space over with basis . That is, every element of can be written as a unique linear combination of over .
Proof (sketch). There are vectors , and the number of linear combinations of them with coefficients in is , exactly the number of elements of . So it is enough to know the combinations are all distinct, i.e. that the vectors are linearly independent — and they are, because a nontrivial dependence would make a root of a nonzero polynomial of degree less than over , contradicting the fact that 's minimal polynomial has degree . With distinct combinations landing on elements, every element is hit exactly once.
(Both the handout's example and this theorem say "vector space over ", but that is a slip: the scalars must come from a field, and is a field whereas is only a ring. The base field is .) Basically, this is the cleanest way to see why : a -dimensional vector space over a field of elements has exactly vectors, no more and no less. It also ties the whole topic back to first-year linear algebra — a finite field is, underneath, just a finite-dimensional vector space that happens to also support multiplication.