Finite Fields
Finite Fields
AARON LANDESMAN
C ONTENTS
1. Introduction to finite fields 2
2. Definition and constructions of fields 3
2.1. The definition of a field 3
2.2. Constructing field extensions by adjoining elements 4
3. A quick intro to field theory 7
3.1. Maps of fields 7
3.2. Characteristic of a field 8
3.3. Showing the characteristic of any finite field is a prime 8
4. Characterization of finite fields 10
5. Properties of finite fields 13
5.1. The multiplicative group of a finite field 13
5.2. Frobenius 14
5.3. Containments of finite fields 15
6. Counting Linear Algebraic Data 17
6.1. Matrices over Finite Fields 17
6.2. Counting independent sets 18
6.3. Counting Matrices 19
6.4. Counting subspaces 19
6.5. A Further exercise on Grassmannians 21
7. Counting Polynomials 22
7.1. The average number of roots of a polynomial 22
7.2. Squarefree polynomials 23
Appendix A. Existence of algebraic closures 25
Appendix B. Basics of rings 29
B.1. Quotients 30
References 30
1
2 AARON LANDESMAN
For f ∈ K [ x ], define
K [ x ]/( f ) := K [ x ]/ ∼
where ∼ is the equivalence relation defined by g ∼ h if f | g − h.
Exercise 2.10. Show that K [ x ]/( x ) ' K, where the map is given by
sending a polynomial to its constant coefficient.
Lemma 2.11. Let K be a field and let f ∈ K [ x ] be a monic irreducible
polynomial. Then K [ x ]/( f ) is a field.
Proof. Note that K [ x ]/( f ) is a ring as it inherits multiplication and
addition and all the resulting properties of a ring from K [ x ]. (Check
this!) Therefore, it suffices to check that if f is monic and irreducible,
then every element has an inverse. In other words, given any g ∈
K [ x ]/( f ), we need to show there is some h with gh = 1. We can
consider g ∈ K [ x ] as a polynomial of degree less than f . Since f
is irreducible, and deg g < deg f , it follows that the two polynomi-
als share no common factors. Then, by the Euclidean algorithm for
polynomials (if you have only seen the euclidean algorithm over the
integers, check that the natural analog to the Euclidean algorithm for
the integers works equally well in polynomial rings over arbitrary
fields, where the remainder is then a polynomial of degree less than
the polynomial you are dividing by) we obtain some h, α ∈ K [ x ] with
gh + f α = 1 as elements of K [ x ]. It follows that gh ∼ 1 in K [ x ]/( f )
because gh − 1 = f α in K [ x ].
Exercise 2.12. Let K be a field and f ∈ K [ x ] a monic irreducible poly-
nomial. Suppose L = K [ x ]/( f ). Show that dimK L = deg f , where
deg f denotes the degree of the polynomial f and dimK L denotes
the dimension of L as a K vector space.
Example 2.13. Consider the field F2 [ x ]/( x2 + x + 1). We claim this
is a finite field of order 4. Indeed, this holds because the polynomial
x2 + x + 1 is irreducible. To check this, we only need to check it has
no linear factors. It has a linear factor if and only if x2 + x + 1 has a
root in F2 . But, when we evaluate it at 0 we get 1 mod 2 and when
we evaluate it at 1, we get 1 mod 2. So it has no roots, and the claim
follows from Lemma 2.11.
6 AARON LANDESMAN
Exercise 2.14 (Squares in finite fields). (1) For any p > 2, show
p +1
that there are exactly 2 elements x ∈ F p with x = y2 for
some y ∈ F p . We call such x squares.
(2) Conclude that there is some x ∈ F p which is not a square
whenever p > 2. Hint: Show that if x = y2 then we also have
x = (−y)2 and further that there y and −y are the only two
elements of F p squaring to x.
(Challenge) Show that for any a ∈ F p , the equation x2 + y2 = a has a
solution x, y ∈ F p with x and y not both 0.
Example 2.15. Let p > 2 be a prime and let ε ∈ F p be an element
which is not a square (which exists by Exercise 2.14). Then,
F p [ x ]/( x2 − ε)
is a finite field of order p2 . It is order p2 because it is a two dimen-
sional vector space over F p spanned by the basis 1 and x. It is a field
because x2 − ε is irreducible in F p [ x ]. Indeed, to see this, note that
if it were not irreducible, it would factor as a product of two linear
factors, which means it would have a root. But, if it had a root, there
would be some y ∈ F p so that y2 = ε. However, we chose ε not to be
a square, and so no root exists.
NOTES ON FINITE FIELDS 7
is, F×
pn is cyclic.
Proof. To show F× n
pn is cyclic of order p − 1, since we know it has
order pn − 1 as a group, it suffices to show there is some element of
order pn − 1.
Exercise 5.2 (Tricky exercise). Verify using that all finite abelian groups
are products of cyclic groups (the fundamental theorem for finite
abelian groups) that if there is no element of order pn − 1 then there
is some m < pn − 1 with x m = 1 for all x ∈ F× pn . Hint: Show that if
ni
G ' ∏i Z/pi Z, (where the isomorphism holds by the fundamental
theorem of finite abelian groups) has some pi = p j for i 6= j then then
n
every element of G has order strictly less than | G | = ∏i pi i . For this
n nj
it may help to consider the subgroup Z/pi i × Z/p j . Then, show
using the Chinese Remainder theorem that if pi 6= p j for any i 6= j
then G is cyclic.
However, we cannot have x m = 1 for all x ∈ F× n
pn with m < p − 1
because x m − 1 only has m < pn − 1 roots in F p . Hence, there is
some element of F× n
pn of order exactly p − 1, and so it is isomorphic
to Z/( pn − 1)Z× .
Exercise 5.3. Using Proposition 5.1 we can now prove results about
roots of unity modulo primes.
(1) Let p be an odd prime. Using Proposition 5.1, show that −1
is a square mod p if and only if p ≡ 1 mod 4.
(2) Let p be an odd prime. Show that there is some x 6≡ 1 mod p
so that x3 ≡ 1 mod p if and only if p ≡ 1 mod 3.
(3) Let p be an odd prime. Determine a necessary and sufficient
condition on p modulo n such that there will be n distinct
roots of unity modulo p, i.e., there are n distinct residues
x1 , . . . , xn mod p with xin ≡ 1 mod p.
14 AARON LANDESMAN
Corollary 5.10. The automorphisms of Fq over F p are precisely id, Frob p , . . . , Frobnp−1 .
Proof. We have seen in Lemma 5.7 that these are all distinct, so it
suffices to show there are at most n automorphisms of Fq over F p .
However, by Lemma 5.8, we have Fq = F p [ x ]/( f ). Note that any
map F p [ x ]/( f ) → F p [ x ]/( f ) must send x to some root of f , and
further the map is determined by where it sends x. Since deg f = n,
there are at most deg f = n roots of f and hence at most n such maps,
as we wanted to show.
Definition 6.2. For L a field, Let GLn ( L) denote the group of invert-
ible n × n matrices over L. In particular, GLn (Fq ) denotes the set of
n × n matrices invertible over Fq .
Example 6.3. How many 1 × 1 matrices are there over Fq . That is,
what is # GL1 (Fq )? Well, a 1 × 1 matrix is the same as an element
of Fq . Since Fq is a field, any nonzero element of Fq is invertible.
Therefore, we are trying to count the number of nonzero elements of
Fq , which is q − 1.
Example 6.4. Let’s next try to count # GL2 (Fq ). Now, we are consid-
ering
a b
c d
Hence, there are qn − qi−1 ways to choose the ith basis vector, and
hence the total number of size k independent tuples is (qn − 1)(qn −
q ) · · · ( q n − q k −1 ).
6.4. Counting subspaces. We’ve just seen how counting bases re-
lates to counting tuples of independent vectors. Let’s next use this to
count the number of subspaces of a vector space of a given dimen-
sion. We could answer this question fairly quickly, but we prefer to
take our time, introducing a space parameterizing these objects.
Definition 6.9. Let n and k be integers with 0 ≤ k ≤ n. For L a
field, let Grassmannian Gr(k, n)( L) denote the set of k-dimensional
subspaces of Ln . In particular, Gr(k, n)(Fq ) denotes the set of k di-
mensional subspaces of Fq n .
In order to get comfortable with Grassmannians, let’s go over a
few examples.
Example 6.10. If L is any field, n is arbitrary, and k = 0, Gr(0, n)( L) =
{0}, since 0 is the only 0-dimensional subspace. Similarly, if k =
n, we find Gr(n, n)( L) = { Ln } has size 1, since Ln is the only n-
dimensional subspace of Ln .
20 AARON LANDESMAN
7. C OUNTING P OLYNOMIALS
7.1. The average number of roots of a polynomial. Let’s compute
the average number of roots of a monic degree d polynomial over a
finite field. As a warm up, we’ll need the following:
Let Polyd (Fq ) denote the set of degree d monic polynomials over
Fq .
We claim that for every b ∈ Fq , #π −1 (b) = qd−1 . The result will then
follow because
#Ψd = #{( f , a) : f ∈ Polyd , a ∈ Fq , f ( a) = 0} = ∑ #{ f : f ∈ Polyd , f (b) = 0}
b ∈Fq
= ∑ #π −1 (b)
b ∈Fq
= ∑ q d −1
b ∈Fq
= qd ,
as we wanted to show. So, it suffices to prove:
B.1. Quotients. The following will not be needed in this course. In-
deed, we will construct particular quotient rings in this course, but
these quotients will all be of the form K [ x ]/( f ) for K a field, a situ-
ation which is much more concrete than the general case developed
below. We encourage you to skip the following, but we include it for
completeness.
Definition B.7. An ideal I of R is a subset I ⊂ R so that
(1) 0R ∈ I.
(2) For any r ∈ I we also have −s ∈ I.
(3) If a, b ∈ I then a + b ∈ I.
(4) If r ∈ R and a ∈ I then a · R b ∈ I.
Definition B.8. Let I ⊂ R be a subring. Construct the quotient R/I
as the set of all elements a ∈ R modulo the equivalence relation a ∼ b
if there is some c ∈ I with a = b + c. The equivalence class of a is
called the coset of a and the coset is notated a + I.
Exercise B.9. Verify that the relation ∼ as defined in Definition B.8 is
indeed an equivalence relation.
Exercise B.10. Show that if I ⊂ R is an ideal then R/I is again a
ring. (Under our definition, this includes verifying that the quotient
is commutative and has a unit).
R EFERENCES