Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132928 views
License: OTHER
Kernel:
%%html <link href="http://mathbook.pugetsound.edu/beta/mathbook-content.css" rel="stylesheet" type="text/css" /> <link href="https://aimath.org/mathbook/mathbook-add-on.css" rel="stylesheet" type="text/css" /> <style>.subtitle {font-size:medium; display:block}</style> <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,600italic" rel="stylesheet" type="text/css" /> <link href="https://fonts.googleapis.com/css?family=Inconsolata:400,700&subset=latin,latin-ext" rel="stylesheet" type="text/css" /><!-- Hide this cell. --> <script> var cell = $(".container .cell").eq(0), ia = cell.find(".input_area") if (cell.find(".toggle-button").length == 0) { ia.after( $('<button class="toggle-button">Toggle hidden code</button>').click( function (){ ia.toggle() } ) ) ia.hide() } </script>

Important: to view this notebook properly you will need to execute the cell above, which assumes you have an Internet connection. It should already be selected, or place your cursor anywhere above to select. Then press the "Run" button in the menu bar above (the right-pointing arrowhead), or press Shift-Enter on your keyboard.

ParseError: KaTeX parse error: \newcommand{\lt} attempting to redefine \lt; use \renewcommand

Section17.2The Division Algorithm

Recall that the division algorithm for integers (Theorem 2.9) says that if aa and bb are integers with b>0,b \gt 0\text{,} then there exist unique integers qq and rr such that a=bq+r,a = bq+r\text{,} where 0r<b.0 \leq r \lt b\text{.} The algorithm by which qq and rr are found is just long division. A similar theorem exists for polynomials. The division algorithm for polynomials has several important consequences. Since its proof is very similar to the corresponding proof for integers, it is worthwhile to review Theorem 2.9 at this point.

Theorem17.6Division Algorithm

Let f(x)f(x) and g(x)g(x) be polynomials in F[x],F[x]\text{,} where FF is a field and g(x)g(x) is a nonzero polynomial. Then there exist unique polynomials q(x),r(x)F[x]q(x), r(x) \in F[x] such that

f(x)=g(x)q(x)+r(x),\begin{equation*} f(x) = g(x) q(x) + r(x), \end{equation*}

where either degr(x)<degg(x)\deg r(x) \lt \deg g(x) or r(x)r(x) is the zero polynomial.

Proof

We will first consider the existence of q(x)q(x) and r(x).r(x)\text{.} If f(x)f(x) is the zero polynomial, then

0=0g(x)+0;\begin{equation*} 0 = 0 \cdot g(x) + 0; \end{equation*}

hence, both qq and rr must also be the zero polynomial. Now suppose that f(x)f(x) is not the zero polynomial and that degf(x)=n\deg f(x) = n and degg(x)=m.\deg g(x) = m\text{.} If m>n,m \gt n\text{,} then we can let q(x)=0q(x) = 0 and r(x)=f(x).r(x) = f(x)\text{.} Hence, we may assume that mnm \leq n and proceed by induction on n.n\text{.} If

f(x)=anxn+an1xn1++a1x+a0g(x)=bmxm+bm1xm1++b1x+b0\begin{align*} f(x) & = a_n x^n + a_{n-1} x^{n - 1} + \cdots + a_1 x + a_0\\ g(x) & = b_m x^m + b_{m-1} x^{m - 1} + \cdots + b_1 x + b_0 \end{align*}

the polynomial

f(x)=f(x)anbmxnmg(x)\begin{equation*} f'(x) = f(x) - \frac{a_n}{b_m} x^{n - m} g(x) \end{equation*}

has degree less than nn or is the zero polynomial. By induction, there exist polynomials q(x)q'(x) and r(x)r(x) such that

f(x)=q(x)g(x)+r(x),\begin{equation*} f'(x) = q'(x) g(x) + r(x), \end{equation*}

where r(x)=0r(x) = 0 or the degree of r(x)r(x) is less than the degree of g(x).g(x)\text{.} Now let

