Derivative Visualizer 2D: Numeric vs Analytic Slope (2D)
A Canvas2D companion to the derivative visualizer: drag x0, shrink h and watch the secant become the tangent, while a live panel runs a central-difference numerical derivative against the exact analytic one, tracks the error between them, and estimates concavity via f''(x0).
This 2D companion trades the WebGL-rendered original for a plain Canvas2D view built to make the numbers, not the scene, the focus. It keeps the same core idea — drag x0, shrink h, watch the secant collapse onto the tangent — but adds a second derivative estimate computed independently by central difference, so you can watch a numerical method converge on the exact calculus answer and see where floating-point error starts to dominate if h gets too small. A custom quadratic mode (adjustable a, b, c) lets you build your own function instead of only picking from the presets, and a live concavity readout (f″(x0), estimated the same way) flags convex, concave and near-inflection points as you drag.
Canvas2D derivative lab: central-difference numerical derivative run alongside the exact analytic one, secant-to-tangent animation, adjustable zoom and shrink speed, and a custom ax²+bx+c mode.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install