MATH2400 2,636 words·14 min read

Characterising Finite Fields

Building Fields out of Polynomial Rings#

In Polynomial Congruences we built the ring F[x]/⟨m(x)⟩F[x]/\langle m(x)\rangle, whose elements are the polynomials of degree less than deg⁡m\deg m with addition and multiplication carried out modulo m(x)m(x). 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 RR and polynomial m(x)m(x), the set R[x]/⟨m(x)⟩R[x]/\langle m(x)\rangle is itself a ring.

Proof. The elements are the possible remainders modulo m(x)m(x), and addition and multiplication are defined by doing the operation in R[x]R[x] and then reducing mod m(x)m(x). Reduction is well defined because the Division Theorem gives a unique remainder of degree less than deg⁡m\deg m. Associativity, commutativity and distributivity are then inherited straight from R[x]R[x] (reducing at the end never changes which class you land in), the zero polynomial is the additive identity, −a(x)-a(x) is the additive inverse of a(x)a(x), and the constant polynomial 11 is the multiplicative identity. So every ring axiom holds. ■\blacksquare

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 R[x]/⟨m(x)⟩R[x]/\langle m(x)\rangle manages that depends entirely on m(x)m(x).

Note

Theorem
Given any field FF and polynomial m(x)m(x), the ring F[x]/⟨m(x)⟩F[x]/\langle m(x)\rangle is a field if and only if m(x)m(x) is irreducible in F[x]F[x].

Proof. (⇐\Leftarrow) Suppose m(x)m(x) is irreducible, and take any nonzero a(x)a(x) in the quotient, so deg⁡a<deg⁡m\deg a < \deg m and m(x)∤a(x)m(x) \nmid a(x). The only monic divisors of an irreducible m(x)m(x) are 11 and m(x)m(x) itself, and m(x)∤a(x)m(x) \nmid a(x), so gcd⁡(a(x),m(x))=1\gcd(a(x), m(x)) = 1. By Bézout's identity for polynomials there are p(x),q(x)p(x), q(x) with

a(x)p(x)+m(x)q(x)=1,a(x)p(x) + m(x)q(x) = 1,

and reducing mod m(x)m(x) kills the middle term, leaving a(x)p(x)=1a(x)p(x) = 1 in F[x]/⟨m(x)⟩F[x]/\langle m(x)\rangle. So p(x)p(x) is the inverse of a(x)a(x), and every nonzero element is invertible; the quotient is a field.

(⇒\Rightarrow) We prove the contrapositive: if m(x)m(x) is reducible, the quotient is not a field. Write m(x)=f(x)g(x)m(x) = f(x)g(x) with 1≤deg⁡f,deg⁡g<deg⁡m1 \leq \deg f, \deg g < \deg m. Then in the quotient both f(x)f(x) and g(x)g(x) are nonzero (their degrees are too small to be multiples of m(x)m(x)), yet

f(x) g(x)=m(x)=0 in F[x]/⟨m(x)⟩.f(x)\,g(x) = m(x) = 0 \text{ in } F[x]/\langle m(x)\rangle.

So f(x)f(x) and g(x)g(x) are zero divisors, and as we saw in Rings and Fields a zero divisor can never be a unit; hence f(x)f(x) has no inverse and the quotient is not a field. (If instead m(x)m(x) is a nonzero constant then the quotient collapses to {0}\{0\}, and if m(x)=0m(x) = 0 it is all of F[x]F[x], which is not a field either.) ■\blacksquare

Basically, irreducible polynomials are to F[x]F[x] what primes are to Z\mathbb{Z}: just as Zn\mathbb{Z}_n is a field exactly when nn is prime (from Rings and Fields), F[x]/⟨m(x)⟩F[x]/\langle m(x)\rangle is a field exactly when m(x)m(x) is irreducible. The reducible case fails for the same reason Z6\mathbb{Z}_6 fails — a nontrivial factorisation of the modulus hands you two zero divisors.