q(x)=q(x)+anbmxnm.\begin{equation*} q(x) = q'(x) + \frac{a_n}{b_m} x^{n - m}. \end{equation*}

Then

f(x)=g(x)q(x)+r(x),\begin{equation*} f(x) = g(x) q(x) + r(x), \end{equation*}

with r(x)r(x) the zero polynomial or degr(x)<degg(x).\deg r(x) \lt \deg g(x)\text{.}

To show that q(x)q(x) and r(x)r(x) are unique, suppose that there exist two other polynomials q1(x)q_1(x) and r1(x)r_1(x) such that f(x)=g(x)q1(x)+r1(x)f(x) = g(x) q_1(x) + r_1(x) with degr1(x)<degg(x)\deg r_1(x) \lt \deg g(x) or r1(x)=0,r_1(x) = 0\text{,} so that

f(x)=g(x)q(x)+r(x)=g(x)q1(x)+r1(x),\begin{equation*} f(x) = g(x) q(x) + r(x) = g(x) q_1(x) + r_1(x), \end{equation*}

and

g(x)[q(x)q1(x)]=r1(x)r(x).\begin{equation*} g(x) [q(x) - q_1(x) ] = r_1(x) - r(x). \end{equation*}

If q(x)q1(x)q(x) - q_1(x) is not the zero polynomial, then

deg(g(x)[q(x)q1(x)])=deg(r1(x)r(x))degg(x).\begin{equation*} \deg( g(x) [q(x) - q_1(x) ] )= \deg( r_1(x) - r(x) ) \geq \deg g(x). \end{equation*}

However, the degrees of both r(x)r(x) and r1(x)r_1(x) are strictly less than the degree of g(x);g(x)\text{;} therefore, r(x)=r1(x)r(x) = r_1(x) and q(x)=q1(x).q(x) = q_1(x)\text{.}

Example17.7

The division algorithm merely formalizes long division of polynomials, a task we have been familiar with since high school. For example, suppose that we divide x3x2+2x3x^3 - x^2 + 2 x - 3 by x2.x - 2\text{.}

x2x^2++xx++44
xx-22x3x^3-x2x^2++2x2x-33
x3x^3-2x22x^2
x2x^2++2x2x-33
x2x^2-2x2x
4x4x-33
4x4x-88
55

Hence, x3x2+2x3=(x2)(x2+x+4)+5.x^3 - x^2 + 2 x - 3 = (x - 2) (x^2 + x + 4 ) + 5\text{.}

Let p(x)p(x) be a polynomial in F[x]F[x] and αF.\alpha \in F\text{.} We say that α\alpha is a or of p(x)p(x) if p(x)p(x) is in the kernel of the evaluation homomorphism ϕα.\phi_{\alpha}\text{.} All we are really saying here is that α\alpha is a zero of p(x)p(x) if p(α)=0.p(\alpha) = 0\text{.}

Corollary17.8

Let FF be a field. An element αF\alpha \in F is a zero of p(x)F[x]p(x) \in F[x] if and only if xαx - \alpha is a factor of p(x)p(x) in F[x].F[x]\text{.}

Proof

Suppose that αF\alpha \in F and p(α)=0.p( \alpha ) = 0\text{.} By the division algorithm, there exist polynomials q(x)q(x) and r(x)r(x) such that

p(x)=(xα)q(x)+r(x)\begin{equation*} p(x) = (x -\alpha) q(x) + r(x) \end{equation*}

and the degree of r(x)r(x) must be less than the degree of xα.x -\alpha\text{.} Since the degree of r(x)r(x) is less than 1, r(x)=ar(x) = a for aF;a \in F\text{;} therefore,

p(x)=(xα)q(x)+a.\begin{equation*} p(x) = (x -\alpha) q(x) + a. \end{equation*}

But

0=p(α)=0q(α)+a=a;\begin{equation*} 0 = p(\alpha) = 0 \cdot q(\alpha) + a = a; \end{equation*}

