A rational root qp, in lowest terms, of a polynomial with integer coefficients has p
Lesson 3 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
list and test every possible rational root of an equation with integer coefficients;
use the rational root theorem to prove that a number is irrational;
bound the positive and negative roots, and count the real roots of a cubic.
Where can a fraction hide?
Suppose 32 is a root of 6x3+⋯+4=0. Is that possible? The rational root theorem tells you at once which fractions could ever be roots. The list is short, so you can test them all.
The rational root theorem
Let f(x)=anxn+⋯+a1x+a0 have integer coefficients, and let qp be a root in lowest terms. Then
p∣a0andq∣an.
Why. Multiply f(qp)=0 by qn:
anpn+an−1pn−1q+…
+a0qn=0.
Every term but the last has the factor p, so p divides a0qn. Since p and q share no factor, p∣a0. In the same way q∣anpn, so q∣an.
Monic case. If an=1, every rational root is an integer, and it divides a0.
Proving a number irrational
The identity cos3θ=4cos3θ−3cosθ at θ=20∘ gives 4c3−3c=21, where c=cos20∘. So c is a root of
8x3−6x−1=0.
A rational root would be one of ±1, ±21, ±41, ±81. None of these eight works. So cos20∘ is irrational.
Descartes' rule of signs
Write the coefficients of f(x) in order, leaving out zeros, and count the sign changes. The number of positive roots is either that count or less than it by an even number. For negative roots, count the sign changes of f(−x).
Example.f(x)=x3+2x2−x−5 has signs +,+,−,−: one change, so exactly one positive root. f(−x)=−x3+2x2+x−5 has signs −,+,+,−: two changes, so two negative roots or none. Here the local maximum of f for negative x is about −2.4, below 0, so there are none. The other two roots are complex.
Counting the real roots of a cubic
A cubic f with two turning points has three distinct real roots exactly when its local maximum is above 0 and its local minimum is below 0. For the depressed cubic x3+px+q, this happens exactly when the discriminant
D=−4p3−27q2
is positive. When D=0 there is a repeated root, and when D<0 there is one real root.
Five graphs of y = x cubed minus 3x plus k, for k = minus 3, minus 2, 0, 2 and 3. For k = 0 the curve crosses the x-axis three times. For k = 2 and minus 2 it touches the axis at a turning point. For k = 3 and minus 3 it crosses only once.
A parity trick
If f has integer coefficients and f(0) and f(1) are both odd, then f has no integer root. Why? For any integer m, f(m) has the same parity as f(0) when m is even, and as f(1) when m is odd. So f(m) is always odd, and never 0.
A worked example
Find the rational roots of 2x3−3x2−11x+6=0.
The list.p divides 6 and q divides 2: ±1,±2,±3,±6,±21,±23.
Test.f(3)=54−27−33+6=0. So x=3 is a root.
Divide.2x3−3x2−11x+6=(x−3)(2x2+3x−2).
Finish.2x2+3x−2=(2x−1)(x+2). The roots are 3, 21 and −2.
Practise with new numbers
Try it in Python
The program lists every candidate qp and tests each one exactly, with fractions. No rounding can hide a root or invent one.
Common mistakes
Integer coefficients. The theorem needs them. Clear fractions first.
Lowest terms.42 is tested as 21.
Descartes gives an upper bound. Three sign changes may mean one positive root.
The zero coefficients. Leave them out when you count sign changes.
Remember these
A rational root qp has p∣a0 and q∣an.
Positive roots: at most the sign changes of f(x), less an even number.
x3+px+q: three real roots exactly when −4p3−27q2>0.
f(0) and f(1) both odd: no integer root.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
List the possible rational roots of 3x3+x2−4=0.
Show that x3+x+1=0 has no rational root.
How many positive roots can x4−x3+2x2−x+3=0 have, by Descartes' rule?
How many real roots has x3−6x+2=0?
Explain why x4+3x3+x+5 has no integer root.
References
H. S. Hall and S. R. Knight, Higher Algebra, the chapter on the theory of equations, the sections on Descartes' rule of signs.
I. Niven, Irrational Numbers, Chapter 2, on rational roots of polynomial equations.
Enroll free in Transforming Polynomial Equations
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.
dividing the leading coefficient. That gives a short list to test, and it proves numbers such as
cos20∘
irrational. Descartes' rule of signs bounds the number of positive and negative roots, and the turning points of a cubic tell how many real roots it has.
about 30 min1 simulation2 practice questions1 Python program5 questions to check yourself
This lesson is free to read. Enroll free to keep your place and take the tests.