Example. Which of Z2[x]/⟨x2+x+1⟩\mathbb{Z}_2[x]/\langle x^2+x+1\rangle and Z2[x]/⟨x2+1⟩\mathbb{Z}_2[x]/\langle x^2+1\rangle are fields?
By the theorem we only need to know whether each modulus is irreducible over Z2\mathbb{Z}_2, and for a quadratic that just means checking for roots (a quadratic factors over a field if and only if it has a root).

  • x2+x+1x^2+x+1: testing both elements of Z2\mathbb{Z}_2, we get 02+0+1=10^2+0+1 = 1 and 12+1+1=11^2+1+1 = 1, so there is no root. Hence x2+x+1x^2+x+1 is irreducible and Z2[x]/⟨x2+x+1⟩\mathbb{Z}_2[x]/\langle x^2+x+1\rangle is a field.
  • x2+1x^2+1: here 12+1=01^2 + 1 = 0 in Z2\mathbb{Z}_2, so 11 is a root and x2+1=(x+1)2x^2+1 = (x+1)^2 over Z2\mathbb{Z}_2. Hence x2+1x^2+1 is reducible and Z2[x]/⟨x2+1⟩\mathbb{Z}_2[x]/\langle x^2+1\rangle is not a field.

Therefore the first is a field and the second is not. As a sanity check on the second, (x+1)2=x2+1=0(x+1)^2 = x^2 + 1 = 0 in that quotient even though x+1≠0x+1 \neq 0; the element x+1x+1 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 FF is the smallest n∈Z+n \in \mathbb{Z}^+ such that

1+1+⋯+1⏟n copies=0 in F.\underbrace{1 + 1 + \cdots + 1}_{n \text{ copies}} = 0 \text{ in } F.

Basically, the characteristic measures how many times you have to add the multiplicative identity to itself before you loop back round to 00. Such an nn always exists in a finite field, because the list 1,1+1,1+1+1,…1, 1+1, 1+1+1, \dots cannot go on forever without a repeat, and once two of them are equal their difference is a run of 11s summing to 00.

The freshly built fields make the characteristic concrete. Consider F=Zp[x]/⟨m(x)⟩F = \mathbb{Z}_p[x]/\langle m(x)\rangle where pp is prime and m(x)m(x) is irreducible over Zp\mathbb{Z}_p of degree kk. Then:

  • FF has characteristic pp, because the constant 11 lives in the Zp\mathbb{Z}_p part and adding it to itself pp times gives 00 (and no fewer, since pp is the characteristic of Zp\mathbb{Z}_p).
  • FF has pkp^k elements, because each element is a polynomial a0+a1x+⋯+ak−1xk−1a_0 + a_1x + \cdots + a_{k-1}x^{k-1} of degree less than kk, and there are pp independent choices for each of the kk coefficients. We say FF has order pkp^k. 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 FF be a finite field with characteristic nn, and write n⋅1n\cdot 1 for the sum of nn copies of 11. We know n≥2n \geq 2, since 1≠01 \neq 0 in any field. Suppose for contradiction that nn is composite, say n=abn = ab with 1<a,b<n1 < a, b < n. Using distributivity,

(a⋅1)(b⋅1)=(ab)⋅1=n⋅1=0 in F.(a\cdot 1)(b\cdot 1) = (ab)\cdot 1 = n\cdot 1 = 0 \text{ in } F.

Since FF is a field it has no zero divisors, so either a⋅1=0a\cdot 1 = 0 or b⋅1=0b\cdot 1 = 0. But aa and bb are both smaller than nn, and nn was the smallest positive integer with n⋅1=0n\cdot 1 = 0 — a contradiction. Hence nn has no such factorisation; that is, nn is prime. ■\blacksquare

Notice this is the exact same argument that made Zn\mathbb{Z}_n a field only for prime nn: 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 pkp^k for some prime pp and positive integer kk.

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 66, 1010 or 1212 elements, no matter how cleverly you try to build one — and in particular Z6\mathbb{Z}_6 was never going to be a field. A finite field of size nn can exist only when nn is a prime power; commit that to memory, because half the questions in this topic are secretly just asking whether nn 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 pp and positive integer kk, there exists a finite field of order pkp^k.

