One slope at a point, then another, then another
Last lesson you found the slope of at . It was . You found . You guessed .
There is a pattern, and naming it is the whole move of this lesson. Every has its own slope. The map from to the slope of at is itself a function. Call it .
For , the slope-function is . Plug in , you get . Plug in , you get . Plug in , you get . One formula now handles every point on the curve.
This sounds like bookkeeping. It is the entire reason calculus works.
Sweep and watch it draw itself
Drag the sun-yellow handle along the x-axis. The red curve is . The coral line is the tangent at the swept point. The teal curve is . It paints itself in wherever you sweep.
Try first. Sweep all the way across. The teal trace is a straight line through the origin with slope . That straight line is the function . You drew it by sampling slopes.
Now hit sin x. Sweep again. The teal trace climbs from , peaks at , dips back through zero. You are drawing , one slope at a time. Sine differentiates to cosine, full stop, no algebra required to see it.
Read the slope of sine
With , the teal trace tells you the slope at every .
What is — the slope of sine at the top of its first bump?
The same object, four ways of writing it
Mathematicians who agree on the math sometimes disagree on the symbols. Four notations all mean the same function:
Lagrange notation (, prime) reads cleanly when the argument is implicit: f prime of x. Leibniz notation () reads as a ratio for a deep reason we will earn in the chain rule. The form is Leibniz used as a verb — take the derivative with respect to x.
You will meet all four. They are aliases, not rivals.
Where it breaks: the corner of |x|
Differentiable functions are smooth. But “smooth” has a precise meaning, and not every function has it everywhere.
Pick |x| on the widget. Sweep across. To the left of zero, the slope is . To the right of zero, the slope is . At zero, the teal trace breaks. The readout says undefined.
The function is perfectly continuous at — you can draw it without lifting the pen. But it has no slope there. The secant from the left says , the secant from the right says , and there is no number both agree on. So does not exist.
Now try . Same story, different failure: at the tangent is vertical. The slope is “infinite,” which is another way of saying no number works. The teal trace shoots up to a spike at zero.
Continuous does not mean differentiable
The trap to dispel:
If a function is continuous, it must have a derivative.
It does not. at is continuous and has no derivative. at is continuous and has no derivative. The standard theorem runs one way only:
The converse is false. Continuity is the floor; differentiability is a strictly stronger condition that says the graph has a well-defined tangent line at that point. A corner or a vertical tangent fails the test, even though the graph never breaks.
This matters for neural networks. ReLU, the most-used activation in deep learning, has exactly this kind of corner at . Backprop has to make a choice there — and it does, by convention. Hold that thought; you will need it in module 12.
Which one breaks at zero?
Four functions, all continuous at . Select every one that is NOT differentiable at .
Test each on the widget. A function fails to be differentiable at 0 if the slope from the left and the slope from the right disagree, OR the slope blows up to infinity.
From one slope to many, from many to all
Calculus was invented when Newton and Leibniz both stopped asking “what is the slope of this curve at this one point?” and started asking “what is the slope-function of this whole curve?”. Once you have as a function, you can ask new questions: where is the slope zero (peaks and valleys), where is the slope steepest (a maximum rate of change), what is the slope of the slope (acceleration).
You are one lesson from a single line that hands you for any polynomial without doing a limit ever again. Then a second line for sines and cosines. Then a third for the exponential. By the end of the module, you compute derivatives the way you compute sums.
Lesson complete