This applet investigates the Newton-Raphson method for approximating roots of equations
Instructions below    A larger version of this applet

[Applet - the Newton-Raphson method]

The function whose graph is drawn is a cubic of the form:
y = Ax3 + Bx2 + Cx + D, and you can vary this function by dragging the A, B, C and D sliders at the bottom.
The Newton-Raphson Method involves the iterative formula:

    xn + 1 = xn - f(xn)/f '(xn)

which is used to try to solve the equation f(x) = 0.
The starting value for the iteration is represented by the light blue circle drawn on the x-axis. This circle can be dragged left and right with the mouse, to see how the iteration depends on the starting value.

You can also vary the number of iterations performed. The slider at the top right changes the number of iterations rapidly, but you can use the "Iter+" and "Iter-" buttons at the very top to change the number of iterations one at a time.
The program enables you to investigate how this iteration converges to a solution to the equation (if it does!), which solution is found (if any), and how quickly or slowly the convergence happens.
Play around - there are some fascinating patterns to observe!

Java and the Java Coffee Cup Logo are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
All pages and content are Copyright © R F Barrow, 2001 - 2012. All rights reserved.