False Position Method
False Position Method
Numerical Methods
Then we have,
x0 = x1- (f(x1) (x2-x1) ) / (f (x2) – f (x1))
This equation is known as the false position formula.
False Position Method
■ False Position Algorithm
1.Decide initial values for x1 and x2 and stopping criterion
E.
2.Compute x0 = x1- (f(x1) (x2-x1) ) / (f (x2) – f (x1))
3.If f (x0) * f (x1) < 0 set x2 = x0 otherwise set x1 = x0
4.If the absolute difference of two successive x0 is less
then E, then root = x0 and stop.
5.Else go to step 2.
False Position Method
■ Example: Use the false position method to find a root of the function f (x) = x2 – x – 2 = 0
in the range 1 < x < 3.
Solution: Given x1= 1 and x2 = 3
f (x1) = f (1) = -2 f (x2) = f (3) = 4
x0 = x1- (f(x1) (x2-x1) ) / (f (x2) – f (x1))
= 1 + 2 * (3 - 1) / (4 + 2)
= 1.6667
Iteration 2: f (x0) * f (x1) = f (1.6667) * f (1) =1.7778
Therefore, the root lies in the interval between x0 and x2. Then,
x1 = x0 = 1.6667
f (x1) = f (1.6667) = -0.8889
f (x2) = f (3) = 4
x0 = 1.6667 + 0.8889 * (3 – 1.6667) / (4 + 0.8889) = 1.909
Iteration 3: f (x0) * f (x1) = f (1.909) * f (1.6667) = 0.2345
Therefore, the root lies in the interval between x0 = 1.909 and x2 = 3. Then,
x1 = x0 = 1.909
x0 = 1.909 - 0.2647 * (3 – 1.909) / (4 - 0.2647) = 1.986
The estimated root after third iteration is 1.986. The interval contains a root x = 2. We can
End