# Algebraic Riccati equation

The algebraic [Riccati equation](https://www.edgepedia.org/riccati-equation) (ARE) is a nonlinear matrix equation of the form

\[ A^{T}X + XA - XBR^{-1}B^{T}X + Q = 0, \]

whose unknown is a [symmetric matrix](https://www.edgepedia.org/symmetric-matrix) \( X \). It is the steady-state form of the Riccati differential equation and supplies the constant feedback gain of the infinite-horizon linear quadratic regulator (LQR), the steady-state [Kalman filter](https://www.edgepedia.org/kalman-filter) gain, and central objects in \( H_2 \) and \( H_{\infty} \) control design.<sup>[1](https://www.mathworks.com/help/control/ref/care.html)</sup><sup> • </sup><sup>[2](https://www.mathworks.com/help/control/ref/icare.html)</sup>

| Key fact | Detail |
|---|---|
| Continuous-time form | \( A^{T}X + XA - XBR^{-1}B^{T}X + Q = 0 \), with \( A, Q \) of size \( n \times n \), \( B \) of size \( n \times m \), \( R \) of size \( m \times m \), and \( X \) symmetric<sup>[3](https://www.slicot.org/objects/software/shared/doc/SB02MD.html)</sup> |
| Discrete-time form | \( X = A^{T}XA - A^{T}XB(R + B^{T}XB)^{-1}B^{T}XA + Q \)<sup>[3](https://www.slicot.org/objects/software/shared/doc/SB02MD.html)</sup> |
| Existence and uniqueness | If \( (A,B) \) is stabilizable and \( (\sqrt{Q},A) \) is detectable, there is a unique positive semidefinite solution \( P \) and the closed-loop matrix \( A - BR^{-1}B^{T}P \) is stable<sup>[4](https://www.control.utoronto.ca/~broucke/ece557f/ece557CourseNotes2012.pdf)</sup> |
| LQR use | The optimal control is \( u = -R^{-1}B^{T}Px \) and the optimal cost is \( V(x) = x^{T}Px \)<sup>[4](https://www.control.utoronto.ca/~broucke/ece557f/ece557CourseNotes2012.pdf)</sup> |
| Standard numerical method | Laub's 1979 Schur vector method, a variant of the classical eigenvector approach<sup>[5](https://eceweb1.rutgers.edu/~gajic/pdffiles/519KalmanFiltering/LaubARE_SchurMethod.pdf)</sup> |
| Software | SLICOT routine SB02MD (Schur vectors method), MATLAB `icare`, and SciPy `solve_continuous_are` / `solve_discrete_are`<sup>[3](https://www.slicot.org/objects/software/shared/doc/SB02MD.html)</sup><sup> • </sup><sup>[2](https://www.mathworks.com/help/control/ref/icare.html)</sup><sup> • </sup><sup>[6](https://docs.scipy.org/doc/scipy-0.19.0/reference/generated/scipy.linalg.solve_continuous_are.html)</sup> |
| Large-scale methods | Low-rank ADI iteration became available around 2000; extended and rational Krylov subspace projection methods entered the field in the following decade<sup>[7](https://onlinelibrary.wiley.com/doi/abs/10.1002/gamm.201310003)</sup> |

## Role in optimal control

In the infinite-horizon LQR problem for a linear time-invariant plant, one minimizes the quadratic cost

\[ J(x_0,u) = \int_0^{\infty} \left[ x^{T}(t)Qx(t) + u^{T}(t)Ru(t) \right] dt. \]

The stationary condition of the associated Hamiltonian system leads to the control \( u(t) = -R^{-1}B^{T}\lambda(t) \), and under stabilizability of \( (A,B) \) and detectability of \( (\sqrt{Q},A) \) the Riccati differential equation solution converges to a steady-state value \( P_{ss} \) that satisfies the ARE \( 0 = A^{T}P_{ss} + P_{ss}A - P_{ss}BR^{-1}B^{T}P_{ss} + Q \).<sup>[8](https://www.sciencedirect.com/science/article/abs/pii/S0167691100000049)</sup><sup> • </sup><sup>[4](https://www.control.utoronto.ca/~broucke/ece557f/ece557CourseNotes2012.pdf)</sup> Completion of squares then shows that the constant state-feedback law \( u(t) = -R^{-1}B^{T}Px(t) \) is optimal, with value function \( V(x) = x^{T}Px \).<sup>[4](https://www.control.utoronto.ca/~broucke/ece557f/ece557CourseNotes2012.pdf)</sup>

**Why the conditions matter.** The ARE is a quadratic matrix equation, so it may have no positive semidefinite solutions, no real solutions, or infinitely many solutions. Stabilizability and detectability are verifiable system-theoretic properties that guarantee a unique positive semidefinite solution which also delivers the optimal control; stabilizability is necessary, since without it the class of admissible control laws is empty.<sup>[4](https://www.control.utoronto.ca/~broucke/ece557f/ece557CourseNotes2012.pdf)</sup> Among the multiple solutions that can exist, the LQR solution is the unique positive semidefinite stabilizing one; it need not be positive definite, and a non-positive-definite solution does not necessarily lead to an unstable closed loop, since for example the zero solution can be stabilizing when the uncontrolled system is stable.<sup>[9](https://underactuated.csail.mit.edu/lqr.html)</sup><sup> • </sup><sup>[18](https://link.springer.com/article/10.1007/s00211-017-0907-5)</sup><sup> • </sup><sup>[19](https://drake.mit.edu/pydrake/pydrake.math.html)</sup>

The same equation appears with transposed data in estimation: the steady-state Kalman filter gain can be computed from the ARE of an LQR problem with \( A^{T} \) and \( C^{T} \) in place of \( A \) and \( B \), a duality that underlies LQG control.<sup>[2](https://www.mathworks.com/help/control/ref/icare.html)</sup>

## Variants

**Discrete-time ARE (DARE).** For systems sampled at a single periodic time step, the fixed-point equation is

\[ S = Q + A^{T}SA - (A^{T}SB)(R + B^{T}SB)^{-1}(B^{T}SA), \]

and dedicated numerical recipes exist for it; the infinite-horizon discrete LQR solution is its positive-definite fixed point.<sup>[9](https://underactuated.csail.mit.edu/lqr.html)</sup> A discounted-cost variant used in reinforcement learning, with discount factor \( \gamma \), reduces to a standard DARE with the substitutions \( \sqrt{\gamma}A \), \( B \), \( Q \), and \( R/\gamma \).<sup>[9](https://underactuated.csail.mit.edu/lqr.html)</sup>

**Generalized and descriptor forms.** The generalized continuous-time equation

\[ A^{T}XE + E^{T}XA - (E^{T}XB + S)R^{-1}(B^{T}XE + S^{T}) + Q = 0 \]

accommodates descriptor models with a nonsingular \( E \) and coupling terms \( S \); MATLAB's `icare` computes its unique stabilizing solution, the one whose closed-loop eigenvalues all lie in the left half-plane, and can also return the anti-stabilizing solution with all eigenvalues in the right half-plane.<sup>[1](https://www.mathworks.com/help/control/ref/care.html)</sup><sup> • </sup><sup>[2](https://www.mathworks.com/help/control/ref/icare.html)</sup>

**H-infinity forms.** In \( H_{\infty} \) control the equation takes the form \( A^{T}X + XA + X(\gamma^{-2}B_1B_1^{T} - B_2B_2^{T})X + C^{T}C = 0 \), which can be cast as a standard ARE with block matrices \( B = [B_1, B_2] \) and \( R = \mathrm{diag}(-\gamma^{2}[I, I](https://www.edgepedia.org/i-i)) \).<sup>[1](https://www.mathworks.com/help/control/ref/care.html)</sup> Algebraic Riccati equations also play a key role in \( H_2 \) control, Kalman filtering, and spectral or co-prime factorizations.<sup>[2](https://www.mathworks.com/help/control/ref/icare.html)</sup>

## Numerical solution

**The Schur method.** The classical eigenvector approach to the ARE dates back decades, but Alan Laub's 1979 paper established the standard modern algorithm: order the eigenvalues of the \( 2n \times 2n \) Hamiltonian matrix associated with the equation, take the invariant subspace spanned by the stable Schur vectors, and recover \( X \) from it. The method targets the unique (under suitable hypotheses) symmetric, nonnegative definite solution, though it can also produce other solutions.<sup>[5](https://eceweb1.rutgers.edu/~gajic/pdffiles/519KalmanFiltering/LaubARE_SchurMethod.pdf)</sup> SciPy implements this idea through an extended Hamiltonian matrix pencil \( H - \lambda J \), applying a balancing step before the QZ decomposition to improve accuracy.<sup>[6](https://docs.scipy.org/doc/scipy-0.19.0/reference/generated/scipy.linalg.solve_continuous_are.html)</sup> SLICOT's SB02MD solves both the continuous- and discrete-time equations by the Schur vectors method and returns the closed-loop spectrum, the stable eigenvalues of the associated Hamiltonian or symplectic matrix.<sup>[3](https://www.slicot.org/objects/software/shared/doc/SB02MD.html)</sup>

**Conditioning.** Ji-guang Sun, professor of computing science at [Umeå University](https://www.edgepedia.org/umea-university), developed condition numbers of the CARE and DARE in the [Frobenius norm](https://www.edgepedia.org/frobenius-norm), giving explicit expressions that measure the sensitivity of the symmetric positive semidefinite stabilizing solution to perturbations of the coefficient matrices.<sup>[10](https://mtns.math.nd.edu/papers/6516.pdf)</sup> SLICOT provides a companion routine, SB02QD, that estimates the reciprocal condition number and a forward error bound for a computed continuous-time solution.<sup>[11](https://www.slicot.org/objects/software/shared/doc/SB02QD.html)</sup>

**Large-scale problems.** Dense Schur methods cost \( O(n^{3}) \) work and storage, which is prohibitive when \( A \) is large and sparse with low-rank \( B \) and \( C \). Low-rank ADI-based algorithms became available around 2000, and extended block Arnoldi and rational [Krylov subspace](https://www.edgepedia.org/krylov-subspace) projection methods later proved to be competitive alternatives.<sup>[7](https://onlinelibrary.wiley.com/doi/abs/10.1002/gamm.201310003)</sup> The RADI algorithm, a low-rank ADI-type method, was shown to be equivalent to extended Krylov, rational Krylov, and Newton–ADI approaches for computing low-rank approximate solutions.<sup>[12](https://pmc.ncbi.nlm.nih.gov/articles/PMC5775986/)</sup> Newton–Kleinman iteration, which solves a [Lyapunov equation](https://www.edgepedia.org/lyapunov-equation) at each step, remains a base method that these low-rank variants refine.<sup>[13](https://www.sciencedirect.com/science/article/abs/pii/S0168927416300824)</sup>

**Software performance.** In SLICOT benchmarks on randomly generated continuous-time problems with \( m = n \), the SB02OD solver computed stabilizing solutions faster than MATLAB with comparable residuals: at \( n = 128 \), 24.00 seconds versus 79.96 seconds, with relative residuals \( 2.44 \times 10^{-11} \) versus \( 6.72 \times 10^{-11} \).<sup>[14](https://www.slicot.org/working-notes/numerical-software-in-control-and-systems/22-site/slicot-library)</sup>

## History

Equations are called of Riccati type when they consist of constant, linear, and quadratic terms in the variables; they trace to the work of Jacopo Francesco Riccati at the end of the seventeenth century, including his variable-separable technique and the continued-fraction approach, and were later carried into control system theory.<sup>[15](https://www.sciencedirect.com/science/article/pii/S2405896317322176)</sup> The matrix form entered control theory with Rudolf E. Kalman's 1960 paper *Contributions to the theory of optimal control*, which introduced and exploited controllability and observability, proved existence and stability theorems for the regulator problem, and studied the stability properties of the matrix Riccati equation.<sup>[16](https://ntrl.ntis.gov/NTRL/dashboard/searchResults/titleDetail/AD724842.xhtml)</sup> [Numerical analysis](https://www.edgepedia.org/numerical-analysis) of the ARE followed with Potter in 1966 and Kleinman in 1968, and Laub's Schur-based algorithm of 1979 became the standard solver, with generalized Schur treatments appearing in 1980 and 1984.<sup>[17](https://doras.dcu.ie/20260/1/PhD_Thesis_Ci_Chen_DCU_Blue_2_Hard_Copies.pdf)</sup>

## References

1. [care – Solve continuous-time algebraic Riccati equation, MathWorks Control System Toolbox](https://www.mathworks.com/help/control/ref/care.html)
2. [icare – Implicit solver for continuous-time algebraic Riccati equations, MathWorks](https://www.mathworks.com/help/control/ref/icare.html)
3. [SB02MD – Solution of continuous- or discrete-time algebraic Riccati equations (Schur vectors method), SLICOT](https://www.slicot.org/objects/software/shared/doc/SB02MD.html)
4. [M. Broucke, ECE 557 course notes, University of Toronto (Theorem 6.2.1, Riccati)](https://www.control.utoronto.ca/~broucke/ece557f/ece557CourseNotes2012.pdf)
5. [A. Laub, "A Schur Method for Solving Algebraic Riccati Equations," IEEE Transactions on Automatic Control, AC-24(6), 1979](https://eceweb1.rutgers.edu/~gajic/pdffiles/519KalmanFiltering/LaubARE_SchurMethod.pdf)
6. [scipy.linalg.solve_continuous_are, SciPy Reference Guide](https://docs.scipy.org/doc/scipy-0.19.0/reference/generated/scipy.linalg.solve_continuous_are.html)
7. [P. Benner, "Numerical solution of large and sparse continuous time algebraic matrix Riccati and Lyapunov equations: a state of the art survey," GAMM-Mitteilungen, 2013](https://onlinelibrary.wiley.com/doi/abs/10.1002/gamm.201310003)
8. ["On the infinite-horizon LQ tracker," Systems & Control Letters](https://www.sciencedirect.com/science/article/abs/pii/S0167691100000049)
9. [Ch. 8, Linear Quadratic Regulators, Underactuated Robotics, MIT](https://underactuated.csail.mit.edu/lqr.html)
10. [J.-g. Sun, "On the Sensitivity of Algebraic Riccati Equations," Department of Computing Science, Umeå University](https://mtns.math.nd.edu/papers/6516.pdf)
11. [SB02QD – Estimating conditioning and forward error bound for the solution of continuous-time Riccati equation, SLICOT](https://www.slicot.org/objects/software/shared/doc/SB02QD.html)
12. ["RADI: a low-rank ADI-type algorithm for large scale algebraic Riccati equations," Numerical Algorithms / PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC5775986/)
13. ["An inexact low-rank Newton–ADI method for large-scale algebraic Riccati equations," Applied Numerical Mathematics](https://www.sciencedirect.com/science/article/abs/pii/S0168927416300824)
14. [SLICOT Library: numerical software in control and systems, performance notes](https://www.slicot.org/working-notes/numerical-software-in-control-and-systems/22-site/slicot-library)
15. ["Historical perspectives of the Riccati equations," IFAC-PapersOnLine, Vol. 50, Issue 1, 2017](https://www.sciencedirect.com/science/article/pii/S2405896317322176)
16. [R. E. Kalman, "Contributions to the Theory of Optimal Control," 1960, National Technical Reports Library AD724842](https://ntrl.ntis.gov/NTRL/dashboard/searchResults/titleDetail/AD724842.xhtml)
17. [C. Chen, PhD thesis, Dublin City University, section 6.5.1, "Some history of algebraic Riccati equation"](https://doras.dcu.ie/20260/1/PhD_Thesis_Ci_Chen_DCU_Blue_2_Hard_Copies.pdf)
18. [Client Challenge](https://link.springer.com/article/10.1007/s00211-017-0907-5)
19. [pydrake.math, pydrake documentation](https://drake.mit.edu/pydrake/pydrake.math.html)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026; Oct 25, 2026 · Last review: Oct 15, 2026*

Topic: Physical world and mathematics › Mathematics and statistics › Numbers and algebra › Linear and multilinear algebra › Numerical linear algebra › Matrix functions and nonlinear matrix problems

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/algebraic-riccati-equation
