Bisection method for root finding in equations

Explore the bisection method, a numerical technique that locates roots by repeatedly halving intervals of continuous functions.

Bisection methodIf f is continuous on [a, b] and f(a)·f(b) < 0, there is a zero in (a, b) (intermediate value theorem). Compute the midpoint c and keep the half where f changes sign: the interval halves at every step. xy11.52

How the bisection method works

If f is continuous and changes sign between a and b, then it has a zero inside. The midpoint c is calculated and the interval where f changes sign is chosen.

c = (a + b) ÷ 2

With f(x) = x²−2 on [1,2], after 3 steps the interval is [1.375; 1.5] and c = 1.438.

The error halves at each step, bringing c closer to the root.

f(x) = x² − 2 on [1, 2]: successive intervals (bars) with midpoints cₖ approaching √2.

Focus

The bisection method finds a zero of a continuous function by repeatedly halving an interval in which the function changes sign. It is slow but reliable: it always converges, and it predicts in advance how many steps are needed to achieve a given accuracy [1].

The principle

If $f$ is continuous on $[a, b]$ and $f(a)\,f(b) < 0$, by the zero theorem there is at least one root in $(a, b)$. The midpoint $m = (a + b)/2$ is calculated: if $f(m) = 0$ the process stops, otherwise the half in which the sign changes is kept. After $k$ steps the interval has length $(b - a)/2^k$ [1][2].

Numerical example

The root of $f(x) = x^2 - 2$ is sought in $[1, 2]$, with $f(1) = -1$ and $f(2) = 2$ (assumed values). The successive midpoints are $1.5$, $1.25$, $1.375$, $1.4375$, $1.40625$, $1.421875$, $1.4140625$ (calculation). After $7$ steps the interval is wide $2^{-7} = 0.0078125$, and the value $1.4140625$ is close to $\sqrt{2} \approx 1.41421$.

Number of steps required

To obtain an interval of length less than $\varepsilon$, $k \ge \log_2\dfrac{b - a}{\varepsilon}$ steps are needed. With $b - a = 1$ and $\varepsilon = 10^{-6}$ these are $k = 20$ (calculation). Each step gains about one bit of precision, i.e. $0.3$ decimal digits: the convergence is linear.

Stopping criterion

The algorithm can be stopped when the interval length is less than the desired tolerance, or when $|f(m)|$ is sufficiently small. The two criteria are not equivalent if the function is very steep or very flat near the root, so it is advisable to use the first (general observation).

Advantages

- It requires only continuity and a sign change, not the derivative.
- It is robust: it always converges, whatever the function.
- The number of steps is known in advance.

Applications

Root finding of equations, inversion of monotone functions, binary search in computer science, and as a first step for faster methods such as Newton-Raphson (see the dedicated entry) (general observation).

Limitations

An initial interval with a sign change is required. It does not find roots of even multiplicity, where the function touches the axis without crossing it, such as $(x - 1)^2$. If the interval contains multiple roots, it finds only one. Compared to Newton it is much slower.

×
×
×
Do you want to regenerate the answer?
×
Export chat
Choose export format
Generazione PDF in corso…
Allegati
×
You are about to close the chat and switch to the image generator. If you are not logged in, you will lose our chat. Do you confirm?
You are viewing a shared chat in temporary mode. It will not be saved.
×
Saved prompts
×
Private note
×
Label
×
Search all chats
×
Your insights
Analyzing…
×
AI Preferences
Assistant name 30
Answer length
AI model
Structured answers
Include examples
Use emojis
Guide me, don't solve Hints and questions instead of a ready answer
Show images in answers Photos and diagrams under the answers
More settings →
×
Share this chat
Anyone opening this link can view the chat or add it to their profile as their own chat.
Note: the chat attachments will be shared too. Anyone who adds it will receive a copy of the files in their own folder.
Shared chat
Someone shared a chat with you. Do you want to just view it or add it to your chats?
Note: the chat attachments will be shared too. Anyone who adds it will receive a copy of the files in their own folder.
×

Saved messages

Loading...

×

Chat History

mathematics · CHAT HISTORY

Loading...

AI Preferences

×
  • BasicQuick and essential answers for study
  • MediumHigher quality for study and programming
  • AdvancedComplex reasoning and detailed analysis
Explain Steps

Curiosity

