More Derivative Examples#
Stage 3 · 📉 Derivatives & the Computation Graph · Lesson 10 of 17 · intermediate
◀ Previous · Derivatives · Next · Computation Graph ▶ · ↑ Section
Important
✨ AI-generated content. This page was written with the assistance of an AI language model and is provided as a learning aid. Despite careful review, it may still contain mistakes, omissions, or out-of-date information. Whether you are new to the topic, a team lead, or a senior practitioner, treat it as a starting point rather than an authoritative reference: read it critically and independently verify anything you act on (code, commands, figures, and factual claims) against official documentation and primary sources before relying on it.
When the slope changes#
The line \(f(a) = 3a\) had the same slope everywhere. Most functions do not — their derivative changes from point to point. This lesson makes that concrete, because a neuron’s sigmoid is exactly such a curve.
A curved example#
Take \(f(a) = a^2\). At \(a = 2\), \(f = 4\); nudge to \(a = 2.001\) and \(f \approx 4.004\) — a slope of about 4. But at \(a = 5\), \(f = 25\); nudge to \(5.001\) and \(f \approx 25.010\) — a slope of about 10. The slope is twice the input, which is exactly the rule
The derivative is now a function of \(a\), not a constant.
A few more#
The same pattern holds across the standard functions — \(f(a) = a^3\) has derivative \(3a^2\), and \(f(a) = \ln a\) has derivative \(1/a\). You need not re-derive these from nudges each time; they are tabulated in any calculus reference. What matters is reading them the same way: how fast does the output move as I wiggle the input, right here?
The takeaway#
For a curve, “the derivative” always means the slope at a particular point. That single idea — a slope that varies — is all the calculus the rest of the course needs. Next we organise a multi-step computation so these per-point slopes can be combined mechanically, through a computation graph.
Hint
Related lessons: Derivatives · Computation Graph · Derivatives with a Computation Graph · Logistic Regression Gradient Descent
See also
Source article Adapted (context, re-expressed) in our own words from: https://insightful-data-lab.com/2025/04/07/more-derivative-examples/ (insightful-data-lab.com).