Mathematics for Finance
Second derivative and curvature
The derivative tells you how steep a curve is. The second derivative tells you how it bends, and that fixes the gap in the straight-line estimate.
Why is the estimate always too low?
Back to the $100 bond from Derivatives as sensitivity. Its derivative estimate is −$7.72 per percentage point. For a 2-point rise in rates it says −$15.44, but the real fall is only $14.05. For a 2-point fall it says +$15.44, but the real gain is $17.06. Either way, the true price ends up above the estimate. Why?
The idea
The second derivative is the derivative of the derivative: how fast the slope itself is changing. Its sign tells you which way a curve bends.
A curve that bends up sits above its straight-line estimate. One that bends down sits below it.
Find it by applying the rules twice. For the factory's cost, 5,000 + 20q + 0.01q2: the first derivative is 20 + 0.02q, and the second is 0.02. It's positive, so marginal cost keeps rising as output grows.
The bond's price bends upward: it's convex. That is why its straight-line estimate always comes out too low, whichever way rates move.
Quick check
Revenue is R = 50q − 0.1q2. Which way does it bend?
A better estimate
Add a curvature term to the straight-line estimate. The change in the input is squared, so this term has the same sign whichever way the input moves:
Δx, read "delta x", is the change in the input.
Worked example: the bond
At 5%, the bond's second derivative is about +$0.75 per percentage point squared. Rates rise by 2 points.
| 1. Straight-line part | −7.72 × 2 = −15.44 |
| 2. Curvature part | ½ × 0.75 × 22 = +1.50 |
| 3. Add them | −15.44 + 1.50 |
The real fall is $14.05, so the gap shrinks from $1.39 to 11 cents. Bond traders call this curvature convexity, and it's a good thing for the owner: prices fall less than the straight line says, and rise more.
Try it yourself
Compare both estimates with the bond's real price.
| Straight line only | |
| With curvature | |
| Actual change in price |
Try −2 as well. The curvature part is positive both times.
Common mistakes
Three slips beginners make.
- Mixing up slope and bend. A falling curve can still bend up. The bond's price falls as rates rise (negative first derivative) but is convex (positive second derivative).
- Forgetting the ½. The curvature term is half of f″ times the change squared.
- Giving the curvature term a minus sign when the input falls. The change is squared, so (−2)2 = 4. The term keeps the sign of f″.
Remember
- The second derivative shows how the slope changes: how a curve bends.
- Positive means it bends up (convex). Negative means it bends down (concave).
- Better estimate: f′ × Δx + ½ × f″ × (Δx)2. For bonds, this is duration plus convexity.
Check yourself
Three questions. Try them without scrolling up.
1. What does a positive second derivative tell you?
2. What is the second derivative of 4x3?
3. A convex bond faces a 1-point rise in rates. How does the straight-line estimate compare with the real change?
Optimization
Finding the best price, the lowest cost, the top of the curve.