TL;DR
A polynomial is irreducible over a field if it has degree at least 1 and cannot be written as a product of two polynomials of smaller degree with coefficients in that field. The idea is the polynomial version of a prime number: every polynomial over a field factors into irreducibles in essentially one way. Irreducibility is what lets you build new fields out of old ones by working with remainders.
Builds on: Polynomial, Field (Abstract Algebra) · Leads to: Finite Field, linear block codes, and vector spaces over extension fields
Where it's used
Byte arithmetic in symmetric encryption. The Advanced Encryption Standard, a Symmetric Encryption cipher, treats each byte as a polynomial of degree at most 7 with coefficients 0 or 1. Multiplying two bytes means multiplying the polynomials and then taking the remainder after division by the irreducible polynomial . That remainder step is what makes every nonzero byte invertible, which the cipher needs.
Error-correcting codes for storage and QR codes. Many codes that repair damaged data, including the Reed-Solomon family used on printed QR codes, do their arithmetic on bytes in the same way. The field they use has 256 elements and is built from an irreducible polynomial of degree 8 over the integers mod 2; QR codes use , so that byte arithmetic is again a remainder step.
Building a field of any prime-power size. When you need a field with elements and , the integers mod are not enough, because they are a field only when is prime and have only elements. The standard construction takes polynomials mod an irreducible polynomial of degree over the integers mod . Choosing which irreducible polynomial to use gives a different labelling of the same field.
How it works
Take the smallest interesting case: polynomials over the field with two elements, , where we add and multiply modulo 2. Each polynomial of degree 2 that is monic (leading coefficient 1) has the form with in . There are four such polynomials: , , and .
- Test . It equals , a product of two polynomials of degree 1. So it is reducible. Check: .
- Test . Try . Modulo 2, , so the product is . So it is reducible. Check: .
- Test . It equals , reducible. Check: .
- Test . A factorisation would need two factors of degree 1, of the form . Multiplying out gives . We need , which forces , and then , not 1. So no factorisation exists. Check: the only candidates for and are 0 and 1, and none works.
- Use the root test. For a degree-2 polynomial, having no factor of degree 1 is the same as having no root. The values are and . Neither is 0, so there is no root. Check: is irreducible.
- Count the result. Over the two-element field, exactly one monic quadratic is irreducible, namely . It is the one that builds a four-element field, in the same way that the prime 2 builds the two-element one.
flowchart TD
A["Polynomial f of degree 2 or 3"] --> B{"Has a root in the field?"}
B -- "yes" --> C["Reducible: factor is x minus the root"]
B -- "no" --> D["Irreducible"]
The math
Let be a field and a polynomial with . We say is irreducible over if whenever with , one of or is a nonzero constant. Otherwise is reducible.
Here means all polynomials with coefficients from , and is the largest power of that appears with a nonzero coefficient. A nonzero constant is a unit, so it does not count as a real factor. Irreducibility depends on the field: the same polynomial can be irreducible over one field and reducible over another.
Factoring a quadratic (walkthrough step 4)
Over , the monic quadratics are with . A factorisation requires
For we need and . The only nonzero element is , so , giving . Hence no factorisation exists.
The root test for small degrees (walkthrough step 5)
Suppose and with non-constant. Then , and each degree is at least 1, so one of them is 1. A polynomial with has the root in . Conversely, a root of gives a factor , by the factor theorem. So for degree 2 or 3:
For over , the values and are both nonzero, so it is irreducible.
Unique factorisation
Every nonzero polynomial over a field can be written as a nonzero constant times a product of irreducible polynomials, and the factors are unique up to order and constants. This is the polynomial analogue of the fundamental theorem of arithmetic for the integers.
Remainders give a field (walkthrough step 6)
Let be irreducible of degree over . Consider the set of remainders on division by , which are the polynomials of degree less than , with addition and multiplication done modulo . Every nonzero remainder has an inverse, because and share no factor and so their greatest common divisor is a constant, and a Bezout identity gives as an inverse of modulo . So the remainders form a field with elements.
For over , the remainders are , and modulo we have . Check: . So .
Worked examples
Is irreducible over ?
- Evaluate at each element. .
- .
- .
- No value is 0, so has no root.
- For degree 2, no root means irreducible. So is irreducible over .
The same polynomial over is reducible, since . The field decides the answer.
Test and over .
- For : .
- .
- Neither value is 0, so has no root. Since , Step 4 says is irreducible.
- For : , so is a root.
- The factor theorem gives , so is reducible.
- Because is irreducible of degree 3, the remainders modulo form a field with elements.
The root test sorts the two polynomials in one step each. The irreducible one builds a field of size 8.
In the cipher, a byte with bits stands for the polynomial over . Compute , where is the byte 01010111 and is 10000011. The reduction polynomial is .
- The first byte is , and the second is .
- Multiply, keeping coefficients mod 2. The terms are . Pairs such as cancel.
- Reduce . Since , we get .
- Substitute and combine. The , , and terms cancel against the new ones, leaving .
- Reduce . Substitute: .
- Read the bits of , which are 11000001. That is .
The remainder step is exactly the division by an irreducible polynomial. Without it the product would not be a byte.
Try it: compute , which multiplies by and reduces. Answer: , which is the byte 00011011, or .
Common mistakes and tradeoffs
It is tempting to think that a polynomial with no roots is always irreducible. This is true only up to degree 3. Over the real numbers, has no real roots, yet it is reducible. For degree 4 and above, the root test is not enough.
It is tempting to think that a polynomial of prime degree must be irreducible. In fact has prime degree 2 and is reducible. Degree tells you nothing on its own; you have to look for a factorisation.
It is tempting to think that irreducibility is a property of the polynomial alone. In fact it depends on the field. is irreducible over the rationals and over , but reducible over and over the complex numbers.
It is tempting to think that the remainders modulo any polynomial form a field. In fact they form a field only when the polynomial is irreducible. Modulo the reducible over , the element is nonzero, yet , so it has no inverse.
When to use it: you need a field whose size is a prime power other than a prime, or you need the byte-level arithmetic of a cipher or code. When not to use it: you only need integers mod a prime, which are already a field. Finding an irreducible polynomial of a given degree is done by testing candidates; for small degrees the root test is quick, and for larger degrees standard algorithms are used. In practice, designers often take a standard irreducible polynomial from a published table rather than searching for one.
History
Euclid studied prime numbers, and the uniqueness of prime factorisation for whole numbers is usually credited to Gauss. The polynomial analogue was less visible for a long time, because algebra was mostly about polynomials over the rational or real numbers.
Évariste Galois, in his 1830 memoir on the solvability of equations, worked with arithmetic modulo a prime and with polynomials modulo an irreducible polynomial. This is how fields with prime-power size first appeared; the finite field lesson tells that story in full.
In 1882, Leopold Kronecker showed how to build a new field by adjoining a root of an irreducible polynomial to an existing one. That construction made irreducible polynomials a standard tool in algebra, and it is the same idea used to build finite fields for coding and cryptography today.
Recap
- A polynomial over a field is irreducible if it has degree at least 1 and cannot be factored into two non-constant polynomials of smaller degree.
- Irreducibility depends on the field. For degree 2 or 3, it is equivalent to having no root in the field.
- Every polynomial factors uniquely into irreducibles, which is the polynomial version of the fundamental theorem of arithmetic.
- Taking remainders modulo an irreducible polynomial gives a field, which is how fields of size are built.
- Read next: Finite Field, which uses these remainders to construct every finite field, and linear block codes, which use the same arithmetic for error correction.
Check yourself
QuestionRecall: what does it mean for a polynomial to be irreducible over a field?Show answer
It has degree at least 1, and whenever it is written as a product of two polynomials over that field, one of the two factors is a nonzero constant. It cannot be split into two non-constant factors.
QuestionComputation: is irreducible over ? Check the values at 0, 1, 2, 3 and 4.Show answer
, , , , . None is 0, so there is no root. For degree 2 that means it is irreducible over .
QuestionWhy: why does taking remainders modulo a reducible polynomial fail to give a field?Show answer
If with both factors non-constant, then the remainder classes of and are nonzero but multiply to zero modulo . A nonzero element that multiplies to zero cannot have an inverse, so the structure is not a field.
QuestionApplied: a student says the polynomial is irreducible over the real numbers because it has no real roots. Is the conclusion right, and why or why not?Show answer
The conclusion is wrong. The root test is only enough for degrees 2 and 3. Over the reals, . Check: . So it is reducible even though it has no real roots. For degree 4 the student must look for a factorisation, not just check values.