Pre-Definitions
Consider the ring K[X] of polynomials with coefficients in a field k. K[X]=pnxn+...+p2x2+p1x+p0∣pi∈Z,i=0,1,2,...n
If f,g∈K[X] and there is a h∈K[X], allows g=fh, then f∣g.
Denote degf as the degree of f, degfg=degf+degg.
Iff f is a nonzero constant, degf=0. So iff f=cg and c is nonzero constant, f∣g,g∣f.
Prime in K[X]: Irreducible Polynomial
A nonconstant polynomial p is said to be irreducible if q∣p that q is either a constant or a constant times p.
Lemma 1
Every nonconstant polynomial is the product of irreducible polynomial.
Proof:
First, all polynomial of degree 1 are irreducible. Assume a lowest degree polynomials f that have f=gh, which degf=n and 1≥degg,degh<n. So it will be a contradiction.
Theorem 2
Define f is a monic polynomial, if its leading coefficient is 1. So any nonzero polynomial will be a constant times of monic polynomial.
Now we can define ordpf similar in Z. Let p is a monic polynomial. ordpf is the integer a that pa∣f and pa+1∤f.
Let f∈K[X], then we have: f=cp∏pa(p)
As in last posts, the constant c and the a(p) are unique. a(p)=ordpf.
Lemma 2
Let f,g∈K[X] with g=0, there exist unique q,r∈K[X] such that f=hg+r where 0≤degr<degg.
Proof:
If g∣f, we will have h=f/g and r=0. Otherwise, consider a set S=f−lg∣l∈K[X] and r∈S as the least degree polynomial. If degr≥degg, let the leading term of r be axd and leading term of g be bxm. Then f−(h+ab−1xd−m)g=r−ab−1xd−mg which degree is smaller than r. Contradiction.
Lemma 3
Define the ideal of ring K[X], if f1,f2,...,fn∈K[X], then we have (f1,f2,...,fn) for all polynomials of the form f1h1,f2h2,...,fnhn where h1,h2,...,hn∈K[X].
Given f,g∈K[X], there will be a d∈K[X] such that (f,g)=(d).
Proof:
Let d be the smallest degree polynomial that d∈(f,g). Let c∈(f,g), if d∤c, we shall have c=hd+r and degr<degd. Since c,d∈(f,g), so r∈(f,g) which is a contradiction that r has smaller degree than d.
Lemma 4
Now we can have a polynomial version of GCD:
Let f,g∈K[X], if there is a d∈K[X] and d divides f and g and any common divisor of f,g divides d, we call d as a GCD. Also, we can let the uniquely monic d be the GCD.
Let f,g∈K[X], if there is d∈K[X] and (f,g)=(d), then d is a GCD of f,g.
Proof:
By definition, f∈(d),g∈(d), we know d∣f,d∣g. Assume a h allows h∣f,h∣g, so with any l,m∈K[X], h can divide every polynomial in form of fl+gm. Therefore, h∣d.
Proposition 1
As same as in Z, we can define two polynomial f,g are relatively prime if (f,g)=(1).
If f,g are relatively prime, and f∣gh, then f∣h.
Proof:
Construct a polynomial lf+mg=1 where l,m∈K[X], since (f,g)=(1). Then we have lfh+mgh=h. The left side f∣lfh and f∣mgh, so f∣h
Corollary 1
If p is irreducible and p∣fg, then p∣f or p∣g.
Proof:
Since p is irreducible, (p,f)=1 or (p,f)=p. In the first case, by last proposition, p∣g. In the second case, p∣f.
Corollary 2
If p is a monic irreducible polynomial and f,g∈K[X], ordpfg=ordpf+ordpg.
Proof:
Let α that f=pαc and β that g=pβd where p∤c and p∤d. Now we have, fg=pα+βcd and by Corollary 1. So ordpfg=α+β=ordpf+ordpg. This is exactly as same as in Z,
Proof of Unique Factorization in K[X]:
By corollary 2: ordqf=ordqc+p∑a(p)ordq(p) Obviously, ordqc=0 and ordq(p)=0 when p=q. Only when p=q, ordq(p)=1.
So: ordqf=a(q) Proved.