Professional Documents
Culture Documents
AMY 3 2009 Problems
AMY 3 2009 Problems
Polynomials
by Ivan Borsenco and Iurie Boreico
This AMY Segment1 is devoted to Polynomials. These are, without any doubt, the
most important functions in mathematics. Several properties of polynomials lie at
the core of fundamental results in modern algebra and number theory. And let’s not
forget that algebraic geometry is, by definition, the study of simultaneous solutions
of polynomial equations. Polynomial functions find applications in combinatorics,
computer science, and other important areas of science. They are common in math
contests, as well. So whether you want to be a successful competitor, or want to
build a solid base for college math, this segment is for you, and I dare declare
that everything you find here is equally important both for math contests and for
advanced mathematics. So enjoy this tutorial, and may your road to understanding
it be soft and pleasant!
• Introduction
• Factorization of polynomials
• Polynomials in many variables
• Irreducible polynomials
• Cyclotomic Polynomials
• Lagrange Interpolation Formula
The author
1
c 2008-2009, AwesomeMath LLC. All Rights Reserved.
1 Introduction
Definitions
Since ancient times people have studied relations between objects. They intro-
duced notions of distance, velocity, acceleration and many more. They measured
each of those quantities, and tried to establish relationships among them. Eventually
they came up with the notion of ”function”. In such a way people could investigate
quantities as a function of time, space, or any other parameters. As mathematics
developed, they felt the need to introduce the concept of ”variable”, and express
functions in term of variables. Multiplying variables between them, and adding
the obtained results produced a class of functions which are known as polynomials.
Let’s start with the simplest yet richest class of polynomials, the polynomials in one
variable.
an tn + an−1 tn−1 + · · · + a1 x + a0 ,
an tn + an−1 tn−1 + · · · + a1 t + a0 , an 6= 0,
2
• deg p = 2 quadratic • deg p = 4 quartic
Definition 1.4. A zero of a polynomial p(t) is any number r for which p(r) takes
the value 0. When p(r) = 0, we say that r is a root or a solution of the equation
p(t) = 0. There are many situations in which we need to have information about the
zeros of a polynomial, and considerable amount of attention is devoted to methods
of solving equations p(t) = 0 either exactly or approximately. In particular, knowing
the zeros of polynomials is often helpful in graphing a wide variety of functions and
obtaining inequalities.
In operating with polynomials, we treat the variables as though they were num-
bers. Let
p(t) = a0 + a1 t + a2 t2 + · · · + an tn
q(t) = b0 + b1 t + b2 t2 + · · · + bm tm
be any two polynomials.
Quadratic polynomials
Many issues that arise in general can be illustrated in the special case for which
the degree is 2. Polynomials of degree two are largely studied in the high school.
We review some of the results about quadratics.
b 2
1
p(t) = a t + − (b2 − 4ac).
2a 4a
3
b 2 b2 −4ac
Hence p(t) = 0 whenever t + 2a = 4a2
.
1st case: D = b2 − 4ac > 0. Now we can take square root on the right hand side.
Therefore we find two different real solutions
√ √
−b b2 − 4ac −b b2 − 4ac
t1 = + and t2 = − .
2a 2a 2a 2a
Shortly we write them √
−b ± D
t1,2 = .
2a
b 2
2nd case: D = b2 − 4ac = 0. The right hand side is equal to 0, so t +
2a = 0,
b
yielding a double root t1 = t2 = − 2a .
3rd case: D = b2 − 4ac < 0. This case is strange because we cannot extract
square root. It is time to enter the world of complex numbers. Let us introduce
a number i such that i2 = −1. Do not worry about what i means; all we need to
know is that
√ its square √ is −1. Now life gets easier, we can take the square root of
−3: it is 3i. Indeed, ( 3i)2 = 3i2 = −3. Thus for the quadratic equation we get
two complex roots:
√ √
−b 4ac − b2 −b 4ac − b2
t1 = + i and t2 = − i.
2a 2a 2a 2a
In general, a complex number is one which can be written in the form z = x + iy,
where x + yi are real and i2 = −1. In discussing complex numbers we use the
following terminology:
• The real part, Re z, of z is the number x.
• The imaginary part, Im z, of z is the number y.
• The complex conjugate, z, of z is x − yi
p
• The modulus or absolute value of z, denoted by |z| is x2 + y 2 .
Note that in the third case we get two solutions that are complex conjugates. To
summarize the theory, remember, quadratic polynomials have two zeroes: if D ≥ 0
they are real and if D < 0 they are complex conjugates. If D = 0 then the zeroes
are equal. In this case we get a zero with multiplicity 2.
One more thing that you also should keep in mind it is graphical representation
of quadratic equations. Let us consider three graphs corresponding to three cases
above:
p1 (x) = −x2 + 4, p2 (x) = (x + 1)2 , p3 (x) = x2 + 1.
4
If you draw a two dimensional graph with (x, y) = (x, p(x)), x ∈ R, you will see a
parabola. We get an upward parabola if a > 0 and downward parabola if a < 0.
Hence p2 (x), p3 (x) are upward and p1 (x) is a downward parabola.
Roots that we eagerly look for are intercepts of the parabola with x-axis. So
p1 (x) intersects x-axis in points (−2, 0) and (2, 0). p2 (x) is tangent to x-axis at
(−1, 0). But p3 (x) which does not have real roots will never intersect it.
Sometimes we are interested in the minimum (for upward parabola) or maximum
(for downward parabola) value that quadratic polynomial can return. This value is
b2 −4ac
achieved at x = − 2a b
which is called apex of parabola and p −b
2a = 4a2 is the the
minimum (maximum) value. The y-intercept is obtained at x = 0 and is p(0) = c.
Let us assume p(x) = ax2 + bx + c has two roots x1 , x2 . It does not matter if
they are real or complex numbers. Then p(x) can be rewritten as
Because two polynomials are equal when corresponding coefficients are equal we
have
b c
x1 + x2 = − , x1 x2 = .
a a
This relation is called Viete Theorem for quadratic polynomials. Note that knowing
the coefficients of a polynomial equation we can immediately find the sum and the
product of its roots.
Basically, all these facts are enough to start solving simple and challenging ques-
tions.
Example 1.1. Is it true that if p(x) = ax2 + bx + c has real roots, then
q(x) = a3 x2 + b3 x + c3 has also real roots?
Solution. The answer is yes. Because p(x) = ax2 + bx + c has real roots we have
b2 ≥ 4ac. Note that q(x) = a3 x2 + b3 x + c3 has real roots whenever its discriminant
b6 − 4a3 c3 ≥ 0. We have b6 ≥ 64a3 c3 , so if ac ≥ 0, then b6 ≥ 64a3 c3 ≥ 4a3 c3 . If
ac < 0, then again b6 − 4a3 c3 ≥ 0.
Solution. The answer is no. Using Viete’s Theorem if x1 and x2 are integer
solutions then x1 x2 a = c. Because c is odd, it follows that a, x1 , x2 must be odd
too. Thus −b = (x1 + x2 )a is even, so p(2009) = a(2009)2 + b(2009) + c is even.
5
with roots (x0 , x1 ), (x0 , x2 ), . . ., (x0 , xn ). Find in terms of x0 , x1 , . . . , xn the roots
of the polynomial
2 a1 + a2 + · · · + an b1 + b2 + · · · + bn
y(x) = x + x+ .
n n
6
Assigned problems
8. A second degree equation x2 + ax + b has two roots with absolute value greater
than 2. Prove that a + b + 1 is composite.
x2 + mx + n = 0, x2 + px + q = 0.
10. Let f1 , f2 be two quadratic polynomials which have real roots, while their
difference f1 − f2 does not. Prove that f1 + f2 has real roots.
11. Let p(x) = ax2 + bx + c be quadratic polynomial which does not have real
roots and a + b + c > 0. What can you tell about sign of a − b + c?
13. Let a, b, c be real numbers such that |ax2 + bx + c| ≤ 1 for each x ∈ [−1, 1].
Prove that |cx2 + bx + a| ≤ 2 for each x ∈ [−1, 1].
7
14. Let a, b, c be real numbers such that a 6= 0. It is known that for each x ∈ [0, 1]
we have |ax2 + bx + c| ≤ 1. Find the greatest possible value of |a| + |b| + |c|.
15. The roots of the equation x2 + ax + b + 1 = 0 are positive integers. Prove that
a2 + b2 is a composite number.
Polynomials of degree n
The next step for us to consider a general polynomial of degree n and explore
its properties. From the Fundamental Theorem of Algebra, which we will meet
a few times throughout the segment, we can deduce that polynomial of degree n
has exactly n complex zeros(with multiplicity). The following theorem resembles
divisibility of integer numbers. We will discuss them formally later.
Recall that a is the root of f (x) when f (a) = 0, so (x−a) | f (x). If (x−a)k | f (x)
where k ≥ 2, then a is called a multiple root of f (x).
8
Clearly, deg f = deg k + deg h, so k ≤ n.
Remark. The only problem we run into is the occurrence of multiple roots. In
general, every polynomial has n roots, some of which can be multiple. Thus we can
write
f (x) = a(x − x1 )(x − x2 ) · · · (x − an ),
where a is the leading term and ai ’s are not necessarily distinct roots.
Proof. Let h(x) = p(x) − q(x), h is a polynomial of degree at most n. Note that
h(xi ) = 0, so it has at least m roots. But m > n, a contradiction. Hence h(x) = 0
and p(x) and q(x) are identical.
Here are some examples to understand why we need and how we use these
theorems.
Example 1.4. Find a cubic polynomial f such that f (0) = 0 and f (1) = f (2) =
f (3) = 1.
Proof. Let g(x) = f (x) − 1, then deg g(x) = 3 and x = 1, 2, 3 are roots of g.
Therefore g(x) = a(x − 1)(x − 2)(x − 3), where a ∈ R. So f (x) = a(x − 1)(x − 2)(x −
3) + 1 and plugging x = 0 we get f (0) = a · (−6) + 1 = 0. Hence a = 61 and
1
f (x) = (x − 1)(x − 2)(x − 3) + 1.
6
xn = q(x)(x2 − x − 1) + r(x),
9
Theorem 1.5. (Viete Theorem)
Let f (x) = an xn + an−1 xn−1 + · · · + a1 x + a0 be a polynomial of degree n. Let
x1 , x2 , . . . , xn be zeros of f , then
n
X an−1
xi = x1 + x2 + · · · + xn = − ,
an
i=1
X an−2
xi xj = x1 x2 + x2 x3 + x1 x3 + · · · =
an
i6=j
···
a0
x1 x2 · · · xn = (−1)n .
an
Solution. Note that if t ≥ 0, then P (t) > 0. Hence all roots are negative real
numbers −x1 , −x2 , . . . , −xn . It follows that p(x) = (x + x1 )(x + x2 ) · · · (x + xn ).
Using Viete’s Theorem we get x1 x2 · · · xn = 1. Observe that p(2) = (2 + x1 )(2 +
√
x2 ) · · · (2 + xn ). From the AM-GM inequality: 2 + xi = 1 + 1 + xi ≥ 3 3 xi . Thus
√
p(2) = (2 + x1 )(2 + x2 ) · · · (2 + xn ) ≥ 3n 3 x1 x2 · · · xn = 3n ,
as desired.
10
Hence looking modulo p and q and using the fact that gcd(p, q) = 1, we get q | an
and p | a0 .
Example 1.8. Suppose all roots of the polynomial xn + an−1 xn−1 + · · · + a0 are
real. Then the roots are contained in the interval with endpoints
r
an−1 n − 1 2n
− ± a2n−1 − an−2 .
n n n−1
Solution. Let y be one of the roots and y1 , y2 , . . . , yn−1 the others. Then the
polynomial is (x − y)(x − y1 ) · · · (x − yn−1 ). Using Viete’s Theorem
−an−1 = y + y1 + · · · + yn−1 ,
X
an−2 = y(y1 + · · · + yn−1 ) + yi yj ,
i<j
and so X
a2n−1 − 2an−2 − y 2 = yi2 .
i=1
or
2an−1 2(n − 1) n−2 2
y2 + y+ an−2 − a ≤ 0.
n n n n−1
Thus y (and hence all yi ) lie between the two roots of the quadratic function, and
these roots are our bounds.
11
Assigned problems
16. Let p(x) be a quadratic polynomial with real coefficients. It is known that
when divided by (x − 1), (x − 2), (x − 3), it gives remainders −1, 2, 1, respec-
tively. Find p(x).
17. Find the remainder when x60 − 1 is divided by x3 − 2.
18. Find the remainder when x81 + x49 + x25 + x9 + x is divided by x3 − x.
19. Find the remainder when x2009 + x2008 + . . . + x2 + x + 1 is divided by x3 − 1.
20. Find all n such that xn+1 − xn + 1 is divisible by x2 − x + 1.
21. Let p(x) be polynomial with integer coefficients. Prove that a − b | p(a) − p(b),
where a, b ∈ Z.
22. Let a, b, c be distinct integers. Prove that there is no polynomial p(x) with
integer coefficients such that p(a) = b, p(b) = c, p(c) = a.
23. Let a, b, c be non-zero real numbers such that (a + b + c)(4a − 2b + c) < 0.
Prove that the equation ax2 + bx + c has real roots.
24. Let f (x) = ax3 + bx2 + cx + d be a polynomial with positive real roots. Prove
that c2 ≥ 3bd and b2 ≥ 3ac.
25. The zeros of the polynomial P (x) = x3 + x2 + ax + b are all real and negative.
Prove that 4a − 9b ≤ 1.
26. The polynomials P (x) = x2 + 2 and Q(x) = x + 1 are written on the board.
At any moment we can write the sum, the difference, the product of any
two polynomials already written on the board. Can we reach the polynomial
R(x) = x3 + 2?
27. Let f (x), g(x) be nonconstant polynomials with integer coefficients such that
g(x) divides f (x). Prove that if the polynomial f (x) − 2008 has at least 81
distinct integer roots, then the degree of g(x) is greater than 5.
28. Find all polynomials p(x) with real coefficients such that if a, b, c are real
numbers and ab + bc + ca = 0, then P (a − b) + P (b − c) + P (c − a) = 0.
29. Let α be a root of the polynomial P (x) = xn + an−1 xn−1 + √· · · + a1 x + a0 ,
where ai ∈ [0, 1] , for i = 0, 1, . . . , n − 1. Prove that Re α < 1+2 5 .
30. Find all polynomials P with real coefficients which satisfy the equality
P (a − b) + P (b − c) + P (c − a) = 2P (a + b + c)
for all triples a, b, c of real numbers such that ab + bc + ca = 0.
12
2 Factorization of polynomials
Here, we will concern ourselves with the divisibility theory for polynomials. This
theory is easier understood than defined, and to give a rigorous definition we will
need to go into some modern algebra. We won’t try to go to deep into it, but if the
material seems too complicated, try at least to understand the statements of the
theorems (although remembering the proofs would be useful, too). The aim of this
section is to show that polynomials resemble numbers very much, in the sense that
we have primes, unique factorizations, common divisors, and some other properties.
Yet they are, of course, different in other ways, so we need identify the common
properties of numbers and polynomials with respect to divisibility.
Since we have met polynomials in Z[X], R[X] and so on, we will unify these sets
into two categories:
13
Definition 2.4. If R is an integral domain, there exists a (unique) field F
containing R, called the ring of fractions of R. It consists of pairs (a, b) of elements
of R, written ab , which satisfy the following properties (what do you think they are?):
a −1
b 6= 0, ab = dc if and only if ad = bc, ab + dc = ad+bc a c ac
bd , b · d = bd and ( b ) = ab . R is
a
contained in the field via identifying a ∈ R with 1 .
The condition that R be an integral domain saves us from getting a zero denom-
inator bd when adding or multiplying two fractions. For example, Q is the field of
fractions of Z.
Now we go briefly to the divisibility theory for integral domains. We owe it
entirely to the divisibility theory for Z.
14
Why do we need all these definitions? Here comes the first important theorem
of this section.
15
Lemma 2.13 (Gauss’ Lemma) If f, q are polynomials in R[X], q is pure and
divides f in F [X], then q divides f in R[X], too.
Proof. Say f = qr, r ∈ F [X] and suppose that r is not in F [X]. Then not all
coefficients of r are in R. Say q(x) = an xn + . . . + a0 and r(x) = bm xm + . . . + b0 . It
means that there is some prime p which appears in the denominator of the coefficients
of r, when written in lowest terms. Say pt is the highest such power, and let bk be
the highest coefficient in whose denominator it appears. Since q is pure, not all its
coefficients are divisible by p, and let al be the highest coefficient of q not divisible
by p. Let’s look at z, the coefficient of xk+l in f = gh. It must be an element from
R which equals al bk + al−1 bk+1 + al+1 bk+1 + . . .. However note that the exponent of
p in the denominator al bk is pt , while in all other terms it is at most pt−1 . Indeed,
al+i bk−i cannot have pt in the denominator, because al+i is divisible by p and bk−i
has at most pt in its denominator, and al−i bk+i cannot have pt in the denominator,
because bk+i has at most pt−1 in its denominator. Therefore z is the sum of one
number that has pt in its denominator and several others that have at most pt−1 in
their denominators, and this is impossible.
We now return to the proof of theorem 2.11. Gauss’ lemma implies that q is a
common divisor of both f and g. Let u be the weight of f , v the weight of g, w the
greatest common divisor in R of u and v. Then wq divides f and g by the same
Gauss’ lemma. Now let s be another common divisor of f and g. Then s divides
q in F [X]. If we write s = zt where t is a pure polynomial and z is the weight of
s, then t divides q in R[X] according to Gauss’ lemma. Also z must divide both
the weight of f and the weight of g (prove it!) hence it must divide their common
divisor which is w. Then s = zt must divide wq, and therefore wq is the greatest
common divisor of f and g, and the proof is finished.
If you are lost by now in all this modern algebra, we advise you to relax, and try to
understand only the definitions and the statements of the theorems, without actually
bothering understanding the proofs. The most important here is to understand the
statement of theorem 2.11. The Euclidean Algorithm is not necessary, but useful to
know, and Gauss’ Lemma is a basic fact which you can skip if you really want to.
What does theorem 2.11. tell us? It does tell us that polynomials decompose
relatively nicely into smaller polynomials. In the ring of polynomials, primes are
called irreducible polynomials, and theorem 2.11 tells us that every polynomial in
R[X] decomposes uniquely into a product of irreducible polynomials (again, up to
units).
In order to get more information, we need to answer two questions: what are
the units and what are the irreducible polynomials in R[X]?
16
Theorem 2.14. The units in R[X] are precisely the units of R.
Proof. Clearly, the units of R are units in R[X]. Now let f be a unit in R[X],
so there exists g ∈ R[X] such that f g = 1. If f (x) = an xn + . . . + a0 , g(x) =
bm xm + . . . + b0 then (f g)(x) = an bm xn+m + . . . + a0 b0 . As an bm 6= 0, f (x)g(x) = 1
leads to the conclusion that m = n = 0 therefore f, g ∈ R and thus f is an element
of R which has an inverse, i.e. a unit.
The proof of this theorem is beyond this course so we will accept it as a fact.
Theorem 2.16. The irreducibles in R[X] are the linear polynomials and the
quadratics with negative discriminant.
The questions of irreducibility are more subtle over other rings or fields: for
example over Q there exist irreducible polynomials of any degree, a fact which will
be proved later. In fact, irreducibility over rationals and integers is interesting
enough that it deserves its own chapter in this tutorial.
Example 2.1. Let P ∈ R[X] and say z ∈ C satisfies P (z) = 0. Prove that
P (z) = 0, as well. [Note: we used it in the proof of theorem 2.16.]
17
additive and multiplicative (if you don’t know that, it’s an easy exercise), and that
it preserves the real coefficients of the polynomial, we get that an (z)n +an−1 (z)n−1 +
. . . + a1 z + a0 = 0, as desired. Note that this means that the non-real roots of a real
polynomial group in pairs of conjugate ones.
Example 2.2. Find the greatest common divisor of x2 +11x+10 and x3 +7x+8.
Then, write it as (x2 + 11x + 10)f (x) + (x3 + 7x + 8)g(x)
Solution. No, it does not. If it did, then all its complex roots would be roots
of xn − 1. However the complex roots have absolute value 1. Yet, the product of
the roots of xm − x − 2 is ±2, whose absolute value is not 1, which means at least
of its roots is not of absolute value 1 so it is not a root of xn − 1.
18
Assigned problems
31. Prove that any polynomial of odd degree in R[X] has a real root.
32. Let f ∈ R[X] satisfy the inequalities f (a) < 0, f (b) > 0. Prove that f has a
root between a and b. [Hint: first prove this for irreducible polynomials]
33. If R is a field and f, g are coprime in R[X] then the Euclidean Algorithm tells
us that there exist some u, v ∈ R[X] such that uf + vg = 1. Is this true if we
only assume that R is a UFD so not a field (think of Z[X])? ”Correct” this
affirmation by replacing it with a slightly weaker, but similar, statement.
36. Find a polynomial that gives remainder x+1 modulo x3 +22, and 2008 modulo
x4 + 1.
is finite.
40. Find all pairs of positive integers m, n ≥ 3 for which the polynomial xn +x2 −1
divides the polynomial xm + x − 1.
19
3 Polynomials in many variables
Definition 3.1. If R is a ring, then the set of all finite sums of terms cX1i1 X2i2 . . . Xnin ,
with c ∈ R, i1 , i2 , . . . , in ∈ N0 , is called the ring of polynomials in the variables
X1 , X2 , . . . , Xn and denoted by R[X1 , X2 , . . . , Xn ].
The units in R[X1 , X2 , . . . , Xn ] are again the units in R, but unfortunately the
irreducible polynomials cannot be classified at all, even in particular cases of R.
Definition 3.3. The degree of a monomial cX1 i1 X2i2 . . . Xnin is the sum i1 + i2 +
. . . + in . The degree of a polynomial is the largest of the degrees of its monomials.
Definition 3.4. A polynomial whose monomials all have the same degree is
called a homogeneous polynomial.
Homogeneous polynomials are nice and useful in some more advanced areas of
mathematics, as algebraic geometry. But we will not focus on them much. You will
find some nice properties of homogeneous polynomials in the exercises.
20
Why if f (X + Y ) − f (X) divisible by Y ? Simply because plugging in Y = 0
turn the polynomial into 0.
For those of you who know calculus, here is an exercise for you: prove that this
definition of derivative is the same as the calculus one.
The derivative has some nice properties:
Proof. All are easy application of the definition. Let f (x + y) = f (x) + yf 0 (x) +
g(x + y) = g(x) + yg 0 (x) + y 2 g1 (x, y). Then
y 2 f1 (x, y),
(f g)(x+y) = f (x)g(x)+y(f 0 (x)g(x)+f (x)g 0 (x))+y 2 (f 0 (x)g 0 (x)+f (x)g1 (x, y)+g(x)f1 (x, y))+
+y 3 (f 0 (x)g1 (x, y) + g 0 (x)f1 (x, y)) + y 4 f1 (x, y)g1 (x, y)
Note that properties i), ii) allow us to compute the derivative of any polyno-
mial, knowing only the derivatives of linear polynomials and constants, because
every polynomial is a sum of monomials, which are products of constant and linear
polynomials.
Also, the derivative can be applied more than one time. We can take the deriva-
tive of f to obtain the first derivative, f 0 , then take the derivative of f 0 to obtain
f ”, the second derivative, and so on, to get f (i) , the ith derivative. Parts i) and ii)
transfer to higher derivatives:
21
Theorem 3.7. Let f, g be polynomials. Then
i) (f + g)(k) (x) = f (k) (x) + g (k) (x)
k
ii) (f g)(k) (x) = f (k) g(x)+kf (k−1) g 0 (x)+ f (k − 2)(x)g (2) (x)+. . .+f (x)g (k) (x)
2
Note the similarity between the expression in part ii) and the Newton Binomial
Theorem.
Proof. Firstly, let us prove that p divides pm , (pm )0 , . . . , (pm )(m−1) but does
not divide (pm )(m) , by induction on m. For m = 1, we need to prove that p
does not divide p0 , which is true since p0 is non-zero and has degree one less than
the degree of p. Now assume we have proved p|(pk )(i) for i < k but (pk )(k) is
not divisible by p. Then for 0 < i ≤ k + 1, we have (pk+1 )(i) = (pk · p)(i) =
pk · p(i) + i(pk )0 p(i−1) + . . . + i(pk )(i−1) p0 + (pk )(i) p. In the case i ≤ k, all terms of
the sum are divisible by p according to the induction hypothesis, and in the case
i = k + 1, all terms of the sum are divisible by p except the penultimate term,
because neither (pk )(k) nor p0 is divisible by p, and this proves the induction step.
Theorem 3.8. gives us a criterion for computing the multiplicity of a given root
r of a polynomial: we need to check first if f (r) = 0, and if yes, then we proceed to
verify whether f 0 (r) = 0, then if f (2) (r) = 0 and so on. If k is the first number such
that f (k) (r) 6= 0, then k is, in fact, the multiplicity of r.
22
Theorem 3.9. A polynomial f is square-free if and only if the greatest common
divisor of f and f 0 is 1.
Symmetric Polynomials
23
Now, it is time for examples.
24
Assigned problems
43. Let p be an irreducible polynomial in the UFD R[X] and say that f is a
polynomial divisible by pm but not by pm+1 . Show that for 1 ≤ k ≤ m, f (k)
is divisible by pm−k but not by pm−k+1 .
46. Let 1 < k < 2009 be an integer. Consider k integers x1 , x2 , . . . , xk such that
all the sums x1 + x2 + · · · + xk , x21 + x22 + · · · + x2k , . . . , xk1 + xk2 + · · · + xkk equal
2009!, except one of them which equals 2009! + 1. Show that the sum that
equals 2009! + 1 is x1 + x2 + . . . + xk .
∂2F ∂F
=
∂Xi ∂Xj ∂Xj · ∂Xi
25
50. Let f, g ∈ C[X]. It is known that the polynomials f (x) and g(x) have the
same set of roots, and the polynomials f (x) − 1 and g(x) − 1 have the same
set of roots, too. Prove that f = g. [Hint: Take derivatives. How do multiple
roots transfer to derivatives?]
4 Irreducible polynomials
The question that arises if one can factor a polynomial as a product of two
polynomials with coefficients from the same field.
Example 4.1. Prove that x4 + x2 + 1 can be factored over the field of rationals.
Solution. This means that we can factor p(x) = x4 + x2 + 1 as a product of
two polynomials with rational coefficients. Indeed,
Example 4.2. Prove that x3 + 2 cannot be factored over the field of rationals.
From here we can give a very intuitive notion of reducible polynomial and irre-
ducible polynomial.
A polynomial f is called reducible if it can written as product of two polynomials
f = gh, where deg g, deg h > 0. In the other case polynomial f is called irreducible.
To verify if some polynomial g divides f we simply can use Euclidean algorithm.
The following theorem is analogous to prime number decomposition theorem.
26
Theorem 4.1. Every polynomial with coefficients from some field can be written
as a product of irreducible polynomials. Furthermore, this decomposition is unique.
Now you may have noticed that we did not mentioned specifically decomposition
into polynomials with integer coefficients. But it turns our that if we factor out
polynomial with integer coefficients over the integers or the field of rationals there
is no difference.
Gauss Lemma
Proof. (Can you see the connection between this theorem and the Gauss Lemma
of chapter 2?) For simplicity we prove this result for monic polynomials (to avoid
unnecessary complications right now). Let f = xm+n + · · · + cm+n−1 x + cm+n , ci ∈
Z[X]. Assume that polynomial f as f = gh, where g(x) = xm + am−1 xm−1 + · · · + a0
and h(x) = xn + bn−1 xn−1 + · · · + b0 are polynomials with rational coefficients. We
prove that coefficients of g and h are integers.
Let M and N respectively be the least positive integers so that all coefficients of
M g(x) and N h(x) are integers (that is, M and N are the least common multiples
of the denominators of a0 , . . . , am−1 and b0 , . . . , bn−1 , respectively). Let Ai = M ai
for i ∈ {0, . . . , m}, Bj = N bj for j ∈ {0, . . . , n} and Am = M, Bn = N , then
27
Remark. Now, if we are asked to prove if some polynomial with integer coeffi-
cients is irreducible over field of rationals, it is enough to prove that it is irreducible
over integers.
There are so many polynomials that there does not exist a theorem or some key
that immediately unveils if a particular polynomials is irreducible. That is why we
continue with a list of criteria that help us to answer affirmatively on the question of
irreducibility, of course under certain conditions. All they are based on the analysis
of coefficients or zeros of the polynomial. The first criterion is famous and simple
to memorize is Eisenstein’s Criterion.
Eisenstein’s Criterion.
Proof. We make a very common assumption, typical for problems of this type:
assume to the contrary f = gh. Let g(x) = bm xk + bk−1 xk−1 + · · · + b1 x + b0 and
h(x) = cl xl + bl−1 xl−1 + · · · + c1 x + c0 , where k + l = n and k ≥ l ≥ 1.
Now, using given conditions we look for a contradiction. Considering the product
of g and h we express coefficients ai in terms of bi and ci : a0 = b0 c0 , a1 = b0 c1 +b1 c0 ,
and so on. From the fact that p | a0 and p2 - a0 we have p | b0 c0 , so without loss of
generality p | b0 and p - c0 . Then p | a1 implies p | b0 c1 + b1 c0 and p | b1 . Note that
if all bi s are divisible by p, then an is divisible be p. Let i be the least coefficient
such that bi is not divisible by p. Then ai = b0 ci + b1 ci−1 + · · · + bi−1 c1 + bi c0 , but
p | ai , p | b0 , . . . bi−1 , so p must divide bi , a contradiction.
Solution. This problem immediately follows from Eisenstein’s Criterion. All co-
efficients except the leading one are divisible by q and free coefficient is not divisible
by q 2 . So xn + q is irreducible.
28
is irreducible. We use Eisenstein’s Criterion, p divides all the coefficients except the
2 p
leading one and p - p−1 = p. Thus f is irreducible.
Remark. Remember this trick with a shift: instead of proving f (x) is irre-
ducible, you can prove that f (x + a) is irreducible, for some a ∈ Z.
The next criterion is based on the idea of a dominant coefficient. But before
writing its statement we would like to prove the following lemma which plays a
crucial role in its proof.
Proof. Note that there does not exist a root α such that |α| = 1. Assume to
the contrary, then
It follows that
a contradiction.
From Viete’s theorem |a0 | = |x1 · · · xn | ≥ 1. Therefore there exist a zero, say x1 ,
such that |x1 | > 1. Let f (x) = (x − x1 )g(x), where
It follows that
29
so 1 > |bn−2 | + |bn−3 | + · · · + |b0 |.
If there exist a zero xi of g such that |xi | > 1, then xin−1 = − n−2 k
P
k=0 bk xi , yielding
n−2 n−2 n−2
X b
k
X |bk | X
1 = − ≤ ≤ |bk |,
xn−1−k |xi |n−1−k
i
k=0 k=0 k=0
a contradiction.
Perron’s Criterion
Proof. Assume to the contrary, f = gh, where g, h ∈ Z[X]. Then using lemma
proved above we conclude that one of them, say g has all zeros of absolute value
less than 1. Using Viete’s theorem its free coefficient is equal to |xi1 · · · xik | < 1, a
contradiction.
There are many attempts to relate prime numbers with irreducible polynomials.
One of them is Bouniakowsky conjecture.
30
Bouniakowsky Conjecture
The last criterion that we would like to mention is Cohn’s Criterion. We state it
without a proof and leave it for you to admire how primes are closely related with
irreducible polynomials.
Cohn criterion
Example 4.7. Let abc be a prime. Prove that b2 − 4ac cannot be a perfect
square.
31
Assigned problems
57. Let a1 < a2 < · · · < an , n ≥ 2 be integers. Prove that polynomial f (x) =
(x − a1 )(x − a2 ) · · · (x − an ) − 1 is irreducible in Z[X].
58. Let p be a prime and a, n be integers such that p > |a| + 1. Prove that
polynomial f (x) = xn + ax + p is irreducible in Z[X].
f (x) = (x − a1 )2 (x − a2 )2 · · · (x − an )2 + 1
is irreducible in Z[X].
5 Cyclotomic Polynomials
32
The theory of cyclotomic polynomials is based on many mathematical concepts.
Two of them, of a big importance, will be reviewed here for you. These are Möbius
Function and Primitive Roots of a Unity. Do not worry if you are not so comfortable
with them, sometimes it is worth to jump over scary material and go ahead to find
out the whole story.
Clearly, µ is multiplicative, that is, µ(mn) = µ(m)µ(n) for all coprime positive
integers m and n. The following result can be found in many books on multiplicative
functions.
Theorem 5.1. (Möbius Inversion Formula) Suppose that F, H, f : Z+ → Z+
are functions such that
X Y
F (n) = f (d), H(n) = f (d).
d|n d|n
Corollary 5.1. Let n be a positive integer. Then there exist exactly ϕ(n)
primitive nth roots of unity.
Cyclotomic polynomials
33
Definition 5.3. Let n be a positive integer. Then the nth cyclotomic polyno-
mial, denoted as Φn , is the (monic) polynomial having exactly the primitive nth
root of unity as roots, that is,
Y
Φn (X) ≡ (X − ζ).
ζ n =1
ord(ζ)=n
We proved that there are exactly ϕ(n) primitive nth roots of unity, thus the
degree of Φn is ϕ(n).
x3 − 1
Φ3 = (x − )(x − 2 ) = = x2 + x + 1.
x−1
Proof. The roots of X n − 1 are exactly the nth roots of unity. On the other
hand, if ζ is an n−th root of unity and d = ord(ζ), then ζ is a primitive dth root
of unity and thus a root of Φd (X). But d | n, so ζ is a root of the right hand side.
It follows that the polynomials on the left and right hand side have the same roots
and since they are both monic, they are equal.
Notice that comparing degrees of the polynomials yields another proof of
X
n= ϕ(d).
d|n
One of the first questions that we would like to ask, do all cyclotomic polynomials
have integer coefficients? Yes, they do.
34
Theorem 5.3. Cyclotomic polynomials Φn (X) ∈ Z[X].
Proof. The proof is based on the following lemma which we proved while
discussing Gauss Lemma.
Lemma. Suppose that f (X) ≡ X m + am−1 X m−1 + · · · + a0 and g(X) ≡ X n +
bn−1 X n−1 + · · · + b0 are polynomials with rational coefficients. If all coefficients of
the polynomial f · g are integers, then so are the coefficients of f and g.
The proof goes by induction on n. The statement is true for n = 1 since Φ1 (X) =
X − 1. Suppose that the statement is true for all k < n. Then from Theorem 2 we
obtain
Xn − 1
Φn (X) = Q ,
d|n,d6=n Φd (X)
We can also use the Möbius Inversion to obtain a direct formula for the cyclo-
tomic polynomials. Using Theorems 1 and 2 we get
Theorem 5.5. Consider a polynomial f ∈ Z[X] with a root. Then there exist
a unique irreducible polynomial g ∈ Z[X] that contains as a root and moreover
g | f.
Proof. Let g ∈ Z[X] be polynomial with the least degree n that contains as a
root. Clearly, it is irreducible in Z[X], otherwise one of its divisors contains and
has lower degree. Assume that there exist another polynomial g 0 of the same degree
that also and has lower degree. Assume that there exist another polynomial g 0 of
the same degree that also a contradiction.
Thus g ∈ Z[X] is a unique irreducible polynomial that contains as a root.
Assume that g - f , then using Euclidean algorithm there exist a polynomial q(x) =
gcd(f, g) ∈ Z[X] of degree less than n, that contains as a root. This contradicts
the minimality of degree of g, so g | f .
35
Proof. Let be a primitive n−th root of a unity and let p be any prime not
dividing n. Assume to the contrary Φn (X) factors into g · h with h irreducible, and
let h have the root .
Since p and n are coprime, p is another primitive root. Suppose p is a root of
g(x). This means is a root of g(xp ). Since h also has root and h is irreducible,
using Theorem 5 we have h is a factor of g(xp ). Let g(xp ) = h · k.
Reducing all coefficients modulo p yields the following polynomial equation
h · k = g(xp ) = g(x)p .
The following theorems are examples of how cyclotomic polynomials and Number
Theory may be related. We start with the lemma similar to the trick we have used
in proving irreducibility of Φn (X).
Proof. We can also prove this lemma with calculus modulo p by introducing the
familiar rules for computing the derivative (and showing that they are consistent).
The fact that a double root of a function is a root of its derivative remains invariant
modulo p. Hence a is a root of X n − 1, implying an ≡ 1 (mod p). Also, a is the
root of the derivative of X n − 1, so nan−1 ≡ 0 (mod p). But p - a, so p | n.
Proof. By Theorem 2, Y
xn − 1 = Φt (x),
t|n
36
so xn − 1 is divisible by Φn (x)Φd (x). It follows that the polynomial X n − 1 has a
double root at x0 modulo p, so by lemma above, p | n.
Using facts we have just proved we can prove the following beautiful result.
Theorem 5.7. Let n be a positive integer and x be any integer. Then every
prime divisor p of Φn (x) either satisfies p ≡ 1 (mod n) or p | n.
Theorem 5.8. Let n be a positive integer. Then there exist infinitely many
prime numbers p with p ≡ 1 (mod n).
Proof. Suppose that there exist only finitely many prime numbers p with p ≡ 1
(mod n). Let T > 1 be the product of these primes and all primes diving n. Let k be
a sufficiently large positive integer such that Φn (T k ) > 1 (since Φn is a nonconstant
monic polynomial, such k exists) and let q be a prime divisor of Φn (T k ). Because q
divides T kn − 1, q does not divide T , so q 6≡ 1 (mod n) and q - n, a contradiction to
Theorem 7.
37
Assigned problems
63. Let p be a prime number and x be an integer. Then every prime divisor q of
1 + x + · · · + xp−1 either satisfies q ≡ 1 (mod p) or q = p.
x7 − 1
= y 5 − 1.
x−1
38
6 Lagrange Interpolation Formula
This is a small but important topic. Assume that we have a polynomial p(x)
of degree n and we know the values it returns for x1 , x2 , . . . , xk . We would like to
determine this polynomial, find its coefficients and values that it returns at other
points. Lagrange interpolation is a method that helps us construct such a polyno-
mial. In general, if we know values for n + 1 different points then polynomials is
unique.
Proof. Actually, we can persuade ourselves that whenever we look for P (xi )
we plug xi in all products defined above. They are constructed in such way that
coefficient near P (xj ), i 6= j is
(x − x1 ) · · · (x − xi ) · · · (x − xj−1 )(x − xj+1 ) · · · (x − xn )
(xj − x1 ) · · · (xj − xi ) · · · (xj − xj−1 )(xj − xj+1 ) · · · (xj − xn )
and returns 0 when x = xi . The only nonzero coefficient appears near P (xi ) and is
equal to 1. So we agree that this polynomial satisfies conditions.
Assume that there exists another polynomial Q(x) which also satisfies conditions.
Then H(x) = P (x) − Q(x) is a polynomial of degree at most n that has n + 1 roots,
so H(x) = 0, a contradiction.
Solution. Consider
1
Q(x) = x + (0 − x)(1 − x) · · · (n − x),
(n + 1)!
then Q(−1) = 0 and Q(x) is divisible by (x + 1). Let Q(x) = P (x)(x + 1). Note that
P (k) = Q(k) k
k+1 = k+1 for each k = 0, 1, 2, . . . , n. Hence P (x) is exactly polynomial we
are looking for. Thus
Q(n + 1) n + 1 + (−1)n+1
P (n + 1) = = .
n+2 n+2
39
Example 6.2. Let P (x) = xn + an−1 xn−1 + · · · + a1 x + a0 . Consider n + 1
different integers x0 < x1 < · · · < xn . Prove that there exists i such that
n!
P (xi ) ≥ .
2n
Solution. Assume to the contrary, P (xi ) < 2n!n for i = 0, 1, . . . n. From the
Lagrange Interpolation we have
n
X Y x − xi
P (x) = · P (xi ).
xj − xi
i=0 i6=j
a contradiction.
40
Assigned problems
Find P (n + 1).
70. Let P (x) be a polynomial of degree not greater than 2n such that for every
integer k ∈ [−n, n] we have |P (k)| ≤ 1. Prove that for each x ∈ [−n, n] we
have |P (x)| ≤ 22n .
41