Aim of the applet
Interpret geometrically the approximations of a root constructed by means of the algorithm.
Analyze the convergence according to the information of entry.
Input data
Via keyboard:
- Function of x.
- Value of tolerance.
- Value of x0.
Via graph:
- The function can drag for the graph.
- The point x0 can move along the function domain.
- Value of x0.
To perform the algorithm calculations press the button "Calculate result table".
Output data
Graphical representation of the Newton-Rhapson algorithm.
Table with values of each step of algorithm, the final approximation
and final relative error.
Observations
By defining a specific value x0, point on the graph is
fixed and you must press the button "Reset x0" to move this.
This move to zero for default.
A window of error:
- When the function has no roots.
- When the maximum error value is negative.
- When the derivative of f is zero at some point.
First steps
- Approximates a solution x2-4=0 with an error less than 10-9. Change with the mouse the value of x0 to approach the other solution. Is there a trouble point in this search?
- Approximates a solution x3 - x - 1=0. Modify x0 with the mouse to get situations in which the algorithm does not converge.
- Find an interval [a, b], for which f (a) f (b) is less than 0, where f(x)=x2 + 2x - 5 + log(x). If x0 is in this interval, approximates a root of f with a relative error below 10-6. Decrease the error to 10-9, How many steps do you need?