Instantaneous rate of change. Slope of tangent line.
Deep-dive lesson - accessible entry point but dense material. Use worked examples and spaced repetition.
If you zoom in far enough on a smooth curve, it starts to look like a straight line. A derivative is the slope of that “best-fit” line at a single point—capturing an instantaneous rate of change.
The derivative of at , written , is the limit of slopes of secant lines through and nearby points. Formally:
If the limit exists, the function is differentiable at and the derivative equals the slope of the tangent line there (and the instantaneous rate of change).
You already know average rate of change: between two points and , the slope is
That’s a two-point measurement. But many real questions are one-point questions:
To answer those, we take the average rate of change over a smaller and smaller interval and ask whether it approaches a limiting value.
Fix a point . Consider a nearby point (so is a small horizontal step). The slope of the secant line through
is
If this slope approaches a single number as , we define the derivative:
This is the defining limit (also called the definition via the difference quotient).
1) Geometric: is the slope of the tangent line to the graph at .
2) Dynamic (rate): is the instantaneous rate of change of with respect to at .
Both interpretations come from the same limit.
If is measured in seconds and in meters, then
So has the same units as a speed. This “units check” is one of the simplest ways to catch mistakes.
Static diagram to include in the lesson UI: a coordinate plane with the curve , points and , the secant line through and , and labels for:
This diagram should remain visible while the definition is introduced so the symbols feel anchored to geometry.
Your interactive canvas should make the limit feel physical.
Canvas scene A: Secant-to-tangent animation
Canvas scene B: One-sided convergence
Canvas scene C: Non-differentiable corner/cusp toggle
These visuals directly support the three atomic concepts: instantaneous rate, defining limit, and tangent slope.
Pick two x-values: and .
The secant slope is
This is an average rate of change on the interval .
To get a one-point notion, we shrink the interval by taking smaller and smaller.
The derivative is the number the secant slopes are heading toward—if they head toward a single number at all.
You might wonder: why not just set in
Because you would get
and is indeterminate (it doesn’t have a single value). The limit process asks: as we approach the problematic point, does the expression stabilize?
A subtle but crucial point: means approaching 0 from both sides.
A function is differentiable at only if both exist and are equal:
This is exactly what your “one-sided slope convergence” canvas should make obvious: you can see when the two sides don’t agree.
If you know , you know the slope of the tangent line at . The tangent line passes through with slope :
This is often the fastest way to turn “derivative” into a concrete geometric object.
When is small, the change in is approximately
This is the intuition behind many applications: derivatives translate a tiny input change into an approximate output change.
To reinforce the limit idea (instead of treating it as symbolism):
| h | (f(a+h) − f(a))/h |
|---|---|
| 1 | ... |
| 0.5 | ... |
| 0.1 | ... |
| 0.01 | ... |
A common mental trap is to assume:
Not always.
Facts to keep straight:
So differentiability is a stronger condition.
Example: at .
Compute using the definition:
For :
For :
So
They differ, so does not exist.
Interactive tie-in: in your corner toggle, the secant line will approach two different tangent candidates depending on direction.
Example: at .
Consider the difference quotient:
As , . The slope becomes unbounded (vertical tangent). In many calculus courses, we say the derivative does not exist as a finite number.
Interactive tie-in: your slope readout should grow very large in magnitude as shrinks.
If isn’t continuous at , it cannot be differentiable there.
This is less subtle visually—your curve breaks—so it’s a good “sanity check” case.
A useful phrase: differentiable at $a$ means the graph is locally well-approximated by a line near $a$.
That’s why the “zoom in, it becomes a line” intuition works. A corner never becomes a single line no matter how much you zoom; it keeps its sharpness.
| Feature at x=a | Continuous? | Derivative exists? | What you see | ||
|---|---|---|---|---|---|
| Smooth curve | Yes | Yes | One clear tangent slope | ||
| Corner ( | x | ) | Yes | No | Two different one-sided slopes |
| Vertical tangent (∛x) | Yes | No (finite) | Slopes blow up toward ±∞ | ||
| Jump discontinuity | No | No | Break in graph |
To make “failure modes” memorable:
At a point , the derivative tells you how sensitive the output is to tiny input changes.
If is small, then
This is the bridge from geometry to practical estimation.
Example intuition: If a cost function has derivative 5 dollars/unit at the current production level, then producing one more unit increases cost by about $5.
Even before learning derivative “rules,” knowing that is slope gives a powerful way to interpret a graph:
This connects directly to optimization ideas used everywhere (including machine learning).
The definition is conceptually perfect but computationally slow. The next node (Derivative Rules) gives shortcuts (power/product/quotient/chain rules). Those rules are justified because they match what the limit definition produces.
In MLE, you maximize a likelihood (or log-likelihood) with respect to parameters. “Maximize” often means “take derivative, set it to zero, solve.” The derivative is what turns “best parameter” into an equation you can solve.
Convexity uses derivatives to formalize “curves that bend upward.” For differentiable functions, one hallmark is that the derivative is increasing. So understanding as slope makes convexity feel natural.
Integrals and derivatives are paired by the Fundamental Theorem of Calculus. Informally: differentiation measures instantaneous change, integration accumulates change. This node provides the “change” half of that story.
Once you can compute , you can approximate near by its tangent line:
This idea appears constantly later: numerical methods, error estimates, optimization steps, and more.
Find for using the defining limit.
Goal: turn the limit into algebra and simplify until the limit is easy.
Start with the definition:
Plug in :
Expand :
So the numerator becomes:
Factor out :
(For this cancellation is valid; the limit cares about values near 0, not at 0.)
Now take the limit:
Insight: The limit definition often works by algebraically canceling the problematic in the denominator. For polynomials like , the derivative emerges cleanly: .
Show that does not exist for .
Strategy: compute the right-hand and left-hand derivatives and compare.
Start with the difference quotient at :
Right-hand derivative (approach with ):
If , then , so
Thus
Left-hand derivative (approach with ):
If , then , so
Thus
Compare:
Therefore, the two-sided limit does not exist, so does not exist.
Insight: A corner is exactly the situation where the curve has two competing tangent directions. The derivative requires a single slope; disagreement between one-sided slopes means ‘not differentiable.’
Use the derivative to find the equation of the tangent line to at .
You can use the result from Example 1: if , then (so ).
Compute the point on the curve:
So the point is .
Compute the slope of the tangent line:
Use point-slope form:
Simplify (optional):
Insight: Once you know the derivative at a point, geometry becomes straightforward: slope + point gives the tangent line immediately.
The derivative at a point is defined by a limit of secant slopes: $$
Geometrically, is the slope of the tangent line to at .
As a rate, measures instantaneous change: small input changes satisfy .
You cannot compute the derivative by plugging in directly; the definition requires a limit because the quotient becomes .
Differentiability requires left- and right-hand derivatives to exist and match: .
Corners (like at 0) and vertical tangents/cusps (like at 0) are common reasons a derivative fails to exist.
Given , the tangent line is .
Trying to evaluate the difference quotient at (treating as a number) instead of taking a limit.
Assuming ‘continuous’ implies ‘differentiable’—corners and cusps are continuous but not differentiable.
Forgetting that is two-sided; checking only can miss a corner where one-sided slopes differ.
Mixing up the secant slope (average change over an interval) with the tangent slope (instantaneous change at a point).
Use the definition to compute the derivative of at an arbitrary point .
Hint: Compute , simplify, then take .
Start:
Compute:
Difference quotient:
Limit:
Find the slope of the tangent line to at using the definition of the derivative.
Hint: Compute , combine fractions, simplify, then take .
Definition at :
Combine the numerator:
Divide by :
Take the limit:
Determine whether is differentiable at . Justify using one-sided derivatives (you may use the definition conceptually without heavy algebra).
Hint: Shift the |x| corner: has the same shape as but centered at 1. Compare the slope from the left vs right.
At , the graph of has a corner (it’s shifted right by 1). For , which has slope 1. For , which has slope −1. Since the right-hand derivative is 1 and the left-hand derivative is −1, they do not match. Therefore is not differentiable at .