To even state uniqueness we need to say when two fields count as "the same".

Note

Definition (loose)
Two rings RR and SS are isomorphic, written R≅SR \cong S, if the elements of RR can be matched up one-to-one with the elements of SS so that their addition and multiplication tables become identical under the matching.

For example Z[x]/⟨x2+1⟩≅Z[i]\mathbb{Z}[x]/\langle x^2+1\rangle \cong \mathbb{Z}[i], the Gaussian integers, via the matching x↦ix \mapsto i: the relation x2=−1x^2 = -1 in the quotient becomes exactly i2=−1i^2 = -1, 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 pp and positive integer kk, there is only one finite field of order pkp^k up to isomorphism.

Note

Definition
The finite field of order pkp^k is called the Galois field of order pkp^k, written GF⁡(pk)\operatorname{GF}(p^k), or more commonly Fpk\mathbb{F}_{p^k} (or just Fq\mathbb{F}_q where q=pkq = p^k).

Note

Corollary
Fpk≅Zp[x]/⟨m(x)⟩\mathbb{F}_{p^k} \cong \mathbb{Z}_p[x]/\langle m(x)\rangle for any irreducible m(x)m(x) in Zp[x]\mathbb{Z}_p[x] of degree kk.

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 pkp^k, pick any irreducible polynomial of degree kk over Zp\mathbb{Z}_p and form the quotient — which is a field by the irreducibility criterion. Different choices of m(x)m(x) 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 nn for each nn from 11 to 1010, or explain why none exists.
A field of order nn exists exactly when nn is a prime power pkp^k; then Fn=Zp\mathbb{F}_n = \mathbb{Z}_p when k=1k = 1, and Fn=Zp[x]/⟨m(x)⟩\mathbb{F}_n = \mathbb{Z}_p[x]/\langle m(x)\rangle for an irreducible degree-kk modulus when k>1k > 1.

nn Fn\mathbb{F}_n? Construction
11 no 1=p01 = p^0 is not a prime power with k≥1k \geq 1; a field needs 0≠10 \neq 1, so at least 22 elements
22 yes Z2\mathbb{Z}_2
33 yes Z3\mathbb{Z}_3
44 yes Z2[x]/⟨x2+x+1⟩\mathbb{Z}_2[x]/\langle x^2+x+1\rangle
55 yes Z5\mathbb{Z}_5
66 no 6=2×36 = 2\times 3 is not a prime power
77 yes Z7\mathbb{Z}_7
88 yes Z2[x]/⟨x3+x+1⟩\mathbb{Z}_2[x]/\langle x^3+x+1\rangle
99 yes Z3[x]/⟨x2+1⟩\mathbb{Z}_3[x]/\langle x^2+1\rangle
1010 no 10=2×510 = 2\times 5 is not a prime power

The three composite prime powers need a short justification of the modulus:

  • n=4=22n = 4 = 2^2: we need an irreducible quadratic over Z2\mathbb{Z}_2, and x2+x+1x^2+x+1 has no root in Z2\mathbb{Z}_2 (checked above), so it works. Note that F4\mathbb{F}_4 is not Z4\mathbb{Z}_4: the ring Z4\mathbb{Z}_4 is not even a field, since 22 is a zero divisor there. This is the single most common mistake in the topic — for a prime power pkp^k with k>1k > 1, the field of that order is a polynomial quotient, never Zpk\mathbb{Z}_{p^k}.
  • n=8=23n = 8 = 2^3: we need an irreducible cubic over Z2\mathbb{Z}_2. Now x3+x+1x^3+x+1 has no root (03+0+1=10^3+0+1 = 1 and 13+1+1=11^3+1+1 = 1), and a cubic with no root is irreducible (any factorisation would force a linear factor, i.e. a root), so x3+x+1x^3+x+1 works.
  • n=9=32n = 9 = 3^2: we need an irreducible quadratic over Z3\mathbb{Z}_3, and x2+1x^2+1 has no root in Z3\mathbb{Z}_3 (the values are 1,2,21, 2, 2 at x=0,1,2x = 0, 1, 2), so it works.

