Professional Documents
Culture Documents
A.3 Newton Raphson
A.3 Newton Raphson
A.3 Newton Raphson
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 {
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