Presentation on the bisection method.pptx

ankishmeet0608 22 views 35 slides Aug 30, 2024
Slide 1
Slide 1 of 35
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35

About This Presentation

This presentation for bisection method for solving polynomial equation in different fields as mathematics, physics, engineering etc.


Slide Content

Bisection Method By : Ankit Choudhary Ankush Rathore Anuj Yadav

The B isection M ethod in mathematics is a root finding method which repeatedly bisects an interval and then selects a subinterval in which a root must lie for further processing. INTRODUCTION

It is a very simple method , but it is also relatively slow . Because of this, it is often used to obtain a rough approximation to a solution which is then used as a starting point for more rapidly converging methods . Bisection method is also called Interval halving method

G r aphical Representation

Procedure of Bisection Method Step 1: Choose two approximations a and b such that, f(a)*f(b)<0 Step 2: Evaluate the midpoint c of [ a,b ] given by, c=( a+b )/2

Step 3 : If f(c)*f(b)<0 then rename b & c as a & b. If not rename of c as b, Then apply the formula of Step 2. Step 4: Stop evolution when the different of two successive values of c obtained from Step 2 is numerically less than e, the prescribed accuracy

If the function f (x) changes sign between the two points, more than one root for the equation f (x) = may exist between the two points.

If the function f (x) does not change sign between two points, there may not be any roots for the equation f (x) = between the two points.

If the function f (x) does not change sign between the two points, roots of the equation f (x) = may still exist between the two points.

FLOWCHART

Start Input : a, b f(a)*f(b) < Try with another values of a, b f(a)* f( x ) < b = x a = x | f( x )| < tolr Yes x =( a+b)/2 Yes Yes Output : root = x Stop No No No

PROGRAM CODE AND OUTPUT

input the values of a and b such that f(a) and f(b) have opposite values 1 the Root of Function f(x)= 0.567143440 the Root of Function f(x)= 0.567142963 the Root of Function f(x)= 0.567143202 the Root of Function f(x)= 0.567143321 the Root of Function f(x)= 0.567143261 the Root of Function f(x)= 0.567143321 the Root of Function f(x)= 0.567143321 the Root of Function f(x)= 0.567143321 the Root of Function f(x)= 0.567143321 the Root of Function f(x)= 0.567143321 the Root of Function f(x)= 0.567143321

input the values of a and b such that f(a) and f(b) have opposite values 1 the Root of Function f(x)= 0.656620502 the Root of Function f(x)= 0.656620264 the Root of Function f(x)= 0.656620383 the Root of Function f(x)= 0.656620324 the Root of Function f(x)= 0.656620383 the Root of Function f(x)= 0.656620383 the Root of Function f(x)= 0.656620383 the Root of Function f(x)= 0.656620383 the Root of Function f(x)= 0.656620383 the Root of Function f(x)= 0.656620383

input the values of a and b such that f(a) and f(b) have opposite values 1 2 the Root of Function f(x)= 1.83424330 the Root of Function f(x)= 1.83424306 the Root of Function f(x)= 1.83424318 the Root of Function f(x)= 1.83424306 the Root of Function f(x)= 1.83424306 the Root of Function f(x)= 1.83424306 the Root of Function f(x)= 1.83424306 the Root of Function f(x)= 1.83424306 the Root of Function f(x)= 1.83424306 the Root of Function f(x)= 1.83424306

input the values of a and b such that f(a) and f(b) have opposite values -2 -3 the Root of Function f(x)= -2.49086356

ANALYTICAL SOLUTION OF ROOT S

(a) To find roots of equation with the help of calculator using bisection method

x * exp (x)-1=0 Let f(x )=x* exp (x)-1 f(0)=0-1=-1 f(1 ) = 1.e-1=1.7182 So, the root lies in [0,1] a = 0, b = 1 first iteration x1 = (0 + 1)/2 = 0.5 f(x1)=f(0.5) = (0 . 5) exp (0.5)-1= -0.175639 Here f(x1)*f(b)< 0 f(0.5)*f(1 )< So , x1 = a = 0.5 New interval [ 0.5,1]

Second iteration x2 = (0.5+1)/2 = 0.75 f(x2)=f(0.75) = 0.5877 Here f(x2)*f(a)< 0 So, x2 = b = 0.75 New interval [ 0.5, 0.75]

Similarly, x3=0.625 [ 0.5 , 0.625 ] x4=0.5625 [ 0.5625, 0.625] ……………………………………… …………………………………… ……………………………………… x12=0.56713855 here x12=0.56714 (to five decimal places ) so , the root of equation f(x) is 0.56714

x**3-5*x+3=0 Let f(x ) = x**3- 5x + 3 f (0 )= 0-5(0 )+3= + 3 f(1) = 1 - 5 + 3 = -1 So, the root lies in [ 0,1 ] a = 0, b = 1 first iteration x1 = (0 + 1)/2 = 0.5 f(x1)= f(0.5) = (0 . 5)**3 - 5(0.5 ) + 3 = 0.625 Here f(x1)*f(b)< 0 f(0.5)*f(1 ) < , So, x1 = a = 0.5 New interval [ 0.5,1]

Second iteration x2 = ( 0.5+1 )/2 = 0.75 f(x2)=f(0.75) = ( 0.75)** 3 - 5(0.75 ) + 3 = -0.328125 Here f(x2)*f(a)< f(0.75 )* f a ) < , So, x2 = b = 0.75 New interval [ 0.5, 0.75]

Similarly, x3=0.625 [0,625, 0.75] x4=0.6875 [0.625, 0.6875] ……………………………………… …………………………………… ……………………………………… x20=0.65662075 x21=0.65662025 Here x20 ~ x21 (to six decimal places) So, the root of equation f(x) is 0.656620

(c) GRAPHICAL VERIFICATION OF THE ROOTS

x * exp (x)-1=0

X**3-5*x+3=0

Result The root of the given equation by Fortran programming and by alytical solution is almost same. Equation (1) x**3-5*x+3=0 x=0.656620 Equation (2) x* exp (x)-1=0 x=0.56714

Error Analysis Error % % for, xexp (x)-1=0 Error % =0.000004% for, x**3-5*x+3=0 Error % = 0.00005%  

ADVANTAGES The bisection method is very simple and easy to program on the computer. Does not involve complex calculations. The bisection method guarantees converges to a root in an interval as long as the function is continuous

DISADVANTAGES This method is very slow i.e. we have to do many steps to get the root of desired accuracy (slow to convergence) It fails to determine complex roots. It can not be applied if there are discontinuities in the guess interval .

THANK YOU