next up previous
Next: Bisection Up: No Title Previous: Math library functions

Root Finding

Introduction The objective for the next several classes is to develop tools for finding root(s) of a nonlinear equation. That is, for finding x such that f(x)=0.

Simple algebra gives us the root for a linear equation. For consider the linear equation f(x)=ax+b. If a=0, then the line is horizontal; unless b=0, there are no roots and if b=0, the function is identically zero, and all x's are roots. If tex2html_wrap_inline233 , then setting f(x) = 0 yields

eqnarray91

So, providing tex2html_wrap_inline233 , for any b the root -the only root- is x=-b/a.

Simple algebra also gives us the roots of a quadratic equation tex2html_wrap_inline243 . (This is really a quadratic only if tex2html_wrap_inline233 .) Recall the quadratic formula tex2html_wrap_inline247 Thus if the discriminant tex2html_wrap_inline249 is positive, there are two distinct real roots; if the discriminant is zero, there are two roots, but they are equal; if the discriminant is negative, there are no real roots. But the quadratic formula, useful though it is, does not always give us information in the most useful form. Consider, for example, the quadratic with tex2html_wrap_inline251 ; that is, tex2html_wrap_inline253 . The quadratic formula tells us tex2html_wrap_inline255 . This is the answer, but we do not have a feeling for exactly big tex2html_wrap_inline257 is (without plugging into our calculators). So the programs we will construct need to provide us with quantative information about the root we find.

There is a formula for roots of cubics and quartics. But in the mid-nineteenth century, it was shown that there is no formula for quintics ( tex2html_wrap_inline259 powers). That proof also showed that there is no formula for an infinite number of higher odd powers. And we have said nothing about finding roots of non-polynomial functions.

So there is need for us to figure out good methods for determining roots. We will present three methods for root-finding: bisection, false position, and Newton's method. These methods are iterative. That is, given a guess of a root, or the interval in which the root lies, the method refines that guess several times, obtaining (hopefully) better and better guesses, until we are ``close enough'' to the true root.


next up previous
Next: Bisection Up: No Title Previous: Math library functions

E. Bruce Pitman
Tue Sep 15 18:15:17 EDT 1998