Docsity

Bisection Method for Finding roots, Summaries of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
Root-Finding Simplified: The Procedural Framework for the Bisection Method
1. Conceptual Foundation: What is Bisection?
The Bisection Method is a robust "bracketing method" designed to locate the roots of a continuous
function. In computational mathematics, we often face a trade-off between the simplicity of a "brute-
force" incremental search and the efficiency of more complex algorithms. While incremental searches
step through values at fixed intervals—frequently missing roots if the step size is poorly chosen—
bisection provides a systematic, reliable alternative by repeatedly halving the search space.
Definition: The Bisection Method is an iterative algorithm that identifies a root by repeatedly dividing
an interval in half and isolating the subinterval where a sign change occurs.
Core Characteristics:
• Halving: The method systematically reduces the interval width by 50% with each iteration,
ensuring a steady approach toward the root.
• Sign-Change Detection: It leverages Bolzano’s Theorem: if a continuous function f(x) changes
sign over an interval [xl, xu], at least one root must exist within that interval.
• Iteration: The process is repeated until the interval is sufficiently small to meet the required
precision.
While the method is mathematically "certain" to converge, its success depends entirely on the quality
of the initial setup.
--------------------------------------------------------------------------------
2. The Pre-Flight Check: Initial Guesses and Bracketing
Before initiating the algorithm, the practitioner must establish a valid bracket. This requires selecting
two values, xl (lower bound) and xu (upper bound), that encapsulate the root.
Requirement Checklist:
• [ ] Continuity: The function f(x) must be continuous over the interval [xl, xu].
• [ ] Sign Change: The product of the function values at the bounds must be negative, signifying
they lie on opposite sides of the x-axis: f(xl) \times f(xu) < 0.
Instructor’s Tip: Use "Domain Insight" to narrow your search. Plotting the function or analyzing the
physical constraints of the problem (such as the mass and drag of a bungee jumper) can prevent overly
conservative guesses and save computational time.
Once these mathematical requirements are satisfied, the iterative process of narrowing the interval
begins.
--------------------------------------------------------------------------------
3. Step-by-Step Iterative Logic
The bisection algorithm follows a repeatable, three-step logic to refine the root estimate (xr):
1. Calculate the Midpoint: Generate the current estimate of the root using the formula: xr = (xl +
xu)/2
pf3

Partial preview of the text

Download Bisection Method for Finding roots and more Summaries Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Root-Finding Simplified: The Procedural Framework for the Bisection Method

1. Conceptual Foundation: What is Bisection?

The Bisection Method is a robust "bracketing method" designed to locate the roots of a continuous function. In computational mathematics, we often face a trade-off between the simplicity of a "brute- force" incremental search and the efficiency of more complex algorithms. While incremental searches step through values at fixed intervals—frequently missing roots if the step size is poorly chosen— bisection provides a systematic, reliable alternative by repeatedly halving the search space.

Definition: The Bisection Method is an iterative algorithm that identifies a root by repeatedly dividing an interval in half and isolating the subinterval where a sign change occurs.

Core Characteristics:

  • Halving: The method systematically reduces the interval width by 50% with each iteration, ensuring a steady approach toward the root.
  • Sign-Change Detection: It leverages Bolzano’s Theorem: if a continuous function f(x) changes sign over an interval [xl, xu], at least one root must exist within that interval.
  • Iteration: The process is repeated until the interval is sufficiently small to meet the required precision.

While the method is mathematically "certain" to converge, its success depends entirely on the quality of the initial setup.

2. The Pre-Flight Check: Initial Guesses and Bracketing

Before initiating the algorithm, the practitioner must establish a valid bracket. This requires selecting two values, xl (lower bound) and xu (upper bound), that encapsulate the root.

Requirement Checklist:

  • [ ] Continuity: The function f(x) must be continuous over the interval [xl, xu].
  • [ ] Sign Change: The product of the function values at the bounds must be negative, signifying they lie on opposite sides of the x-axis: f(xl) \times f(xu) < 0.

Instructor’s Tip: Use "Domain Insight" to narrow your search. Plotting the function or analyzing the physical constraints of the problem (such as the mass and drag of a bungee jumper) can prevent overly conservative guesses and save computational time.

Once these mathematical requirements are satisfied, the iterative process of narrowing the interval begins.

3. Step-by-Step Iterative Logic

The bisection algorithm follows a repeatable, three-step logic to refine the root estimate (xr):

  1. Calculate the Midpoint: Generate the current estimate of the root using the formula: xr = (xl + xu)/
  1. Evaluate the Sign Change: Determine the location of the root by computing the product of the function at the lower bound and the midpoint. In programming, we define this as: test = f(xl) * f(xr).
  2. Redefine the Subinterval: o If test < 0: The root lies in the lower subinterval. Set the new upper bound xu = xr. o If test > 0: The root lies in the upper subinterval. Set the new lower bound xl = xr. o If test = 0: The midpoint xr is the exact root; terminate the search.

This repetitive narrowing ensures the root is "trapped," but the practitioner must establish a definitive engine for these decisions.

4. The Decision Engine: Sign-Change Logic Table

In computational environments like MATLAB, the algorithm relies on a test variable to automate the interval updates. This logic ensures the "bracket" always maintains a sign change.

Condition (test) Interpretation Action

f(xl) * f(xr) < 0 Root lies in the lower subinterval. Set xu = xr

f(xl) * f(xr) > 0 Root lies in the upper subinterval. Set xl = xr

f(xl) * f(xr) = 0 The midpoint is the root. Terminate search.

This systematic reduction continues until the estimate reaches a specified level of precision, requiring a rigorous way to measure success.

5. Measuring Success: Error Analysis and Stopping Criteria

In practical engineering where the true root is unknown, we cannot rely on true error. Instead, we use the Approximate Percent Relative Error (|εa|) to decide when to stop the iterations.

Approximate Percent Relative Error Formula: |𝜀𝜀𝑎𝑎| = � 𝑥𝑥𝑟𝑟^ 𝑛𝑛𝑛𝑛𝑛𝑛−𝑥𝑥 𝑥𝑥𝑟𝑟 𝑛𝑛𝑛𝑛𝑛𝑛𝑟𝑟^ 𝑜𝑜𝑜𝑜𝑑𝑑 � 𝑥𝑥100%

The "Attractive Characteristic" of Bisection Error: A primary advantage of bisection is that |εa| serves as a rigorous upper bound for the true relative error (|εt|). Specifically, because the root is guaranteed to be trapped within an interval \Delta x, the maximum possible distance between the estimate xr and the true root is exactly half the interval width (\Delta x/2). Consequently, when |εa| falls below your stopping criterion (εs), you can be confident that the estimate is at least as accurate as required.

While |εa| provides a reactive measure of success during execution, the bisection method's unique structure also allows for a proactive determination of computational cost.

6. The "A Priori" Calculation: Predicting Effort