GCD of polynomials
Definition 5.3.1. A polynomial with 1 as its leading coefficient is called a monic polynomial.
Definition 5.3.2. Let g(x) and f(x) two non-zero polynomials in ๐[x]. We define the greatest common divisor between g(x) and f(x) and indicate as GCD(g(x), f(x)) or simply by (g(x) and f(x)), the polynomial d(x) such that
d(x) | f(x), d(x)| g(x)
if d'(x) | f(x), d'(x) | g(x), then d'(x) | d(x)
The same euclidean algorithm used for finding the GCD of two integers can be used for polynomials and guarantees the existence of a GCD of two non-zero polynomials. One of the conditions that we place on a greatest common divisor of two polynomials is that it be monic. Without this condition, the greatest common divisor of two polynomials would not be unique.
Proposition 5.3.3. (Euclid's Algorithm) Let g(x) and f(x) two non-zero polynomials in K[x], we successively divide in the following way
f(x) = g(x) q0(x) + r0(x) โr0(x) < โg(x)
g(x) = r0(x) q1(x) + r2(x) โr1(x) < โr0(x)
...
ri(x) = ri+1(x) qi+2(x) + ri+2(x) โri + 2(x) < โri + 1(x)
...
rn โ 2(x) = rn โ 1(x) qn(x) + rn(x) โrn(x) < โrn โ 1(x)
rn โ 1(x) = rn(x) qn + 1(x) + 0.
Applying the same procedure as in โค, the last non-null remainder in the sequence of the divisions is the gcd.
Example 5.3.4 Find the gcd of x2 + 7x + 6 and x2 โ 5x โ 6:
x2 + 7x + 6 = 1 โ (x2 โ 5x โ 6) + (12x + 12)
x2 โ 5x โ 6 = (12x + 12) (1/12 x โ 1/2) + 0
Since 12x + 12 is the last nonzero remainder, it is a GCD of the original polynomials, and the monic GCD is x + 1.
Example 5.3.5 Compute the greatest common divisor of the polynomials f(x) = x3 + 1, g(x) = x2 + 1 on โ. We have
x3 + 1 = x(x2 + 1) โ x + 1,
x2 + 1 = (โx โ 1)(โx + 1) + 2,
โx + 1 = โ 1/2 ยท (x โ 1) ยท 2,
and so GCD(f(x), g(x)) = 2.
Definition 5.3.6. Two elements g(x) and f(x) ∈ K[x] such that f(x) and g(x) are said associates if there exists an invertible element a of K[x] such that
f(x) = g(x) โ a
The relation of being associates is an equivalence relation and in each equivalence class there is exactly one monic polynomial, which we regard as the canonical representative of the class. For example 4x2 + 8x2 + 4 is associated to the monic polynomial x2 + 2x + 1. Any polynomial is an associate of exactly one monic polynomial.
Let d'(x) and d(x) two elements verifying both the condition of being gcd between g(x) and f(x). It is easy to see that they are associates. Then we can say that the greatest common divisor between g(x) and f(x) is the unique monic polynomial.
The Bezout's relation holds true for polynomials as well. If g(x) and f(x) are in K[x], let d(x) their gcd then there exist h(x) and k(x) ∈ K[x] such that
d(x) = h(x) f(x) + k(x) g(x)
Definition 5.3.7. Two polynomials are said coprime if
GCD(f(x), g(x)) = 1
Definition 5.3.8. A nonconstant and non-invertible polynomial f(x) ∈ K[x] is said to be irreducible over K, if
f(x) = g(x)h(x), g(x), h(x) ∈ K[x] โ g(x) or h(x) is invertible (is a unit).
If it is not irreducible the polynomial is said reducible. โก
The definition says that f is irreducible if no decomposition f = gh into non-zero, non-units is possible. To phrase it in terms of reducibility, a polynomial f is reducible if there exists a decomposition f = gh such that g and h are non-zero non-units.
This means that for *every* possible factorization in terms of two polynomials g(x) and h(x), one of those must be invertible; it's not enough to find one factorization i.e. 2x2 โ 8 = 2(x2 โ 4) in โ[x] but we've also 2x2 โ 8 = 2(x โ 2)(x + 2) and the polynomials 2(x + 2) and x โ 2 are not invertible. However 2(x2 โ 4) is reducible in โค[x] since neither 2 nor (x2 โ 4) is not a unit in โค.
Example. f(x) = x2 + x + 1 is irreducible over โ. If we take any unit in โ, say 5/3, the only possible factorization would be f(x) = a โ b where a = 3/5 (x2 + x + 1) and b = 5/3. โ
Example 5.3.8. The polynomial x2 โ 2 is reducible over โ as
x2 โ 2 = (x + โ2)(x โ โ2),
and x + 2 and x โ 2 are irreducible polynomials with coefficients in โ, while it is irreducible over โ, as the polynomial x2 โ 2 has no roots in โ, that is,
โ2 ∉ โ and so x ยฑ โ2 โ โ[x]
The polynomial x2 + 1 is reducible over โ and
x2 + 1 = (x โ i)(x + i)
is a factorisation into irreducibles, but it is irreducible over โ and over โ as x2 + 1 has no roots in โ, and therefore it cannot factor (into linear factors). โ
In the polynomial ring K[x] where K is a field, the invertible elements consist of all polynomials of degree zero, i.e. the factors are the elements of the field itself.
Example 5.3.9. Consider the polynomial x2 โ 2. Note that x2 โ 2 has no zeroes over โ. This is the same as saying t hat โ2 is irrational, so the polynomial cannot decomposed in terms of a linear factor (see Ruffini's theorem. If x2 โ 2 is reducible then we may write x2 โ 2 = g(x)h(x), where the degree of g(x) and h(x) is less than two. As the degree ofthe LHS is two, the only possibility is that both g(x) and h(x) have degree one. In this case x2 โ 2 has a zero in โ, a contradiction. Thus x2 โ 2 is irreducible over โ.On the other hand, โ2 โ โ so that x2 โ 2 is reducible over โ, x2 โ 2 = (x โ โ2)(x + โ2).
So 2x + 4 = (2)(x + 2) with the first factor invertible in โ[x], is not a factorization for getting 2x + 4 reducible. In fact 2x + 4 is irreducible, as are all linear polynomials over a field.
In โค[x], where the only invertible things are 1 and โ1, both 2 and x + 2 are non-invertible, so here, 2x + 4 is reduciblle since both factors in (2)(x + 2) are non-invertible in โค[x].
In the definition above K could be either a field or a simple ring but if F is a field then we could be the following definition:
A nonconstant polynomial is said to be irreducible over the field F if it cannot be factored in F[x] into a product of polynomials of lower degree. It is said to be reducible over F if such a factorization exists.
When we are not dealing with a field this is not true: Consider 4 โ โค[x]. It cannot be expressed as the product of two polynomials of lower degree. But it is not irreducible, since 4 = 2ร2.
As another example x2 + 5 is irreducible in โค11 because x2 + 5 = (2)(6x2 + 8) and 2 is the unit in K[x].
Definition 5.3.10. A non-zero and non-invertible polynomial f(x) ∈ K[x] is said to be prime if, every time that f(x) divides a product g(x)h(x) (with g(x), h(x) ∈ K[x]), then it divides one of the two factors.
Irreducible polynomials play a role in the factorization of polynomials corresponding to the role that prime integers play in the factorization of integers.
Proposition 5.3.11. A polynomial in K[x] is irreducible iff is prime.
Theorem 5.3.12 (Unique Factorization Theorem) Every polynomial f(x) of degree ≥ 1 in K[x] can be factorised as a finite product of irreducible elements. Such a factorisation is unique, that is
f(x) = p1(x) p2(x) ... ps(x) = q1(x) q2(x) ... qt(x)
pi(x) and qj(x) are irreducible in K[x], then s = t and there exists a biunique correspondence between {p1(x) p2(x) ... ps(x)} and {q1(x) q2(x) ... qt(x)} such that if qj(x) corresponds to pi(x), then pi(x) is associated to qj(x). โก