Order and Primitive Elements in Finite Fields#

For the rest of the lecture write Fq=Fpk\mathbb{F}_q = \mathbb{F}_{p^k}, so q=pkq = p^k. Recall from Rings and Fields that in any field every nonzero element is a unit, so the unit group is simply

Fq∗=Fq−{0},\mathbb{F}_q^* = \mathbb{F}_q - \{0\},

a set of q−1q-1 elements. Everything we proved about orders and primitive elements in Zp∗\mathbb{Z}_p^* in Order and Primitive Elements now transplants wholesale, with q−1q-1 playing the role that ϕ(p)=p−1\phi(p) = p-1 played before.

Note

Definition
Given any α∈Fq∗\alpha \in \mathbb{F}_q^*, the order of α\alpha in Fq\mathbb{F}_q, written ord⁡Fq(α)\operatorname{ord}_{\mathbb{F}_q}(\alpha), is the smallest positive integer tt such that αt=1\alpha^t = 1 in Fq\mathbb{F}_q.

This is the same definition as ord⁡n(a)=ord⁡Zn(a)\operatorname{ord}_n(a) = \operatorname{ord}_{\mathbb{Z}_n}(a) from before, just with the field Fq\mathbb{F}_q in place of Zn\mathbb{Z}_n. 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 α∈Fq⋆\alpha \in \mathbb{F}_q^\star we have αq−1=1\alpha^{q-1} = 1 in Fq\mathbb{F}_q. Equivalently, for any α∈Fq\alpha \in \mathbb{F}_q we have αq=α\alpha^q = \alpha.

The two forms are equivalent: multiplying αq−1=1\alpha^{q-1} = 1 by α\alpha gives αq=α\alpha^q = \alpha for units, and αq=α\alpha^q = \alpha obviously also holds for α=0\alpha = 0. This is exactly Fermat's Little Theorem ap−1=1a^{p-1} = 1 in Zp\mathbb{Z}_p, promoted from the prime field Zp\mathbb{Z}_p to every finite field.

Note

Theorem
For any α∈Fq⋆\alpha \in \mathbb{F}_q^\star we have ord⁡Fq(α)∣q−1\operatorname{ord}_{\mathbb{F}_q}(\alpha) \mid q-1.

Basically, this is why computing an order is fast: it must be one of the divisors of q−1q-1, so you only ever test those. It follows from the generalised Fermat theorem and the fact that the exponents giving 11 are exactly the multiples of the order, just as in Zn\mathbb{Z}_n.

Note

Definition
A primitive element of Fq\mathbb{F}_q (or of Fq∗\mathbb{F}_q^*) is any α∈Fq∗\alpha \in \mathbb{F}_q^* with ord⁡Fq(α)=q−1\operatorname{ord}_{\mathbb{F}_q}(\alpha) = q-1.

Note

Theorem
If α\alpha is a primitive element of Fq\mathbb{F}_q, then α\alpha generates Fq⋆\mathbb{F}_q^\star; that is,

⟨α⟩={α0,α1,α2,…,αq−2}=Fq⋆.\langle \alpha \rangle = \{\alpha^0, \alpha^1, \alpha^2, \dots, \alpha^{q-2}\} = \mathbb{F}_q^\star.

So a primitive element's powers sweep out every single nonzero element of the field before returning to 11. Where finite fields improve on Zn\mathbb{Z}_n is that a primitive element is guaranteed to exist.

Note

Theorem
Every finite field Fq\mathbb{F}_q has a primitive element.

