From Finite-Horizon Control to a Steady Feedback
In finite-horizon linear-quadratic regulation, the value function is quadratic in the state, but its matrix coefficient generally changes with time. For an infinite-horizon problem with time-independent coefficients and exponential discounting, a time-independent quadratic coefficient is natural. Substituting that form into the Hamilton–Jacobi–Bellman equation gives an algebraic Riccati equation (ARE). The relevant solution is not merely any symmetric root: its feedback must also have the stability required by the control problem.
Work on a filtered probability space \((\Omega,\mathcal{F},(\mathcal{F}_t)_{t\ge0},\mathbb{P})\) carrying a one-dimensional Brownian motion \(B_t\). Consider the \(n\)-dimensional state and \(m\)-dimensional control \(X_t\) and \(u_t\), governed by \(dX_t=(AX_t+Du_t)\,dt+G\,dB_t\), with deterministic initial state \(X_0=x\). Here \(A,D,G\) are constant matrices of compatible dimensions; \(G\) is \(n\times1\). The drift is \(AX_t+Du_t\), and \(G\) is the diffusion coefficient. Take a discount rate \(\rho>0\), a symmetric positive semidefinite state-cost matrix \(Q\), and a symmetric positive definite control-cost matrix \(R\). The objective is \(J(x;u)=\mathbb{E}\int_0^\infty e^{-\rho t}(X_t^\mathsf{T}QX_t+u_t^\mathsf{T}Ru_t)\,dt\).
The additive Brownian term is useful for showing how the stochastic calculus enters. It contributes a constant to the value but does not change the ARE or the optimal feedback. With \(G=0\), the model is deterministic. We seek a symmetric matrix \(P\) and scalar \(c\) such that \(V(x)=x^\mathsf{T}Px+c\).
Deriving the Algebraic Riccati Equation
The stationary discounted HJB equation is \(\rho V(x)=\min_u\{x^\mathsf{T}Qx+u^\mathsf{T}Ru+\mathcal{L}V(x)\}\). For the diffusion above, the generator applied to a twice continuously differentiable function \(f\) is \(\mathcal{L}f(x)=(Ax+Du)^\mathsf{T}\nabla f(x)+\tfrac12\operatorname{tr}(GG^\mathsf{T}\nabla^2 f(x))\). For \(V(x)=x^\mathsf{T}Px+c\), symmetry of \(P\) gives \(\nabla V(x)=2Px\) and \(\nabla^2V(x)=2P\). Thus the HJB equation becomes
For each fixed \(x\), the terms depending on \(u\) are \(u^\mathsf{T}Ru+2u^\mathsf{T}D^\mathsf{T}Px\). Completing the square gives their unique minimum because \(R\) is positive definite.
Matching the coefficients of the quadratic terms in \(x\) gives the ARE. Matching constants gives \(\rho c=\operatorname{tr}(PGG^\mathsf{T})\), so \(c=\operatorname{tr}(PGG^\mathsf{T})/\rho\). These equations are a direct HJB calculation. For general matrix data, existence and uniqueness of a positive semidefinite stabilizing solution are supplied by the standard algebraic Riccati existence theorem under suitable stabilizability and detectability hypotheses; that theorem’s proof is beyond this tutorial. The verification argument below instead states explicitly what follows whenever a positive semidefinite stabilizing solution is available.
Verification by Completion of Squares
Proof. Fix any admissible \(u\) and any finite \(T>0\). Write \(V(x)=x^\mathsf{T}Px+c\). Itô’s formula applies since \(V\) is twice continuously differentiable. Its time derivative is zero, its gradient is \(2Px\), and its Hessian is \(2P\); in particular, the half-Hessian correction is \(\tfrac12\operatorname{tr}(GG^\mathsf{T}2P)=\operatorname{tr}(PGG^\mathsf{T})\). Thus the stochastic differential for the discounted value is
On \([0,T]\), the stochastic-integral integrand \(e^{-\rho t}2G^\mathsf{T}PX_t\) is progressively measurable and square-integrable in expectation. Indeed, admissibility implies \(\mathbb{E}\int_0^T\lVert X_t\rVert^2dt<\infty\), and \(P,G\) are constant matrices. The Itô integral is therefore a square-integrable martingale: the Itô isometry gives finite second moment, and its conditional expectation over a future increment given the present filtration is zero. Taking expectations in the integrated formula is consequently justified.
Use the ARE and the identity obtained by completing the square. They imply, for every \(x,u\),
Integrating and taking expectations now yields the finite-horizon identity
where \(\lVert z\rVert_R^2=z^\mathsf{T}Rz\ge0\). To pass to infinite time, admissibility gives \(\int_0^\infty e^{-\rho t}\mathbb{E}\lVert X_t\rVert^2dt<\infty\). Hence there is a sequence \(T_k\to\infty\) with \(e^{-\rho T_k}\mathbb{E}\lVert X_{T_k}\rVert^2\to0\): otherwise this nonnegative function would be bounded below by a positive constant for all sufficiently large times, contradicting its integrability. Since \(P\) is a fixed matrix and \(c\) is finite, \(\mathbb{E}[e^{-\rho T_k}V(X_{T_k})]\to0\). Taking \(T=T_k\), monotone convergence applies to the nonnegative running cost and the nonnegative square term. It follows that \(J(x;u)\ge V(x)\), with equality only if the feedback discrepancy vanishes almost everywhere in the discounted expected integral.
For \(u=u^*\), that discrepancy is zero. The Hurwitz assumption ensures the closed-loop state has finite discounted state energy: the matrix exponential satisfies \(\lVert e^{A_{\mathrm{cl}}t}\rVert\le C e^{-\alpha t}\) for some \(C,\alpha>0\); the variation-of-constants formula and the finite second moments of Brownian increments then bound \(\mathbb{E}\lVert X_t\rVert^2\) uniformly in \(t\). The feedback is linear in \(X_t\), so its discounted control energy is finite too. Thus \(u^*\) is admissible and attains \(V(x)\). The feedback’s drift is asymptotically stable in the deterministic sense; with additive noise, the state itself need not converge to zero, but its second moment remains bounded. \(\square\)
Worked Scalar Calculations
Worked Example: Riccati Root and Stabilizing Feedback
Take the scalar system \(dX_t=2u_t\,dt\), with \(Q=2\), \(R=1\), and \(\rho=1\). There is no Brownian term. The ARE is \(P=2-4P^2\), or \(4P^2+P-2=0\). The quadratic formula gives \(P=(-1\pm\sqrt{33})/8\). Since \(\sqrt{33}>1\), exactly one root is positive: \(P=(\sqrt{33}-1)/8\).
The feedback is \(u_t^*=-2PX_t\). Substitution into the state equation gives \(\dot X_t=-4PX_t\), and hence \(X_t=xe^{-4Pt}\). Because \(P>0\), the closed-loop eigenvalue \(-4P\) is strictly negative. The feedback is stabilizing.
Check: The ARE rearranges to \(4P^2=2-P\). Under feedback, the undiscounted running cost is \((2+4P^2)X_t^2=(4-P)x^2e^{-8Pt}\). Therefore \(J(x;u^*)=(4-P)x^2\int_0^\infty e^{-(1+8P)t}dt=(4-P)x^2/(1+8P)=Px^2\), since \(P(1+8P)=P+8P^2=P+2(2-P)=4-P\). This agrees with the value function.
Worked Example: Additive Noise and the Constant in the Value
Keep \(A=0,D=2,Q=2,R=1,\rho=1\), and now take \(G=1\), so \(dX_t=2u_t\,dt+dB_t\). The ARE and its positive solution are unchanged: \(P=(\sqrt{33}-1)/8\). The constant term is \(c=PG^2/\rho=P\), and the optimal feedback remains \(u_t^*=-2PX_t\). Put \(k=4P>0\); then the closed-loop equation is \(dX_t=-kX_t\,dt+dB_t\), with solution \(X_t=xe^{-kt}+\int_0^t e^{-k(t-s)}\,dB_s\).
The stochastic integral has mean zero and variance \(\int_0^t e^{-2k(t-s)}ds=(1-e^{-2kt})/(2k)\), by the Itô isometry. Thus \(\mathbb{E}[X_t^2]=x^2e^{-2kt}+(1-e^{-2kt})/(2k)\). The running cost has expectation \((2+4P^2)\mathbb{E}[X_t^2]=(4-P)\mathbb{E}[X_t^2]\), using \(4P^2=2-P\). Integrating with the discount factor gives a coefficient of \(x^2\) equal to \((4-P)/(1+2k)=(4-P)/(1+8P)=P\). The noise contribution is \((4-P)(1/(2k))(1-1/(1+2k))=(4-P)/(1+2k)=P\), since \(k=4P\) and \(P(1+8P)=4-P\). Therefore \(J(x;u^*)=Px^2+P\), exactly the value \(V(x)\).
Check: At \(x=0\), the state cost is not zero: Brownian noise continually enters the system. The computed cost is \(P\), equal to the HJB constant \(c=PG^2/\rho\), not zero.
Worked Example: Two Independent State Directions
Let \(A=\operatorname{diag}(-1,-2)\), \(D=I\), \(R=I\), \(\rho=1\), \(G=0\), and propose \(P=\operatorname{diag}(1,2)\). The ARE is diagonal. In the first coordinate, its right-hand side is \(2(-1)(1)-1^2+Q_{11}=-3+Q_{11}\); equality to \(\rho P_{11}=1\) requires \(Q_{11}=4\). In the second coordinate, the right-hand side is \(2(-2)(2)-2^2+Q_{22}=-12+Q_{22}\); equality to \(\rho P_{22}=2\) requires \(Q_{22}=14\). Thus \(Q=\operatorname{diag}(4,14)\), which is positive definite.
The feedback matrix is \(-D^\mathsf{T}P=-\operatorname{diag}(1,2)\), so \(A_{\mathrm{cl}}=\operatorname{diag}(-2,-4)\), which is Hurwitz. In coordinate one, the state decays as \(e^{-2t}\), the running-cost coefficient is \(4+1=5\), and the discounted cost coefficient is \(5/(1+4)=1=P_{11}\). In coordinate two, the state decays as \(e^{-4t}\), the running-cost coefficient is \(14+2^2=18\), and the discounted cost coefficient is \(18/(1+8)=2=P_{22}\). Summing the two coordinate costs verifies \(V(x)=x^\mathsf{T}Px\).
Check: The two ARE entries can also be verified directly: \(1=-2-1+4\) and \(2=-8-4+14\). Both agree with their respective discount-rate-weighted left-hand entries.
Common Pitfalls and Why Stability Matters
A frequent error is to forget that the control enters the drift through \(D\). The quadratic feedback term in the ARE is \(PDR^{-1}D^\mathsf{T}P\), not just \(P^2/R\) unless \(D=1\). In the first scalar example \(D=2\), so that term is \(4P^2\). Omitting the factor of four produces the wrong root, the wrong feedback, and a cost that fails the direct check.
Another error is to treat every ARE root as suitable. The ARE is an algebraic equation; stability is a separate property of the matrix \(A_{\mathrm{cl}}\). The theorem uses both a positive semidefinite solution and a Hurwitz closed-loop matrix. A solution that does not give the required stability cannot be substituted into this verification argument without separately checking admissibility and the terminal limit.
Finally, additive noise changes the value even though it leaves the feedback and ARE unchanged. The constant \(c\) records the diffusion contribution from Itô’s second-derivative term. Omitting that term is equivalent to applying the ordinary chain rule to a diffusion and gives an incorrect HJB equation.
Check Your Understanding
For each question, state any assumptions needed for the calculation.
- For scalar \(A=a\), \(D=d\), \(Q=q\), \(R=r>0\), and discount \(\rho>0\), derive the scalar ARE and the feedback from the quadratic HJB ansatz.
- For the first worked example, verify the identity \(P(1+8P)=4-P\) directly from \(4P^2+P-2=0\).
- With additive noise \(G\), explain why the constant in the value is \(\operatorname{tr}(PGG^\mathsf{T})/\rho\), and identify the Itô correction that produces it.
- Why does discounted square-integrability of \(X_t\) imply that a sequence \(T_k\to\infty\) exists with \(e^{-\rho T_k}\mathbb{E}\lVert X_{T_k}\rVert^2\to0\)?
- For a proposed Riccati solution, what matrix must be tested for stability, and what does the Hurwitz condition mean?