CONTENTS

Implicit Differentiation

Motivation: why this matters in quant finance

In most textbook calculus problems, you have an explicit function y=f(x)y = f(x) and you differentiate directly. But in quant finance, the most important quantities are often defined implicitly — through an equation you cannot solve in closed form. The canonical example is implied volatility: given a market price CmktC_{\text{mkt}}, implied vol σimpl\sigma_{\text{impl}} is defined by:
CBS(S,K,T,r,σimpl)=CmktC_{\text{BS}}(S, K, T, r, \sigma_{\text{impl}}) = C_{\text{mkt}}

You cannot write σimpl=g(S,K,T,r,Cmkt)\sigma_{\text{impl}} = g(S, K, T, r, C_{\text{mkt}}) in closed form — no such explicit formula exists. But you still need the sensitivities: how does implied vol change when the spot moves (σimpl/S\partial\sigma_{\text{impl}}/\partial S)? When time passes (σimpl/T\partial\sigma_{\text{impl}}/\partial T)? When the market price changes? Implicit differentiation answers these questions without requiring an explicit solution.

Beyond implied volatility, implicit differentiation appears whenever a model is calibrated to market data (calibrated parameters depend implicitly on observables), whenever an equilibrium condition defines a quantity (yield-to-maturity, breakeven inflation, internal rate of return), and whenever you work with constraint equations in optimisation (Lagrange multipliers).

Definition and method

The idea

Suppose xx and yy are related by an equation F(x,y)=0F(x, y) = 0, where you cannot (or do not want to) solve for yy as an explicit function of xx. To find dy/dxdy/dx, differentiate both sides with respect to xx, treating yy as a function of xx and using the chain rule wherever yy appears:
ddxF(x,y(x))=0    Fx+Fydydx=0\frac{d}{dx}F(x, y(x)) = 0 \implies F_x + F_y \cdot \frac{dy}{dx} = 0

Solving:

dydx=FxFy\frac{dy}{dx} = -\frac{F_x}{F_y}
provided Fy0F_y \neq 0. This is the implicit function theorem in its simplest form: if F(x0,y0)=0F(x_0, y_0) = 0 and Fy(x0,y0)0F_y(x_0, y_0) \neq 0, then near (x0,y0)(x_0, y_0) there exists a smooth function y=y(x)y = y(x) satisfying F(x,y(x))=0F(x, y(x)) = 0, and its derivative is Fx/Fy-F_x / F_y.

Multivariable extension

If F(x1,x2,,xn,y)=0F(x_1, x_2, \ldots, x_n, y) = 0 defines yy implicitly as a function of (x1,,xn)(x_1, \ldots, x_n):

yxi=F/xiF/y=FxiFy\frac{\partial y}{\partial x_i} = -\frac{\partial F / \partial x_i}{\partial F / \partial y} = -\frac{F_{x_i}}{F_y}
Each partial derivative of yy is the ratio of two partial derivatives of FF, with a sign flip. This is the formula used repeatedly for implied volatility sensitivities.

Key results

The Implicit Function Theorem

If F(x0,y0)=0F(x_0, y_0) = 0, FF is continuously differentiable near (x0,y0)(x_0, y_0), and Fy(x0,y0)0F_y(x_0, y_0) \neq 0, then:

  1. There exists a unique smooth function y(x)y(x) near x0x_0 with F(x,y(x))=0F(x, y(x)) = 0.
  2. y(x)=Fx/Fyy'(x) = -F_x / F_y.

The condition Fy0F_y \neq 0 is essential. Geometrically, it means the curve F=0F = 0 is not vertical at the point — you can locally express yy as a function of xx. If Fy=0F_y = 0, the curve has a vertical tangent and dy/dxdy/dx is undefined (or infinite).

Finance interpretation: For implied vol, F=CBS(σ)Cmkt=0F = C_{\text{BS}}(\sigma) - C_{\text{mkt}} = 0, so Fσ=VF_\sigma = \mathcal{V} (vega). The condition Fσ0F_\sigma \neq 0 means vega must be nonzero — the Black-Scholes price must be sensitive to volatility at the solution point. This is true for any non-degenerate option (T>0T > 0, option not deep ITM/OTM), which is why implied vol is well-defined for practically all traded options.

Second-order implicit derivatives

To find d2y/dx2d^2y/dx^2, differentiate the first-order result dy/dx=Fx/Fydy/dx = -F_x/F_y with respect to xx using the quotient rule and the chain rule (remembering yy depends on xx):
d2ydx2=FxxFy22FxyFxFy+FyyFx2Fy3\frac{d^2y}{dx^2} = -\frac{F_{xx}F_y^2 - 2F_{xy}F_xF_y + F_{yy}F_x^2}{F_y^3}

This gives the curvature of the implicit curve and is used when computing second-order sensitivities of calibrated parameters (e.g., the curvature of the implied vol smile with respect to strike).

Examples and applications

Example 1: implied volatility sensitivities

The defining equation is F(S,K,T,r,σ)=CBS(S,K,T,r,σ)Cmkt=0F(S, K, T, r, \sigma) = C_{\text{BS}}(S, K, T, r, \sigma) - C_{\text{mkt}} = 0, where CmktC_{\text{mkt}} is treated as fixed (or as another variable).

Sensitivity of implied vol to spot:
σimplS=CBS/SCBS/σ=ΔV\frac{\partial\sigma_{\text{impl}}}{\partial S} = -\frac{\partial C_{\text{BS}}/\partial S}{\partial C_{\text{BS}}/\partial \sigma} = -\frac{\Delta}{\mathcal{V}}

