1.2.2 · D5Calculus & Optimization Basics

Question bank — Derivatives and rules (product, quotient, chain)

1,400 words6 min readBack to topic

A quick reminder of the three tools, so every symbol below is earned:

  • A derivative is the local slope: nudge the input, measure how fast the output moves.
  • Product rule: — imagine a rectangle of sides ; growing each side adds one area strip.
  • Quotient rule: — same as the product rule solved backwards.
  • Chain rule: for , — nested functions are like gears, so their rates multiply.
  • Sigmoid: , an S-shaped function used in ML; its derivative is . We use it several times below.

True or false — justify

The derivative of a product equals the product of the derivatives.
False. Linearity only works for addition/scaling; multiplication needs two terms . Test : , but .
If and are both increasing, then must be positive.
False. is positive only when both functions are also positive; if the term can be negative and drag the sum below zero, so "both increasing" is not enough.
The chain rule and the product rule are the same underlying idea.
False. The chain rule multiplies rates through a composition (nesting), while the product rule adds strips from a multiplication. Different constructions, different formulas.
The quotient rule is a brand-new rule you must memorise separately.
False. Writing and applying the product rule, then solving for , gives the quotient rule — it's the product rule in disguise.
requires the chain rule.
True. The outer function is "square" and the inner is the product ; chain rule handles the square, and still needs the product rule inside.
Swapping and in the product rule changes the answer.
False. is symmetric — renaming gives , the same sum. (The quotient rule is not symmetric because division isn't.)
Swapping numerator and denominator in the quotient rule just flips the sign.
False. It gives a different function entirely, , with a different denominator , not a sign flip of the original.
If has at a point, then of the whole thing is there.
True. By the chain rule the total rate is ; a zero gear ratio freezes the output no matter how steep the outer is.
The sigmoid derivative can be negative.
False. Since , both and are positive; the product is always positive — the sigmoid is always increasing.

Spot the error

"."
Wrong — this treats it like a chain rule and only differentiates each piece once. It's a product: .
"."
Missing the inner derivative. The inside also moves, so multiply by , giving .
"."
Sign flipped. The first numerator term must carry (the top's own rate): correct is . Check : right rule gives , this gives .
"."
Forgot the chain rule on the exponent. Inner is with derivative , so .
"For , the denominator of the derivative is ."
It's . Dividing by once for the fraction and once for the sensitivity squares the scale — the is not optional.
"."
No — extend the product rule term by term: , one strip per factor. Products of derivatives is never how it works.
"Since , we have ."
Chain rule needed: inner has derivative , so . (It happens to simplify, but the reasoning must include the inner rate.)

Why questions

Why does the product rule have exactly two terms, not one and not three?
A rectangle of sides grows on two sides; each growing side adds one area strip. The tiny corner square is second-order () and vanishes in the limit.
Why is there a minus sign in the quotient rule?
When the denominator grows, the fraction shrinks — that opposing effect on the term shows up as a subtraction.
Why do rates multiply in the chain rule instead of adding?
Nested functions act like gears driving gears: if moves 2× as fast as and moves 3× as fast as , then moves × as fast as . Speed-ups compound.
Why is the chain rule "exactly backpropagation"?
A neural net is a composition of layers; the loss's sensitivity to an early weight is the product of each layer's local derivative — the chain rule applied layer by layer.
Why does the sigmoid have the tidy derivative ?
Because , so the chain-rule result collapses to — a self-referential form that's cheap to compute during training.
Why can't we differentiate with the product rule directly?
It's a composition (a power of an inner function), not a product of two separate factors. Expanding it into a product first would work but is far more painful than one chain step.
Why must a symbol like or be broken into outer/inner before differentiating?
The chain rule only sees "outer shell times inner rate"; identifying which part is the shell and which is nested tells you what to differentiate and what to multiply by.

Edge cases

What is when is a constant ?
. The product rule reduces to the constant-multiple rule — consistent, not a special case.
What happens to the quotient rule when the numerator is constant?
, so . Only the denominator's motion matters, and it opposes the fraction — hence the minus.
Is the quotient rule valid where ?
No — the derivative isn't defined there because itself blows up (division by zero). The in the denominator also vanishes, so the formula is meaningless at those points.
For , what if the outer function is the identity ?
Then and the chain rule gives — composing with "do nothing" leaves the rate unchanged, as it should.
What is the chain-rule result when the inner function is constant, ?
, so the whole derivative is . A constant input never moves, so no matter how steep is, the output is frozen.
Does still hold if one factor is zero at a point?
Yes. If the formula gives ; the rule holds everywhere the factors are differentiable, zeros included.
At the peak of , why is the derivative zero even though both and are changing?
The numerator of the quotient derivative, , hits zero at ; the top's growth and the bottom's growth exactly cancel there, so the net slope is .

Recall Self-test

For each rule, can you state (a) the formula, (b) the picture (rectangle strips / gears), and (c) one trap it invites? If yes for all three rules, you own this topic.

Connections