You are on page 1of 17

Name: Abdul Basit Tanveer

Id: 9398
Section: D
e at
2
Q 2) Find the root of x  3  0 by using Bisection method? Show your
3

iterations in tabular form.


f ( x)  x 3  2 x  5
.
x3  x  1  0
In mathematics, the regula falsi, method of false position, or false position
method is a very old method for solving an equation with one unknown,
that, in modified form, is still in use. In simple terms, the method is the trial
and error technique of using test ("false") values for the variable and then
adjusting the test value according to the outcome. This is sometimes also
referred to as "guess and check". Versions of the method predate the
advent of algebra and the use of equations.

Example
Find the root between (2,3) of x3+ - 2x - 5 = 0, by using regular falsi
method.
Given
f(x) = x3 - 2 x - 5
f(2) = 23 - 2 (2) - 5 = -1 (negative)
f(3) = 33 - 2 (3) - 5 = 16 (positive)

Let us take a= 2 and b= 3.


The first approximation to root is x1 and is given by
x1 = (a f(a) - b f(b))/(f(b)-f(a))
=(2 f(3)- 3 f(2))/(f(3) - f(2))
=(2 x 16 - 3 (-1))/ (16- (-1))
= (32 + 3)/(16+1) =35/17
= 2.058

Now f(2.058) = 2.0583 - 2 x 2.058 - 5


= 8.716 - 4.116 - 5
= - 0.4
The root lies between 2.058 and 3

Taking a = 2.058 and b = 3. we have the second approximation to


the root given by
x2 = (a f(a) - b f(b))/(f(b)-f(a))
= (2.058 x f(3) - 3 x f(2.058)) /(f(3) - f(2.058))
= (2.058 x 16 -3 x -0.4) / (16 - (-0.4))
= 2.081

Now f(2.081) = 2.0812 - 2 x 2.081 - 5


= -0.15
The root lies between 2.081 and 3
Take a = 2.081 and b = 3
The third approximation to the root is given by
x3 = (a f(a) - b f(b))/(f(b)-f(a))
= (2.089 X 16 - 3 x (-0.062))/ (16 - (-0.062))
= 2.093
The root is 2.09

You might also like