## Newton-Raphson method.

Newton Raphson’s method is another method for root finding. The Newton-Raphson expression of root-finding utilizes the linear approximation which we have discussed.

### Newton-Raphson method video.

The video includes the steps we use to come closer to the root point, for a function, as we can see. where the function value=0 or close to zero, by starting with an initial point say x_{0}, coming up to get the f(x_{0}) value, then creating a slope at the curve, then hitting the x-axis at another point say x_{1}.

Check the f(x1), if it is zero then this is the root point, else, take a vertical line and hit the curve, then create a new slope line, get another point say x_{2,} and so on till you find a point that is the root point.

Two solved examples are introduced. The video has a closed caption in English.

**You can watch the video from start till time 7.30 for the content of this post.**

From the next slide image. L(x_{b})=f(x_{a})+f'(x_{a})*(x_{b}-x_{a}) as a is the starting point and the x_{b} is the ending point Now if we consider that L(x_{b}) approximately equals (x_{b}) and create a little modification can be done on the previous equation by letting (x_{b}-x_{a}) on the left side, and then rewrite the equation.

We could say x final=x intial+(1/ slope at the ix initial)+(1/ slope at x intial)*(f(x fina)l- f(x initial).

If we are looking for x_{b} where the root =0, or saying f(x_{b})=0.

The formula will be xb=xa+(1/f'(xa)*(0-f(xa)=xa-(1/f'(xa)*(f(xa).

The formula can be used to get the distance x for the root point b for which we are looking.

This will create another form of the equation as (x_{b}-x_{a})=(1/f'(x_{a}))*(f(x_{b})-f(x_{a}). The next step is to find the value of x_{b} which is=x_{a}+(1/f'(x_{a}))*(f(x_{b})-f(x_{a}).

Suppose we have a curve and that curve we are looking for the root of that curve at a certain point. We want to find what is the x value of that root point. So we are saying that if we have x_{1} point, we go up and then we make a tangent at the curve at that point.

So we get another point which we call x_{ 2} and we get a relation between x_{2} the new point and the old point. This relation will be x_{2}=x_{1}– f(x1) /f'(x1) as shown in the next slide image to continue this process till a point where we have f(x) close to or =0. This is the Newton-Raphson method.

### Solved problem using the Newton-Raphson method.

First, the equation of Newton-Raphson is written. followed by a solved example #4 Example number 4. Use the Newton method to find the roots of the √29.

The solution will be made through the next steps.

We put x= √ 29 or it could be expressed at X^2= to 29 then let X^2-29 =0.

1-We readjust the formula a for the function and we equate it to 0.

2-We put x_{0}=5 as starting point after that get f(5) = 5^2-29=-4.

The negative sign will change the relationship as we will see later.

3-Estimate the f'(x_{0}=5) =(2*x_{0})-0=2*5.0=10.00.

4- Estimate X_{1} value by using the Newton-Raphson method, X1=5-(-4/10.00)=5.40.

5-This is for the first iteration. We started from X_{0} we get X_{1} then again we are substituting by this new value which we are getting which is = 5.40. For the second iteration.

6- We put x_{1}=5.40 as obtained from the previous iteration, f(5.40) = (5.40)^2-29=+0.16.

7-Estimate the f'(x_{1}=5.40) =(2*x_{1})-0=2*5.40=10.80.

8- Estimate X_{2} value by using the Newton-Raphson method, X_{2}=5.40-(+0.16/10.80)=5.3852.

9-x_{2}=5.3852, check (5.385)^2-29=-0.001775 not zero, so proceed to get the next point x_{3}.

For the third iteration.

10- We put x_{2}=5.3852 as obtained from the previous iteration, f(5.3852) = (5.3852)^2-29=–0.00022

11-Estimate the f'(x_{1}=5.3852) =(2*x_{2})-0=2*5.3852=10.7703.

12- Estimate X_{3} value by using the Newton-Raphson method, X_{2}=5.3852-(-0.00022/10.7703)=5.38516.

13-x_{3}=5.38516, check (5.38516)^2-29=4.2E-10 close to zero.

This is the excel sheet showing the iterations and the different f(x) values and the first derivative values.

This is the pdf file used for the illustration of this post and the next post.

The next post is about the solved problems for the Newton-Raphson method.

This is a useful link for a numerical analysis calculator.