For the one-factor affine short rate dr = κ(θ − r)dt + √(α + βr) dW: if loadings A and B satisfy the Riccati equations A'(τ) = −κθB(τ) + ½αB(τ)² and B'(τ) = 1 − κB(τ) − ½βB(τ)² at τ, then u(τ, r) = exp(A(τ) − B(τ)·r) satisfies the term-structure PDE −∂_τu + κ(θ − r)∂_ru + ½(α + βr)∂²_ru − r·u = 0 at (τ, r), with τ the time to maturity. Only this direction is proved: the entry does not show that u is the bond price E[exp(−∫r)], and no solution of the Riccati system is constructed here.
∀ {κ θ α β : ℝ} {A B : ℝ → ℝ} {τ : ℝ}, HasDerivAt A (-(κ * θ) * B τ + α / 2 * B τ ^ 2) τ → HasDerivAt B (1 - κ * B τ - β / 2 * B τ ^ 2) τ → ∀ (r : ℝ), -deriv (fun t => Real.exp (A t - B t * r)) τ + κ * (θ - r) * deriv (fun x => Real.exp (A τ - B τ * x)) r + (α + β * r) / 2 * deriv (deriv fun x => Real.exp (A τ - B τ * x)) r - r * Real.exp (A τ - B τ * r) = 0Affine bond prices solve the term-structure PDE (Duffie–Kan, one factor). If the loadings satisfy the Riccati equations A' = −κθB + ½αB² and B' = 1 − κB − ½βB² at τ, then u(τ, r) = exp(A(τ) − B(τ)·r) satisfies −∂_τ u + κ(θ − r)·∂_r u + ½(α + β r)·∂²_r u − r·u = 0 at (τ, r): the drift κ(θ − r) and the variance α + βr of the short rate dr = κ(θ − r)dt + √(α + βr) dW.