Home  18.013A  Chapter 13 
Â Â Â Â 
ToolsÂ Â Â Â GlossaryÂ Â Â Â IndexÂ Â Â Â UpÂ Â Â Â PreviousÂ Â Â Â Next 

Suppose we have an equation of the form f(x) = 0, where f is some, perhaps ugly standard differentiable function on some interval. For example, f(x) might be sin(x)  0.2, or exp (sin(x)) – csc(x), or anything else you might want to investigate.
We address the question: how can we find a solution, that is, a value of x for which the statement f(x ) = 0 is true, to within the accuracy of our computations?
We will explore four methods, which we describe here in one sentence each; we then examine them in further detail one at a time.
The first, which is called Newton's method, or the NewtonRaphson method, involves guessing an answer, x_{0}, then assuming that that answer is incorrect, solving the equation that the linear approximation to f at x_{0} is 0. This is a linear equation whose solution is easy. If we name the solution point to it x_{1}, we can repeat this step, that is, solve the equation that states that the linear approximation to f at x_{1} is 0, to find x_{2}, and so on.
We also consider a slightly different method which we will call "Poor Man's Newton" in which instead of evaluating the derivatives needed to form the linear approximation by formal differentiation, we approximate them numerically. Its only virtue is that you need not differentiate f in order to apply it.
The third method involves guessing two points x_{1} and x_{2}, finding f(x_{1}) and f(x_{2}) and creating a new guess at the point where the straight line through these crosses the x axis.
The final method, sometimes called "divide and conquer" involves starting with two points x_{1} and x_{2}, at which f takes on values having opposite signs. Then we can evaluate f half way between them and find an interval half the size of x_{2}  x_{1} in which again f takes on values having opposite signs. Repeating this step will home in on a solution, so long as f is continuous, that is, has no gaps.
Not all equations have solutions so all of these methods must fail for some equations. The first three can produce sequences of guesses, x_{1}, x_{2}, ... which flail about and do not converge.
It may be impossible to get started in the last method, since you may not be able to find x_{1} and x_{2} at which f has opposite signs. It is a slow and steady method, like the tortoise's racing plan, but it must win once started and improves its accuracy by a factor of two on each iteration.
