# Complete Integrability of the Merton HJB Equation via Lie Symmetry Methods **Status:** Working paper — derived via KEGA cross-analysis of Bluman (PDE symmetry) and Pham (stochastic control) **Date:** 2026-03-31 **Method:** Lie symmetry reduction (Bluman 1969–2026) applied to Merton (1969) stochastic control --- ## Abstract We show that the Hamilton-Jacobi-Bellman (HJB) ordinary differential equation arising from the Merton portfolio optimization problem admits a two-dimensional abelian Lie symmetry group. Two successive canonical symmetry reductions transform the second-order nonlinear ODE into a separable first-order ODE that integrates by partial fractions. The result is an implicit general solution parameterizing the complete solution set of the Merton HJB. The classical power-law ansatz used by Merton (1969) and Pham (2009) — typically derived by inspired guessing — emerges as the unique class of group-invariant solutions corresponding to constant fixed points of the reduced flow. A second explicit power-law solution, generally discarded on economic grounds, is recovered simultaneously without additional computation. The method requires no ansatz and generalizes to HJB equations for which no obvious functional form is available. --- ## 1. Introduction The Merton portfolio problem (Merton 1969, 1971) is the canonical problem of continuous-time stochastic control in mathematical finance. An investor allocates wealth between a risky asset and a risk-free bond to maximize expected discounted utility of consumption (or terminal wealth). The value function satisfies a Hamilton-Jacobi-Bellman (HJB) equation — a second-order nonlinear partial differential equation that, in the infinite-horizon case with power utility, reduces to a nonlinear ordinary differential equation. The standard solution method, as presented in Pham (2009, Ch. 3.6) and virtually every graduate text in mathematical finance, proceeds as follows: *guess* that the value function has the form `v(x) = K·x^p` for some constant `p`, substitute into the HJB, solve the resulting algebraic equation for `p`, and verify optimality via the verification theorem. This approach is elegant and produces the correct answer. It also completely conceals the reason why the power-law form is the right guess, what other solutions might exist, and whether the same approach generalizes to more complex market models. The theory of Lie symmetry methods for ODEs, developed systematically by Bluman and collaborators since Bluman (1969), offers an alternative: given any ODE, one can determine its full symmetry group algorithmically and use that group to reduce the order of the equation or construct invariant solutions — without guessing. The method is entirely mechanical. Surprisingly, these two bodies of work — Merton's stochastic control (1969) and Bluman's symmetry methods (1969) — appear never to have been connected in the published literature, despite developing in parallel over more than 50 years and addressing the same nonlinear PDEs. This paper establishes the connection. We compute the Lie symmetry group of the Merton HJB ODE explicitly, perform two canonical reductions, and derive the complete implicit general solution. The paper is organized as follows. Section 2 states the Merton problem and derives the HJB ODE. Section 3 computes the Lie symmetry group. Section 4 performs the two symmetry reductions. Section 5 integrates the reduced equation and states the general solution. Section 6 recovers the classical Merton solution as a special case. Section 7 discusses implications and extensions. --- ## 2. The Merton HJB Equation ### 2.1 Problem Setup Consider an investor with wealth `x > 0` allocating a fraction `π` of wealth to a risky asset with dynamics: ``` dS/S = μ dt + σ dW ``` and the remainder to a risk-free asset with return `r`. The wealth process satisfies: ``` dX = [rX + π(μ−r)X] dt + πXσ dW ``` The investor maximizes expected discounted power utility of terminal wealth (or, in the infinite-horizon version, of consumption). Let `θ = (μ−r)/σ` denote the Sharpe ratio. ### 2.2 The HJB ODE The value function `v(x)` satisfies the HJB equation. After optimizing over `π` via the first-order condition: ``` π*(x) = −(θ/σ) · v'(x)/v''(x) ``` and substituting back, the HJB reduces to the following second-order nonlinear ODE: ``` βv·v'' − rx·v'·v'' + ½θ²·(v')² = 0 (HJB) ``` where `β > 0` is the discount rate, `r > 0` is the risk-free rate, and `θ = (μ−r)/σ` is the Sharpe ratio. This is the equation we analyze. --- ## 3. Lie Symmetry Group ### 3.1 Setup A Lie point symmetry of (HJB) is a vector field: ``` X = ξ(x, v) ∂/∂x + η(x, v) ∂/∂v ``` whose second prolongation `pr²X` annihilates (HJB) on its solution manifold: ``` pr²X(F)|_{F=0} = 0 ``` where `F = βv·v'' − rx·v'·v'' + ½θ²·(v')²`. ### 3.2 The Scaling Ansatz We test the two-parameter scaling ansatz `ξ = a·x`, `η = b·v` for constants `a, b ∈ ℝ`. The prolongation coefficients are: ``` η^x = (b − a)·v' η^xx = (b − 2a)·v'' ``` ### 3.3 Symmetry Condition Computing `pr²X(F)`: ``` pr²X(F) = β·(bv)·v'' + β·v·(b−2a)v'' − r·(ax)·v'·v'' − r·x·(b−a)v'·v'' − r·x·v'·(b−2a)v'' + θ²·v'·(b−a)v' ``` Collecting by monomial: | Monomial | Coefficient | |----------|-------------| | `v·v''` | `β(b + b−2a) = 2β(b−a)` | | `x·v'·v''` | `−r(a + b−a + b−2a) = −2r(b−a)` | | `(v')²` | `θ²(b−a)` | Therefore: ``` pr²X(F) = (b−a) · [2β·v·v'' − 2r·x·v'·v'' + θ²·(v')²] = 2(b−a) · F ``` **Theorem 1.** *The vector fields `X = a·x·∂/∂x + b·v·∂/∂v` form a two-dimensional abelian Lie algebra of point symmetries of (HJB) for all `a, b ∈ ℝ`.* *Proof.* `pr²X(F) = 2(b−a)·F = 0` on `{F = 0}` for all `a, b`. The commutator `[X₁, X₂] = [x∂/∂x, v∂/∂v] = 0`. □ The basis vectors are: ``` X₁ = x·∂/∂x (scale wealth) X₂ = v·∂/∂v (scale value function) ``` --- ## 4. Symmetry Reduction ### 4.1 First Reduction: Eliminating Explicit x-Dependence Use `X₁ = x·∂/∂x`. The canonical coordinate is `t = ln(x)`, so that `X₁ = ∂/∂t`. With `x = eᵗ`: ``` v' = v̇·e⁻ᵗ v'' = (v̈ − v̇)·e⁻²ᵗ ``` where dots denote `d/dt`. Substituting into (HJB) and multiplying by `e²ᵗ`: ``` β·v·(v̈ − v̇) − r·v̇·(v̈ − v̇) + ½θ²·v̇² = 0 (HJB₁) ``` This autonomous equation no longer contains `t` (equivalently `x`) explicitly. The order has been effectively reduced. ### 4.2 Second Reduction: The Logarithmic Elasticity Let `P = v̇ = dv/dt`. In the `(v, P)` phase plane, `X₂ = v·∂/∂v` acts as `(v, P) → (λv, λP)`, with invariant: ``` Q = P/v = (dv/dt)/v = x·v'(x)/v(x) ``` This is the **local elasticity** of the value function with respect to wealth — a natural dimensionless quantity in economics. Setting `P = Q·v` and `dP/dv = Q + v·dQ/dv`, equation (HJB₁) becomes (dividing by `v ≠ 0`): ``` (β − rQ)·(Q + v·dQ/dv − 1) + ½θ²·Q = 0 ``` Solving for `v·dQ/dv`: ``` v·dQ/dv = −[(Q−1)(β−rQ) + ½θ²Q] / (β−rQ) ``` Expanding the numerator: ``` −(Qβ − rQ² − β + rQ) − ½θ²Q = rQ² − (β+r+½θ²)Q + β ``` This gives the **fully reduced equation**: ``` (β − rQ) dQ / [rQ² − (β+r+½θ²)Q + β] = d(ln v) (HJB₂) ``` **The left side depends only on Q; the right side only on v. The equation is separable.** --- ## 5. Integration and General Solution ### 5.1 The Characteristic Polynomial Let `a = β + r + ½θ²`. The denominator of (HJB₂) is the quadratic `D(Q) = rQ² − aQ + β`. Its roots are: ``` p₁, p₂ = [a ± √(a² − 4rβ)] / (2r) ``` where `a² − 4rβ = (β+r+½θ²)² − 4rβ = (β−r)² + θ²(β+r) + ¼θ⁴ > 0`. Both roots are real and positive for economically relevant parameters. **These roots are exactly the admissible power-law exponents of the Merton solution.** ### 5.2 Partial Fraction Decomposition Write `D(Q) = r(Q−p₁)(Q−p₂)`. The integrand decomposes as: ``` (β − rQ) / [r(Q−p₁)(Q−p₂)] = α₁/(Q−p₁) + α₂/(Q−p₂) ``` where: ``` α₁ = (β − rp₁) / [r(p₁ − p₂)] α₂ = (β − rp₂) / [r(p₂ − p₁)] ``` **A universal identity:** By direct computation: ``` α₁ + α₂ = [(β−rp₁) − (β−rp₂)] / [r(p₁−p₂)] = r(p₂−p₁)/[r(p₁−p₂)] = −1 ``` The exponents sum to −1 for all model parameters `β, r, θ`. ### 5.3 General Solution Integrating both sides of (HJB₂): ``` α₁·ln|Q − p₁| + α₂·ln|Q − p₂| = ln v + C ``` Exponentiating: ``` |Q − p₁|^α₁ · |Q − p₂|^α₂ = K · v (GS) ``` for an arbitrary constant `K > 0`. Combined with the definition `Q = x·v'(x)/v(x)`, equation (GS) is the **implicit general solution** of the Merton HJB ODE. **Theorem 2 (General Solution).** *The complete solution of the Merton HJB ODE (HJB) is given implicitly by:* ``` |x·v'/v − p₁|^α₁ · |x·v'/v − p₂|^α₂ = K · v ``` *where `p₁ < p₂` are the roots of `rp² − (β+r+½θ²)p + β = 0`, `α₁ + α₂ = −1`, and `K > 0` is arbitrary.* --- ## 6. Recovery of the Classical Merton Solution ### 6.1 Group-Invariant Solutions The constant solutions `Q = p` of the reduced equation (HJB₂) correspond to fixed points of the right-hand side: ``` rQ² − (β+r+½θ²)Q + β = 0 ``` For `Q = p₁` or `Q = p₂` (constant), `dQ/dv = 0`, and `Q = x·v'(x)/v(x) = p` gives: ``` x·v'(x) = p·v(x) ⟹ v(x) = C·xᵖ ``` **Corollary.** *The Merton HJB has exactly two group-invariant (power-law) solutions:* ``` v₁(x) = C₁·x^{p₁} and v₂(x) = C₂·x^{p₂} ``` *where `p₁, p₂` are the two roots of the characteristic polynomial.* ### 6.2 What Pham Computes Pham (2009, Theorem 3.6.1) guesses `v(x) = Kx^γ` and finds that `γ` must satisfy: ``` rγ² − (β+r+½θ²)γ + β = 0 ``` This is **identical** to our characteristic polynomial. Pham selects the economically relevant root (the one consistent with the boundary conditions of the utility maximization problem) and discards the other. **The symmetry method derives both roots automatically, from the structure of the equation, without guessing.** ### 6.3 The Discarded Solution The second root `p₂ > p₁` generally yields a value function `v₂(x) = C₂·x^{p₂}` that grows too fast to satisfy the transversality condition or corresponds to a non-optimal control. However, in modified problems — finite horizon, portfolio constraints, regime switching — the second solution may become relevant. The symmetry method provides it at no extra cost. --- ## 7. Discussion and Extensions ### 7.1 The Full Pipeline The connection between the two fields now has a precise form: ``` Bluman (symmetry group → invariant solutions) ↓ Merton HJB: 2D abelian group → complete integrability ↓ two reductions Separable ODE → implicit general solution ↓ group-invariant solutions v(x) = C·x^p (both values of p) ↓ Pham (verification theorem → optimality) ↓ Optimal portfolio π*(x) confirmed as optimal ``` Neither the Bluman nor the Pham literature contains this pipeline. It exists only in the gap between them. ### 7.2 Why the Symmetry Group is 2-Dimensional The result `pr²X(F) = 2(b−a)·F` reveals the structural reason: the Merton HJB ODE is **homogeneous of degree 2** in `(v, v', v'')` under the combined scaling `(x, v) → (λx, μv)`. Any equation of this form automatically admits a 2D scaling symmetry group. This is not a coincidence specific to Merton — it is a consequence of the fact that: 1. The value function appears linearly in the HJB (through `v`, `v'`, `v''`) 2. The nonlinearity enters only through the `(v')²/v''` term — which is homogeneous of degree 1 in `(v', v'')` Any HJB arising from a homogeneous utility function (power, log) and linear wealth dynamics will share this structure. ### 7.3 Extensions The method applies directly to: - **Exponential utility HJB**: admits translation symmetry `X = ∂/∂v` → reduces to first-order ODE → explicit closed-form solution - **Regime-switching HJB**: system of coupled ODEs; symmetry analysis more complex but possible - **Stochastic volatility HJB**: two-dimensional PDE; requires PDE symmetry methods (Bluman 2013) - **Mean field game HJB systems**: coupled HJB-Fokker-Planck; KEGA predicts this as the next frontier ### 7.4 The AI Acceleration Angle The symmetry computation in Section 3 is entirely algorithmic. Given any HJB ODE, the prolongation computation is a mechanical substitution and comparison of coefficients. This is precisely the type of structured algebraic computation that AI-assisted symbolic systems can perform at scale — pattern-matching symmetry structures, testing ansätze, and predicting which transformations succeed before computing them. Even at a 50% success rate, this approach would systematically find closed-form solutions to nonlinear HJB equations that are currently solved only numerically. --- ## 8. Conclusion We have demonstrated that the Merton HJB ODE admits a two-dimensional abelian Lie symmetry group, established by a direct prolongation computation. Two canonical symmetry reductions transform the equation into a separable first-order ODE that integrates by partial fractions, yielding an implicit general solution. The classical Merton power-law ansatz emerges as the unique family of group-invariant solutions, and the characteristic equation for the power-law exponent is recovered from the symmetry structure without guessing. The result has three implications: 1. **Methodological**: The Bluman symmetry framework provides a systematic alternative to the guess-and-verify approach dominant in stochastic control. 2. **Structural**: The complete solution set of the Merton HJB is two-dimensional (parameterized by K and a discrete choice of branch), a fact invisible from the standard treatment. 3. **Generalization**: Any HJB arising from homogeneous utility and linear wealth dynamics admits the same 2D symmetry structure, making the present analysis a template for a class of problems. --- ## Appendix: Key Equations | Object | Expression | |--------|------------| | Merton HJB ODE | `βv·v'' − rx·v'·v'' + ½θ²(v')² = 0` | | Symmetry algebra | `X = a·x∂/∂x + b·v∂/∂v`, all `a,b ∈ ℝ` | | Prolongation result | `pr²X(F) = 2(b−a)·F` | | Reduced equation | `(β−rQ)dQ / [rQ²−aQ+β] = d(ln v)` | | Elasticity variable | `Q = x·v'(x)/v(x)` | | Characteristic polynomial | `rp² − (β+r+½θ²)p + β = 0` | | Exponent identity | `p₁ + p₂ = (β+r+½θ²)/r`, `p₁·p₂ = β/r` | | General solution | `\|Q−p₁\|^α₁ · \|Q−p₂\|^α₂ = K·v`, `α₁+α₂ = −1` | | Merton solution | `v(x) = C·x^{p₁}` (economically relevant branch) | --- ## References - Bluman, G.W. (1969). *Construction of Solutions to Partial Differential Equations by the Use of Transformation Groups.* PhD thesis, Caltech. - Bluman, G.W. & Kumei, S. (1989). *Symmetries and Differential Equations.* Springer. - Bluman, G.W. & Cheviakov, A. & Anco, S. (2010). *Applications of Symmetry Methods to Partial Differential Equations.* Springer. - Bluman, G.W. & Yang, Z. (2013). A symmetry-based method for constructing nonlocally related PDE systems. *Journal of Mathematical Physics*, 54. - Merton, R.C. (1969). Lifetime portfolio selection under uncertainty: The continuous-time case. *Review of Economics and Statistics*, 51(3), 247–257. - Merton, R.C. (1971). Optimum consumption and portfolio rules in a continuous-time model. *Journal of Economic Theory*, 3(4), 373–413. - Olver, P.J. (1993). *Applications of Lie Groups to Differential Equations.* Springer. - Pham, H. (2009). *Continuous-time Stochastic Control and Optimization with Financial Applications.* Springer. --- *Derived via KEGA (Knowledge Extension via Gap Analysis) — cross-analysis of Bluman (1969–2026) and Pham (2009).* *Working paper, 2026-03-31.* --- --- ## Appendix D — KEGA Self-Analysis: Open Problems Derived from This Paper *The following gaps were derived by applying KEGA to the internal logic of this paper itself — reading what the paper implies must exist, but does not yet contain. This is KEGA operating recursively: the method that generated the paper now generates the next research agenda from the paper.* --- ### Gap 1 — The Full Symmetry Group is Not Proven Complete **What the paper does:** Finds the 2D scaling algebra `{x∂/∂x, v∂/∂v}` by testing a scaling ansatz. **What it implies must exist:** A complete Lie symmetry classification — testing all possible `ξ(x,v)`, `η(x,v)`, not just the scaling family. The 2D algebra may not be the full symmetry group. If additional symmetries exist (translational, projective, or non-polynomial), further reductions become possible — potentially yielding an *explicit* closed-form general solution rather than the current implicit one. **The open problem:** Compute the complete symmetry group of the Merton HJB ODE. Determine whether 2D is maximal or whether larger algebras exist for special parameter relationships. --- ### Gap 2 — The General Solution Has No Economic Interpretation **What the paper does:** Derives the implicit general solution `|Q−p₁|^α₁ · |Q−p₂|^α₂ = K·v` and stops. **What it implies must exist:** The non-power-law solutions — the solution curves between the two branches — correspond to *some* investor behavior. What utility function or market structure do they arise from? Are they reachable as limits of perturbed power utility? Do they represent suboptimal strategies, or are they optimal for a different problem formulation? **The open problem:** Characterize the economics of the general solution. Determine whether the off-branch solutions are achievable (as value functions of some well-posed control problem) or purely mathematical artifacts. --- ### Gap 3 — The α₁ + α₂ = −1 Identity Lacks a Structural Explanation **What the paper does:** Derives `α₁ + α₂ = −1` by direct algebraic computation and notes it holds for all model parameters. **What it implies must exist:** A deeper reason. Universal identities in symmetry analysis typically trace back to conservation laws, topological invariants of the symmetry group, or index theorems. The fact that this identity is parameter-independent — holding for all `β, r, θ > 0` — suggests it is a structural consequence of the 2D abelian symmetry itself, not of the specific coefficients of the HJB. **The open problem:** Prove `α₁ + α₂ = −1` from the symmetry group structure alone, without reference to the specific HJB coefficients. Determine whether this identity generalizes to any ODE with a 2D abelian scaling symmetry. --- ### Gap 4 — The Verification Theorem Connection is Never Closed **What the paper does:** Claims the pipeline is "Bluman (find solution) → Pham (verify optimality)" and demonstrates the first half. **What it implies must exist:** The second half — applying Pham's verification theorem directly to the general implicit solution. Does `|Q−p₁|^α₁ · |Q−p₂|^α₂ = K·v` satisfy the required smoothness conditions? What is the optimal control policy `π*(x)` for the off-branch solutions? Is it implementable? **The open problem:** Complete the pipeline. Apply the verification theorem to the general solution and characterize which branches correspond to admissible optimal controls. --- ### Gap 5 — Stochastic Volatility and 2D HJB Are Untouched **What the paper does:** Notes in Section 7.3 that "stochastic volatility HJB requires PDE symmetry methods" and stops. **What it implies must exist:** The Heston model HJB is a 2D second-order nonlinear PDE. Does it admit a 2D (or higher) symmetry group? Does the same scaling structure persist? Heston's model is the most widely used in practice — its exact solvability (or lack thereof) via symmetry methods would have direct applied value. **The open problem:** Compute the Lie symmetry group of the Heston HJB PDE. Determine whether complete integrability holds, and if not, characterize the obstruction. --- ### Gap 6 — No Classification Theorem Exists **What the paper does:** Proves one HJB equation (Merton, power utility, linear wealth dynamics) is completely integrable. Section 7.2 conjectures the result extends to "any HJB from homogeneous utility and linear wealth dynamics." **What it implies must exist:** A complete classification — a theorem that maps utility function class and market dynamics to symmetry group dimension and integrability. The Merton paper is the first entry in a *symmetry atlas of stochastic control* that does not yet exist. **The open problem:** For each standard utility function (power, log, exponential, quadratic) and each standard market model (GBM, mean-reverting, jump-diffusion, stochastic volatility), determine the symmetry group of the associated HJB and classify which are exactly solvable. This atlas would tell practitioners, once and for all, which stochastic control problems have closed-form solutions and which fundamentally do not. --- ### The Master Gap Each of the six gaps above is a paper. Gap 6 is the book. The present work establishes that the boundary between *exactly solvable* and *numerically approximated* stochastic control problems has geometric structure — it is not random, not a matter of luck or inspiration, but a consequence of the symmetry group of the underlying HJB. KEGA found this boundary by reading the gap between Bluman and Pham. The next step is to map it completely. ``` This paper: one point on the boundary Gap 6: the complete map of the boundary The atlas: the book that does not yet exist ``` *— Derived by applying KEGA to this paper's internal logic, 2026-03-31*