UNIT-1
ROOT FINDING
DEPARTMENT OF APPLIED SCIENCES, BVCOE NEW DELHI
1
Computational METHOD
3RD SEMESTER
ES-201
DEPARTMENT OF APPLIED SCIENCES, BVCOE NEW DELHI
2
Lecture Notes
1-D Root Finding
f(x+) > 0
f(x–) < 0
DEPARTMENT OF APPLIED SCIENCES, BVCOE NEW DELHI
3
1-D Root Finding
DEPARTMENT OF APPLIED SCIENCES, BVCOE NEW DELHI
4
What Goes Wrong?
Tangent point:
very difficult�to find
Singularity:
brackets don’t�surround root
Pathological case:
infinite number of�roots – e.g. sin(1/x)
DEPARTMENT OF APPLIED SCIENCES, BVCOE NEW DELHI
5
Example: Press et al., Numerical Recipes in C�Equation (3.0.1), p. 105
2
2 ln((Pi - x) )
f := x -> 3 x + ------------- + 1
4
Pi
> evalf(f(Pi-1e-10));
30.1360472472915692...
> evalf(f(Pi-1e-100));
25.8811536623525653...
> evalf(f(Pi-1e-600));
2.24285595777501258...
> evalf(f(Pi-1e-700));
-2.4848035831404979...
> evalf(f(Pi+1e-700));
-2.4848035831404979...
> evalf(f(Pi+1e-600));
2.24285595777501258...
> evalf(f(Pi+1e-100));
25.8811536623525653...
> evalf(f(Pi+1e-10));
30.1360472510614803...
DEPARTMENT OF APPLIED SCIENCES, BVCOE NEW DELHI
6
Bisection Method
DEPARTMENT OF APPLIED SCIENCES, BVCOE NEW DELHI
7
Bisection
DEPARTMENT OF APPLIED SCIENCES, BVCOE NEW DELHI
8
Faster Root-Finding
DEPARTMENT OF APPLIED SCIENCES, BVCOE NEW DELHI
9
Secant Method
1
2
3
4
DEPARTMENT OF APPLIED SCIENCES, BVCOE NEW DELHI
10
Secant Method
DEPARTMENT OF APPLIED SCIENCES, BVCOE NEW DELHI
11
False Position Method
1
2
3
4
DEPARTMENT OF APPLIED SCIENCES, BVCOE NEW DELHI
12
Other Interpolation Strategies
DEPARTMENT OF APPLIED SCIENCES, BVCOE NEW DELHI
13
Newton-Raphson
1
2
3
4
Slope = derivative at 1
DEPARTMENT OF APPLIED SCIENCES, BVCOE NEW DELHI
14
Newton-Raphson
DEPARTMENT OF APPLIED SCIENCES, BVCOE NEW DELHI
15
Newton-Raphson
DEPARTMENT OF APPLIED SCIENCES, BVCOE NEW DELHI
16
Newton-Raphson Convergence
DEPARTMENT OF APPLIED SCIENCES, BVCOE NEW DELHI
17
Popular Example of Newton: Square Root
DEPARTMENT OF APPLIED SCIENCES, BVCOE NEW DELHI
18
Reciprocal via Newton
DEPARTMENT OF APPLIED SCIENCES, BVCOE NEW DELHI
19
Rootfinding in >1D
DEPARTMENT OF APPLIED SCIENCES, BVCOE NEW DELHI
20
Rootfinding in >1D
DEPARTMENT OF APPLIED SCIENCES, BVCOE NEW DELHI
21
Newton in Higher Dimensions
DEPARTMENT OF APPLIED SCIENCES, BVCOE NEW DELHI
22
Newton in Higher Dimensions
DEPARTMENT OF APPLIED SCIENCES, BVCOE NEW DELHI
23
Newton in Higher Dimensions
DEPARTMENT OF APPLIED SCIENCES, BVCOE NEW DELHI
24