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.

Learn through experiments

Trap a root before approximating it

What can a shrinking interval prove about an approximate answer?

Entering midway? A root is an input where a function equals zero. A continuous function with opposite signs at two endpoints crosses zero between them.

1 · Try

Start with a concrete question

Approximate the nonnegative square root of a target by bisecting a valid bracket for x²−target.

Try the initial inputs, then write a prediction before changing one setting. All calculations run locally on your CPU.

Go directly to the experiment · Review prerequisite mathematics and return here

2 · Predict

What do you expect?

After four midpoint cuts, how much smaller should the bracket be?

3 · Experiment

Change one thing. Inspect what happens.

  1. Trace four cuts and verify the selected half still brackets the root.
  2. Increase the iteration limit and compare residual with the location-error bound.
  3. Choose endpoints that miss the root and explain why the model refuses to give a certified approximation.
  4. Try a root at an endpoint and target zero; check exact termination.
Experiment inputs
Inputs
Your settings
Mechanism
Calculation below
Evidence
Compare outcomes
Root estimate1.40625
Certified bracket half-width0.09375
Absolute error against √target0.00796356
Final residual-0.0224609
Left endpoint residual-2
Right endpoint residual7

Root and requested bracket

Horizontal: x. Vertical: x² − target.

0-91.5039Zero: (0, 0)Zero: (3, 0)Initial bracket endpoints: (0, -2)Initial bracket endpoints: (3, 7)
  • 1. Function (solid line)
  • 2. Zero (dashed line)
  • 3. Initial bracket endpoints (points)

Axes use the displayed ranges.

Read plotted values as a table
Seriesxx² − target
Function0-2
Function0.03333-1.999
Function0.06667-1.996
Function0.1-1.99
Function0.1333-1.982
Function0.1667-1.972
Function0.2-1.96
Function0.2333-1.946
Function0.2667-1.929
Function0.3-1.91
Function0.3333-1.889
Function0.3667-1.866
Function0.4-1.84
Function0.4333-1.812
Function0.4667-1.782
Function0.5-1.75
Function0.5333-1.716
Function0.5667-1.679
Function0.6-1.64
Function0.6333-1.599
Function0.6667-1.556
Function0.7-1.51
Function0.7333-1.462
Function0.7667-1.412
Function0.8-1.36
Function0.8333-1.306
Function0.8667-1.249
Function0.9-1.19
Function0.9333-1.129
Function0.9667-1.066
Function1-1
Function1.033-0.9322
Function1.067-0.8622
Function1.1-0.79
Function1.133-0.7156
Function1.167-0.6389
Function1.2-0.56
Function1.233-0.4789
Function1.267-0.3956
Function1.3-0.31
Function1.333-0.2222
Function1.367-0.1322
Function1.4-0.04
Function1.4330.05444
Function1.4670.1511
Function1.50.25
Function1.5330.3511
Function1.5670.4544
Function1.60.56
Function1.6330.6678
Function1.6670.7778
Function1.70.89
Function1.7331.004
Function1.7671.121
Function1.81.24
Function1.8331.361
Function1.8671.484
Function1.91.61
Function1.9331.738
Function1.9671.868
Function22
Function2.0332.134
Function2.0672.271
Function2.12.41
Function2.1332.551
Function2.1672.694
Function2.22.84
Function2.2332.988
Function2.2673.138
Function2.33.29
Function2.3333.444
Function2.3673.601
Function2.43.76
Function2.4333.921
Function2.4674.084
Function2.54.25
Function2.5334.418
Function2.5674.588
Function2.64.76
Function2.6334.934
Function2.6675.111
Function2.75.29
Function2.7335.471
Function2.7675.654
Function2.85.84
Function2.8336.028
Function2.8676.218
Function2.96.41
Function2.9336.604
Function2.9676.801
Function37
Zero00
Zero30
Initial bracket endpoints0-2
Initial bracket endpoints37

Follow the calculation

  1. Seek a nonnegative root of x²−2=0 on [0,3].
  2. Step 1: midpoint 1.50000, residual 0.25000; keep left half.
  3. Step 2: midpoint 0.75000, residual -1.43750; keep right half.
  4. Step 3: midpoint 1.12500, residual -0.73438; keep right half.
  5. Step 4: midpoint 1.31250, residual -0.27734; keep right half.
  6. Final bracket [1.31250,1.50000], estimate 1.40625; error at most half-width 0.09375 for this continuous monotone function.

The bracket gives an error bound on the root location. A small residual alone is a different quantity and need not imply small location error for every function.

Captures keep your inputs, prediction and observation. Results are recalculated from those inputs. Resetting inputs keeps your captures and challenge history.

4 · Understand

Explain the mechanism

Start with the meaning

A root is an input where a function equals zero. A continuous function with opposite signs at two endpoints crosses zero between them.

Approximate the nonnegative square root of a target by bisecting a valid bracket for x²−target.

A worked explanation

Bisection preserves a containing interval. Each nonterminal cut halves its width, and the midpoint is at most half the final width from a contained root.

For √2 on [0,3], midpoint 1.5 gives residual 0.25, so keep [0,1.5]. Midpoint 0.75 is below the root, so keep [0.75,1.5].

The continuity and bracket assumptions matter. A failed bracket means this setup has no certificate; it does not mean the equation has no solution.

Symbols and relationship

Midpoint=(left+right)/2. After k cuts, width≤initial width/2^k; midpoint location error≤width/2 for a valid containing bracket.

Use the graph and trace together

The graph and calculations use your current inputs. Read axis labels and units before comparing positions or slopes. Change one input, predict the effect, and use the numerical trace to verify the plotted behavior. A displayed curve is an illustration; the formula and its assumptions determine which conclusions are justified.

Scope and edge cases

  • Continuous monotone x²−target on the nonnegative domain; the update direction uses that monotonicity.
  • Binary64 rounding remains, but at most twelve cuts keep the example far from rounding-limited convergence.

Return to the course and cumulative project

5 · Apply

Try a fresh case

A valid bracket starts with width 8. After five nonterminal bisection cuts, what is the midpoint error bound?

This is a public practice check. Retries support learning; matching a number does not certify independent proficiency.

Take the investigation further

Choose any extension. These are project prompts for you to carry out; they are not automatically assessed.

School investigation

Perform four cuts by hand and retain both endpoints.

College investigation

Implement a generic sign-based bisection and compare against Newton iteration with failure cases.

Workplace investigation

Report a root approximation together with its stopping criterion and a valid bound.

6 · Continue

Keep the evidence, choose your next step

Completion records your own decision that you have worked through this investigation. Practice checks and independent project evidence are separate.