Newton-Raphson Method

 
 

We will describe here a method for locating a root of an equation f(x) = 0.  This method is called the

Newton-Raphson Method.  Assume that the solution exists and is denoted c.  Start at a point x1 .  The tangent

line  (x1,f(x1 )) intersects the x-axis at a point x2 ,  which is closer to  c  than x1 .  Determine a new point x3 :  the

intersection of the line  (x2 , f(x2)) and the x-axis.  Continuing, we obtain better and better approximations x4, x5,

. . . , xn   to the root   c.  Hence
 
 
 
f ' (x[n-1]) =  -f(x[n-1]) / (x[n]x[n-1]) 
 
 
Or,
 
 
x[n] =  x[n-1]   - f (x[n-1]) /  f ' (x[n] ) 
 
 
Application #1:   Let f(x) = x^2 - 24.  Use the Newton-Raphson Method  estimate a root of the equation f(x) = 0 

starting at x1 = 5.  Find x4  and evaluate  f(x4 ).
 

(Step by Step Solution -- ) :
 

  1.   define(F(x), x^2 -24);     returns RESULT
  2.  define(F1(x), diff(F(x),x));     returns RESULT
  3.  define(F2(x), diff(F1(x),x));     returns RESULT
  4.  kill(x); x[1] : 5;     returns RESULT
  5.  x[2] : x[1] - F(x[1]) / F1(x[1]);     returns RESULT
  6.  x[n] := x[n-1] - F(x[n-1])/F1(x[n-1]);     returns RESULT
  7.  x[4];     returns  RESULT
  8.   Check the approximation by computing F(x[4]);     returns  RESULT
 
 
Exercises:  Salas & Hilles (3.9 #30, #33)



 
 Application(NR) #2   Differentials   Main