Bisection method-numerical analysis

  • Context: MHB 
  • Thread starter Thread starter evinda
  • Start date Start date
  • Tags Tags
    Analysis
Click For Summary
SUMMARY

The Bisection Method is a numerical analysis technique used to find roots of continuous functions. The termination criteria for this method are defined by two conditions: |xk - xk-1| < ε and |f(xk)| < ε. The first condition ensures that the difference between consecutive approximations is within a specified tolerance, while the second condition verifies that the function value at the approximation is close to zero, indicating a root. The method guarantees that the real root lies between the two approximations, xk-1 and xk.

PREREQUISITES
  • Understanding of the Bisection Method in numerical analysis
  • Familiarity with concepts of convergence and tolerance in iterative methods
  • Basic knowledge of function evaluation and root finding
  • Proficiency in programming for implementing the Bisection Method
NEXT STEPS
  • Implement the Bisection Method in Python using NumPy for function evaluations
  • Explore error analysis techniques for numerical methods
  • Learn about other root-finding algorithms such as Newton's Method and Secant Method
  • Study the implications of convergence criteria in numerical analysis
USEFUL FOR

Students and professionals in mathematics, engineering, and computer science who are involved in numerical analysis and root-finding algorithms. This discussion is particularly beneficial for those implementing the Bisection Method in programming environments.

  • #31
Could you explain it further to me?
Because I found this:
When the interval is [a_{k-1},b_{k-1}]

x_{k-1}=\frac{a_{k-1}+b_{k-1}}{2}

when the interval is [a_{k},b_{k}]

x_{k}=\frac{a_{k-1}+\frac{a_{k-1}+b_{k-1}}{2}}{2}=\frac{3a_{k-1}+b_{k-1}}{4}

So,|x_{k}-x_{k-1}|=|\frac{3a_{k-1}+b_{k-1}}{4}-(\frac{a_{k-1}+b_{k-1}}{2})|=|\frac{a_{k-1}-b_{k-1}}{4}|

But |a_{k}-b_{k}|=|\frac{a_{k-1}-b_{k-1}}{2}|

so they are not equal..what have I done wrong?
 
Physics news on Phys.org
  • #32
evinda said:
Could you explain it further to me?
Because I found this:
When the interval is [a_{k-1},b_{k-1}]

x_{k-1}=\frac{a_{k-1}+b_{k-1}}{2}

when the interval is [a_{k},b_{k}]

x_{k}=\frac{a_{k-1}+\frac{a_{k-1}+b_{k-1}}{2}}{2}=\frac{3a_{k-1}+b_{k-1}}{4}

So,|x_{k}-x_{k-1}|=|\frac{3a_{k-1}+b_{k-1}}{4}-(\frac{a_{k-1}+b_{k-1}}{2})|=|\frac{a_{k-1}-b_{k-1}}{4}|

But |a_{k}-b_{k}|=|\frac{a_{k-1}-b_{k-1}}{2}|

so they are not equal..what have I done wrong?

I see nothing wrong.
That looks entirely correct! ;)

What you have matches with what I wrote:
I like Serena said:
$$| x_k - x_{k-1} | = \frac{b_{k-1} - a_{k-1}}{4} = \frac{b_{k} - a_{k}}{2} = b_{k+1} - a_{k+1}$$
 
  • #33
I like Serena said:
I see nothing wrong.
That looks entirely correct! ;)

What you have matches with what I wrote:
|x_{k}-x_{k-1}|=|\frac{3a_{k-1}+b_{k-1}}{4}-(\frac{a_{k-1}+b_{k-1}}{2})|=|\frac{a_{k-1}-b_{k-1}}{4}|

|a_{k}-b_{k}|=|\frac{a_{k-1}-b_{k-1}}{2}|

How can they be equal?I don't understand :confused::(:confused:
 
  • #34
evinda said:
|x_{k}-x_{k-1}|=|\frac{3a_{k-1}+b_{k-1}}{4}-(\frac{a_{k-1}+b_{k-1}}{2})|=|\frac{a_{k-1}-b_{k-1}}{4}|

|a_{k}-b_{k}|=|\frac{a_{k-1}-b_{k-1}}{2}|

How can they be equal?I don't understand :confused::(:confused:

They are not equal.
|x_{k}-x_{k-1}| is half of |a_{k}-b_{k}|.

If you want equality, pick |a_{k+1}-b_{k+1}|.
 
  • #35
So,if they are not equal,why do we use the termination criteria |a-b|<TOL?I don't get it... :(
 
  • #36
evinda said:
So,if they are not equal,why do we use the termination criteria |a-b|<TOL?I don't get it... :(

We don't.
See your previous post:

evinda said:
Nice.. :o And..something else..I found implementations of the bisection method and there the termination criteria is
Code:
 while(fabs((b-a)/2)>TOL)
.

Why is it like that?? :confused:

See?
 
  • #37
So,is it wrong when I write fabs(b-a)<TOL?
 
  • #38
evinda said:
So,is it wrong when I write fabs(b-a)<TOL?

Depends on the rest of your algorithm.
If you return (a+b)/2, then your result will still be within TOL.
So then it is right!
 
  • #39
Could you give me an example for this condition?
If for example the maximum number of iterations is 15,TOL is 0.001
and the initial interval is [0,2]

what is equal to the first

$\big|x_k-x_{k-1}\big|$ we have to use? :confused: :confused::confused:
 

Similar threads

  • · Replies 15 ·
Replies
15
Views
4K
  • · Replies 1 ·
Replies
1
Views
10K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 16 ·
Replies
16
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K