Learn

Learning preferences

Make learning more comfortable. Changes apply immediately.

Enlarges page content, including diagrams and their labels. You can also use your browser’s zoom.

Choose the colours that are easiest for you to distinguish. Applies to lesson diagrams and lab plots. Labels, shapes, hatching and line patterns also distinguish meanings. Source photographs and raw image brightness stay unchanged; mask-only views are available for image overlays.

ExampleComparisonSample link

Saved in this browser on this device. Preferences are separate from progress backups.

Lesson 7 of 24

Combine fast proposals with a reliable bracket

Derive secant steps, explain superlinear order and specify a genuinely contracting safeguard.

Loading your saved responses…

Try the optional starting-point checks and targeted refreshers. You can continue directly into this lesson.

Try

A derivative can be expensive or unavailable. Secant iteration replaces it by the slope through two previously evaluated points. For f(x)=x²−2, start at 1 and 2. The line through (1,−1) and (2,2) crosses zero at 4/3. With the two latest points, the next crossing is 7/5. Only one new function evaluation is required per update after the initial pair, if earlier values are retained.

Predict

Predict whether a secant intercept must remain between its two input points. It does when their function signs are opposite, but ordinary secant iteration does not necessarily preserve such a pair. Two same-sign values can propose a distant point. Nearly equal function values make the slope denominator small, magnifying error. Compare this with bisection, whose next point remains inside a known bracket independently of slope information.

Experiment

Live experiment: a fast update needs a convergence argument

Compare bisection in a fixed sign-changing bracket with unsafeguarded Newton updates. Predict whether the chosen Newton start finds the bracketed root, another root, a cycle, or an undefined update. Equal update budgets are not equal computational cost.

Fixed-scale equation and candidate rootsThe x axis runs from minus 2.5 to 2.5, and the y axis from minus 5 to 5. The curve is clipped outside those bounds. Gold shading marks the initial bisection bracket. Blue circles show bisection midpoints on the horizontal axis; red crosses show Newton inputs on the curve. The tables contain every numerical step, including points outside the plot.-2-1012-4-2024f(x), bracket and iteratesx
Gold: initial bracket. Blue circles: bisection candidates projected onto y=0. Red crosses: Newton (x,f(x)) values; repeated visits overlap. The curve uses 200 segments. Tables, not the plotted samples, define the trace.

Bisection: a shrinking certified interval

The polynomial is continuous and the endpoints have opposite signs. Each midpoint is within half the displayed interval width of at least one bracketed root. This bracket contains the positive root for x²−2; Newton is not constrained to choose it.

StepInterval before updateMidpointf(midpoint)Error bound
1[-2, -1]-1.51.625≤0.5
2[-2, -1.5]-1.750.140625≤0.25
3[-2, -1.75]-1.875-0.84179688≤0.125
4[-1.875, -1.75]-1.8125-0.3293457≤0.0625

Bisection used 6 function evaluations, including two endpoint evaluations; cached endpoints are reused.

Newton: inspect the derivative and the actual outcome

The update is x next = x − f(x)/f′(x). A small residual |f(x)| measures equation mismatch; an error bound additionally needs suitable information about the root and derivative.

Stepxf(x)Derivative used for next update
002-2
1111
202-2
3111
402Not evaluated

Update budget reached; no convergence claim. Newton used 5 function evaluations and 4 derivative evaluations. These counts exclude plotting and UI work; no elapsed-time comparison is implied.

For the cubic, start at zero and trace the two-cycle. For the square equation, start at zero to expose the undefined quotient, then at −2 to find the other root. Explain how a bracketed safeguard could reject an unsuitable Newton proposal. This widget runs the two basic methods separately; it does not implement that hybrid. Settings are temporary and all calculations use ordinary browser floating point.

The live experiment compares bisection and unsafeguarded Newton, not secant iteration. Change the function and starting value, inspect a cycle or derivative failure, and compare the bracket certificate with a residual. These controls are temporary exploration.

This is a separate fixed worked example for x²−2, not a claim about any live widget settings.

Previous pairSecant proposalFunction value at proposal
1, 24/3−2/9
2, 4/37/5−1/25

Compute the next proposal and inspect whether the two latest points still bracket the positive root. Then retain an explicit opposite-sign bracket separately from the latest pair used to propose a step.

Understand

The update is xₙ₊₁=xₙ−f(xₙ)(xₙ−xₙ₋₁)/(f(xₙ)−f(xₙ₋₁)). For a sufficiently smooth function near a simple root, starting sufficiently close and avoiding degenerate denominators, the generic error relation is eₙ₊₁≈[f″(r)/(2f′(r))]eₙeₙ₋₁. When the leading coefficient is nonzero, a power-law comparison gives order p satisfying p²=p+1, hence the golden ratio. This explains superlinear convergence, slower in order than Newton’s quadratic convergence but without derivative evaluations. It is not a global guarantee, and special functions can have different leading behavior. Count function and derivative evaluations separately rather than comparing iteration counts alone.

Apply

A concrete safeguard gives an elementary global guarantee. Maintain [a,b] with opposite signs for a continuous function. Accept a finite fast proposal only inside [a+(b−a)/4,b−(b−a)/4]; otherwise use the midpoint. After evaluating, retain the side with opposite signs, or finish at an exact zero. The retained width is at most 3/4 of the previous width, so nested brackets shrink to a root. The central-region rule is stricter than many production hybrids but its proof is transparent. Merely staying inside the bracket is insufficient for a uniform shrink factor: false position can repeatedly update the same endpoint and leave a wide bracket.

Continue

Finite precision still requires nonfinite checks, slope checks, stagnation detection and an iteration budget. Report the bracket certificate separately from the residual and from whether a fast step was accepted. A live comparison of Newton and bisection illustrates contrasting mechanisms; it is not a secant implementation unless explicitly labeled as one. Written hybrid-design tasks require a learner to specify invariants and test cases before coding. Next, interpolation generalizes the two-point line to higher-degree approximation, introducing its own conditioning and error issues.

Review calculus and linear algebra when a prerequisite needs practice. Continue to Fit exact data with a unique polynomial.

Apply · explain · revise

Practice and reasoning

Drafts save locally as you type. Reveal worked solutions when useful; the site remembers that exposure. Automatic matches check the requested answer, while written arguments require review against the rubric.

For f(x)=x²−3 with x₀=1 and x₁=2, compute x₂.

Integers, fractions and finite decimals are accepted. Expressions such as sqrt(2) are not parsed by this checker.

A proposal is accepted only in the central half of a bracket of width 8. What maximum width can remain after retaining one sign-changing side?

Integers, fractions and finite decimals are accepted. Expressions such as sqrt(2) are not parsed by this checker.

Derive the secant update from the line through two sampled points.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Under the generic simple-root error relation e_(n+1)≈C e_n e_(n−1), derive the expected convergence order.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Why can ordinary false position stagnate at one bracket endpoint?

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Specify a bracketed hybrid and prove its width shrinks.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Reflect and continue

Before marking this lesson complete, explain one key idea without the worked solution and identify a condition that matters. Marking complete records participation, not independent mastery.