Derivatives measure the rate of change - the fundamental quantity that gradient descent uses to train neural networks. This visualization shows a function and lets you drag a point to see the tangent line (derivative) update in real time. The secant line with an h slider shows the limit definition of the derivative, making the concept concrete before the abstraction.
Drag point along function curve to see tangent line and slope
Adjust h slider to see how secant line approaches tangent (limit definition)
Compare analytical derivative to numerical approximation
Choose from sin(x), x², x³-3x, exp(-x²), |x|
Foundation for understanding backpropagation and autodiff
Part of the EngineersOfAI Interactive 3D - free interactive visualizations covering every major concept in machine learning and AI engineering. Hover any element for a plain-English explanation. No code required.