Skip to content

Second derivative

The second derivative measures how a slope changes. See why bond prices can fall with positive curvature, how units affect sensitivities, and when the second derivative test applies.

The second derivative measures how a function's first derivative changes as its input changes. A derivative tells you the current slope; the second derivative tells you whether that slope is rising or falling. In finance, this distinguishes a price's immediate sensitivity from the way that sensitivity changes when the market moves.

For ff differentiable near xx, the second derivative exists where the following limit exists:

f′′(x)=ddxf′(x)=lim⁡h→0f′(x+h)−f′(x)h.f''(x)=\frac{d}{dx}f'(x) =\lim_{h\to0}\frac{f'(x+h)-f'(x)}{h}.

It is also written d2f/dx2d^2f/dx^2. This means differentiating twice, not squaring f′(x)f'(x).

A falling bond price can have a positive second derivative

Consider a hypothetical zero-coupon bond paying USD 100 in exactly three years. Ignore default, transaction costs and any passage of time. Let yy be its annual continuously compounded yield, expressed as a decimal: 4% means y=0.04y=0.04. Its price is
P(y)=100e−3y,P′(y)=−3P(y),P′′(y)=9P(y).P(y)=100e^{-3y},\qquad P'(y)=-3P(y),\qquad P''(y)=9P(y).
The first derivative is negative, so price falls as yield rises. The second derivative is positive, so the slope becomes less negative as yield rises. These statements are compatible: a price can fall while its rate of decline eases.
Two panels for a hypothetical three-year zero-coupon bond with USD 100 face value. Between yields 2% and 6%, price decreases while its slope increases. At 4%, price is USD 88.69204 and slope is minus USD 2.660761 per percentage point of yield.
Two panels for a hypothetical three-year zero-coupon bond with USD 100 face value. Between yields 2% and 6%, price decreases while its slope increases. At 4%, price is USD 88.69204 and slope is minus USD 2.660761 per percentage point of yield.
Original synthetic example. Time and the promised payment are fixed. The chart's horizontal coordinate is yield in percentage points; the equations use decimal yield.

At 4%, the price is USD 88.69204, with

P′(0.04)=−266.076131,P′′(0.04)=798.228393.P'(0.04)=-266.076131,\qquad P''(0.04)=798.228393.

Suppose yield immediately rises to 5%, a change of Δy=0.01\Delta y=0.01. Keeping only the original slope predicts a price change of P′(0.04)ΔyP'(0.04)\Delta y. Allowing the slope to change adds the second-order term:

ΔP≈P′(0.04)Δy+12P′′(0.04)(Δy)2.\Delta P\approx P'(0.04)\Delta y +\frac12P''(0.04)(\Delta y)^2.
CalculationPrice change, USD per bond
Original slope only−2.660761
Second-order correction+0.039911
Slope plus correction−2.620850
Exact repricing, P(0.05)−P(0.04)P(0.05)-P(0.04)−2.621246

The positive correction reduces the predicted loss; it does not turn it into a gain. Exact repricing gives a new price of USD 86.070798. Here the second-order estimate overstates that price by about USD 0.000396. The correction belongs to a local Taylor approximation, so its accuracy for larger moves must be checked rather than assumed.

Name the input before interpreting the number

If an output has units UU and its input has units XX, its first derivative has units U/XU/X and its second derivative has units U/X2U/X^2. The input's quoting scale matters even when it is mathematically dimensionless.

In the bond example, P′′(0.04)P''(0.04) is USD per decimal-yield unit squared. If p=100yp=100y records yield in percentage points, define Q(p)=P(p/100)Q(p)=P(p/100). Then
Q′(p)=P′(p/100)100,Q′′(p)=P′′(p/100)10000.Q'(p)=\frac{P'(p/100)}{100},\qquad Q''(p)=\frac{P''(p/100)}{10000}.

At p=4p=4, the second derivative is therefore USD 0.079823 per percentage point squared. The same yield move is either Δy=0.01\Delta y=0.01 or Δp=1\Delta p=1; either convention gives the same USD 0.039911 correction. Mixing the derivative from one scale with a move from the other gives the wrong answer.

Two familiar finance measures illustrate why the variable and normalisation belong in the definition:

  • Option gamma is ∂2V/∂S2\partial^2V/\partial S^2: the change in delta as the underlying price SS changes, holding the other pricing inputs fixed. Position size and contract multipliers determine the units of VV.
  • Yield-based bond convexity is commonly normalised by price: C=P′′(y)/P(y)C=P''(y)/P(y) under a specified yield convention. For this continuous-yield zero, C=9C=9 years squared. The raw second derivative is 9P9P, not 99.

Neither the name “second derivative” nor a positive result in this example implies that every financial product has positive second-order sensitivity. Changing the input, the position sign or the product can change the interpretation and sign.

What its sign establishes

For a twice-differentiable function on an open interval, f′′>0f''>0 throughout the interval means the slope increases and the graph is convex, or concave upward. If f′′<0f''<0 throughout, the slope decreases and the graph is concave downward. A sign observed at one point does not establish the shape over an entire interval.
For an interior stationary point cc, the standard second derivative test assumes f′(c)=0f'(c)=0 and, as a convenient sufficient regularity condition, that f′′f'' is continuous near cc. Then f′′(c)>0f''(c)>0 gives a strict local minimum, while f′′(c)<0f''(c)<0 gives a strict local maximum. The stationarity condition matters: our bond has positive P′′P'' everywhere but no stationary price minimum as a function of yield.
When f′′(c)=0f''(c)=0, the test is inconclusive. At zero, x4x^4, −x4-x^4 and x3x^3 all have zero first and second derivatives, yet respectively give a minimum, a maximum and neither. A zero second derivative also does not by itself identify an inflection point; that requires a change of concavity.
For a fuller treatment of these sign tests and graph construction, see Curve Sketching: Concavity, Inflection Points, and the Derivative Tests (membership for the full lesson; public preview).

Sources

Last updated
  • calculus
  • curvature
  • bond pricing
  • sensitivities
← Back to the glossaryBack to top ↑