Derivatives and Differentiation Rules
The precise measure of a function's instantaneous rate of change — the mathematical object behind every 'sensitivity' a quant computes, like an option's delta or a bond's duration.
Prerequisites: Limits and Continuity
An option's delta tells you how much its price moves for a tiny move in the underlying. That's not an average over some range of prices — it's the instantaneous rate of change, right at the current price. Average rate of change over a big move is easy: divide the total price change by the total underlying move. But "instantaneous" — shrinking that move down to essentially nothing while still getting a meaningful number out — needs a precise definition, and that's exactly what the derivative provides.
An analogy: a speedometer versus a trip odometer
A car's average speed over a trip is just total distance divided by total time — easy, but it tells you nothing about how fast the car was going at any particular instant, especially if it sped up and slowed down along the way. A speedometer reads something different: the speed right now, at this exact moment. The derivative is the mathematical speedometer — it takes the same "distance over time" idea used for averages and shrinks the time window down toward zero, until what's left is a genuine instantaneous rate rather than an average over some stretch.
The math, one symbol at a time
The derivative of at a point is defined as the limit
In words: take the average rate of change between and a nearby point — exactly "change in output over change in input" — and see what value that average settles down to as the gap shrinks toward zero. A handful of rules let you compute derivatives without ever using this limit directly: the power rule ; the product rule ; and the chain rule , which handles a function nested inside another — differentiate the outer function, then multiply by the derivative of what's inside.
Worked example 1: bond price sensitivity by the power rule
A simplified bond price as a function of yield is (a 10-year zero paying $1,000 at maturity). Rewriting as and applying the power rule (with the chain rule, since the inside is , whose derivative is 1): . At : . This says: for a small increase in yield, the price falls by roughly $58.47 per 1% (0.01) move in yield — exactly the intuition behind bond duration, computed directly from the power and chain rules.
Worked example 2: differentiating a product
A trading strategy's daily P&L is modeled as (a signal that grows linearly but decays exponentially over time , in days). By the product rule, with () and ( by the chain rule): . Setting gives — the signal's strength peaks at day 10, after which the exponential decay dominates the linear growth and P&L starts falling. Finding that peak took differentiating a product and solving for where the rate of change crosses zero, without ever plotting the function.
Adjust the exponent and watch how the curve's steepness (its derivative) changes at each point — the tangent line's slope at any point is exactly what computes there.
What this means in practice
Every "Greek" in options trading — delta, gamma, vega, theta — is a derivative of the option price with respect to some input (underlying price, volatility, time). Bond duration and convexity are the first and second derivatives of price with respect to yield. Anywhere a quant asks "how sensitive is this to a small change in that," the answer is a derivative, computed using exactly these rules chained together for however complicated the pricing formula is.
The derivative is the instantaneous rate of change of at — and the power, product, and chain rules let you compute it for almost any formula built from simpler pieces, without ever evaluating that limit by hand.
The chain rule is the single most commonly botched rule in practice: differentiating and forgetting to multiply by (the derivative of the inner function) gives a wrong answer that often still looks plausible. In the bond example above, forgetting the inner derivative of wouldn't have changed the number (since ), which is precisely why this mistake goes unnoticed so often — but the moment the inside is anything other than "input plus a constant" (an exponential decay rate, a volatility term), skipping the chain rule's inner-derivative factor produces a genuinely wrong sensitivity.
Related concepts
Practice in interviews
Further reading
- Spivak, Calculus, ch. 9