HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Transforming Polynomial Equations
  1. 1New equations from old roots
  2. 2Removing a term and reciprocal equations
  3. 3Rational roots and real roots
  1. Mathematics
  2. /Transforming Polynomial Equations
  3. /Rational roots and real roots

Course 33.2·Lesson 3 of 3

Rational roots and real roots

A rational root pq\dfrac{p}{q}qp​, in lowest terms, of a polynomial with integer coefficients has ppp

Lesson 3 of 3Show all lessonsHide
Transforming Polynomial Equations
  1. 1New equations from old roots
  2. 2Removing a term and reciprocal equations
  3. 3Rational roots and real roots

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 23\dfrac{2}{3}32​ is a root of 6x3+⋯+4=06x^3 + \dots + 4 = 06x3+⋯+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+a0f(x) = a_nx^n + \dots + a_1x + a_0f(x)=an​xn+⋯+a1​x+a0​ have integer coefficients, and let pq\dfrac{p}{q}qp​ be a root in lowest terms. Then

p∣a0andq∣an.\displaystyle p \mid a_0 \quad\text{and}\quad q \mid a_n.p∣a0​andq∣an​.

Why. Multiply f ⁣(pq)=0f\!\left(\dfrac{p}{q}\right) = 0f(qp​)=0 by qnq^nqn:

anpn+an−1pn−1q+…\displaystyle a_np^n + a_{n-1}p^{n-1}q + \dotsan​pn+an−1​pn−1q+…
+a0qn=0.\displaystyle \qquad + a_0q^n = 0.+a0​qn=0.

Every term but the last has the factor ppp, so ppp divides a0qna_0q^na0​qn. Since ppp and qqq share no factor, p∣a0p \mid a_0p∣a0​. In the same way q∣anpnq \mid a_np^nq∣an​pn, so q∣anq \mid a_nq∣an​.

Monic case. If an=1a_n = 1an​=1, every rational root is an integer, and it divides a0a_0a0​.

Proving a number irrational

The identity cos⁡3θ=4cos⁡3θ−3cos⁡θ\cos 3\theta = 4\cos^3\theta - 3\cos\thetacos3θ=4cos3θ−3cosθ at θ=20∘\theta = 20^\circθ=20∘ gives 4c3−3c=124c^3 - 3c = \tfrac{1}{2}4c3−3c=21​, where c=cos⁡20∘c = \cos 20^\circc=cos20∘. So ccc is a root of

8x3−6x−1=0.\displaystyle 8x^3 - 6x - 1 = 0.8x3−6x−1=0.

A rational root would be one of ±1\pm 1±1, ±12\pm\tfrac{1}{2}±21​, ±14\pm\tfrac{1}{4}±41​, ±18\pm\tfrac{1}{8}±81​. None of these eight works. So cos⁡20∘\cos 20^\circcos20∘ is irrational.

Descartes' rule of signs

Write the coefficients of f(x)f(x)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)f(-x)f(−x).

Example. f(x)=x3+2x2−x−5f(x) = x^3 + 2x^2 - x - 5f(x)=x3+2x2−x−5 has signs +,+,−,−+, +, -, -+,+,−,−: one change, so exactly one positive root. f(−x)=−x3+2x2+x−5f(-x) = -x^3 + 2x^2 + x - 5f(−x)=−x3+2x2+x−5 has signs −,+,+,−-, +, +, -−,+,+,−: two changes, so two negative roots or none. Here the local maximum of fff for negative xxx is about −2.4-2.4−2.4, below 000, so there are none. The other two roots are complex.

Counting the real roots of a cubic

A cubic fff with two turning points has three distinct real roots exactly when its local maximum is above 000 and its local minimum is below 000. For the depressed cubic x3+px+qx^3 + px + qx3+px+q, this happens exactly when the discriminant

D=−4p3−27q2\displaystyle D = -4p^3 - 27q^2D=−4p3−27q2

is positive. When D=0D = 0D=0 there is a repeated root, and when D<0D < 0D<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 fff has integer coefficients and f(0)f(0)f(0) and f(1)f(1)f(1) are both odd, then fff has no integer root. Why? For any integer mmm, f(m)f(m)f(m) has the same parity as f(0)f(0)f(0) when mmm is even, and as f(1)f(1)f(1) when mmm is odd. So f(m)f(m)f(m) is always odd, and never 000.