consequently, p(x)=(xα)q(x),p(x) = (x - \alpha) q(x)\text{,} and xαx - \alpha is a factor of p(x).p(x)\text{.}

Conversely, suppose that xαx - \alpha is a factor of p(x);p(x)\text{;} say p(x)=(xα)q(x).p(x) = (x - \alpha) q(x)\text{.} Then p(α)=0q(α)=0.p( \alpha ) = 0 \cdot q(\alpha) = 0\text{.}

Corollary17.9

Let FF be a field. A nonzero polynomial p(x)p(x) of degree nn in F[x]F[x] can have at most nn distinct zeros in F.F\text{.}

Proof

We will use induction on the degree of p(x).p(x)\text{.} If degp(x)=0,\deg p(x) = 0\text{,} then p(x)p(x) is a constant polynomial and has no zeros. Let degp(x)=1.\deg p(x) = 1\text{.} Then p(x)=ax+bp(x) = ax +b for some aa and bb in F.F\text{.} If α1\alpha_1 and α2\alpha_2 are zeros of p(x),p(x)\text{,} then aα1+b=aα2+ba\alpha_1 + b = a\alpha_2 +b or α1=α2.\alpha_1 = \alpha_2\text{.}

Now assume that degp(x)>1.\deg p(x) \gt 1\text{.} If p(x)p(x) does not have a zero in F,F\text{,} then we are done. On the other hand, if α\alpha is a zero of p(x),p(x)\text{,} then p(x)=(xα)q(x)p(x) = (x - \alpha ) q(x) for some q(x)F[x]q(x) \in F[x] by Corollary 17.8. The degree of q(x)q(x) is n1n-1 by Proposition 17.4. Let β\beta be some other zero of p(x)p(x) that is distinct from α.\alpha\text{.} Then p(β)=(βα)q(β)=0.p(\beta) = (\beta - \alpha) q(\beta) = 0\text{.} Since αβ\alpha \neq \beta and FF is a field, q(β)=0.q(\beta ) = 0\text{.} By our induction hypothesis, q(x)q(x) can have at most n1n - 1 zeros in FF that are distinct from α.\alpha\text{.} Therefore, p(x)p(x) has at most nn distinct zeros in F.F\text{.}

Let FF be a field. A monic polynomial d(x)d(x) is a of polynomials p(x),q(x)F[x]p(x), q(x) \in F[x] if d(x)d(x) evenly divides both p(x)p(x) and q(x);q(x)\text{;} and, if for any other polynomial d(x)d'(x) dividing both p(x)p(x) and q(x),q(x)\text{,} d(x)d(x).d'(x) \mid d(x)\text{.} We write d(x)=gcd(p(x),q(x)).d(x) = \gcd( p(x), q( x))\text{.} Two polynomials p(x)p(x) and q(x)q(x) are if gcd(p(x),q(x))=1.\gcd(p(x), q(x) ) = 1\text{.}

Proposition17.10

Let FF be a field and suppose that d(x)d(x) is a greatest common divisor of two polynomials p(x)p(x) and q(x)q(x) in F[x].F[x]\text{.} Then there exist polynomials r(x)r(x) and s(x)s(x) such that

d(x)=r(x)p(x)+s(x)q(x).\begin{equation*} d(x) = r(x) p(x) + s(x) q(x). \end{equation*}

Furthermore, the greatest common divisor of two polynomials is unique.

Proof

Let d(x)d(x) be the monic polynomial of smallest degree in the set

S={f(x)p(x)+g(x)q(x):f(x),g(x)F[x]}.\begin{equation*} S = \{ f(x) p(x) + g(x) q(x) : f(x), g(x) \in F[x] \}. \end{equation*}

