← LibraryFinite Field Element RepresentationEngineering · MathematicsLesson 225/385← PrevNext →
ArticlePublished 7 Aug 20262 min readBy Kevin Joginfinite fieldGalois fieldpolynomial basisnormal basis

Finite Field Computation

Finite Field Element Representation

Representing elements of a finite field as polynomials modulo an irreducible, choosing the modulus, and the trade-offs against logarithmic and normal bases.

Engineering / MathematicsFinite Field Computation2 min readKV-MATH-0523

A finite field has p^n elements for a prime p and is unique up to isomorphism for each size. Uniqueness of the field does not mean uniqueness of representation, and the choice determines which operations are cheap.

Polynomial basis

The standard representation takes elements as polynomials of degree less than n over the prime field, with arithmetic modulo a fixed irreducible polynomial of degree n.

F_{p^n} = F_p[X] / (f(X)), f irreducible of degree nElements are residue classes, stored as coefficient vectors.
Costs in the polynomial basis
OperationCostNotes
AdditionO(n) in F_pCoefficientwise; no reduction needed
MultiplicationO(n^2) schoolbook, then reduceReduction is cheap for a sparse modulus
InversionExtended Euclidean on polynomialsSubstantially more expensive than multiplication
Frobenius (p-th power)Linear map, precomputableCheap once tabulated

Choosing the modulus

Finding an irreducible polynomial of given degree is easy: pick at random and test. A random polynomial of degree n is irreducible with probability about 1/n, and irreducibility testing is fast via distinct degree factorisation.

Alternative representations

Zech logarithms

Store a table of discrete logarithms relative to a generator. Multiplication becomes addition of exponents; addition needs a table lookup. Excellent for small fields, infeasible for large ones because the table has p^n entries.

Normal basis

Uses a basis closed under Frobenius. Raising to the p-th power becomes a cyclic shift — nearly free. Multiplication is more expensive unless an optimal normal basis exists.

Tower representation

Builds the field as a tower of small extensions. Useful when the degree factors conveniently and for fields of characteristic two.

Interoperability

Frequently Asked Questions

Is the finite field really unique for a given size?
Up to isomorphism, yes — any two fields with the same number of elements are isomorphic. But the isomorphism is not canonical, so representations built on different moduli need an explicit conversion map.

Source. Henri Cohen, A Course in Computational Algebraic Number Theory, Springer GTM 138 — 1.5.1. Structural reference unverified: the source file was not available during authoring; chapter and section numbers are taken from the published edition and have not been checked against a physical copy.

Continue learning

Modular Inversion and Simultaneous InversionArticle · MathematicsNEXT LESSON →Finite Field Multiplication and InversionArticle · MathematicsSolving Quadratic CongruencesArticle · MathematicsFinding Primitive Roots and GeneratorsArticle · Mathematics