This is the "sticky-strike" implied vol sensitivity. When the spot moves by ΔS\Delta S, the implied vol adjusts by approximately (Δ/V)ΔS-(\Delta/\mathcal{V})\Delta S to keep the market price matched.

Sensitivity of implied vol to time:
σimplT=ΘV\frac{\partial\sigma_{\text{impl}}}{\partial T} = -\frac{\Theta}{\mathcal{V}}

This tells you how the implied vol surface shifts as time passes, holding everything else fixed.

Sensitivity of implied vol to the market price:
σimplCmkt=1V=1V\frac{\partial\sigma_{\text{impl}}}{\partial C_{\text{mkt}}} = -\frac{-1}{\mathcal{V}} = \frac{1}{\mathcal{V}}

A $1 increase in the market price raises implied vol by 1/V1/\mathcal{V}. Since vega is in dollars per vol-point, the inverse is in vol-points per dollar. This is why options with small vega (deep OTM, near expiry) have implied vols that are very sensitive to small price changes — the "vega instability" of short-dated options.

Example 2: yield to maturity

The yield to maturity yy of a bond with price PP, coupon cc, and maturity TT is defined implicitly by:

i=1nc(1+y)ti+F(1+y)T=P\sum_{i=1}^{n} \frac{c}{(1+y)^{t_i}} + \frac{F}{(1+y)^T} = P

This cannot be solved for yy in closed form (for n>4n > 4). But implicit differentiation gives:

yP=1Pformula/y=1DP\frac{\partial y}{\partial P} = -\frac{1}{\partial P_{\text{formula}}/\partial y} = \frac{1}{D \cdot P}

where DD is the (modified) duration. A dollar increase in the bond price implies a yield decrease of 1/(DP)1/(D \cdot P).

Example 3: internal rate of return

The IRR rr^* of a cash flow stream (C0,C1,,Cn)(C_0, C_1, \ldots, C_n) is defined by:

i=0nCi(1+r)i=0\sum_{i=0}^{n} \frac{C_i}{(1 + r^*)^i} = 0

Implicit differentiation with respect to any cash flow CkC_k gives the sensitivity of the IRR to that specific cash flow — useful in project finance and capital budgeting when estimating how changes in projected cash flows affect the return.

Example 4: the unit circle (textbook illustration)

The equation x2+y2=1x^2 + y^2 = 1 defines yy implicitly as a function of xx (near any point where y0y \neq 0). Differentiating both sides:

2x+2ydydx=0    dydx=xy2x + 2y\frac{dy}{dx} = 0 \implies \frac{dy}{dx} = -\frac{x}{y}

This is the classic textbook example: the slope of the circle at (x,y)(x, y) is x/y-x/y, which is undefined at y=0y = 0 (the horizontal tangent points (1,0)(1, 0) and (1,0)(-1, 0)... actually there x/yx/y diverges, corresponding to vertical tangents). The structure dy/dx=Fx/Fydy/dx = -F_x/F_y is the same in every implicit differentiation problem.

Common confusions and pitfalls

Forgetting the chain rule when differentiating yy. In F(x,y)=0F(x, y) = 0, yy depends on xx, so every occurrence of yy must be differentiated using the chain rule: ddxg(y)=g(y)dy/dx\frac{d}{dx}g(y) = g'(y) \cdot dy/dx. Treating yy as a constant is the most common error.
Dividing by zero (Fy=0F_y = 0). The formula dy/dx=Fx/Fydy/dx = -F_x/F_y fails when Fy=0F_y = 0. In the implied vol context, Fσ=V=0F_\sigma = \mathcal{V} = 0 occurs for options with zero vega — typically deep ITM/OTM options near expiry. At these points, the implied vol is ill-defined or infinitely sensitive to price changes.
Confusing "implicit" with "numerical." Implicit differentiation gives exact analytical formulas for derivatives (dy/dx=Δ/Vdy/dx = -\Delta/\mathcal{V}) even when the function y(x)y(x) has no closed form. You do not need to solve for yy first. This is the power of the method: it bypasses the explicit solution entirely.
Assuming the implicit function exists globally. The implicit function theorem is local: it guarantees y(x)y(x) exists in a neighbourhood of the point. Globally, the implicit curve may fold, branch, or self-intersect. For implied vol, global uniqueness follows from the monotonicity of Black-Scholes in σ\sigma (vega is always positive), so the local result extends globally — but this requires a separate argument.

Where this goes next

Implicit differentiation connects to:

  • Partial Derivatives: The formula y/xi=Fxi/Fy\partial y/\partial x_i = -F_{x_i}/F_y is a ratio of partials. All implied vol sensitivities are computed this way.
  • Chain Rule: The method is powered by the chain rule applied to y(x)y(x) inside FF.
  • Change of Variables: Implicit relationships between variables arise when performing substitutions in integrals and when changing probability measures.
  • Numerical Integration: Finding the implied value itself (e.g., σimpl\sigma_{\text{impl}}) requires a numerical root-finding algorithm (Newton-Raphson, bisection). Implicit differentiation tells you the sensitivity analytically; the root-finder gives you the level.

References

  • Stewart, J. (2008). Single Variable Calculus: Early Transcendentals (6th ed.). Thomson Brooks/Cole. Ch. 3 Section 3.5 (Implicit Differentiation) for the method and circle/tangent examples.
Implicit Differentiation | q4quant.studio