Functions, rates of change and averages · Formula 6.13

Root by bisection

xm=a+b2,∣xm−x∗∣≤b−a2x_{\mathrm m}=\frac{a+b}{2},\qquad |x_{\mathrm m}-x_*|\leq\frac{b-a}{2}

Your values

Decimal comma or decimal point, without thousands separators. The selected unit applies to the numerical value entered.

Your calculation method

Units · Calculation relationship · Results
From the formula collection

The explanation of the formula

Not every equation can be conveniently solved for the desired quantity. If ff is continuous on the interval [a,b][a,b] and the endpoint values have opposite signs, there is at least one root between them. After evaluating the midpoint, the half whose endpoint values still have opposite signs is retained. At each step, the width of the interval containing the root is halved. This method works with a calculator or spreadsheet and requires no derivative. A pole is not a root; continuity and the domain are checked beforehand.

Example from the book

For f(x)=x2−2f(x)=x^2-2, the search begins with [1,2][1,2]. The midpoint 1.5 gives a positive value, so [1,1.5][1,1.5] is retained. This is followed by 1.25 and 1.375, which give negative values. After ten halving steps, the interval width is 1/10241/1024; the error of the final midpoint is at most 0.0004890.000489. For steep or flat functions, an additional stopping criterion for ∣f(x)∣|f(x)| must be assessed separately from the desired accuracy in xx.

Formelsammlung Strom · Erik Schmidt · Formula 6.13