1.2.2 · D1Calculus & Optimization Basics

Foundations — Derivatives and rules (product, quotient, chain)

1,583 words7 min readBack to topic

Before you can read "" without flinching, every mark on that line must mean something concrete to you. This page builds each symbol from nothing, in the order they lean on each other. If the parent note used it, we define it here first.


1. Function and the notation

  • Plain words: is the name of the machine, is what you put in, is what comes out.
  • The picture: a graph. The horizontal axis is the input ; the vertical axis is the output . Each input picks one point on the curve.
  • Why the topic needs it: derivatives describe how a machine responds to its input. No machine, nothing to differentiate.
Figure — Derivatives and rules (product, quotient, chain)

Notice in the figure: input gives output , input gives output . The curve is just the collection of all such (input, output) dots joined up.


2. The variable and a "nudge"

  • Plain words: is where you stand; is where you stand after taking a small step of size .
  • The picture: two vertical lines on the graph, one at , one a little further at . The gap between them is .
  • Why the topic needs it: to measure change you must compare two nearby inputs. is that gap. The whole idea of a derivative is "let this gap shrink to nothing."

3. (change) and slope = rise over run

  • The picture: a straight line touching the curve at two points — a secant line. Its tilt is the slope. See the yellow line below.
  • Why the topic needs it: the derivative is a slope. But the fraction above is only an average slope across the whole step — the average steepness of a hill from bottom to top, not the steepness right where you stand.
Figure — Derivatives and rules (product, quotient, chain)

4. The limit

  • Plain words: "where is this heading as the step shrinks to nothing?"
  • The picture: the two vertical lines slide together. The secant line pivots until it just grazes the curve at a single point — that grazing line is the tangent line.
  • Why this tool and not just "plug in "? If you set directly in you get — undefined nonsense. The limit is the honest way to ask "what would the slope be if the step were infinitely small" while dodging the divide-by-zero. This is the whole reason Limits and Continuity comes before derivatives.
Figure — Derivatives and rules (product, quotient, chain)

Watch the sequence: as goes , the yellow secant swings toward the red tangent. The tangent's slope is the derivative.


5. The derivative and its symbols and

Two names for the same thing:

Notation Read as Emphasises
" prime of " it's a new function of
" by " it's a ratio
  • The is after the limit: an infinitely small change. is literally rise-over-run once the run is infinitesimal.
  • Why two notations? The chain rule looks like a fraction cancelling () in Leibniz form , so that notation is handy. The prime form is compact for stating rules. You will meet both, so recognise both.
  • Why the topic needs it: this single number — "output-change per input-nudge" — is what training a model uses to decide which way to push each weight. See Gradient and Partial Derivatives and Gradient Descent.

6. Building blocks the rules assume

The three combination rules (the parent topic) assume you already recognise these pieces.

  • Why rename? Writing in full is bulky. Calling , lets the rule read — a template you fill in.
  • The picture: for , the graph is a bowl; its slope is negative on the left, zero at the bottom, positive on the right. See Power Rule and Basic Derivatives.
  • Why the topic needs it: powers are the simplest non-trivial machines; every worked example (like ) is built from them.
  • Why this tool? The exponential is the natural currency of growth/decay and shows up inside the sigmoid. Its self-slope property is what makes the sigmoid derivative come out so clean. This feeds Activation Functions.
  • The picture: a flat-then-rising-then-flat "S". Below.
  • Why the topic needs it: it's the parent note's showcase example combining all three rules; recognising its shape tells you what its derivative should look like (a bump, biggest in the middle).
Figure — Derivatives and rules (product, quotient, chain)

7. How these feed the topic

Function f of x

Nudge h and change delta

Slope = rise over run

Limit as h goes to 0

Derivative f prime

Power rule x to the n

Three combination rules

Exponential e to the minus x

Product Quotient Chain

Sigmoid and Backprop

Read it top-down: a function gives us something to nudge; the nudge and delta give a secant slope; the limit turns that average slope into the exact derivative; power rule and the exponential are the raw functions; together they power the three rules, which produce things like the sigmoid derivative used in Backpropagation.


Equipment checklist

Self-test: can you answer each before revealing?

What does mean in plain words?
The output the machine produces when fed the input .
What is in the derivative formula?
A small step in the input — the gap between and .
What does stand for?
The change in output, .
Write slope as a ratio.
.
Why can't we just set in the slope fraction?
It gives , which is undefined; the limit lets us approach safely.
What does ask?
What value the expression heads toward as shrinks toward .
Geometrically, what is the derivative?
The slope of the tangent line touching the curve at that point.
Two notations for the derivative?
and .
State the power rule.
.
What is special about ?
Its slope equals its own height: .
What is and its range?
, an S-curve squashing any input into .

Connections