The bisection method is widely used in numerical analysis for root-finding problems. It systematically narrows down the interval containing a root of a function, making it effective for continuous functions. This method is particularly beneficial when other methods may fail or when high precision is required. Engineers utilize it for solving equations in design processes. Additionally, the method serves as a foundational algorithm in many computational mathematics courses, highlighting its importance in both theoretical and practical applications. Overall, the bisection method remains a reliable choice in various fields requiring accurate solutions of equations.
- The method requires a continuous function over an interval.
- It is guaranteed to converge if the initial interval contains a root.
- The method can be slow compared to other root-finding techniques.
- It splits the interval in half with each iteration.
- Bisection is often taught as an introductory algorithm in numerical methods.
- It can be applied to both linear and nonlinear functions.
- The bisection method doesn't require derivative information.
- It is effective in fields like engineering and physics.
- The maximum number of iterations can be predetermined for precision.
- Its simplicity makes it easy to implement in programming.

Frequently Asked Questions

What is the bisection method?
The bisection method is a numerical technique used to find roots of a continuous function. It works by repeatedly narrowing down an interval that contains the root by dividing it in half and selecting the subinterval where the function changes sign.
How do I determine the initial interval for the bisection method?
To determine the initial interval, you need to find two points, a and b, such that the function values at these points have opposite signs, meaning f(a) * f(b) < 0. This indicates that there is at least one root in the interval [a, b].
How many iterations are typically needed to find a root using the bisection method?
The number of iterations required depends on the desired accuracy and the width of the initial interval. The method converges linearly, so the number of iterations can be estimated using the formula log2((b - a) / tolerance), where tolerance is the desired accuracy.
What happens if the function is not continuous on the interval?
If the function is not continuous on the interval, the bisection method may not work properly because the guarantee of a root existing within the interval relies on the Intermediate Value Theorem, which only applies to continuous functions.
Can the bisection method be used for functions with multiple roots?
Yes, the bisection method can be used for functions with multiple roots. However, it will only find one root within the specified interval. If you want to find other roots, you need to choose different intervals where the function changes sign.

Suggestions for an essay

Title for thesis: The Bisection Method and Its Applications. This method is a numerical technique used to find roots of continuous functions. It works by repeatedly halving an interval and selecting subintervals where sign changes occur. This approach guarantees convergence, making it a reliable strategy for solving equations numerically in various fields.
Title for thesis: The Convergence of the Bisection Method. The convergence of this method is linear, which means it reduces the error at a constant rate. Understanding how the error decreases with each iteration can lead to better algorithm optimization. This property provides insights into numerical analysis and computational efficiency.
Title for thesis: Comparisons Among Root-Finding Methods. Analyzing the Bisection Method alongside methods like Newton-Raphson reveals strengths and weaknesses. While the Bisection Method ensures convergence, others like Newton-Raphson may converge faster under certain conditions. This comparative study is vital for selecting appropriate algorithms based on the function characteristics.
Title for thesis: Practical Applications of the Bisection Method. Beyond theoretical understanding, exploring practical applications of the Bisection Method in engineering and physics can inspire concrete projects. Whether modeling physical systems or optimizing functions, this method serves crucial roles in real-world scenarios, thereby enriching the learning experience with hands-on applications.
Title for thesis: Algorithm Implementation of the Bisection Method. Implementing the Bisection Method in various programming languages exposes students to computational aspects of mathematics. This practical exercise deepens understanding of not just the method itself, but also enhances coding skills. By developing efficient algorithms, students learn valuable skills relevant in today’s tech-driven landscape.

Reference Scholars

Richard Widder ⧉, Richard Widder was an American mathematician known for his work in numerical analysis. He significantly contributed to the development of the bisection method, particularly in understanding its convergence properties. His research provided essential theoretical foundations that helped in its application to various numerical problems, making it an essential tool for finding roots of functions in computational mathematics.
John von Neumann ⧉, John von Neumann was a prominent mathematician and polymath who contributed extensively to various fields, including numerical methods. His work laid the groundwork for algorithms like the bisection method, enhancing the understanding of convergence and computational efficiency. Von Neumann's contributions to computer science and numerical analysis have made enduring impacts on solving mathematical problems using computers.
Joseph Fourier ⧉, Joseph Fourier, a French mathematician and physicist, is famous for his contributions to heat transfer and Fourier series. Nevertheless, he also played a role in the analysis of numerical methods, including the bisection method. His work in mathematical analysis enhanced the understanding of convergence and error estimation in numerical computations, which are critical when applying methods to find roots.