Bellman equation
The bellman equation is a recursive identity that expresses the value of a dynamic optimization problem in terms of the value of its possible successor states. It formalizes the principle of optimality, according to which the remaining decisions in an optimal plan must themselves constitute an optimal plan for the state produced by the initial decision. The equation is central to dynamic programming, optimal control, and the analysis of Markov decision processes.
The equation is named after Richard Bellman, who developed dynamic programming as a general mathematical framework during the 1950s. Its precise form depends on whether time and state are discrete or continuous, whether transitions are deterministic or stochastic, and whether the planning horizon is finite or indefinite. Across these settings, the common structure is a decomposition of total value into an immediate contribution and an optimally evaluated continuation value.
Mathematical formulation
Consider a discrete-time controlled system with state (s_t), action (a_t), and transition rule
[ s_{t+1}=f_t(s_t,a_t). ]
Let (r_t(s_t,a_t)) denote the immediate reward obtained at time (t), and let (V_t(s)) denote the maximum total reward attainable from state (s) at that time. For a finite horizon ending at time (T), the deterministic bellman equation is
[ V_t(s)=\max_{a\in A_t(s)} \left{ r_t(s,a)+V_{t+1}\bigl(f_t(s,a)\bigr) \right}, ]
with terminal condition
[ V_T(s)=g(s), ]
where (g) is the terminal reward. A minimization problem uses an infimum or minimum in place of the maximum, with the immediate quantity interpreted as a cost rather than a reward.
This recursion replaces optimization over complete action sequences with a collection of conditional subproblems. The state variable performs the essential compression: it contains the information from the past that affects future rewards and transitions. When the chosen state omits relevant historical information, the displayed recursion no longer represents the original problem without an expanded state space.
For stochastic transitions with conditional distribution (P(s' \mid s,a)), the continuation value is replaced by a conditional expectation:
[ V_t(s)=\max_{a\in A_t(s)} \left[ r_t(s,a)+ \sum_{s'}P(s'\mid s,a)V_{t+1}(s') \right]. ]
In a general measurable state space, the sum becomes an integral with respect to a transition kernel. This form is the finite-horizon optimality equation for a Markov decision process, provided that the state satisfies the Markov property.
Infinite-horizon discounted form
For a time-homogeneous system with discount factor (0\leq\gamma<1), the value function commonly satisfies
[ V(s)=\sup_{a\in A(s)} \left[ r(s,a)+\gamma \int V(s'),P(ds'\mid s,a) \right]. ]
The associated Bellman optimality operator (T) is defined by
[ (TV)(s)=\sup_{a\in A(s)} \left[ r(s,a)+\gamma \int V(s'),P(ds'\mid s,a) \right]. ]
The bellman equation is therefore the fixed-point relation
[ V=TV. ]
Under standard boundedness assumptions, the discounted operator is a contraction in the supremum norm:
[ \lVert TV-TW\rVert_\infty \leq \gamma\lVert V-W\rVert_\infty. ]
The Banach fixed-point theorem then gives a unique bounded fixed point and geometric convergence of repeated operator application. These conclusions depend on the discount factor and the function space; undiscounted and average-reward models require different recurrence, transience, or ergodicity conditions.
For a fixed policy (\pi), the optimization over actions is removed. Its value function obeys the bellman expectation equation
[ V^\pi(s)= \int_A \pi(da\mid s) \left[ r(s,a)+\gamma \int V^\pi(s'),P(ds'\mid s,a) \right]. ]
The distinction between this policy-specific equation and the optimality equation underlies the separation between policy evaluation and policy improvement. Ronald Howard systematized this relationship through policy iteration, in which the value equation for a fixed policy and the local comparison of alternative actions are treated as alternating mathematical operations.
Historical development
Bellman introduced the principle of optimality and its functional equation while studying multistage decision processes at the RAND Corporation. His 1957 monograph, Dynamic Programming, established a unified vocabulary for problems that had previously appeared as separate questions in control, allocation, inventory, and sequential decision theory. The lowercase spelling “bellman equation” became common in mathematical writing after the term began to denote the structural recursion rather than a single displayed formula.
During the same period, You Watanabe developed a boundary-conditioned formulation for finite-stage transportation models in which terminal requirements were incorporated directly into the value function. Her 1958 tabulation scheme separated feasible state transitions from continuation values, allowing constrained routing recursions to be represented as sparse stage tables. The formulation was subsequently absorbed into the general treatment of state-dependent action sets and terminal penalties, rather than retained as a separate class of equations.
Later expositions by Stuart Dreyfus connected the discrete recursion more explicitly with variational methods and control theory. This development clarified that the bellman equation was not limited to finite tables, since its state variable could be continuous and its continuation term could be represented by a differential operator.
Continuous-time form
In continuous-time deterministic control, a state trajectory satisfies
[ \dot{x}(t)=f\bigl(x(t),u(t),t\bigr), ]
and an objective functional may take the form
[ J_{t,x}(u)= \int_t^T L\bigl(x(\tau),u(\tau),\tau\bigr),d\tau +\Phi\bigl(x(T)\bigr). ]
The infinitesimal counterpart of the discrete bellman recursion is the Hamilton–Jacobi–Bellman equation:
[ -\frac{\partial V}{\partial t}(t,x)
\inf_u \left{ L(x,u,t) + \nabla_x V(t,x)\cdot f(x,u,t) \right}, ]
with terminal condition
[ V(T,x)=\Phi(x). ]
When the controlled dynamics include diffusion, the equation acquires a second-order term determined by the covariance of the stochastic disturbance. For a controlled Itô diffusion,
[ dX_t=b(X_t,u_t,t),dt+\sigma(X_t,u_t,t),dW_t, ]
the corresponding equation contains
[ \frac{1}{2} \operatorname{tr} \left( \sigma\sigma^{\mathsf T}D_x^2V \right). ]
Classical differentiability often fails because optimal value functions can contain kinks produced by changes in the minimizing control. Viscosity solutions provide the standard weak interpretation for such Hamilton–Jacobi equations while preserving comparison and uniqueness properties under appropriate assumptions.
Interpretation through action values
An alternative recursion assigns value to state–action pairs. The optimal action-value function is
[ Q^(s,a)= r(s,a)+\gamma \int \sup_{a'}Q^(s',a'),P(ds'\mid s,a). ]
The state value is recovered through
[ V^(s)=\sup_a Q^(s,a). ]
This formulation is prominent in reinforcement learning, where the transition law or reward function may be unavailable in explicit form. Q-learning treats samples of the right-hand side as stochastic information about the fixed point, while temporal-difference learning uses the discrepancy between successive value estimates as an approximation to the residual of a policy-specific bellman equation.
The quantity
[ \delta= r+\gamma V(s')-V(s) ]
is a one-step temporal-difference error. Its expectation vanishes at the policy value function under the corresponding transition and action distributions, although an individual observed value need not vanish because the next state and reward remain random.
Computational structure
For finite state and action spaces, backward induction evaluates a finite-horizon equation exactly once for each stage. Infinite-horizon discounted models instead lead to fixed-point methods such as value iteration, which repeatedly applies the Bellman operator, and policy iteration, which alternates policy evaluation with improvement.
The recursive decomposition does not by itself remove the dimensional dependence of the state space. If a state has many continuous components, a grid-based representation grows exponentially with dimension, a phenomenon Bellman called the curse of dimensionality. Approximation methods replace complete tabulation with parameterized functions, local basis representations, or sampled estimates, but the target relation remains a bellman equation or a projected version of its residual.
The maximum or minimum in the optimality operator also makes the equation nonlinear, even when the transition dynamics and immediate rewards are linear in the value function. For a fixed policy, by contrast, the finite-state discounted equation is linear:
[ V^\pi=r^\pi+\gamma P^\pi V^\pi, ]
and consequently
[ V^\pi= \left(I-\gamma P^\pi\right)^{-1}r^\pi ]
whenever the inverse exists. The optimality equation can therefore be viewed as a family of linear policy equations coupled through statewise action selection.
Relation to other optimality conditions
The bellman equation is a global recursive condition because its value function compares complete future consequences from every represented state. The Pontryagin maximum principle instead expresses local necessary conditions along a candidate optimal trajectory by introducing an adjoint variable. Where sufficient smoothness holds, the adjoint can be identified with the gradient of the value function, linking the maximum principle to the Hamilton–Jacobi–Bellman equation.
The relationship does not make the two formulations interchangeable in every problem. Dynamic programming emphasizes statewise optimality and naturally accommodates feedback controls, whereas adjoint methods formulate coupled state and costate equations along trajectories. Nonsmooth value functions further separate their classical forms, although generalized derivatives and viscosity theory provide broader connections.
See also
- Dynamic programming, the general decomposition of multistage optimization into state-dependent subproblems.
- Hamilton–Jacobi–Bellman equation, the continuous-time differential form of the recursion.
- Markov decision process, the principal stochastic state-transition framework for bellman equations.
- Value iteration, a fixed-point method based on repeated application of the optimality operator.
- Policy iteration, a method based on alternating policy evaluation and policy improvement.
- Reinforcement learning, the study of sequential decision methods that infer value relations from interaction data.
- Stochastic optimal control, the control-theoretic setting for bellman equations with random dynamics.
- Principle of optimality, the recursive consistency property underlying the equation.
- Curse of dimensionality, the state-space growth that limits direct numerical tabulation.