The proof is again difficult and omitted. This is a genuine upgrade on the situation in Zn∗\mathbb{Z}_n^*: back in Order and Primitive Elements only some moduli (namely 1,2,4,pk,2pk1, 2, 4, p^k, 2p^k for odd pp) had primitive elements, and Z8∗\mathbb{Z}_8^* notoriously did not. Here there is no such restriction, and in particular pp is allowed to be 22 — the awkward "odd prime" condition from Zn\mathbb{Z}_n has vanished, because F2k\mathbb{F}_{2^k} 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 Fq=Zp[x]/⟨m(x)⟩\mathbb{F}_q = \mathbb{Z}_p[x]/\langle m(x)\rangle:

  • Start with α=x\alpha = x, the root of m(x)m(x) inside the field (it satisfies m(α)=0m(\alpha) = 0 by construction).
  • For each prime divisor pip_i of q−1q-1, compute α(q−1)/pi\alpha^{(q-1)/p_i} in Fq\mathbb{F}_q.
  • If α(q−1)/pi≠1\alpha^{(q-1)/p_i} \neq 1 for all such pip_i, then α\alpha is primitive.
  • Otherwise try β=α+1\beta = \alpha + 1, then α+2\alpha + 2, and so on, until one passes.

This is the identical test to the Zn\mathbb{Z}_n case: the order must divide q−1q-1, and it equals q−1q-1 precisely when it is missing none of the prime factors, which is exactly what the exponents (q−1)/pi(q-1)/p_i detect.

Note

Theorem
Given α\alpha a primitive element of Fq\mathbb{F}_q, the element αt\alpha^t is primitive if and only if gcd⁡(t,q−1)=1\gcd(t, q-1) = 1.

Note

Corollary
Every finite field Fq\mathbb{F}_q has exactly ϕ(q−1)\phi(q-1) primitive elements.

Once you have one primitive element you have them all, and there are ϕ(q−1)\phi(q-1) of them — the same counting result as in Order and Primitive Elements, with q−1q-1 replacing ϕ(n)\phi(n).

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 F=Z2[x]/⟨x2+x+1⟩F = \mathbb{Z}_2[x]/\langle x^2+x+1\rangle.
This is F4\mathbb{F}_4, so q=4q = 4 and q−1=3q-1 = 3. The nonzero elements are {1,x,x+1}\{1, x, x+1\}, and the only prime divisor of 33 is 33 itself, so the test exponent is q−13=1\tfrac{q-1}{3} = 1; an element is primitive exactly when it is not 11. Start with the root α=x\alpha = x, using x2=x+1x^2 = x+1 (from x2+x+1=0x^2+x+1 = 0 and −1=1-1 = 1 in Z2\mathbb{Z}_2):

x1=x≠1,x2=x+1,x3=x⋅x2=x(x+1)=x2+x=(x+1)+x=1 in F,\begin{align*} x^1 &= x \neq 1, \\ x^2 &= x+1, \\ x^3 &= x\cdot x^2 = x(x+1) = x^2 + x = (x+1) + x = 1 \text{ in } F, \end{align*}

so ord⁡F(x)=3=q−1\operatorname{ord}_F(x) = 3 = q-1 and xx is primitive. For β=x+1\beta = x+1,

(x+1)2=x2+1=(x+1)+1=x,(x+1)3=(x+1)⋅x=x2+x=1 in F,\begin{align*} (x+1)^2 &= x^2 + 1 = (x+1) + 1 = x, \\ (x+1)^3 &= (x+1)\cdot x = x^2 + x = 1 \text{ in } F, \end{align*}

so x+1x+1 has order 33 too and is also primitive. Therefore the primitive elements of F4\mathbb{F}_4 are xx and x+1x+1 — and indeed ϕ(q−1)=ϕ(3)=2\phi(q-1) = \phi(3) = 2 of them, as the corollary predicts. Here every non-identity element turned out to be primitive, which happens exactly because q−1=3q - 1 = 3 is prime.

Example. Find the primitive elements of F=Z3[x]/⟨x2+1⟩F = \mathbb{Z}_3[x]/\langle x^2+1\rangle.
This is F9\mathbb{F}_9, so q=9q = 9 and q−1=8=23q-1 = 8 = 2^3. The only prime divisor of 88 is 22, so the single test is whether α(q−1)/2=α4≠1\alpha^{(q-1)/2} = \alpha^4 \neq 1. Work with x2=−1=2x^2 = -1 = 2 throughout. Start with the root α=x\alpha = x:

