Tutorials › Calculus I › Guaranteeing Several Roots in Separate Intervals

Continuity and the Intermediate Value Theorem · Tutorial 293 of 1495

Guaranteeing Several Roots in Separate Intervals

Use continuity and sign changes on separate intervals to prove that a function has several distinct roots without solving its equation.

Beginner 10 min read

What You'll Learn

  • State the conditions that guarantee a root in each of several intervals.
  • Explain why disjoint intervals make the guaranteed roots distinct.
  • Apply the result to polynomials and trigonometric functions.
  • Calculate endpoint values and check their signs exactly.
  • Recognize why overlapping intervals do not guarantee distinct roots.

Introduction

A single sign change can guarantee that a continuous function has a root. The same idea can be applied more than once: if the signs at the endpoints change on several separate intervals, continuity guarantees a root in every one of them.

The separation of the intervals matters. A root found in one interval must not be the very same point as a root found in another. With properly separated intervals, the Intermediate Value Theorem gives not just several root-containing intervals, but several distinct roots.

The multiple-interval result

Recall the sign-change consequence of the Intermediate Value Theorem: if \(f\) is continuous on a closed interval \([a,b]\) and \(f(a)\) and \(f(b)\) have opposite signs, then \(f(c)=0\) for some \(c\) strictly between \(a\) and \(b\). The condition that the signs are opposite can be written as \(f(a)f(b)<0\).

Theorem: Let \(n\) be a positive integer, and let \([a_1,b_1],\ldots,[a_n,b_n]\) be closed intervals ordered so that \(b_i<a_{i+1}\) for each \(i=1,\ldots,n-1\). Suppose \(f\) is continuous on each interval and \(f(a_i)f(b_i)<0\) for every \(i=1,\ldots,n\). Then, for each \(i\), there is a point \(c_i\in(a_i,b_i)\) such that \(f(c_i)=0\). These \(n\) roots are distinct.

The intervals in the theorem have a gap between consecutive endpoints. In particular, they do not overlap or share an endpoint. Continuity is required on each interval where the theorem is applied; continuity elsewhere is not needed for this conclusion.

Why the result guarantees distinct roots

Apply the sign-change consequence of the Intermediate Value Theorem on the first interval. It gives a root \(c_1\in(a_1,b_1)\). Apply it on the second interval to get \(c_2\in(a_2,b_2)\), and continue through the list. Each application is valid because the function is continuous on that interval and its endpoint values have opposite signs.

It remains to justify that these roots are distinct. If \(i<j\), the intervals are ordered and separated, so every point in \((a_i,b_i)\) is less than every point in \((a_j,b_j)\). In particular, \(c_i<c_j\). Thus \(c_i\ne c_j\), and all the roots obtained are distinct.

Key takeaway: A sign change on each of \(n\) separated intervals guarantees at least \(n\) distinct roots. The conclusion is “at least \(n\),” not “exactly \(n\).”

This argument is a repeated application of the sign-change consequence of the Intermediate Value Theorem, followed by a separation argument. The theorem does not require solving \(f(x)=0\), nor does it identify the roots exactly.

Worked examples

Worked Example: Three roots of a cubic

Show that \(p(x)=x^3-3x\) has at least three distinct real roots by using the intervals \([-2,-1]\), \([-1/2,1/2]\), and \([1,2]\).

First, \(p\) is a polynomial, so it is continuous on each of these closed intervals. Now evaluate the endpoints of the first interval:

$$ p(-2)=(-2)^3-3(-2)=-8+6=-2, \qquad p(-1)=(-1)^3-3(-1)=-1+3=2. $$

The endpoint values have opposite signs: \((-2)(2)=-4<0\).

For the second interval, calculate:

$$ p\left(-\frac12\right) =\left(-\frac12\right)^3-3\left(-\frac12\right) =-\frac18+\frac32 =-\frac18+\frac{12}{8} =\frac{11}{8}, $$ $$ p\left(\frac12\right) =\left(\frac12\right)^3-3\left(\frac12\right) =\frac18-\frac32 =\frac18-\frac{12}{8} =-\frac{11}{8}. $$

These values have opposite signs: \(\frac{11}{8}\left(-\frac{11}{8}\right)<0\).

For the third interval:

$$ p(1)=1^3-3(1)=1-3=-2, \qquad p(2)=2^3-3(2)=8-6=2. $$

Again, the endpoint values have opposite signs: \((-2)(2)=-4<0\). The intervals are ordered and separated because \(-1<-\frac12\) and \(\frac12<1\). The theorem therefore gives at least one root in the interior of each interval, and the three roots are distinct. Checking the endpoint calculations confirms that none of the signs used in the argument is zero.

Worked Example: Two roots of a trigonometric function

Show that \(f(x)=\cos x\) has at least two distinct roots in the intervals \([\pi/3,2\pi/3]\) and \([4\pi/3,5\pi/3]\).

The cosine function is continuous, so it is continuous on both intervals. At the endpoints of the first interval, the exact values are:

$$ f\left(\frac{\pi}{3}\right)=\cos\left(\frac{\pi}{3}\right)=\frac12, \qquad f\left(\frac{2\pi}{3}\right)=\cos\left(\frac{2\pi}{3}\right)=-\frac12. $$

