Maths WorkshopMaths problems with full solutions
Exercise 27Calculus › Single-variable calculus › Continuity › Intermediate Value TheoremHigh schoolAdded 2 Nov 2026

Locating the roots of a cubic

#intermediate value theorem#polynomial roots#bracketing

Statement

Show that the equation x3+x2−4x+1=0x^3+x^2-4x+1=0 has exactly three real solutions, and find three disjoint intervals of length 11 containing them.

Hint

Evaluate P(x)=x3+x2−4x+1P(x)=x^3+x^2-4x+1 at the integers −3,−2,0,1,2-3,-2,0,1,2 and look at the signs.

Show solutionHide solution

Solution

Values. P(−3)=−5P(-3)=-5, P(−2)=5P(-2)=5, P(0)=1P(0)=1, P(1)=−1P(1)=-1, P(2)=5P(2)=5.

Applying the intermediate value theorem. PP is continuous, and its sign changes:
- between −3-3 and −2-2 (−5<0<5-5<0<5): a root in (−3,−2)(-3,-2),
- between 00 and 11 (1>0>−11>0>-1): a root in (0,1)(0,1),
- between 11 and 22 (−1<0<5-1<0<5): a root in (1,2)(1,2).

These three intervals are disjoint, so we have found three distinct roots.

No more roots. A polynomial of degree 33 has at most 33 roots. Hence there are exactly three, and each of the intervals contains exactly one.

Numerical values. The roots are approximately −2.651-2.651, 0.2740.274 and 1.3771.377.