x2=2,x4=(x2)2=22=4=1 in F,\begin{align*} x^2 &= 2, \\ x^4 &= (x^2)^2 = 2^2 = 4 = 1 \text{ in } F, \end{align*}

so x4=1x^4 = 1 and xx fails the test — in fact ord⁡F(x)=4≠8\operatorname{ord}_F(x) = 4 \neq 8, so the root itself is not primitive. Move to β=x+1\beta = x+1:

(x+1)2=x2+2x+1=2+2x+1=2x,(x+1)4=((x+1)2)2=(2x)2=4x2=4⋅2=8=2≠1 in F,\begin{align*} (x+1)^2 &= x^2 + 2x + 1 = 2 + 2x + 1 = 2x, \\ (x+1)^4 &= \big((x+1)^2\big)^2 = (2x)^2 = 4x^2 = 4\cdot 2 = 8 = 2 \neq 1 \text{ in } F, \end{align*}

so β=x+1\beta = x+1 passes the only test and is primitive, with ord⁡F(x+1)=8\operatorname{ord}_F(x+1) = 8. Therefore x+1x+1 is a primitive element of F9\mathbb{F}_9, and by the corollary there are ϕ(8)=4\phi(8) = 4 primitive elements in total. Notice that the root xx was not primitive here; the method's first candidate is not guaranteed to work, which is exactly why the "otherwise try α+1\alpha+1" step exists.

Arithmetic Using a Log Table#

Once you have a primitive element β\beta, every nonzero element of Fq\mathbb{F}_q is a power of β\beta, so you can tabulate those powers once and then do all your multiplying, dividing and exponentiating by adding and subtracting exponents modulo q−1q-1. This is the finite-field version of the log-table trick from Order and Primitive Elements. Building the table for β=x+1\beta = x+1 in F9=Z3[x]/⟨x2+1⟩\mathbb{F}_9 = \mathbb{Z}_3[x]/\langle x^2+1\rangle (each step multiplies the previous entry by x+1x+1 and reduces using x2=2x^2 = 2):

tt 00 11 22 33 44 55 66 77 88
βt\beta^t 11 x+1x+1 2x2x 2x+12x+1 22 2x+22x+2 xx x+2x+2 11

The table has period 8=q−18 = q-1, as it must, and its eight distinct entries before repeating are precisely the eight nonzero elements of F9\mathbb{F}_9 — confirming that x+1x+1 generates F9∗\mathbb{F}_9^*.

Example. Evaluate the following in F=Z3[x]/⟨x2+1⟩F = \mathbb{Z}_3[x]/\langle x^2+1\rangle, using the table above.
(i) (2x+1)5(2x+1)^5. From the power table 2x+1=β32x+1 = \beta^3, so reduce the exponent modulo q−1=8q-1 = 8:

(2x+1)5=(β3)5=β15=β15 mod 8=β7=x+2.(2x+1)^5 = (\beta^3)^5 = \beta^{15} = \beta^{15 \bmod 8} = \beta^7 = x+2.

(ii) (x+2)2x3\dfrac{(x+2)^2}{x^3}. From the table x+2=β7x+2 = \beta^7 and x=β6x = \beta^6, so

(x+2)2x3=(β7)2(β6)3=β14β18=β14−18=β−4=β4=2,\frac{(x+2)^2}{x^3} = \frac{(\beta^7)^2}{(\beta^6)^3} = \frac{\beta^{14}}{\beta^{18}} = \beta^{14-18} = \beta^{-4} = \beta^{4} = 2,

where β−4=β−4+8=β4\beta^{-4} = \beta^{-4+8} = \beta^4. Division is where the log table really earns its keep: instead of hunting for a multiplicative inverse, you just subtract exponents.
(iii) β5+β3\beta^5 + \beta^3. Addition is the one operation the table does not simplify, so we convert back to polynomials, add, and (if wanted) convert forward again:

