Beautiful Math
Path

Calculus intuition · Lesson 2

The derivative

The derivative is a new function that reports the slope of the old function at each point. Leibniz's notation makes the ratio of tiny changes memorable.

Core ~28 minDeep study ~78 minWhat does f'(x) mean?Why does notation matter?

Before this: Rates of change

How this idea was born

Once you can ask how fast something changes at a single moment, a second need appears: a portable report of that steepness everywhere. Sensitivity analysis, orbits, and later machine learning all want a machine that, given a location, returns the local rate. One slope number is a reading. A slope-valued function is a dashboard.
Gottfried Wilhelm Leibniz (1646-1716) chased a universal symbolic language. Independent of Newton, he built a calculus whose form invited others to compute. MacTutor's Leibniz biography is the short reference; the Newton-Leibniz priority dispute is real history, not a classroom cartoon. Steal the ethic: design notation so future minds can carry the idea without you in the room. His tiny-change and sum symbols survived because they make reasoning about rates and accumulations feel almost mechanical.
For a modern rereader, that shift - from one number to a slope-valued function - is what makes calculus compositional, and why later gradient learning can ask for sensitivities everywhere at once. Good symbols are not cosmetics.

First principles

If ff is smooth enough,
f(a)=limh0f(a+h)f(a)hf'(a) = \lim_{h \to 0} \frac{f(a+h) - f(a)}{h}
is the slope at x=ax = a. The function ff' sends each aa to that slope (wherever the limit exists).
Leibniz wrote dydx\frac{dy}{dx} to suggest a ratio of infinitesimal changes. Modern rigor uses limits; the intuition remains: tiny rise over tiny run. Treat the fraction as a mnemonic with a deep idea inside, not as a license to cancel symbols carelessly in every context.
zoom → tangent
Zoom in on a smooth curve: the wiggle looks straighter. That local slope is the derivative idea.
The derivative is the best local linear stand-in. Near aa,
f(x)f(a)+f(a)(xa)f(x) \approx f(a) + f'(a)(x - a)
That approximation is why derivatives power sensitivity analysis: a small nudge Δx\Delta x predicts a change about f(a)Δxf'(a)\Delta x.

Worked intuition

Think of ff' as a dashboard. Feed it x=2x = 2 and read the slope there. Feed it x=5x = 5 and read a different slope. The original ff is the landscape; ff' is the instrument panel that reports steepness at each mile marker.
Rules worth knowing early (after the picture is solid):
  • (cf)=cf(cf)' = c f'
  • (f+g)=f+g(f+g)' = f' + g'
  • (xn)=nxn1(x^n)' = n x^{n-1}
  • Chain rule: (f(g(x)))=f(g(x))g(x)(f(g(x)))' = f'(g(x))\, g'(x)
The chain rule is the star for machine learning: change through a pipeline multiplies local sensitivities. If loss depends on prediction, prediction on hidden layer, hidden layer on weights, the total sensitivity is a product of local slopes along the path.
Algebrica's derivatives page lists rules after the definition. Learn the definition's picture first; rules are speed, not meaning.
Ask of every smooth graph: where is f=0f'=0, where is f|f'| large, and where is ff' undefined? Those questions are already optimization and robustness in miniature.

Common confusions

Derivative as "the formula" rather than a function. People memorize (x2)=2x(x^2)'=2x and forget that 2x2x is itself a function reporting slopes. The mental shift matters when you differentiate compositions and when you later pack many partials into a gradient.
Notation worship without meaning. dydx\frac{dy}{dx} looks like a fraction because the intuition is fractional. It is not a free pass to treat differentials as ordinary numbers in every manipulation. Limits keep the story honest.
f(a)=0f'(a)=0 means "nothing is happening." On a smooth graph, zero slope means flatness at that point: a local max, min, or shelf. The function value can still be large; the rate is what vanished.
Two formulas with the same derivative. If F=GF'=G', then FF and GG differ by a constant (on an interval, under standard hypotheses). That is a preview of antiderivative families, not a paradox.
Higher derivatives as decoration. ff'' is the rate of the rate. It is not fancier for its own sake; it measures how slope itself changes. Concavity stories live here.
Differentiability implying nice global optimization. Local slope zero is not global optimality on nonconvex landscapes. The derivative is local by nature.

History & stories

Leibniz chased a universal symbolic language. His dxdx and \int notations survived because they make reasoning about tiny changes and sums feel almost mechanical. Independent of Newton, he built a calculus whose form invited others to compute. MacTutor's Leibniz biography is the standard short reference.
Newton and Leibniz developed calculus in different notations and communities; priority fights followed. What matters for learning is the shared core: limits of difference quotients unlocking geometry and motion. Steal Leibniz's ethic even if you never care about the dispute: design notation so future minds can carry the idea without you.

Real world

Sensitivity analysis asks: how much does output move when an input nudges? That is a derivative when the relationship is smooth. If profit P(q)P(q) depends on quantity qq, then P(q)P'(q) is marginal profit at that scale. Engineers linearize complicated maps near an operating point for the same reason: the derivative is the trustworthy local translator.

Open when you want the machine-learning connection. Skip freely.

Field notes, extra examples, and glossary live here when you want more than the core path.

Carry this forward

  • The derivative is a slope-valued function, not only a number at one point.
  • Leibniz notation remembers the tiny-ratio intuition; limits keep it rigorous.
  • The chain rule composes sensitivities and later powers backprop.
  • Next: accumulation, the inverse story (integrals and the fundamental theorem).

Read more

Go deeper when curiosity hits - videos, essays, and primary trails.

Check your understanding

A short learning loop - try a few, learn from misses, mark complete when you have engaged. No timer, no scoreboard.

1.f′(a) is…
2.Leibniz notation dy/dx suggests…
3.f′ is itself…
4.Newton vs Leibniz priority fights…
5.f′(a)=0 on a smooth graph suggests…

Try at least 3 core prompts, or choose I'll return later.