Differential Error & Newton-Raphson Iteration Lab
Trace tangent root steps and inspect quadratic convergence vs. stationary-point divergence.
Compare tangent differential dy = f'(x) dx against true increment Δy and iterate tangent root-finding.
Tolerance propagation in measurements (dy ≈ Δy) and quadratic root solvers inside CAD and SPICE simulators.
Once a smooth curve behaves like a straight line up close, how accurately can that tangent predict nearby values—and how can it hunt down roots ?
Zooming in near replaces with its tangent linearization . The straight-line differential approximates the true curve change so closely that the discrepancy shrinks faster than itself.
Because solving a linear equation is instant, setting slides you down the tangent line straight to the -axis via —Newton–Raphson iteration, which doubles accurate digits on each step whenever .
How closely does the tangent differential dy = f'(a)Δx track the nonlinear change Δy—and how does setting that tangent line to zero turn root finding into rapid quadratic steps?
Inspect the dy vs. Δy residual bar and step through Newton-Raphson cobweb tangents in Lab 1.2.2A across smooth roots and stationary-point oscillation traps.
Near stationary points where f'(x_n) ≈ 0, tangent lines shoot nearly horizontally or enter limit cycles; next, Chapter 1.2.3 tracks how derivatives multiply across nested compositions.
Preparing interactive canvas & numerical solver…
wanna math drafting viewport
Exact differs by only —governed by second-derivative curvature error .
Whenever a simple root satisfies , Taylor-expanding around shows error squares at every step—turning error into in three iterations.
At double roots (), convergence slows to linear; on inflected curves like , seeding bounces forever between .
Trace tangent root steps and inspect quadratic convergence vs. stationary-point divergence.
Compare the tangent differential against true increment (Left), and step through tangent-line root finding (Right).
| n | x_n | f(x_n) | x_{n+1} |
|---|---|---|---|
| 0 | 2.300000 | 3.29e+0 | 1.584783 |
| 1 | 1.584783 | 5.12e-1 | 1.423393 |
| 2 | 1.423393 | 2.60e-2 | 1.414243 |
| 3 | 1.414243 | 8.37e-5 | 1.414214 |