β5+β3=(2x+2)+(2x+1)=4x+3=x=β6 in F,\beta^5 + \beta^3 = (2x+2) + (2x+1) = 4x + 3 = x = \beta^6 \text{ in } F,

using 4x=x4x = x and 3=03 = 0 in Z3\mathbb{Z}_3.
(iv) β3+β2+1\beta^3 + \beta^2 + 1. Likewise

β3+β2+1=(2x+1)+2x+1=4x+2=x+2=β7 in F.\beta^3 + \beta^2 + 1 = (2x+1) + 2x + 1 = 4x + 2 = x+2 = \beta^7 \text{ in } F.

Therefore the four answers are x+2x+2, 22, xx and x+2x+2. 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 F9=Z3[x]/⟨x2+1⟩\mathbb{F}_9 = \mathbb{Z}_3[x]/\langle x^2+1\rangle. Writing β=x+1\beta = x+1 again, every element can be written uniquely as a combination a+bβa + b\beta with a,b∈Z3a, b \in \mathbb{Z}_3:

element 00 11 22 xx x+1x+1 x+2x+2 2x2x 2x+12x+1 2x+22x+2
as a+bβa + b\beta 0+0β0+0\beta 1+0β1+0\beta 2+0β2+0\beta 2+1β2+1\beta 0+1β0+1\beta 1+1β1+1\beta 1+2β1+2\beta 2+2β2+2\beta 0+2β0+2\beta

For instance 2+1β=2+(x+1)=x2 + 1\beta = 2 + (x+1) = x and 1+2β=1+2(x+1)=2x+3=2x1 + 2\beta = 1 + 2(x+1) = 2x + 3 = 2x, both in Z3\mathbb{Z}_3. So F9\mathbb{F}_9 is a vector space over Z3\mathbb{Z}_3 with basis {1,β}\{1, \beta\} — nine elements, being all 323^2 combinations of two basis vectors with scalars from Z3\mathbb{Z}_3, exactly matching the count q=pkq = p^k. This is the same notion of basis and dimension from Vector Spaces, now with the scalars drawn from a finite field.

Note

Theorem
If α\alpha is a primitive element of a finite field Fq\mathbb{F}_q (with q=pkq = p^k), then Fq\mathbb{F}_q is a vector space over Zp\mathbb{Z}_p with basis {1,α,α2,…,αk−1}\{1, \alpha, \alpha^2, \dots, \alpha^{k-1}\}. That is, every element of Fq\mathbb{F}_q can be written as a unique linear combination of 1,α,α2,…,αk−11, \alpha, \alpha^2, \dots, \alpha^{k-1} over Zp\mathbb{Z}_p.

Proof (sketch). There are kk vectors 1,α,…,αk−11, \alpha, \dots, \alpha^{k-1}, and the number of linear combinations of them with coefficients in Zp\mathbb{Z}_p is pk=qp^k = q, exactly the number of elements of Fq\mathbb{F}_q. 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 c0+c1α+⋯+ck−1αk−1=0c_0 + c_1\alpha + \cdots + c_{k-1}\alpha^{k-1} = 0 would make α\alpha a root of a nonzero polynomial of degree less than kk over Zp\mathbb{Z}_p, contradicting the fact that α\alpha's minimal polynomial has degree kk. With qq distinct combinations landing on qq elements, every element is hit exactly once. ■\blacksquare

(Both the handout's example and this theorem say "vector space over Zp[x]\mathbb{Z}_p[x]", but that is a slip: the scalars must come from a field, and Zp\mathbb{Z}_p is a field whereas Zp[x]\mathbb{Z}_p[x] is only a ring. The base field is Zp\mathbb{Z}_p.) Basically, this is the cleanest way to see why ∣Fq∣=pk|\mathbb{F}_q| = p^k: a kk-dimensional vector space over a field of pp elements has exactly pkp^k 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.