is not a PID (Example 12.3.5), so Theorem 12.4.3 says nothing about whether its factorizations are unique. A polynomial with integer coefficients can be factored in , where factorization is unique (Theorem 12.4.4), and the question is whether the factors can be brought back to . Two tools do this for any UFD in place of : a field containing , as contains , and Gauss’s lemma.
The field of fractions
The rational numbers are fractions of integers, with because . The same construction works over any integral domain.
Let be an integral domain. Call two pairs and of elements of , with and , equivalent when . This is an equivalence relation; write for the class of . The field of fractions is the set of these classes, with
These operations are well defined and make a field. The map is an injective ring homomorphism , and is identified with , so that is a subring of .
does for any integral domain what does for : it is a field containing , built from alone, in which every non-zero element of has an inverse.
The construction is the rule for fractions learned at school: because , and .
Sending to the complex number identifies with the complex numbers with and rational. One direction:
The other: is for a common denominator .
The fractions of polynomials, with : for example , which is not a polynomial, and , since .
Why the field of fractions is a field.¶
Idea. Every claim is an identity between elements of , after cross-multiplying. Two facts about integral domains do the work: a product of non-zero elements is non-zero, and a non-zero factor can be canceled.
-
The relation is an equivalence relation.
It is reflexive, since , and symmetric, since gives . For transitivity, suppose and , with non-zero. Then , so , and since , .
-
The operations are well defined.
They make sense: , since and are non-zero and has no zero divisors. The result must not depend on the pairs chosen, as for residue classes. Suppose . Then
so ; and , so . Changing the second pair is the same computation, since both formulas are symmetric in the two fractions.
-
The ring axioms hold.
One rule helps: whenever , since . Both operations are commutative, because the formulas are symmetric. Multiplication is associative, with both bracketings giving , and so is addition, with both giving . The zero is , the negative of is , since their sum equals , and the one is . For distributivity,
which is .
-
is a field.
, since . A fraction equals exactly when ; if , then is a fraction and .
-
The map is an injective ring homomorphism.
, , and ; and means .
For a field , the elements of are the rational functions over , and this field is written .
In a fraction is a quotient in the field: , and is the inverse of . So from now on means , and an element of can be given a common denominator: if the coefficients are , multiplying by gives a polynomial with coefficients in .
Primitive polynomials
Over a UFD, the common factor of the coefficients of a polynomial can be split off, as is .
Let be a UFD. A non-zero polynomial is primitive if no irreducible element of divides all of its coefficients.
Every non-zero can be written as with and primitive. Such an element is a content of , written .
in
A prime dividing , and would divide .
A polynomial with a coefficient is always primitive.
in
divides and .
Its content is (or ): , and is primitive.
in
A field has no irreducible elements, so no irreducible element divides the coefficients.
Over a field every non-zero polynomial is primitive, and the content is just a unit.
Why every polynomial has a content.¶
Idea. Divide out irreducible common factors one at a time; the leading coefficient loses an irreducible factor each time, so this stops. The argument is an induction on the number of irreducible factors of the leading coefficient of .
-
For a non-zero , the number of irreducible factors of is well defined.
It is if is a unit, and otherwise the in a factorization , which is the same for every factorization, by uniqueness.
-
If no irreducible divides all the coefficients of , then is the required form.
is then primitive, by the definition.
-
When , no irreducible divides all the coefficients of .
An irreducible dividing the unit , say , would itself be a unit, since .
-
If some irreducible divides every coefficient, then , and the leading coefficient of has .
Dividing each coefficient by gives with , and . Appending to a factorization of gives one of (and if is a unit, is irreducible).
-
So has a content.
By induction, with primitive, so .
Gauss’s lemma
Let be a UFD and .
- (i) A product of primitive polynomials in is primitive.
- (ii) If with non-zero and primitive, then . So any two contents of a polynomial are associates; and a content of divides every coefficient of , and every common divisor of the coefficients divides it.
- (iii) If a primitive is a product with , then with primitive, and for some non-zero . In particular and .
Proof.¶
Idea. An irreducible element of a UFD is prime (Theorem 12.2.3), so it can be followed through products of coefficients; (iii) then clears denominators and uses (i) and (ii) to show that nothing was lost.
-
(i) A product of primitive polynomials is primitive.
Let and be primitive, and let be irreducible, so prime. Let be the least index with , and the least with ; they exist because and are primitive. The coefficient of in is the sum of the with . Every term other than has or , so divides it. And , because is prime and divides neither factor (Definition 12.2.2). So does not divide this coefficient of . As was any irreducible, is primitive.
-
(ii) If as in (ii) and is a unit, then .
Part (ii) is proved by induction on , the number of irreducible factors of , as in the definition of content; this is the case . Write for the coefficients of and for those of . Suppose is not a unit; then it has an irreducible factor . Since divides every coefficient of , for every . Since is prime and does not divide the unit , divides every , which is impossible for a primitive . So is a unit, and .
-
(ii) If , then .
Let be an irreducible factor of . Then divides every coefficient of , so for every . Some is not divisible by , as is primitive, so . Write and . Then , and since is an integral domain (Theorem 11.1.2), . As , induction gives , and so .
-
(ii) A content of divides every coefficient of , and every common divisor of the coefficients divides .
If , then divides each coefficient of . If divides every coefficient, then with ; writing with primitive gives , so by the previous steps, and .
-
(iii) After clearing denominators, with primitive and a unit of .
Since , and are non-zero. Clearing denominators, choose non-zero with and in , and write and with primitive. Then
By (i), is primitive, and is primitive, so by (ii), for a unit of . Canceling gives .
-
(iii) is primitive, and with , and the degrees are unchanged.
An irreducible dividing every coefficient of would divide every coefficient of . Then , and with . Multiplying by a non-zero constant does not change the degree.
To factor over , you may factor over the field , where there is division: a factorization of a primitive over gives one over with factors of the same degrees.
In it factors as . Moving the factor from the second factor to the first, , gives , a factorization in into primitive factors of the same degrees.
✗ , which is not primitive
It is irreducible in , where is a unit, but in it is , a product of two non-units. The content is a factor that cannot see.
A polynomial is primitive exactly when its content is a unit: if is primitive, is a content, and by (ii) every content is an associate of . Conversely, if with a unit and primitive, then is primitive, since an irreducible dividing every coefficient of would divide every coefficient of . So (iii) says that a primitive polynomial which factors in into factors of smaller degree already factors that way in .