We can write d(x)=r(x)p(x)+s(x)q(x)d(x) = r(x) p(x) + s(x) q(x) for two polynomials r(x)r(x) and s(x)s(x) in F[x].F[x]\text{.} We need to show that d(x)d(x) divides both p(x)p(x) and q(x).q(x)\text{.} We shall first show that d(x)d(x) divides p(x).p(x)\text{.} By the division algorithm, there exist polynomials a(x)a(x) and b(x)b(x) such that p(x)=a(x)d(x)+b(x),p(x) = a(x) d(x) + b(x)\text{,} where b(x)b(x) is either the zero polynomial or degb(x)<degd(x).\deg b(x) \lt \deg d(x)\text{.} Therefore,

b(x)=p(x)a(x)d(x)=p(x)a(x)(r(x)p(x)+s(x)q(x))=p(x)a(x)r(x)p(x)a(x)s(x)q(x)=p(x)(1a(x)r(x))+q(x)(a(x)s(x))\begin{align*} b(x) & = p(x) - a(x) d(x)\\ & = p(x) - a(x)( r(x) p(x) + s(x) q(x)) \\ & = p(x) - a(x) r(x) p(x) - a(x) s(x) q(x)\\ & = p(x)( 1 - a(x) r(x) ) + q(x) ( - a(x) s(x) ) \end{align*}

is a linear combination of p(x)p(x) and q(x)q(x) and therefore must be in S.S\text{.} However, b(x)b(x) must be the zero polynomial since d(x)d(x) was chosen to be of smallest degree; consequently, d(x)d(x) divides p(x).p(x)\text{.} A symmetric argument shows that d(x)d(x) must also divide q(x);q(x)\text{;} hence, d(x)d(x) is a common divisor of p(x)p(x) and q(x).q(x)\text{.}

To show that d(x)d(x) is a greatest common divisor of p(x)p(x) and q(x),q(x)\text{,} suppose that d(x)d'(x) is another common divisor of p(x)p(x) and q(x).q(x)\text{.} We will show that d(x)d(x).d'(x) \mid d(x)\text{.} Since d(x)d'(x) is a common divisor of p(x)p(x) and q(x),q(x)\text{,} there exist polynomials u(x)u(x) and v(x)v(x) such that p(x)=u(x)d(x)p(x) = u(x) d'(x) and q(x)=v(x)d(x).q(x) = v(x) d'(x)\text{.} Therefore,

d(x)=r(x)p(x)+s(x)q(x)=r(x)u(x)d(x)+s(x)v(x)d(x)=d(x)[r(x)u(x)+s(x)v(x)].\begin{align*} d(x) & = r(x) p(x) + s(x) q(x)\\ & = r(x) u(x) d'(x) + s(x) v(x) d'(x)\\ & = d'(x) [r(x) u(x) + s(x) v(x)]. \end{align*}

Since d(x)d(x),d'(x) \mid d(x)\text{,} d(x)d(x) is a greatest common divisor of p(x)p(x) and q(x).q(x)\text{.}

Finally, we must show that the greatest common divisor of p(x)p(x) and q(x)q(x) is unique. Suppose that d(x)d'(x) is another greatest common divisor of p(x)p(x) and q(x).q(x)\text{.} We have just shown that there exist polynomials u(x)u(x) and v(x)v(x) in F[x]F[x] such that d(x)=d(x)[r(x)u(x)+s(x)v(x)].d(x) = d'(x)[r(x) u(x) + s(x) v(x)]\text{.} Since

degd(x)=degd(x)+deg[r(x)u(x)+s(x)v(x)]\begin{equation*} \deg d(x) = \deg d'(x) + \deg[r(x) u(x) + s(x) v(x)] \end{equation*}

and d(x)d(x) and d(x)d'(x) are both greatest common divisors, degd(x)=degd(x).\deg d(x) = \deg d'(x)\text{.} Since d(x)d(x) and d(x)d'(x) are both monic polynomials of the same degree, it must be the case that d(x)= d(x).d(x) =~d'(x)\text{.}

Notice the similarity between the proof of Proposition 17.10 and the proof of Theorem 2.10.