
Limits and the Formal Derivative Definition
Define the formal mathematical derivative as the limit of average rates of change as the step interval shrinks toward an infinitesimal nudge.
In Lesson 1, we watched the secant slope converge toward as became tiny.
Why can't we simply plug directly into the secant equation?
Plugging in results in , which is undefined. Division by zero is mathematically impossible.
Calculus solves this dilemma using the concept of a limit.
The Limit Process: Shrinking Intervals Without Division by Zero
A limit evaluates the value that an expression approaches as an input variable gets closer and closer to a target value, without ever needing to touch that target value.
We write:
This is read: "The limit of as approaches zero."
We do not set . Instead, we inspect the algebraic behavior of the ratio as shrinks toward zero through non-zero numbers ().
The Formal Definition of the Derivative
Combining the secant slope equation with the limit operator gives the Formal Definition of the Derivative:
In Lagrange notation, the derivative is also written as (pronounced "f-prime of x"):
This equation defines the instantaneous rate of change of the function with respect to at any point where the limit exists.
Symbol Translation: Greek vs. Latin
Understanding calculus notation removes its intimidating appearance.
Notice how the symbols shift between macroscopic and microscopic analysis:
Macroscopic Difference (Secant Slope): Δy / Δx (Greek Delta: measurable change)
Microscopic Differential (Tangent Slope): dy / dx (Latin d: infinitesimal nudge)
- (Delta x): A macroscopic, real-world difference (e.g., hour or units).
- (Differential x): An infinitesimal nudge—a microscopic step in that is smaller than any measurable real number, yet strictly non-zero.
- (Differential y): The resulting infinitesimal response in output caused by the input nudge .
The notation (introduced by Gottfried Wilhelm Leibniz) is written as a fraction for a deliberate reason: it represents the ratio of the infinitesimal output change to the infinitesimal input nudge .
When reading in neural networks, translate the fraction into plain English:
First-Principles Derivation of
Let's derive the exact derivative of algebraically from the formal definition, with zero hand-waving.
We begin with the definition:
Step 1: Substitute into the numerator:
Step 2: Expand the binomial term :
Substitute this back into the fraction:
Step 3: Simplify the numerator ():
Step 4: Factor out from the numerator:
Step 5: Cancel the non-zero in numerator and denominator:
Step 6: Evaluate the limit as :
As approaches , the second term simply vanishes:
We have proven from first principles that for the function , the derivative at any point is:
Let's evaluate this general formula at specific coordinates:
- At : (matching our secant calculations exactly).
- At : (the flat base of the parabola).
- At : (a steep downhill slope).
Key Mathematical Takeaways: Secant-to-Tangent Convergence
- Secant-to-Tangent Convergence: As the perturbation interval , the secant line between and rotates smoothly into the instantaneous tangent line, and the average rate of change converges to .
- Slope as Derivative Value: The slope of the tangent line at any point matches the analytical derivative .
- Stationary Point Horizon: At the vertex ( for ), the tangent line becomes completely horizontal (), marking the stationary point.