A.3 Newton Raphson

You might also like

You are on page 1of 10

A.

Newton-Raphson Method
Equation Solving
• Given an approximate location (initial
value)
• find a single real root A
Root
Finding non-linear
Single variable

Bracktin
Open
g
Methods
Methods
False-
Iterative
position

Newton- Bisectio
Rapson n

Secant
Method
● We want to solve f(x)=0 near xr
Algorithm
xr+1 ← initial guess value
do {

} while (⎪ xr+1 − xr ⎪> Q)

We can compute the derivative numerically as


follows:
Limitations
1. f′(xr+1)=0, local minima.

2. f′(xr+1)≈0 , occurs when


two roots are very close.

3. xr and xr+1 recurs


Convergence

Second order
convergence
Example
_______________________
x^2-5x+4=0
0 Xr=5.000 Xr+1=4.200
1 Xr=4.200 Xr+1=4.012
2 Xr=4.012 Xr+1=4.000
3 Xr=4.000 Xr+1=4.000
3 Xr=4.000 Xr+1=4.000

_______________________
e^(-x)-x=0
0 Xr=1.000 Xr+1=0.538
1 Xr=0.538 Xr+1=0.567
2 Xr=0.567 Xr+1=0.567
2 Xr=0.567 Xr+1=0.567

_______________________
xsin(x*x)-2cos(x)
0 Xr=1.000 Xr+1=0.538
1 Xr=0.538 Xr+1=0.567
2 Xr=0.567 Xr+1=0.567
2 Xr=0.567 Xr+1=0.567
A.4

Secant Method
Concept
● Newton-Raphson method needs to compute f′(x)
– It may be analytically complicated, or
– Numerical evaluation may be time consuming

• Tangent is replaced with chord ⇒ lower convergence


rate
Algorithm
xr ← initial guess value
xr+1 ← initial guess value
do {

} while (⎪ xr+1 − xr ⎪> Q)

You might also like