The product is \(\frac12(-\frac12)=-\frac14<0\), so there is a root in \((\pi/3,2\pi/3)\).

At the endpoints of the second interval:

$$ f\left(\frac{4\pi}{3}\right)=\cos\left(\frac{4\pi}{3}\right)=-\frac12, \qquad f\left(\frac{5\pi}{3}\right)=\cos\left(\frac{5\pi}{3}\right)=\frac12. $$

Here the product is \((-\frac12)(\frac12)=-\frac14<0\), so there is a root in \((4\pi/3,5\pi/3)\). The intervals are separated because \(2\pi/3<4\pi/3\). Thus the two roots guaranteed by the theorem are distinct. The endpoint values are exact, and their opposite signs verify the required condition on both intervals.

Worked Example: At least four roots of a quartic

Show that \(q(x)=x^4-5x^2+4\) has at least four distinct real roots by checking four separated intervals.

The function \(q\) is a polynomial, hence continuous. Its values depend only on \(x^2\), so \(q(-x)=q(x)\). We can calculate the needed values using positive magnitudes. At \(x=9/4\) and \(x=7/4\), the calculations are:

$$ q\left(\frac94\right) =\left(\frac94\right)^4-5\left(\frac94\right)^2+4 =\frac{6561}{256}-\frac{405}{16}+\frac{1024}{256} =\frac{6561-6480+1024}{256} =\frac{1105}{256}, $$ $$ q\left(\frac74\right) =\left(\frac74\right)^4-5\left(\frac74\right)^2+4 =\frac{2401}{256}-\frac{245}{16}+\frac{1024}{256} =\frac{2401-3920+1024}{256} =-\frac{495}{256}. $$

Therefore \(q\) has opposite signs at the endpoints of \([-9/4,-7/4]\) as well as \([7/4,9/4]\), using \(q(-x)=q(x)\).

For the two inner intervals, calculate:

$$ q\left(\frac54\right) =\frac{625}{256}-\frac{125}{16}+\frac{1024}{256} =\frac{625-2000+1024}{256} =-\frac{351}{256}, $$ $$ q\left(\frac34\right) =\frac{81}{256}-\frac{45}{16}+\frac{1024}{256} =\frac{81-720+1024}{256} =\frac{385}{256}. $$

These values show opposite signs at the endpoints of \([-5/4,-3/4]\) and \([3/4,5/4]\), again by \(q(-x)=q(x)\). All four sign changes are strict: the numerators \(1105\), \(-495\), \(-351\), and \(385\) are nonzero. The intervals are ordered and separated: \(-7/4<-5/4\), \(-3/4<3/4\), and \(5/4<7/4\). The theorem guarantees at least four distinct roots, one in the interior of each interval. This conclusion follows from continuity and the endpoint signs; no root has been calculated explicitly.

A common mistake: counting the same root twice

A sign change on each of two intervals does not by itself guarantee two distinct roots if the intervals overlap. For example, let \(f(x)=x\), and consider \([-1,1]\) and \([-1/2,1/2]\). The function is continuous on both intervals, and its endpoint values change sign on each:

$$ f(-1)=-1,\quad f(1)=1, \qquad f\left(-\frac12\right)=-\frac12,\quad f\left(\frac12\right)=\frac12. $$

A mistaken conclusion would be: “There is a root in each interval, so there are two distinct roots.” The theorem does give a root in each interval, but both conclusions can refer to the same point, \(x=0\). Since the intervals overlap, the distinctness argument does not apply.

The correction is to check the intervals themselves, not only the endpoint signs. To conclude that roots are distinct by this method, use separated intervals, such as intervals ordered with \(b_i<a_{i+1}\). Then any root in one interval must differ from any root in another.

A reliable way to organize the argument

When a problem asks you to prove that a function has several distinct roots, keep the hypotheses visible as you work:

1
Choose the intervals.
List the closed intervals and verify that they are ordered and separated.
2
Check continuity.
State why the function is continuous on each interval.
3
Evaluate the endpoints.
Show the endpoint values, including enough arithmetic to verify their signs.
4
Apply the sign-change result.
For each interval, opposite endpoint signs guarantee a root in its interior.
5
Count distinct roots.
Use the separation of the intervals to explain why the roots obtained are different.

Why this method matters

Often an equation is difficult or impossible to solve explicitly, but evaluating a function at selected points is straightforward. A sign change then gives rigorous evidence that a solution exists between those points. Repeating this process on separate intervals turns several simple endpoint checks into a proof of several distinct solutions.

The method is a guarantee, not a formula for locating each root. It also does not say that an interval contains only one root. Its strength is that it establishes a lower bound on how many distinct roots exist, using continuity, endpoint signs, and separation.

Check Your Understanding

Answer these questions using the conditions and reasoning from this tutorial.

  1. What continuity and endpoint-sign conditions guarantee a root in one closed interval?
  2. Why must consecutive intervals be separated to conclude that the guaranteed roots are distinct?
  3. A continuous function has opposite signs at the endpoints of each of four separated intervals. What can you conclude about its roots?
  4. Why do sign changes on two overlapping intervals fail to guarantee two distinct roots?
  5. Does a sign change on an interval prove that there is exactly one root in that interval?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon