Next: 3. Regula Falsi
Up: Root finders for equations
Previous: 1. Introduction
2. The Bisection Method
When we want to find a root of a function, we have to know something
about it; a general (not necessarily continuous) function could have
a root anywhere. So we postulate that our function
is continuous; this is
reasonable, because
is often derived from some physical model. Suppose now
that we have an interval
, with
and
having different signs,
or in other words:
It follows then from elementary analysis that the interval
will contain at
least one root of the function
. Suppose now that we have in some way got an
approximation to this root, say
, with
. We can then evaluate
in
. There are now 3 possibilities:
; we have found the root, but this is "infinitely unlikely" to occur
; we know the root lies in the interval
; we know the root lies in the interval
So if
isn't the real root, we can at least update our interval and get a smaller
one, that still contains the root. If we repeat this often enough, we can make
the interval
smaller and smaller, and we hope that in this way, we can get
a sufficient accurate approximation to the root.
Now, how do we determine
? The simplest solution is to take
to be the middle
of the interval
. We then effectually cut the interval in half at each iteration.
So we call this method the Bisection Method.
Enough theory; time for some practice. When you scroll a little down, you will find
an applet with which you can see the process in action. Click on Leontine, and
see what happens. Then, try other functions, and see how it works, but make
sure that your function has different signs in the start and ending point
of your interval!
If you are using the Numerical Toolbench for the
first time, here are some hints for using these applets:
- You can center the graph at the position of the mouse cursor by
clicking the mouse while holding the SHIFT-button down.
- When you want to try a different starting interval, you can drag the
triangular markers with the mouse to the new starting points.
- You can start again by pressing Clear.
- When you are "lost" somewhere in the graph, you can press
Home to get back at your starting point.
- A table of the generated numbers is shown on the Java Console.
Next: 3. Regula Falsi
Up: Root finders for equations
Previous: 1. Introduction
Stephan Houben
2000-03-18