A worked example

Find the rational roots of 2x3−3x2−11x+6=02x^3 - 3x^2 - 11x + 6 = 02x3−3x2−11x+6=0.

  1. The list. ppp divides 666 and qqq divides 222: ±1,±2,±3,±6,±12,±32\pm 1, \pm 2, \pm 3, \pm 6, \pm\tfrac{1}{2}, \pm\tfrac{3}{2}±1,±2,±3,±6,±21​,±23​.
  2. Test. f(3)=54−27−33+6=0f(3) = 54 - 27 - 33 + 6 = 0f(3)=54−27−33+6=0. So x=3x = 3x=3 is a root.
  3. Divide. 2x3−3x2−11x+6=(x−3)(2x2+3x−2)2x^3 - 3x^2 - 11x + 6 = (x - 3)(2x^2 + 3x - 2)2x3−3x2−11x+6=(x−3)(2x2+3x−2).
  4. Finish. 2x2+3x−2=(2x−1)(x+2)2x^2 + 3x - 2 = (2x - 1)(x + 2)2x2+3x−2=(2x−1)(x+2). The roots are 333, 12\tfrac{1}{2}21​ and −2-2−2.

Practise with new numbers

Try it in Python

The program lists every candidate pq\dfrac{p}{q}qp​ and tests each one exactly, with fractions. No rounding can hide a root or invent one.

Read it first. Then run it. Which candidates are roots?

1. Change the polynomial to [8, 0, -6, -1], the cubic of cos⁡20∘\cos 20^\circcos20∘. What does the program find?

2. Count the candidates for [6, 1, 1, 10] before you run it.

Common mistakes

  • Integer coefficients. The theorem needs them. Clear fractions first.
  • Lowest terms. 24\dfrac{2}{4}42​ is tested as 12\dfrac{1}{2}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 pq\dfrac{p}{q}qp​ has p∣a0p \mid a_0p∣a0​ and q∣anq \mid a_nq∣an​.
  • Positive roots: at most the sign changes of f(x)f(x)f(x), less an even number.
  • x3+px+qx^3 + px + qx3+px+q: three real roots exactly when −4p3−27q2>0-4p^3 - 27q^2 > 0−4p3−27q2>0.
  • f(0)f(0)f(0) and f(1)f(1)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.

  1. List the possible rational roots of 3x3+x2−4=03x^3 + x^2 - 4 = 03x3+x2−4=0.
  1. Show that x3+x+1=0x^3 + x + 1 = 0x3+x+1=0 has no rational root.
  1. How many positive roots can x4−x3+2x2−x+3=0x^4 - x^3 + 2x^2 - x + 3 = 0x4−x3+2x2−x+3=0 have, by Descartes' rule?
  1. How many real roots has x3−6x+2=0x^3 - 6x + 2 = 0x3−6x+2=0?
  1. Explain why x4+3x3+x+5x^4 + 3x^3 + x + 5x4+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.
No payment. You can leave at any time.

Problems (3)

A student must solve 6x³ - 13x² + x + 2 = 0 and knows that it has three rational roots…Hard · High School (11–12) · by StemPy Lab
Let s = √2 + √3. Find a monic quartic with integer coefficients that has s as a root…Advanced · High School (11–12) · by StemPy Lab
Let f(x) = x⁴ + 2x³ + 5x + 7. Prove that f has no integer root, using only f(0) and f(1)…Advanced · High School (11–12) · by StemPy Lab
That was the last lessonBack to the course: take the test
← Transforming Polynomial Equations
← Removing a term and reciprocal equationsNext →

Discussion (0)

Log in to join the discussion.

Loading…

dividing the constant term and
qqq
dividing the leading coefficient. That gives a short list to test, and it proves numbers such as
cos⁡20∘\cos 20^\circcos20∘
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.

Python Labs (1)

Rational roots, exactlyPython Lab · by StemPy Lab

Question Sets (1)

Transforming Equations: Concept Check10 questions · by StemPy Lab

Notes (1)

Transforming Equations: Quick RevisionNote · by StemPy Lab