The value of a position depends on several inputs at once, such as rates, a volatility and an underlying price, and a risk report lists its slopes and curvatures. When two inputs move together, how much does the value change, and when can that estimate be trusted? This lesson defines partial derivatives, gradients and Hessians of a specified value function, derives the second-order Taylor expansion with its exact integral remainder along a segment, and shows how a payoff kink breaks the hypothesis behind the expansion.
Key terms
Partial derivative and gradient
Definition Let be a real-valued function on an open set , let and let be the th coordinate vector. The partial derivative of with respect to coordinate at is
when the limit exists, with all other coordinates held fixed. The function is differentiable at if some vector satisfies
meaning that the left side divided by tends to . Then all partial derivatives exist and is the gradient
and for every vector the directional derivative exists and equals . If all partial derivatives exist and are continuous on , then is differentiable at every point of . Partial derivatives that merely exist at a point do not guarantee differentiability there.
In plain words A partial derivative is the slope of the value when one input moves and every other input stays put. The gradient collects these slopes. When the function is differentiable, a small joint move changes the value by about the sum of each input change times its slope, with an error that is small compared with the size of the move.
Example Take the constructed value function , in currency units, of two abstract risk factors. Holding fixed gives , and holding fixed gives . At the value is and the gradient is . For the joint move the directional derivative is , so the first-order estimate of the new value is .
Price sensitivity
Definition A price sensitivity is a derivative of a specified value function at a specified base point, in a specified direction of the inputs, with a stated rule for which other inputs are held fixed and a stated unit for the move. The sensitivity to input alone is , and the sensitivity to a joint move in direction , such as a parallel shift of several rates, is . If another input is recalibrated together with the quoted one, say for a differentiable calibration map , and is differentiable, the sensitivity along the calibration is the total derivative
with both partial derivatives evaluated at , and it differs from the partial derivative whenever the second term is nonzero. A derivative with respect to a rate in decimal units is a change per unit of the rate, so the first-order change for a move of one percentage point is times it and for one basis point times it. Multiplying a sensitivity by a move gives a first-order approximation, not the exact change.
In plain words A sensitivity is a number attached to a function, a point, a direction and a unit. Change any of these and the number changes, so two reports can give different sensitivities for the same position without either being wrong, because they answer different questions.
Example A zero-coupon bond that pays currency units in years, valued at a continuously compounded rate , is worth . At the value is about and currency units per unit of . The first-order change is about for a rise of one percentage point and about for a rise of one basis point, against exact changes of about and . For the quadratic of the previous card, if a calibration rule keeps , the total derivative at is , while the partial derivative is .
Hessian matrix
Definition Let be twice continuously differentiable on an open set . The Hessian matrix of at is the matrix with entries
Because the second partial derivatives are continuous, the mixed partial derivatives agree (Schwarz’s theorem), so is symmetric. A diagonal entry is the curvature of along coordinate , and an off-diagonal entry measures how the slope in coordinate changes when coordinate moves. In the quadratic form
each interaction appears twice, once for each order of the two coordinates. The entry carries value units divided by the units of inputs and , so every term is in value units.
In plain words The Hessian records how the gradient itself changes. Its diagonal says whether the value bends up or down along each input, and its off-diagonal entries say how strongly two inputs interact. When they interact, the effect of moving both at once is not the sum of the effects of moving each alone.
Example For , differentiating the gradient entries again gives the constant Hessian
For the quadratic form is
Counting the interaction only once would give in place of .
Second-order Taylor expansion
Definition Let be twice continuously differentiable on an open set , and let and be such that the whole segment lies in . Then
where the remainder has the exact integral form of the next card and satisfies as . The proof reduces to one variable. The function on has and , and by the chain rule
Dropping gives the second-order approximation, written with . It is exact when is a quadratic polynomial, because then is constant and the remainder vanishes.
In plain words Along the straight path from the old inputs to the new ones, the value is a function of one variable. Its slope at the start gives the first-order term, its curvature at the start gives the second-order term, and whatever the curvature does along the rest of the path is the remainder.
Example For the quadratic at with , the expansion gives
Direct evaluation at gives , the same value, as it must be for a quadratic. The first-order estimate misses by , the curvature and interaction term.
Integral remainder
Definition Under the hypotheses of the second-order expansion, the remainder is exactly
where
To derive it, write and , and exchange the order of integration over the triangle , where each is covered by an -interval of length . This gives
and since , subtracting leaves the formula for . Let be the largest operator norm of over . Then , so
and continuity of at gives as . This is a local statement only. A continuous Hessian gives no numerical bound for a move of a given size. If is three times continuously differentiable on , one more integration by parts gives
so a bound along the segment gives , and bounded third derivatives give an error of order .
In plain words The remainder is the part of the value change caused by the curvature changing along the path. It is small for small moves when the Hessian is continuous, but how small it is for a move of a given size depends on how fast the curvature changes, and continuity alone does not say.
Example For the bond value at , the second derivative is . For a rise of one percentage point the first-order term is about and the second-order term about , so the second-order approximation is about , while the exact value is about . The remainder is about , and the integral formula with gives the same number. For a rise of ten percentage points the approximation is about against an exact value of about , a remainder of about . The same expansion that is accurate for the small move is visibly off for the large one.
Payoff kink
Definition A payoff kink is a point where a continuous payoff function has different one-sided derivatives, so that it is not differentiable there. The call payoff with strike ,
has slope for and slope for . At its left derivative is and its right derivative is , so it has a kink at . A Taylor expansion cannot be centered at , since the derivatives it needs do not exist there. Centered at , the second-order theorem applies to a move exactly when the segment from to does not contain . The segment then lies on one side of the strike, where the payoff is linear and the expansion is exact. A segment that reaches or crosses is not contained in any open set on which the payoff is twice continuously differentiable.
In plain words At the strike the payoff turns a corner. Above the strike it moves one for one with the stock price, below it not at all, and no single slope describes both sides. A Taylor expansion assumes that there is no corner anywhere along the move, and a sensitivity label such as a delta does not supply the missing derivative.
Example Take . The difference quotients at the strike with step are from the left and from the right, the two one-sided derivatives. Centered at , the expansion has value, slope and curvature all equal to , so it predicts a payoff of for every move. That is correct for a move to , but a move to crosses the strike and the true payoff is . Before expiry a model price may be a smooth function of the stock price even though the payoff is not, but that smoothness is a property of the model price that has to be established, not assumed.
Check yourself
- A report gives the derivative of a position’s value with respect to a decimal interest rate as currency units per unit of the rate. Estimate the first-order change in value for a rise of basis points. What do you get if you multiply the derivative by or by , and why are those wrong?
Show the answer
A rise of basis points is in decimal units, so the first-order change is
currency units. Multiplying by treats each basis point as a whole unit of the rate and gives . Multiplying by uses the move in percentage points with a derivative per decimal unit and gives , which is times too large. The derivative per percentage point is , and agrees with the correct answer.
- For at and the move , compute the gradient, the Hessian and the second-order estimate of . Compare it with the exact value and identify the remainder.
Show the answer
The gradient is , so the first-order term is . The Hessian and the quadratic form are
The second-order estimate is , while the exact value is . Expanding shows that the remainder is exactly the cubic term . The integral formula agrees, since here and . Counting the mixed term only once would give , a worse estimate.
- A colleague expands the payoff to first order at using the slope , the average of the two one-sided slopes. What does this predict at and at , and what are the true payoffs? For which moves does the second-order Taylor theorem apply when the expansion is centered at instead?
Show the answer
The averaged slope predicts at and at . The true payoffs are and , so each prediction is off by , and the second one is negative although the payoff never is. No derivative exists at the strike, and averaging the one-sided slopes does not create one.
Centered at , the payoff is twice continuously differentiable on the open interval below , and the segment from to avoids the strike exactly when . For those moves the theorem applies and its prediction is exact. For the segment contains the strike and the theorem does not apply. At the prediction still happens to equal the payoff, but for it misses by .