Roots of Nonlinear Eq Part2
Roots of Nonlinear Eq Part2
PREPARED BY:
ENGR. RICHMONILYN A. SALVADOR, MSCE
Numerical Algorithm To find the
approximate solutions (roots) for non-linear
equations,
Bisection method
Newton-Raphson method (Newton’s method)
False Position Method (Regula Falsi method)
The Secant Method
I. Bisection method
Steps for Bisection Method:
Steps for Bisection Method:
ALGORITHM
x2=(1.25+1.50)/2=1.375 f(x3)=f(1.3125)=-0.05151<0
f(x2)=f(1.375)=0.22461>0
Example:
Find a root of an equation, f(x)=x3-x-1
5th iteration : 6th iteration :
f(1.3125)=-0.05151<0 and f(1.3125)=-0.05151<0 and
f(1.375)=0.22461>0 f(1.34375)=0.08261>0
x4=(1.3125+1.375)/2=1.34375 x5=(1.3125+1.34375)/2=1.32812
f(x4)=f(1.34375)=0.08261>0 f(x5)=f(1.32812)=0.01458>0
Example:
Find a root of an equation, f(x)=x3-x-1
7th iteration : 8th iteration :
f(1.3125)=-0.05151<0 and f(1.32031)=-0.01871<0 and
f(1.32812)=0.01458>0 f(1.32812)=0.01458>0
x6=(1.3125+1.32812)/2=1.32031 x7=(1.32031+1.32812)/2=1.32422
f(x6)=f(1.32031)=-0.01871<0 f(x7)=f(1.32422)=-0.00213<0
Example:
Find a root of an equation, f(x)=x3-x-1
9th iteration : 10th iteration :
f(1.32422)=-0.00213<0 and f(1.32422)=-0.00213<0 and
f(1.32812)=0.01458>0 f(1.32617)=0.00621>0
x10=(1.32422+1.3252)/2=1.32471
f(x10)=f(1.32471)=-0.00005<0
Example:
Find a root of an equation, f(x)=x3-x-1
Approximate root of the equation x3-x-1=0 using Bisection method is 1.32471
II. Newton-Raphson method
(Newton’s method)
II. Newton-Raphson method
1. Find the approximate roots, assuming x is any roots; 0,1,2…
2. Try several iterations until you find the approx. roots (lets say up to 11th iterations)
3. Tabulate all given and solved data.
(SOLVED MANUALLY & USING NUMERICAL ALGORITHM)
1 x0=x1
2 so on….
5
III. False Position Method(Regula Falsi method)
III. False Position Method(Regula Falsi method)
1. Find the approximate roots, assuming x is any roots; 0,1,2…
2. Try several iterations until you find the approx. roots (lets say up to 11th iterations)
3. Tabulate all given and solved data.
(SOLVED MANUALLY & USING NUMERICAL ALGORITHM)
1 x0=x2
2 so on….
5
IV. The Secant Method
IV. The Secant Method
1. Find the approximate roots, assuming x is any roots; 0,1,2…
2. Try several iterations until you find the approx. roots (lets say up to 11th iterations)
3. Tabulate all given and solved data.
(SOLVED MANUALLY & USING NUMERICAL ALGORITHM)
x0=x1
1
x1=x2
2 so on….
5
END