Interval Bisection and Linear Interpolation: Trapping a Root in an Interval | Edexcel IAL Maths notes

Free preview: Interval Bisection and Linear Interpolation: Trapping a Root in an Interval

Trapping a Root: The Bisection Method

Unit FP1 (WFM01): Further Pure Mathematics 1

Watch: 1-minute explainer

Here's a puzzle. x3−2x−5=0 has no nice factorisation, and the cubic formula is horrible. How can we find its root to 4 decimal places? Let's start with what you know.

  • In the last note you saw that if f is continuous and f(a) and f(b) have opposite signs, there is a root between a and b.
  • A root of f(x)=0 is a value α with f(α)=0. We write α (alpha) for the exact root.
  • An interval with a sign change brackets (traps) the root. Bracketing methods keep shrinking that interval, so the root can never escape.
  • Our running example: f(x)=x3−2x−5. f(2)=−1 and f(3)=16, so there is a root in [2, 3].

The bisection method

  1. Find the midpoint m=a+b2. Why: halving is the simplest way to shrink the interval.
  2. Work out f(m) and look at its sign. Why: only the sign matters for bisection.
  3. Keep the half-interval where the sign changes: [a, m] if f(a) and f(m) differ in sign, otherwise [m, b]. Why: the root must be where the sign changes.
  4. Repeat until the interval is as small as you need.

๐Ÿ‘€ Watch me do it: bisect x3−2x−5 starting from [2, 3]

What I writeWhy I do it
m=2.5, f(2.5)=5.625>0f(2) is negative, f(2.5) positive: the change is in [2, 2.5].
m=2.25, f(2.25)=1.890625>0Keep [2, 2.25].
m=2.125, f(2.125)=0.3457>0Keep [2, 2.125].
m=2.0625, f(2.0625)=−0.3513<0Now negative: the change is in [2.0625, 2.125].
m=2.09375, f=−0.00894<0Keep [2.09375, 2.125]. The root is about 2.09, and very close to 2.09375.

The curve y = x cubed minus 2x minus 5 crossing the x-axis near 2.0946, with intervals [2, 3], [2, 2.5], [2, 2.25] and [2, 2.125] drawn as bars of decreasing length below the axis

Following the diagram

  • The curve y=x3−2x−5 crosses the x-axis near 2.0946.
  • Start with [2, 3] (blue bar): f(2)=−1<0 and f(3)=16>0.
  • Midpoint 2.5: f(2.5)=5.625>0. The sign change is between 2 and 2.5, so keep [2, 2.5] (pink bar).
  • f(2.25)=1.890625>0, keep [2, 2.25] (green). f(2.125)=0.3457>0, keep [2, 2.125] (orange).
  • Each bar is half the one above it. The dashed line, the root, always stays inside the bar.

โœ๏ธ YOUR TURN 1

Try this first:

Let f(x)=x3+x−1. Show that there is a root in [0, 1], then carry out two bisections.

Answer:

  • f(0)=−1<0 and f(1)=1>0. f is a polynomial, so it is continuous, and it changes sign: there is a root in [0, 1].
  • Step 1: m=0.5, f(0.5)=−0.375<0. Same sign as f(0), so keep [0.5, 1].
  • Step 2: m=0.75, f(0.75)=0.171875>0. Same sign as f(1), so keep [0.5, 0.75].

โœ๏ธ YOUR TURN 2

Try this first:

Use bisection, starting from [2, 3], to find an interval of width 0.125 containing the root of x2−7=0.

Answer:

  • f(2.5)=−0.75<0 and f(3)=2>0: keep [2.5, 3].
  • f(2.75)=0.5625>0: keep [2.5, 2.75].
  • f(2.625)=−0.109<0: keep [2.625, 2.75], width 0.125. (Indeed 7=2.6458.)

How Accurate Is Bisection, and When Does It Fail?

after n bisections the interval has width b−a2n

๐Ÿ’ก In plain words

  • Each step halves the uncertainty. If you then quote the midpoint, the error is at most half that width, b−a2n+1.
  • Slow, but completely reliable: it always works once you have a sign change.

๐Ÿ‘€ Watch me do it: how many steps to get the interval narrower than 0.001, from [2, 3]?

What I writeWhy I do it
12n<0.001Width after n steps, starting from width 1.
2n>1000Rearrange.
29=512, 210=1024, so n = 10Or use logs: n>ln1000ln2=9.97.

โœ๏ธ YOUR TURN 3

Try this first:

Starting from an interval of width 1, how many bisections are needed to guarantee the midpoint is within 0.00005 of the root?

Answer:

  • Midpoint error at most 12n+1. Need 2n+1⩾20000.
  • 214=16384, 215=32768, so n + 1 = 15 and n = 14.

When the sign-change test fails

Diagram: The sign-change test needs a continuous curve, and it only tells you about an odd number of crossings.

What the picture shows

  • The sign-change test needs a continuous curve, and it only tells you about an odd number of crossings.
  • Left: two roots close together. f(a) and f(b) are both positive, so there is no sign change, yet there are two roots.
  • Middle: a repeated root. The curve touches the axis and turns back, so there is no sign change at all.
  • Right: y=1x on [โˆ’1, 1]. There is a sign change but no root, because the graph jumps at x = 0.

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in ยท Subscribe ยท Start free trial

All notes in FP1.2 Roots of Quadratics and Numerical Methods

  1. Roots and Coefficients of a Quadratic Equation: Sum and Product of the Roots
  2. Symmetric Functions of the Roots of a Quadratic: Squares, Reciprocals and Cubes
  3. Forming a New Quadratic Equation with Transformed Roots
  4. Locating Roots by a Change of Sign, and When It Fails
  5. Interval Bisection and Linear Interpolation: Trapping a Root in an Interval
  6. The Newton-Raphson Method and When Iterations Fail

Video

What's inside for this topic

6 teacher notes, 110 practice questions, 40 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp ยท Try one live lesson

Previous note: Locating Roots by a Change of Sign, and When It Fails Next note: The Newton-Raphson Method and When Iterations Fail

All Edexcel IAL Maths topics ยท A Level Maths