Definition: Let `R` be a commutative ring. The polynomial ring `R[x]` of polynomials over `R` in the indeterminate `x` is defined to be the ring consisting of all expressions of the form `sum_(i=0)^n a_ix^i = a_nx^n + a_(n-1)x^(n-1) + ... + a_1x + a_0`, `a_i in R, n in ZZ^(>= 0)`
We can always write an element of `R[x]` as `sum_(i=0)^n a_ix^i` where `a_n != 0`
If we have two polynomials `sum_(i = 0)^n a_ix^i, sum_(j = 0)^m b_jx^j` written in this form then `sum_(i = 0)^n a_ix^i = sum_(j = 0)^m b_jx^j <=> n = m` and `a_k = b_k` `AA 1 <= k <= n`
Note: `x` and `x^2` take on the same values at all elements of `ZZ // 2ZZ` but `x != x^2` as elements of `ZZ // 2ZZ [x]`
Addition and multiplication are defined exactly as how they were in grade school, except if the coefficient ring `R` has `char(R) = n`, then we have to reduce `mod n`
`(3x^2 + 2x + 1) + (x + 4) = 3x^2 + 3x + 5`
`= 3x^2 + 3x + 0` if in `[ZZ]_5`
Definition: Let `f(x) = sum_(i = 0)^n a_ix^i in R[x]`. If `a_n != 0`, then the degree of `f`, denoted by `deg(f(x))`, is `n`. The leading term is `a_n`. If `a_n = 1`, then `f(x)` is said to be monic. If `f(x) = r in R`, then `f(x)` is constant. `R` is called the coefficient ring.
Proposition: If `R` is an integral domain, then `R[x]` is an integral domain
Let `sum_(i = 0)^n a_ix^i, sum_(j = 0)^m b_jx^j in R[x]` be nonzero elements `s.t.` the leading terms are `a_n, b_m != 0`
Then the product has leading term `a_nb_m`
`a_nb_m != 0` since `R` is a domain and `a_n, b_m != 0`
Therefore, the product is nonzero
For a unital commutative ring `R`, if every ideal of `R` is finitely generated `<=>` every ideal of `R[x]` is finitely generated
Degree adds under taking products in `R[x]` when `R` is a domain
`ZZ // 4ZZ: f(x) = [2]_4x + [1]_4, g(x) = [2]_4x^2 + [2]_4x`
`f(x)g(x) = [4]_4x^3 + [4]_4x^2 + [2]_4x^2 + [2]_4x = [2]_4x^2 + [2]_4x`
`deg(fg) != deg(f)deg(g)`
Unexpected things happen in `R[x]` when `R` is not a domain
However, when `F` is a field, none of this occurs
Even better, we have a division algorithm in `F[x]` like the one in `ZZ`
We can order collections of elements in `F[x]` by their degrees
In `ZZ`: If `a in ZZ, b != 0 in ZZ`, then `EE q, r in ZZ` `s.t.` `a = bq + r` `0 <= r < |b|`
Division Algorithm in `F[x]`: Let `F` be a field. Let `f(x) in F[x]`. Let `g(x) != 0 in F[x]`. Then `EE q(x), r(x)` `s.t.` `f(x) = g(x)q(x) + r(x)` where either `0 <= deg(r(x)) < deg(g(x))` or `r(x) = 0`
First we prove existence
If `f(x) = 0`, take `q(x) = 0` and `r(x) = 0`
If `deg(g(x)) > deg(f(x))`, let `q(x) = 0, r(x) = f(x)`
`f(x) = g(x)*0 + f(x), 0 <= deg(r(x)) = deg(f(x)) < deg(g(x))`
We've reduced to the case where `deg(f(x)) >= deg(g(x))`
We induct on `deg(f(x)) = n`
Base Case: `n = 0`. In this case `f(x)` is constant, and since `deg(g(x)) <= deg(f(x)) = 0 => deg(g(x)) = 0 => g(x)` is a constant
`f(x)` is constant `=> f(x) = a in F \\ {0}`
`g(x)` is constant `=> g(x) = b in F \\ {0}`
`a = b*(a/b)`. Let `q(x) = a/b`. Let `r(x) = 0`
Inductive Hypothesis: Suppose for some `n >= 0, k <=n` `AA k in ZZ^(>= 0).` If `f(x)` is a polynomial of degree `k`, then `EE q(x), r(x)` `s.t.` `f(x) = g(x)q(x) + r(x)` where `0 <= deg(r(x)) < deg(g(x))` or `r(x) = 0`
WTS: If `f(x)` is a polynomial of degree `n+1` in `F[x]`, then `EE q(x), r(x)` `s.t.` `f(x) = g(x)q(x) + r(x)` where `0 <= deg(r(x)) < deg(g(x))` or `r(x) = 0`
Let `a_n` be the leading term of `f(x)`, `b_m` be the leading term of `g(x)`
The leading monomial of `f(x)` is `a_nx^n` and the leading monomial of `g(x)` is `b_mx^m`, `m <= n`
Consider `f(x) - a_nb_m^-1x^(n-m)g(x)`. This has degree `< deg(f(x)) = n+1`
So the inductive hypothesis applies to `f(x) - a_nb_m^-1x^(n-m)g(x)`
`EE q_1(x), r_1(x) in F[x]` `s.t.` `(f(x) - a_nb_m^-1x^(n-m)g(x)) = g(x)q_1(x) + r_1(x)` where `0 <= deg(r_1(x)) < deg(g(x))` or `r_1(x) = 0`
Rearranging this, we find `f(x) = g(x)(a_nb_m^-1x^(n-m) + q_1(x)) + r_1(x)` where `0 <= deg(r_1(x)) < deg(g(x))` or `r_1(x) = 0`
Now we prove uniqueness
Suppose `f(x) = g(x)q_1(x) + r_1(x) = g(x)q_2(x) + r_2(x)`
`g(x)q_1(x) + r_1(x) - g(x)q_2(x) - r_2(x) = 0`
`g(x)(q_1(x) - q_2(x)) = (r_2(x) - r_1(x)) => g(x) | (r_2(x) - r_1(x))`
`deg(r_2(x) - r_1(x)) <= max{deg(r_1(x)), deg(r_2(x))} < deg(g(x))`
If `r_2(x) - r_1(x) != 0`, then that is a contradiction
`deg(g(x)) > deg(f(x))`
If `g(x) | f(x) => EE q(x) in F[x]` `s.t.` `g(x)q(x) = f(x)`
`deg(g(x)) + deg(q(x))` (which is `>= 0`) `= deg(f(x)) < deg(g(x))`, a contradiction
So we must have `r_1(x)- r_2(x) = 0`
Since `F[x]` is an integral domain, we see that `q_1(x) = q_2(x)`
If `R` is an integral domain, then we can make sense of `f(x) | g(x).` This means that `EE q(x) in R[x]` `s.t.` `f(x)q(x) = g(x)`
`f(x)` is called a factor of `g(x)`. `a in R` is called the root of `f(x)` if `f(a) = 0`
Let `a in R`. Then `a` is called a zero of multiplicity `n` of `f(x)` if `(x-a)^n | f(x)` and `(x-a)^(n+1) cancel(|) f(x)`
Exercise: Show that if `R` is an integral domain, the only units of `R[x]` are the units of `R`
Suppose `f(x) != 0` is a unit in `R[x]`. Then there exists `g(x) != 0` in `R[x]` `s.t.` `f(x)g(x) = 1`
`deg(f(x)g(x)) = deg(f(x)) + deg(g(x)) = deg(1) = 0`
`=> deg(f(x)) = 0 => f(x) in R`
Theorem: A polynomial of degree `n` over a field `F` has at most `n` roots in `F`
Base Case: If `n = 0`, then `f(x) in F \\ {0}`, so it has `0` roots
Inductive Hypothesis: Suppose for some `n >= 0, k <= n` `AA k in ZZ^(>= 0)` If `f(x)` is a polynomial of degree `k`, then `f(x)` has at most `k` roots in `F`
WTS: If `f(x)` is a polynomial of degree `n+1`, then `f(x)` has at most `n+1` roots in `F`
Let `f(x)` be a polynomial of degree `n+1`. If `f(x)` has no roots in `F`, then the statement is proven
Therefore we can assume `f(x)` has a root, call it `alpha in F`
Let `h` be the multiplicity of `alpha`. We can write `f(x) = (x-alpha)^hq(x)` where `(x-alpha) cancel(|) q(x)`
If `alpha` is the only root, then `h <= n + 1` and the statement is proven
Suppose that `beta` is a root of `f(x), beta != alpha`
`0 = f(beta) = (beta - alpha)^hq(beta) => q(beta) = 0`
Therefore, `beta` is a root of `q(x)`
We claim that the multiplicity of `beta` as a root of `q(x)` is equal to the multiplicity of `beta` as a root of `f(x)`
Since `beta` is a root of `q(x) => (x - beta) | q(x)`
Let `m_1` be the multiplicity of `beta` as a root of `q(x)` (So `(x-beta)^(m_1) | q(x)` and `(x - beta)^(m_1+1) cancel(|) q(x)`)
Since `beta` is a root of `f(x)`, we can write `f(x) = (x - beta)^(m_2)q_2(x)`
`m_2`: the multiplicity of `beta` as a root of `f(x)`
`q(x) = (x - beta)^(m_1)q_1(x)`
Notice `f(x) = (x - alpha)^nq(x) = (x - alpha)^h(x - beta)^(m_1)q_1(x)`
`f(x) = (x - beta)^(m_2)q_2(x)`. We claim `m_1 = m_2`
Case 1: `m_1 > m_2`. `(x - alpha)^h(x - beta)^(m_1)q_1(x) - (x - beta)^(m_2)q_2(x) = 0`
Since `F[x]` is a domain, `(x - alpha)^h(x - beta)^(m_2 - m_1)q_1(x) - q_2(x) = 0`
Plugging in `beta` gives `q_2(beta) = 0`, which is a contradiction
Case 2: `m_1 < m_2`. (x - alpha)^h(x - beta)^(m_1)q(x) = (x - beta)^(m_2)q_2(x)`
`(x - alpha)^h(x- beta)^(m_1)q_1(x) - (x - beta)^(m_2)q_2(x) = 0`
Since `F[x]` is a domain, `(x - alpha)^hq_1(x) - (x - beta)^(m_2 - m_1)q_2(x) = 0`
Plugging in `beta => q_1(beta) = 0`, which is a contradiction
Therefore, `m_1 = m_2`
By the induction hypothesis, since `deg(q(x)) < deg(f(x)) = n + 1, q(x)` has at most `deg(q(x)) = n + 1 - h` roots counted with multiplicity
Since the remaining roots of `f(x)` are exactly the roots of `q(x)` with the same multiplicity, since `f(x) = (x - alpha)^hq(x)` we see that `f(x)` has at most `h + deg(q(x)) = h + n + 1 - h = n + 1` roots in `F`
Why "at most"? Ex: `x^2 + 1 in RR[x]` has no roots
Theorem: `F[x]` is a principal ideal domain
Let `I` be a nonzero proper ideal of `F[x]`. Let `f(x) != 0` be an element of minimal degree in `I`
Since `I` is proper, the degree of `f(x)` must be positive
(If `deg(f(x)) = 0 => f(x) in F \\ {0} => f(x)` is a unit in `I => I = F[x]`)
Let `g(x) in I`. By the division algorithm, `EE q(x), r(x) in F[x]` `s.t` `g(x) = f(x)q(x) + r(x)` where `0 <= deg(r(x)) < deg(f(x))` or `r(x) = 0`
We can rewrite this as `r(x) = g(x) - f(x)q(x) in I`
Since `F` was chosen to have minimal degree, `r(x) = 0 => I sube (f(x))`
Since `f(x) in I => (f(x)) sube I => (f(x)) = I`
Exercise: Let `R` be a commutative ring with unity. Let `I sube R` be an ideal. Show that `I[x]` = the set of polynomials in `R[x]` whose coefficients lie in `I` is an ideal of `R[x]`
We must show that `I[x]` is a subgroup. Let `f(x) = sum_(i = 0)^n a_ix^i, g(x) = sum_(j = 0)^m b_jx^j in I[x]`
WLOG, `n >= m`
`f(x) - g(x) = sum_(k = 0)^n c_kx^k` where `c_k = {(a_k - b_k if k <= m), (a_k if m < k <= n):}`
`a_k - b_k in I` since `a_k, b_k in I` and `I` is an ideal (for `0 <= k <= m`)
`a_k in I` if `m < k <= n =>` By definition, `f(x) - g(x) in I[x]`
It suffices to show that `AA` monomials `r_hx^h in R[x]`, `AA f(x) in I[x], r_hx^h - f(x) in I[x]`
Let `f(x) = sum_(i = 0)^n a_ix^i`. Then `r_hx^h(sum_(i = 0)^n a_ix^i) = sum_(j = h)^(n+1) r_ha_j - hx^j in I[x]`
Let `sum_(k = 0)^m r_kx^k in R[x], f(x) in I[x]`
Then `sum_(k = 0)^m r_kx^k*f(x) = sum_(k = 0)^m (r_kx^kf(x)) in I[x]`
Since `I[x]` is a subgroup `=> sum_(k = 0)^m r_kx^kf(x) in I[x]`
Ex: If `p` is a prime ideal in `R`, then `p[x]` is a prime ideal in `R[x]`
We show that `R[x] // p[x]` is an integral domain
To do this, we exhibit an isomorphism `R[x] // p[x] ~= R // p [x]`
`pi_p: R -> R // p`
There is a map of rings `bar pi_p: R[x] -> R // p [x], sum_(i = 0)^n a_ix^i |-> sum_(i = 0)^n pi_p(a_i)x^i`
(Surjective): Fix `sum_(j = 0)^m (b_i + p)x^i in R // p [x]`
Notice `bar pi_p(sum_(j = 0)^m b_jx^j) = sum_(j = 0)^m pi_p(b_j)x^j = sum_(j= 0)^m (b_j + p)x^j`
`bar pi` is onto `R[x] -> R // p [x]`
We claim `ker(bar pi_p) = p[x]`
`(sube)` Let `sum_(i = 0)^n a_ix^i in ker(bar pi_p) => bar pi_p(sum_(i = 0)^n a_ix^i) = sum_(i = 0)^n pi_p(a_i)x^i = 0`
`=> pi_p(a_i) = 0` `AA i`
`a_i + p = 0 + p => a_i in p` `AA i =>` since all `a_i in p => sum_(i = 0)^n a_ix^i in p[x]`
`(supe)` Suppose `sum_(i = 0)^m c_ix^i in p[x] => c_i in p` `AA i`
`bar pi_p(sum_(i = 0)^m c_ix^i) = sum_(i = 0)^m pi_p(c_i)x^i = sum_(i = 0)^m (c_i + p)x^i = sum_(i = 0)^m (0 + p)x^i = 0`
`=> sum_(i = 0)^m c_ix^i in ker(bar pi_p)`
Since `bar pi_p: R[x] -> R // p [x]` is surjective and `ker(bar pi_p) = p[x]`, by the First Isomorphism Theorem, `R[x] // p[x] ~= R // p [x]`
`R // p [x]` is a domain `<=> R[x] // p[x]` is a domain `<=> p[x]` is prime
However, if `m` is a maximal ideal of `R`, `m[x]` need not be a maximal ideal of `R[x]`
Let `R = ZZ, m = pZZ`, `p` prime
Then `ZZ[x] // pZZ[x] ~= ZZ // pZZ [x]`
We know that `ZZ // pZZ [x]` is not a field `<=> pZZ[x]` is not maximal
What is the right generalization of a prime number in `F[x]`?
`p in ZZ` is prime `<=>` whenever `p = ab, a = +- p, b = +- p` or vice versa
Definition: Let `R` be an integral domain. Let `f(x) in R[x]` which is nonzero and not a unit. `f(x)` is irreducible if whenever `f(x) = g(x)h(x)` for some `g(x), h(x) in R[x]`, either `g(x)` or `h(x)` must be a unit. If an element is not a unit, nonzero, and not irreducible, it is reducible
Re-examining the definition of irreducible polynomials, since `R` is a domain, the units of `R[x]` are the units of `R` itself, so we can rephrase the definition as:
`f(x)` is irreducible if whenever `f(x) = g(x)h(x)` for some `g(x), h(x) in R[x]` we must have `g(x)` or `h(x)` is a unit in `R`
When `R` is a field, we can say even more
Proposition: Let `F` be a field. Then an element `f(x) in F[x]` (nonzero, non-unit) is irreducible if and only if we cannot express `f(x)` as a product of two polynomials whose degrees are `< deg(f(x))`
`(=>)` Suppose that `f(x)` is irreducible. Suppose for a contradiction that `f(x) = g(x)h(x)` where `deg(g(x)), deg(h(x)) < deg(f(x))`
Since `f(x)` is irreducible, one of `g(x)` or `h(x)` must be a unit in `F`
If `g(x) in F^x`, then `deg(g(x)) = 0`
`f(x) = g(x)h(x) => deg(f(x)) = cancel(deg(g(x))) + deg(h(x)) => deg(f(x)) = deg(h(x))`, which is a contradiction
`(lArr)` Suppose that `f(x)` is such that `f(x)` cannot be factored as a product `f(x) = g(x)h(x)` where `deg(g(x)), deg(h(x)) < deg(f(x))`
We claim that `f` is irreducible
Suppose `f(x) = p(x)q(x)`
By assumption, either `deg(p(x)) = deg(f(x))` or `deg(q(x)) = deg(f(x))`
In the first case, `deg(q(x)) = 0 <=> q(x) in F^x`
In the second case, `deg(p(x)) = 0 <=> p(x) in F^x`
Therefore, `f` is irreducible
Proposition: If `R` is a principal ideal domain, then every prime ideal is maximal
`(lArr)` maximal ideals are always prime in integral domains
`(=>)` Suppose that `p` is a prime ideal. Let `p in I` where `I` is an ideal
We claim that `I = p` or `I = R`
Since `R` is a principal ideal domain, `EE x, z in R` `s.t.` `(x) = p, (z) = I, (x) sube (z)` where `(x)` is prime
Since `(x) sube (z), EE y in R` `s.t.` `x = yz => yz in (x)`
Since `(x)` is a prime ideal, either `y in (x)` or `z in (x)`
If `y in (x) => EE r in R` `s.t.` `y = rx`
Then `x = yz = rxz = (rz)x`
Since `R` is a domain `=> rz = 1 => z in R^x => (z) = R`
If `z in (x)`, then `(z) sube (x)` and therefore `(z) = (x)`
`=> p = (x)` is maximal
Since `F(x)` is a principal ideal domain, to show that irreducible polynomials generate maximal ideals, it suffices to show that irreducible polynomials generate prime ideals
To do this, we must establish some properties of irreducible polynomials
The property we want is: If `f(x)` is irreducible, then `f(x) | g(x)h(x) => f(x)|g(x)` or `f(x)|h(x)`
Definition: Let `f(x), g(x) in F[x]`. A polynomial `h(x)` is a greatest common divisor of `f(x)` and `g(x)` if
1) `h(x) | f(x)` and `h(x) | g(x)`
2) If `q(x)` is any other common divisor of `f(x)` and `g(x)`, then `q(x) | h(x)`
We used "a" and not "the" because if `h(x)` satisfies these conditions, so does `c*h(x)` `AA c in F^x`
Suppose `h_1(x), h_2(x)` both satisfy these conditions.
Then `h_1(x) | h_2(x) => EE p_1(x) in F[x]` `s.t.` `h_1(x)p_1(x) = h_2(x)`
And `h_2(x) | h_1(x) => EE p_2(x) in F[x]` `s.t.` `h_2(x)p_2(x) = h_1(x)`
`h_2(x) = h_1(x)p_1(x) = h_2(x)p_2(x)p_1(x)`
Since `F[x]` is a domain, `p_2(x)p_1(x) = 1 => p_2(x), p_1(x) in F^x`
From now on, "the greatest common divisor" means the unique polynomial `h(x)` satisfying these conditions of the definition which is monic
The greatest common divisor of `f(x)` and `g(x)` is the monic generator of `(f(x), g(x))`
Let `f(x), g(x) in F[x]` `s.t.` at least one of them is nonzero
Consider `(f(x), g(x)) sube F[x]`
Since `F[x]` is a principal ideal domain, `(f(x), g(x))` is generated by a single element
Let `h(x)` be the monic generator of `(f(x), g(x))`
Notice that since `f(x), g(x) in (h(x)) => h(x)|f(x), h(x)|g(x)`
Since `h(x) in (f(x), g(x)) => EE r(x), s(x) in F[x]` `s.t.` `h(x) = r(x)f(x) + s(x)g(x)`
Let `q(x)` be a common divisor of `f(x)` and `g(x)`
Then `EE p_1(x), p_2(x) in F[x]` `s.t.` `q(x)p_1(x) = f(x), q(x)p_2(x) = g(x)`
Substituting, we find `h(x) = r(x)q(x)p_1(x) + s(x)q(x)p_2(x) => q(x)|h(x)`
Therefore, `h(x)` is the gcd of `f(x)` and `g(x)`
We've shown that `gcd(f(x), g(x))` can be written as an `F[x]` linear combination of `f(x)` and `g(x)`
Proposition: Suppose that `f(x)` is irreducible in `F[x]`. Then `f(x)|g(x)h(x) => f(x)|g(x)` or `f(x)|h(x)`, `AA g(x), h(x) in F[x]`
Suppose that `f(x)` is irreducible and `f(x) cancel(|) g(x)`. We claim `f(x)|h(x)`
First we show `gcd(f(x), g(x)) = 1`
Suppose `q(x)|f(x)` and `q(x)|g(x)`
If `q(x)|f(x)` then since `f(x)` is irreducible, `q(x) = c*f(x)` for some unit `c in F^x`, or `q(x) in F^x`
If `q(x) = c*f(x)` and `q(x)|g(x)`, then `c*f(x)|g(x) => f(x)|g(x)`, which is a contradiction
`=> q(x) in F^x`
Therefore, `gcd(f(x), g(x)) = 1`
By what we just proved, `EE r(x), s(x) in F[x]` `s.t.` `1 = r(x)f(x) + s(x)g(x)`
Since `f(x)|g(x)h(x) => EE q'(x) in F[x]` `s.t.` `f(x)q'(x) = g(x)h(x)`
`f(x)q'(x)*1 = f(x)q'(x)*(r(x)f(x) + s(x)g(x)) = g(x)h(x)`
`g(x)h(x) = f(x)q'(x)r(x)f(x) + f(x)q'(x)s(x)g(x)`
`= g(x)h(x)r(x)f(x) + f(x)q'(x)s(x)g(x)`
`=> h(x) = f(x)*(h(x)r(x) + q'(x)s(x)) => f(x)|h(x)`
Proposition: If `f(x) in F[x]` is irreducible, then `(f(x))` is prime
Let `g(x), h(x) in F[x]` `s.t.` `g(x)h(x) in (f(x)) => f(x)|g(x)h(x)`
By what we just showed, `f(x)` is irreducible implies `f(x)|g(x)h(x) => f(x)|g(x)` `(g(x) in (f(x)))` or `f(x)|h(x)` `(h(x) in (f(x))`
We care about irreducible polynomials because they generate the maximal ideals of `F[x]`
We just have to show that having the property `f(x)|g(x)h(x) => f(x)|g(x)` or `f(x)|h(x)` is equivalent to being irreducible
Suppose `f(x) in F[x]` `s.t.` whenever `g(x), h(x) in F[x]` `s.t.` `f(x)|g(x)h(x) => f(x)|g(x)` or `f(x)|h(x)`
We claim `f(x)` is irreducible
Suppose `f(x) = p(x)q(x)`. We claim that either `p(x) in F^x` or `q(x) in F^x`
Since `f(x)*1 = p(x)q(x) => f(x)|p(x)q(x)`
By assumption, `f(x)|p(x)` or `f(x)|q(x)`
`f(x)|p(x) => EE p'(x) in F[x]` `s.t.` `f(x)p'(x) = p(x)`
`f(x) = f(x)p'(x)q(x) => q(x) in F^x`
`f(x)|q(x) => EE q'(x) in F[x]` `s.t.` `f(x)q'(x) = q(x)`
`f(x) = f(x)p(x)q'(x) => p(x) in F^x`
Every maximal ideal is of the form `(f(x))` where `f(x)` is irreducible `// F`
There are conditions that imply irreducibility or reducibility
The first condition applies to any field, but only to degree `2` or degree `3` polynomials
Proposition: Let `F` be a field. `f(x) in F[x]` is irreducible `// F <=> f(x)` has no roots
`(=>)` Suppose `f(x)` is irreducible. Then since `cancel(EE)` a factorization `f(x) = g(x)h(x)` where `deg(g(x)), deg(h(x)) < deg(f(x))`, `f` has no linear factors `<=> f(x)` has no roots in `F`
`(lArr)` Suppose `f(x)` has no roots in `F <=> f(x)` has no linear factors
Suppose `deg(f(x)) = 2`
Suppose for a contradiction that `f(x)` is reducible `=> EE g(x), h(x) in F[x]` `s.t.` `f(x) = g(x)h(x) in F[x]` where `deg(g(x)), deg(h(x)) < 2`
`=> deg(g(x)) = deg(h(x)) = 1`, which is a contradiction*
Suppose `deg(f(x)) = 3`
Suppose for a contradiction that `f(x)` is reducible `=> EE g(x), h(x) in F[x]` `s.t.` `f(x) = g(x)h(x) in F[x]` where `deg(g(x)), deg(h(x)) < 3`
`=>` either `deg(g(x)) = 2` and `deg(h(x)) = 1`, which is a contradiction*, or vice versa, which is also a contradiction*
*contradiction because `f(x)` has no linear factors
Definition: Let `f(x) in ZZ[x]`. The content of `f(x)` is the greatest common divisor of the coefficients of `f(x)`. If the content is `1`, then `f(x)` is primitive
Ex: Monic polynomials are primitive
Proposition: If `f(x), g(x)` are primitive, then `f(x)g(x)` is primitive
We prove the contrapositive. Suppose `f(x), g(x) in ZZ[x]` `s.t.` `f(x)g(x)` is not primitive
Then `EE p in ZZ^+` prime such that `p|content(f(x)g(x)) => EE q(x) in ZZ[x]` `s.t.` `f(x)g(x) = p(q(x)) in pZZ[x]`
We've already seen that `pZZ` is a prime ideal of `ZZ[x]`
Thus `f(x)g(x) in pZZ[z] => f(x) in pZZ[x]` or `g(x) in pZZ[x]`
`=> p|content(f(x))` or `p|content(g(x)) =>` either `f(x)` or `g(x)` is not primitive
Gauss's Lemma: If `f(x) in ZZ[x]` is reducible over `QQ`, then `f(x)` is reducible over `ZZ`
Suppose that `f(x)` is reducible over `QQ`
Then `EE g(x), h(x) in QQ[x]` `s.t.` `f(x) = g(x)h(x)`
We can harmlessly divide through by the content of `f(x)` to assume that `f(x)` is primitive
Let `alpha` be the least common multiple of the denominators in `g(x)`. Let `beta` be the least common multiple of the denominators in `h(x)`
Thus, `alpha*g(x) in ZZ[x], beta*h(x) in ZZ[x]`
So we have a factorization `alpha beta f(x) = alpha g(x) * beta h(x) in ZZ[x]`
Notice that the content of `alpha beta f(x)` is `alpha beta`
Let `c_g` be the content of `alpha g(x)`, `c_h` be the content of `beta h(x)`
Notice that `(alpha g(x)) / c_g` and `(beta h(x)) / c_h` are primitive
We can write `alpha beta f(x) = c_(g) ((alpha g(x)) / c_g) * c_h ((beta h(x)) / c_h)`
Since `(alpha g(x)) / c_g, (beta h(x)) / c_h` are primitive, the content of the right side is `c_g*c_h`
The content of the left side is `alpha beta => alpha beta = c_gc_h`
Therefore `(alpha beta)/(c_gc_h) f(x) = f(x) = (alpha g(x)) / c_g * (beta h(x)) / c_h` where `(alpha g(x)) / c_g, (beta h(x)) / c_h in ZZ[x]`
Proposition: Suppose that `f(x) in ZZ[x]` `s.t.` `deg(f(x)) >= 1`. Let `p` be a prime number. Let `bar pi_p: ZZ[x] -> ZZ // pZZ[x]` be the ring homomorphism which reduces coefficients modulo `p`. If `bar pi_p(f(x))` is irreducible over `ZZ // pZZ` and `deg(bar pi_p(f(x))) = deg(f(x))`, then `f(x)` is irreducible over `QQ`
Let `f(x) in ZZ[x]` and let `p` be a prime number `s.t.` `bar pi_p(f(x))` is irreducible and `deg(bar pi_p(f(x))) = deg(f(x))`
Suppose for a contradiction that `f` is reducible over `QQ`
`=> EE g(x), h(x) in QQ[x]` `s.t.` `f(x) = g(x)h(x)` where `deg(g(x)), deg(h(x)) < deg(f(x))`
Divide through by `content(f)`. Then if `alpha` is the `lcm` of the denominators of `g(x)` and `beta` is the `lcm` of the denominators of `h(x)`, then `alpha g(x), beta h(x) in ZZ[x]`
Let `c_g, c_h` denote the content of `alpha g(x), beta h(x)`
Then `f(x) = (alpha g(x)) / c_g * (beta h(x)) / c_h`
Notice that `deg((alpha g(x)) / c_g) = deg(g(x))` and `deg((beta h(x)) / c_h) = deg(h(x))`
Reducing `mod p`, we see that `bar pi_p(f(x)) = bar pi_p((alpha g(x)) / c_g) bar pi_p((beta h(x)) / c_h)`
By assumption, `bar pi_p(f(x))` is irreducible `=>` either `deg(bar pi_p((alpha g(x)) / c_g)) = 0` or `deg(bar pi_p((beta h(x)) / c_h)) = 0`
`=> deg(bar pi_p((beta h(x)) / c_h)) = deg(bar pi_p(f(x)))` or `deg(bar pi_p((alpha g(x)) / c_g))) = deg(bar pi_p(f(x)))`
Since we assumed `deg(bar pi_p(f(x))) = deg(f(x))`, either `deg(bar pi_p((beta h(x)) / c_h)) = deg(f(x))` or `deg(bar pi_p((alpha g(x)) / c_g)) = deg(f(x))`
Since degree only drops or stays the same when reducing `mod p`,
1) `deg(h(x)) >= deg(bar pi_p((beta h(x)) / c_h)) = deg(f(x))`, which is a contradiction
2) `deg(g(x)) >= deg(bar pi_p((alpha g(x)) / c_g)) = deg(f(x))`, which is a contradiction
Therefore, `f` is irreducible over `QQ`
Eisenstein's Criterion: Let `f(x) = sum_(i = 0)^n a_ix^i`. Let `p` be a prime number. Suppose that `p cancel(|) a_n`, `p|a_i AA 0 <= i <= n-1`, and `p^2 cancel(|) a_0`. Then `f` is irreducible `// QQ`
Suppose `f(x) in ZZ[x]` and `p` is a prime `s.t.` `p cancel(|) a_n`, `p|a_i AA 0 <= i <= n-1`, `p^2 cancel(|) a_0`
Suppose `f` is reducible over `QQ => EE g(x), h(x) in ZZ[x]` `s.t.` `deg(g(x), h(x)) < deg(f(x))` `s.t.` `f(x) = g(x)h(x)`
Therefore, both have positive degree
Let `g(x) = sum_(j = 0)^r b_jx_j, h(x) = sum_(k = 0)^s c_kx^k`
Notice that `a_0 = b_0c_0`
Since `p|a_0` but `p^2 cancel(|) a_0`, WLOG `p cancel(|) b_0, p|c_0`
So `cc C = {l in {1, ..., s} | p cancel(|) c_l} != {0, ..., s}`
Observe that `cc C` is nonempty since `p cancel(|) a_n, a_n = b_rc_s => p cancel(|) c_s`
`cc C sub {0, ..., s}, ccC != O/`
Let `l_0` be the minimum of `cc C => AA l < l_0, p|c_l`
Notice that `a_(l_0) = b_0c_(l_0) + b_1c_(l_0-1) + ... + b_qc_(l_0-q)` where `q` is the largest index `<= r` `s.t.` `l_0-q >= 0`
Since `p|b_1c_(l_0-1) + ... + b_qc_(l_0-q)` and `p|a_(l_0) => p|b_0c_(l_0)`, since `p cancel(|) b_0 => p|c_(l_0)`, which is a contradiction
Therefore, `f` is irreducible over `QQ`
Let `p` be prime. The `p^(th)` cyclotomic polynomial, `Phi_p(x) = (x^p-1)/(x-1)` is irreducible `// QQ`
Replace `x` with `(x+1) => Phi_p(x+1) = (((x+1)^p-1)/x) = (sum_(k = 0)^p ((p),(k)) x^k - 1)/x`
`= (sum_(k = 1)^p ((p),(k)) x^k) / x = sum_(k = 1)^p ((p),(k)) x^(k-1) = sum_(k = 0)^(p-1) ((p),(k+1)) x^k`
`= ((p),(1)) + ((p),(2))x + ... + ((p),(p-1))x^(p-2) + ((p),(p))x^(p-1)`
`= p + ((p),(2))x + ... + px^(p-2) + x^(p-1)`
Therefore `Phi_p(x+1)` is irreducible by Eisenstein's criterion
If `Phi_p(x) = f(x)g(x)` where `deg(f(x)), deg(g(x)) < deg(Phi_p(x))`, then `Phi_p(x+1) = f(x+1)g(x+1)` where `deg(f(x+1)), deg(g(x+1)) < deg(Phi_p(x+1)) = deg(Phi_p(x))`
Since `Phi_p(x+1)` is irreducible, this is a contradiction
Constructing a finite field other `ZZ // pZZ`
Let `f(x)` be an irreducible polynomial of degree `n` in `ZZ // pZZ [x]`
We know that `(f(x)) sube ZZ // pZZ [x]` is a maximal ideal
So `(ZZ // pZZ[x]) / (f(x))` is a finite field
We claim that `| (ZZ // pZZ[x]) / (f(x)) | = p^n`
Any element in `(ZZ // pZZ[x]) / (f(x))` can be written as a `ZZ // pZZ` linear combination of `{1 + (f(x)), x + (f(x)), ..., x^(n-1) + f(x)}`
We're proving by induction that `x^k + (f(x)) in ZZ // pZZ` linear span of `{1 + (f(x)), ..., x^(n-1) + (f(x))}` `AA k >= n`
Base Case: `k = n`. `f(x) = x^n + a_(n-1)x^(n-1) + ... + a_1x + a_0 in ZZ // pZZ[x]`
`x_n + a_(n-1)x^(n-1) + ... + a_0 + (f(x)) = 0 + (f(x))`
`x_n + (f(x)) = -a_(n-1)x^(n-1) - ... - a_0 + (f(x))`
Inductive Hypothesis: Suppose for some `k >= n, AA j <= k, x^j + (f(x)) in span{1 + (f(x)), ..., x^(n-1) + (f(x))}`
Consider `x^(k+1) + (f(x)) = -a_(n-1)x^(k+1-n+n-1) - ... - a_0x^(k+1-n) + (f(x))`
`= -a_(n-1)x^k - ... - a_0x^(k+1-n) + (f(x))`
`in span{1 + (f(x)), ..., x^(n-1) + (f(x))}` by inductive hypothesis (since `k+1-n <= k`)
`=> x^k + (f(x)) in span{1 + (f(x)), ..., x^(n-1) + (f(x))}`
Any element of `(ZZ // pZZ [x]) / (f(x))` can be written as `sum_(i = 0)^(n-1) b_ix^i + (f(x))`
Therefore, `| (ZZ // pZZ[x]) / (f(x)) | <= p^n`
There are no `ZZ // pZZ` relations among `{1 + (f(x)), ..., x^(n-1) + (f(x))}`
Suppose `sum_(i = 0)^(n-1) c_ix^i + (f(x)) = 0 + (f(x))`
`=> sum_(i = 0)^(n-1)c_ix^i in (f(x)) => f(x)|sum_(i = 0)^(n-1) c_ix^i`
But `deg(f(x)) > n-1`, so that is a contradiction
`{1 + (f(x)), ..., x^(n-1) + (f(x))}` form a basis for `(ZZ // pZZ [x]) / (f(x))` as a vector space over `ZZ // pZZ`
Since the basis has `n` elements, the vector space has cardinality `p^n`
Theorem: `ZZ[x]` is a `UFD` (Unique Factorization Domain). Let `f(x) in ZZ[x]` which is not a unit and not zero. Then we can always write `f(x) = prod_(i = 1)^n p_i prod_(j = 1)^m q_j (x)` where `p_i` are primes in `ZZ` (not necessarily distinct) This factorization is unique: given `f(x) = prod_(i = 1)^n p_i prod_(j =1)^m q_j (x) = prod_(k = 1)^(n') p'_k prod_(l = 1)^(m') q'_l (x)`, we must have `n = n'`, `m = m'` and possibly after renumbering, `p_i = +- p'_i`, `q_j(x) = +- q'_j(x)`
Existence: Induction on the degree of `f`
If `deg(f) = 0`, this follows straight from the fundamental theorem of arithmetic
We can factor out the content of a nonconstant polynomial `f` and apply the fundamental theorem of arithmetic
Therefore, it suffices to prove the result in the case that `f(x)` is a primitive, non-constant polynomial
Claim: Given a primitive polynomial of `deg > 0`, we can write the polynomial as a product of irreducible polynomials
Let `n = deg(f)`
Base Case: n = 1. In this case, `f` is a monic linear polynomial, which is automatically irreducible
Inductive Hypothesis: Suppose that, for some `n >= 1`, `AA k <= n`, for any primitive polynomial `f(x) in ZZ[x]` of degree `k`, `f(x)` can be factored into a product of irreducible polynomials
Suppose `f(x) in ZZ[x]` has degree `n+1` and is primitive
If `f(x)` is irreducible, we are done
Suppose `f(x)` is reducible `=> f(x) = g(x)h(x)` for some `g(x), h(x) in ZZ[x]` `s.t.` `g(x), h(x)` are primitive and neither is a unit
Thus, `deg(g(x)), deg(h(x)) < n + 1`
The inductive hypothesis applies to show that `g(x), h(x)` can be written as products of irreducible polynomials in `ZZ[x]`
Uniqueness: Suppose that `f(x) = prod_(i = 1)^n p_i prod_(j = 1)^m q_j(x) = prod_(k = 1)^(n') p'_k prod_(l = 1)^(m') q'_l(x)`
Since `q_i(x), q'_l(x)` are irreducible, `q_j(x), q'_l(x)` must be primitive
`=>` By Gauss's Lemma, `prod_(j = 1)^m q_j(x)`, `prod_(l = 1)^(m') q'_l(x)` are primitive
Taking the content of both sides, we see that `prod_(i = 1)^n p_i = +- prod_(k = 1)^(n') p'_k`
The uniqueness statement for the `p_i`'s, `p_k`'s follows from the fundamental theorem of arithmetic
Therefore, it suffices to show that given `prod_(j = 1)^m q_j(x) = prod_(l = 1)^(m') q'_l(x)`, then `m = m'`, `q_j(x), q'_l(x)` are irreducible, `q_j(x) = +- q'_l(x)` after reordering
We prove the result by induction on `j`
Base Case: `j = 1`. Since `q_j(x)` is irreducible in `ZZ[x]`, it is irreducible in `QQ[x]` `AA j` (and similarly for all `q'_l(x)`)
From the equation `prod_(j = 1)^m q_j(x) = prod_(l = 1)^(m') q'_l(x)`, we see that `q_1(x) | prod_(l = 1)^(m') q'_l(x) in QQ[x]`
Therefore, `q_1(x) | q'_l(x) in QQ[x]` for some `l => q'_l(x) = q_1(x)h(x)`
Since `q'_l(x)` is irreducible `=> h(x) in QQ[x] \\ {0}`
`q'_l(x) = q_1(x) * a/b => bq'_l(x) = aq_1(x)`
Since `q'_l(x), q_1(x)` are primitive, `a = +- b => a/b = +- 1`
Relabel `q'_l(x) = q'_1(x)`
Inductive Hypothesis: Suppose for some `j AA i <= j`, `q_i(x) = +- q_i(x)` (after reordering)
Given this, we can cancel the common terms on both sides
`prod_(k = 1)^m q_k(x) = prod_(l = 1)^(m') q'_l(x)`
This yields `prod_(k = j + 1)^m q_k(x) = prod_(l = j + 1)^(m') q'_l(x)`
To show that `q_(j+1)(x) = q'_l(x)` for some `j+1 <= l <= m`, we use the same argument as in the base case
We claim `m = m'`
If `m > m', prod_(j = m' + 1)^m q_j(x) = +- 1`, which is a contradiction
If `m < m'`, `prod_(l = m + 1)^(m') q'_l(x) = +- 1`, which is a contradiction