The Central Idea

Suppose \(f\) is continuous on

\[ [a,b] \]

and the endpoint values have opposite signs:

\[ \boxed{f(a)f(b)<0}. \]

Then at least one root lies between \(a\) and \(b\).

The bisection method repeatedly cuts this interval in half and retains the half that still contains a sign change.

What Is Bracketing?

A root is bracketed when two values \(a\) and \(b\) surround a root in a way that can be verified numerically.

For a continuous function, the standard bracketing condition is

\[ f(a)f(b)<0. \]

This means one endpoint gives a negative function value and the other gives a positive function value.

The Intermediate Value Theorem

The mathematical foundation for sign-change bracketing is the Intermediate Value Theorem.

If \(f\) is continuous on \([a,b]\) and

\[ f(a)<0 or

\[ f(b)<0 then there exists at least one number \(c\in(a,b)\) such that

\[ \boxed{f(c)=0}. \]

Example: Bracketing \(\sqrt{2}\)

Consider

\[ f(x)=x^2-2. \]

Evaluate the endpoints \(1\) and \(2\):

\[ f(1)=1-2=-1, \] \[ f(2)=4-2=2. \]

Since

\[ f(1)f(2)<0, \]

the positive root is bracketed:

\[ \boxed{1<\sqrt2<2}. \]

What Is Bisection?

Bisection means dividing something into two parts.

In the bisection method, the current search interval

\[ [a,b] \]

is divided at its midpoint

\[ \boxed{m=\frac{a+b}{2}}. \]

The sign of \(f(m)\) determines which half should be retained.

The Three Possible Midpoint Outcomes

After computing

\[ m=\frac{a+b}{2}, \]

evaluate \(f(m)\).

Three cases are possible:

  1. If \(f(m)=0\), then \(m\) is an exact root.
  2. If \(f(a)f(m)<0\), keep \([a,m]\).
  3. If \(f(m)f(b)<0\), keep \([m,b]\).

One Bisection Step

Begin with

\[ [a,b]. \]

Compute

\[ m=\frac{a+b}{2}. \]

Then replace the original interval with either

\[ [a,m] \]

or

\[ [m,b], \]

whichever still brackets the root.

Example: First Bisection for \(\sqrt{2}\)

Start with

\[ [1,2]. \]

The midpoint is

\[ m=\frac{1+2}{2}=1.5. \]

Evaluate:

\[ f(1.5)=1.5^2-2=0.25. \]

Since

\[ f(1)=-1 \]

and

\[ f(1.5)=0.25, \]

the sign change occurs on

\[ \boxed{[1,1.5]}. \]

Second Bisection

Now bisect

\[ [1,1.5]. \]

The midpoint is

\[ m=\frac{1+1.5}{2}=1.25. \]

Evaluate:

\[ f(1.25)=1.5625-2=-0.4375. \]

Since

\[ f(1.25)<0 \]

and

\[ f(1.5)>0, \]

keep

\[ \boxed{[1.25,1.5]}. \]

Third Bisection

Bisect

\[ [1.25,1.5]. \]

The midpoint is

\[ m=\frac{1.25+1.5}{2}=1.375. \]

Then

\[ f(1.375)=1.890625-2=-0.109375. \]

Since

\[ f(1.375)<0 \]

and

\[ f(1.5)>0, \]

the new interval is

\[ \boxed{[1.375,1.5]}. \]

Fourth Bisection

Bisect

\[ [1.375,1.5]. \]

The midpoint is

\[ m=\frac{1.375+1.5}{2}=1.4375. \]

Evaluate:

\[ f(1.4375)=1.4375^2-2=0.06640625. \]

Therefore, the sign change lies in

\[ \boxed{[1.375,1.4375]}. \]

Bisection Produces Nested Intervals

The intervals generated above are

\[ [1,2], \] \[ [1,1.5], \] \[ [1.25,1.5], \] \[ [1.375,1.5], \] \[ [1.375,1.4375]. \]

Each interval is contained inside the previous interval.

The root remains trapped while the interval becomes smaller.

Interval Width Is Halved Each Time

Suppose the original interval has width

\[ b-a. \]

After one bisection, the retained interval has width

\[ \frac{b-a}{2}. \]

After two bisections, the width is

\[ \frac{b-a}{2^2}. \]

After \(n\) bisections,

\[ \boxed{ \text{width after }n\text{ steps} = \frac{b-a}{2^n} }. \]

Predictable Error Control

The predictable shrinking of the interval is one of the greatest strengths of bisection.

If the final root lies somewhere in

\[ [a_n,b_n], \]

then the midpoint

\[ m_n=\frac{a_n+b_n}{2} \]

is at most half the interval width from any point in the interval.

Therefore,

\[ \boxed{ |m_n-r| \le \frac{b_n-a_n}{2} }, \]

where \(r\) is the bracketed root.

Error Bound from the Original Interval

Since

\[ b_n-a_n=\frac{b_0-a_0}{2^n}, \]

the midpoint error satisfies

\[ \boxed{ |m_n-r| \le \frac{b_0-a_0}{2^{n+1}} }. \]

This lets us determine in advance how many bisections are sufficient for a desired accuracy.

How Many Bisections Are Needed?

Suppose we want the interval width to be at most \(\varepsilon\).

We require

\[ \frac{b-a}{2^n}\le\varepsilon. \]

Rearranging gives

\[ 2^n\ge\frac{b-a}{\varepsilon}. \]

Taking base-\(2\) logarithms,

\[ \boxed{ n \ge \log_2\left(\frac{b-a}{\varepsilon}\right) }. \]

The required iteration count is the next integer at or above this value.

Example: Required Number of Steps

Suppose the initial interval is

\[ [1,2] \]

and we want the final interval width to be at most

\[ 0.001. \]

We need

\[ \frac{1}{2^n}\le0.001. \]

Since

\[ 2^{10}=1024, \]

we have

\[ \frac1{2^{10}}\approx0.0009765625. \]

Therefore,

\[ \boxed{10\text{ bisections are sufficient}}. \]

Bracketing versus Guessing

A bracket is not merely a rough guess.

For a continuous function, the condition

\[ f(a)f(b)<0 \]

provides a mathematical guarantee that at least one root lies between the endpoints.

This guarantee is what makes bisection unusually reliable.

Example: Solving \(x^3-x-2=0\)

Define

\[ f(x)=x^3-x-2. \]

Evaluate:

\[ f(1)=-2, \] \[ f(2)=4. \]

Therefore,

\[ \boxed{[1,2]} \]

brackets at least one root.

First Bisection for \(x^3-x-2=0\)

Midpoint:

\[ m_1=\frac{1+2}{2}=1.5. \]

Evaluate:

\[ f(1.5)=1.5^3-1.5-2=-0.125. \]

Since

\[ f(1.5)<0 \]

and

\[ f(2)>0, \]

retain

\[ \boxed{[1.5,2]}. \]

Second Bisection

Midpoint:

\[ m_2=\frac{1.5+2}{2}=1.75. \]

Evaluate:

\[ f(1.75)=1.75^3-1.75-2=1.609375. \]

Since

\[ f(1.5)<0 \]

and

\[ f(1.75)>0, \]

retain

\[ \boxed{[1.5,1.75]}. \]

Third Bisection

Midpoint:

\[ m_3=\frac{1.5+1.75}{2}=1.625. \]

Evaluate:

\[ f(1.625) = 1.625^3-1.625-2 = 0.666015625. \]

Therefore, retain

\[ \boxed{[1.5,1.625]}. \]

Fourth Bisection

Midpoint:

\[ m_4=\frac{1.5+1.625}{2}=1.5625. \]

Evaluate:

\[ f(1.5625)\approx0.2521972656. \]

Since the value is positive while

\[ f(1.5)<0, \]

the root lies in

\[ \boxed{[1.5,1.5625]}. \]

Continuing the Process

Repeating the method eventually produces intervals such as

\[ [1.5205,1.5215] \]

and then still narrower intervals.

The real root is approximately

\[ \boxed{x\approx1.52138}. \]

Bisection approaches this value from a sequence of guaranteed brackets.

A Bisection Table

Repeated bisection is often organized in a table.

Step \(a\) \(b\) \(m\) \(f(m)\)
\(0\) \(1\) \(2\) \(1.5\) \(-0.125\)
\(1\) \(1.5\) \(2\) \(1.75\) \(1.609375\)
\(2\) \(1.5\) \(1.75\) \(1.625\) \(0.666015625\)
\(3\) \(1.5\) \(1.625\) \(1.5625\) \(0.2521972656\)

The Bisection Algorithm

A standard bisection procedure is:

  1. Choose \(a\) and \(b\) so that \(f(a)f(b)<0\).
  2. Check that \(f\) is continuous on \([a,b]\).
  3. Compute \(m=(a+b)/2\).
  4. If \(f(m)=0\), stop.
  5. If \(f(a)f(m)<0\), replace \(b\) with \(m\).
  6. Otherwise, replace \(a\) with \(m\).
  7. Repeat until the stopping condition is satisfied.

Bisection in Pseudocode

choose a and b with f(a)f(b) < 0

repeat
    m = (a + b) / 2

    if f(m) = 0
        stop
    else if f(a)f(m) < 0
        b = m
    else
        a = m
until stopping condition is satisfied

Stopping by Interval Width

One common stopping rule is

\[ \boxed{b-a<\varepsilon}. \]

Once the interval is narrow enough, its midpoint can be reported as the approximate root.

Stopping by Midpoint Error Bound

If we want the midpoint error to be less than \(\varepsilon\), it is enough to require

\[ \frac{b-a}{2}<\varepsilon. \]

Equivalently,

\[ \boxed{b-a<2\varepsilon}. \]

Stopping by Residual

We may also monitor

\[ |f(m)|. \]

If

\[ |f(m)|<\varepsilon, \]

the midpoint produces a small residual.

However, a residual criterion and an interval-width criterion measure different things.

Why Interval Width Is Especially Reliable

A small residual does not always imply a small error in \(x\).

By contrast, if a bracket is valid and has width

\[ w, \]

then the root must lie somewhere inside that interval.

The interval itself gives direct location information.

Bisection Is Guaranteed under the Right Conditions

If

then bisection continues to trap at least one root in smaller and smaller intervals.

This reliability is a major advantage over many faster methods.

Bisection Is Usually Not the Fastest Method

Bisection reduces the interval width by a factor of

\[ \frac12 \]

at each step.

This is predictable but relatively gradual.

Methods such as Newton's method can converge much faster when they work well, but they require additional assumptions and can fail from poor starting values.

Reliability versus Speed

Numerical methods often involve a tradeoff.

Bisection emphasizes

Other methods may emphasize faster convergence.

When Bisection Works Well

Bisection is especially useful when:

When Bisection Is Not Directly Applicable

Standard sign-change bisection is not directly applicable when:

Even-Multiplicity Roots

Consider

\[ f(x)=(x-2)^2. \]

The root is

\[ x=2. \]

But

\[ f(1)>0 \]

and

\[ f(3)>0. \]

There is no sign change.

A standard sign-change bracketing search can therefore miss this root.

Discontinuities Can Create False Sign Changes

Consider

\[ f(x)=\frac1x. \]

Then

\[ f(-1)=-1 \]

and

\[ f(1)=1. \]

The signs differ, but the function has no zero in \([-1,1]\).

The discontinuity at

\[ x=0 \]

invalidates the continuity assumption required by the Intermediate Value Theorem.

A Wide Bracket Can Contain Several Roots

A sign change guarantees at least one root, not necessarily exactly one.

A broad interval may contain multiple roots.

If the goal is to isolate a particular root, a narrower initial bracket may be preferable.

Finding an Initial Bracket

Initial brackets can come from:

Example: Bracketing from Algebra

To solve

\[ x^2=15, \]

note that

\[ 3^2=9<15 \]

and

\[ 4^2=16>15. \]

Therefore,

\[ \boxed{3<\sqrt{15}<4}. \]

The interval \([3,4]\) provides a natural starting bracket.

Example: Bracketing from a Table

Suppose a numerical table gives

\[ f(2.1)=-0.18 \]

and

\[ f(2.2)=0.07. \]

If \(f\) is continuous on \([2.1,2.2]\), then

\[ \boxed{[2.1,2.2]} \]

brackets at least one root.

Example: Bracketing from a Graph

A graph may suggest that a function crosses the \(x\)-axis between

\[ x=4 \]

and

\[ x=5. \]

Numerical evaluation should then confirm

\[ f(4)f(5)<0 \]

before the interval is treated as a formal bisection bracket.

Bisection and Decimal Accuracy

If a root has been trapped inside

\[ [1.4142,1.4143], \]

then its location is known within an interval of width

\[ 0.0001. \]

This information can justify a decimal approximation more rigorously than simply reading digits from a calculator display.

Bisection and Computational Efficiency

Bisection requires one new function evaluation per iteration after the endpoint values have been established.

One endpoint from the previous interval is retained, so its function value can also be retained.

Good implementations avoid recomputing values that are already known.

Reuse Known Endpoint Values

Suppose the current interval is

\[ [a,b] \]

and \(f(a)\) and \(f(b)\) are already known.

After computing

\[ m=\frac{a+b}{2}, \]

only

\[ f(m) \]

needs to be newly evaluated.

The retained endpoint value can be carried forward to the next iteration.

Common Error: Forgetting Continuity

The condition

\[ f(a)f(b)<0 \]

is not enough by itself.

Continuity on the interval is essential to the usual root guarantee.

Common Error: Keeping the Wrong Half

After testing the midpoint, retain the half whose endpoints still have opposite signs.

If

\[ f(a)<0,\qquad f(m)>0, \]

then keep

\[ \boxed{[a,m]}, \]

not \([m,b]\) unless a separate sign change has been established there.

Common Error: Averaging Function Values Instead of Inputs

The bisection midpoint is

\[ \boxed{m=\frac{a+b}{2}}. \]

It is not

\[ \frac{f(a)+f(b)}{2}. \]

Bisection halves the input interval, not the output values.

Common Error: Assuming the Midpoint Is the Root

The midpoint is a test point.

It becomes an exact root only when

\[ f(m)=0. \]

Otherwise, its role is to help select the next interval.

Common Error: Rounding Midpoints Too Aggressively

Excessive rounding can distort function values and may even create an incorrect sign decision near a root.

Retain sufficient precision during the iteration and round the final result according to the required tolerance.

Common Error: Confusing Width with Midpoint Error

If the final interval has width

\[ w, \]

then the midpoint is at most

\[ \frac{w}{2} \]

from the root.

The interval width and midpoint error bound differ by a factor of \(2\).

A Reliable Bisection Workflow

  1. Rewrite the problem as \(f(x)=0\).
  2. Find endpoints \(a\) and \(b\) with opposite function signs.
  3. Verify continuity on \([a,b]\).
  4. Compute the midpoint \(m=(a+b)/2\).
  5. Evaluate \(f(m)\).
  6. If \(f(m)=0\), stop.
  7. Otherwise keep the half that preserves the sign change.
  8. Measure the new interval width.
  9. Repeat until the stopping condition is met.
  10. Report the midpoint or bracket with an appropriate error statement.

Example: Full Workflow for \(\sqrt{5}\)

Define

\[ f(x)=x^2-5. \]

First,

\[ f(2)=-1, \qquad f(3)=4. \]

So begin with

\[ [2,3]. \]

Midpoint:

\[ 2.5. \]

Since

\[ f(2.5)=1.25>0, \]

keep

\[ [2,2.5]. \]

Continue the \(\sqrt{5}\) Workflow

Midpoint of

\[ [2,2.5] \]

is

\[ 2.25. \]

Evaluate:

\[ f(2.25)=5.0625-5=0.0625. \]

Therefore, keep

\[ [2,2.25]. \]

Refine Again

Midpoint:

\[ 2.125. \]

Then

\[ f(2.125)=4.515625-5=-0.484375. \]

Therefore, keep

\[ \boxed{[2.125,2.25]}. \]

Repeating the process eventually produces

\[ \sqrt5\approx2.23607. \]

Practice 1: Verify a Bracket

For

\[ f(x)=x^2-3, \]

show that \([1,2]\) brackets the positive root.

Practice 2: First Bisection

Using

\[ f(x)=x^2-3 \]

and the bracket \([1,2]\), compute the midpoint and determine the next interval.

Practice 3: Second Bisection

Continue Practice 2 for one more bisection step.

Practice 4: Interval Width

Find the width of

\[ [1.625,1.75]. \]

Practice 5: Width after Bisections

An interval begins with width

\[ 8. \]

What is its width after five bisections?

Practice 6: Number of Steps

An interval has initial width \(1\).

How many bisections are needed to make the width at most

\[ \frac1{32}? \]

Practice 7: Midpoint Error Bound

A root is known to lie in

\[ [4.10,4.14]. \]

If the midpoint is reported as the approximation, what is the largest possible error?

Practice 8: Continuity Warning

Explain why

\[ f(x)=\frac1x \]

cannot use the interval \([-1,1]\) as a valid bisection bracket for a root, even though the endpoint values have opposite signs.

Practice 9: Repeated Root

Explain why standard sign-change bisection does not naturally locate the root of

\[ f(x)=(x-4)^2. \]

Practice 10: Interpret the Method

In one sentence, describe what bisection does at every iteration.

Practice Answers

Practice 1

\[ f(1)=1-3=-2, \] \[ f(2)=4-3=1. \]

The function is continuous and the signs differ, so

\[ \boxed{[1,2]} \]

brackets the positive root.

Practice 2

The midpoint is

\[ m=\frac{1+2}{2}=1.5. \]

Evaluate:

\[ f(1.5)=2.25-3=-0.75. \]

Since

\[ f(1.5)<0 \]

and

\[ f(2)>0, \]

the next interval is

\[ \boxed{[1.5,2]}. \]

Practice 3

The midpoint of \([1.5,2]\) is

\[ 1.75. \]

Evaluate:

\[ f(1.75)=3.0625-3=0.0625. \]

Since

\[ f(1.5)<0 \]

and

\[ f(1.75)>0, \]

keep

\[ \boxed{[1.5,1.75]}. \]

Practice 4

\[ 1.75-1.625=0.125. \]

Therefore, the width is

\[ \boxed{0.125}. \]

Practice 5

After five bisections,

\[ \frac8{2^5} = \frac8{32} = 0.25. \]

Therefore,

\[ \boxed{0.25}. \]

Practice 6

We need

\[ \frac1{2^n}\le\frac1{32}. \]

Since

\[ 2^5=32, \]

the answer is

\[ \boxed{5\text{ bisections}}. \]

Practice 7

The interval width is

\[ 4.14-4.10=0.04. \]

The midpoint error is at most half the width:

\[ \boxed{0.02}. \]

Practice 8

The function is discontinuous at

\[ x=0. \]

Therefore, the Intermediate Value Theorem does not apply on \([-1,1]\), and the sign change does not guarantee a zero.

Practice 9

Since

\[ (x-4)^2\ge0 \]

on both sides of \(x=4\), the function does not change sign across the root.

Standard sign-change bracketing therefore does not naturally detect it.

Practice 10

Bisection tests the midpoint of a valid bracket and keeps the half that still brackets the root.

What to Remember

Where We Go Next

Bisection refines a root by repeatedly shrinking a guaranteed interval. Another major approach is to update a single estimate by rewriting the equation into a form whose repeated evaluation may converge to the solution.

The next lesson, Fixed-Point Iteration, develops iteration rules of the form \(x_{n+1}=g(x_n)\), examines when they converge, and shows how fixed points can be used to solve equations numerically.