Abstract
Two closed-form methods to solve the continuous-time algebraic Riccati equation (CARE) for second-order systems in terms of the mass, damping, and stiffness matrices are presented. One method utilizes the modal transformation of mass and stiffness matrices, and the other does not require this transformation. Hundreds of high-dimensional second-order systems are used to show that these methods achieve similar or better accuracy compared to the state-of-the-art, while significantly reducing the computation time. Furthermore, advantages of these methods are illustrated in vibration control problems.
1 Introduction
Continuous-time algebraic Riccati equations (CAREs) often appear in control and optimization problems such as linear quadratic regulator (LQR) [1], linear quadratic Gaussian [2], Kalman filter [2], and methods [1], the gap () and -gap () [1] computation, etc. As a result, they are employed in applications such as control design for helicopters [3], unmanned aerial vehicles [4], spacecraft formation [5], space structures [6], induction motors [7], and others.
These CAREs are generally solved using the Schur eigenvector method [8], which is formulated for first-order systems. The first-order state-space form, with the state dimension , is used to create a Hamiltonian matrix (), whose rearranged eigenvectors are used to compute the CARE solution. Since the computational effort is proportional to [9], the method in Ref. [8] works well only for moderate size systems () [8]. It becomes inefficient and prohibitive for larger systems [9–11], particularly when the system is poorly conditioned. Thus, it becomes a limiting factor for applications that require solving CARE for large-size systems such as the control of large space structures (; [12]), finite element techniques [13], etc. Solving CARE in real-time is challenging even for small-size systems. For example, Zhao et al. [14] mention that solving CARE in real-time for only six states is considerably difficult for a processor onboard aerial robot.
Furthermore, the linear dynamics of many systems can be expressed as second-order linear time-invariant (LTI) ordinary differential equations (ODEs), described by the mass (), stiffness (), damping (), and input matrices. The standard approach to solve CARE for such a system, of size , is to convert it to an equivalent first-order system, of size , which doubles the system size. Thus, the problem in solving CARE is exacerbated for second-order systems, such as in Refs. [6,12], reducing the limit of to , beyond which the method in Ref. [8] becomes progressively less reliable and inefficient. Moreover, conversion of second-order systems to their first-order form leads to the loss of desirable properties such as symmetry and sparsity of the second-order matrices [15].
However, second-order systems have a special structure that can be used to solve CAREs in a closed-form manner, i.e., expressing the solution explicitly as an analytical formula. This special structure has been exploited in Refs. [15,16] to find simple, specialized conditions for the controllability and observability of second-order systems. In this article, we use a similar strategy to obtain simple closed-form solutions to CAREs for second-order systems. Prior works [17–20] that attempted to find analytical or closed-form solutions to CARE for second-order systems are briefly described next, revealing their limitations.
1.1 Prior Works.
Prior works are evaluated based on whether they actually solve the CARE and if certain requirements are met. Specifically, the solution matrix and design matrix must be positive semidefinite, and another design matrix must be positive definite. Also, prior works that claim a unique positive semidefinite solution should ensure the satisfaction of the detectability and stabilizability conditions.
In Ref. [17], a method that could simplify solving CARE for systems where and are simultaneously congruently diagonalizable is suggested. To that end, the second-order system is transformed into a first-order one, and a modal transformation is applied to diagonalize and (see Ref. [21] for an extensive analysis of simultaneous diagonalizability of matrices). The obtained CARE is broken down into four equations involving the transformed matrices. One of these equations is treated as a CARE by restrictively assuming the off-diagonal blocks of to be symmetric and solved using the eigenvector-based approach [8]. However, this assumption, while mathematically convenient, is not generally true and can lead to an incorrect solution. Also, the approach in Ref. [17] can lead to a non-symmetric, and hence, non-positive semidefinite . Therefore, the method in Ref. [17] does not always solve the CARE.
In Ref. [18], a proposed closed-form solution for the CARE for undamped fully actuated second-order systems is expressed in terms of scalar weights and . The assumption of no damping significantly limits the application of Ref. [18].
Furthermore, Hanks and Skelton [19] propose a method to solve CARE for second-order systems but only if the sensors and actuators are collocated. The method includes the design of the matrix (or , which is intrinsic to the CARE formulation, and the CARE solution in terms of scalar constants and , and another matrix . However, there is no discussion about how and should be selected to ensure that (or ) is positive semidefinite, as required by the CARE. Moreover, to prove that is positive definite, certain constraints are imposed which, if solved, could lead to and such that . These constraints might be unsolvable, or be very expensive to solve, and levy structural impositions on the system limiting its application to very particular cases.
In Ref. [20], a closed-form solution to the CARE for second-order systems is presented in terms of scalars and . This solution satisfies the CARE and the authors discuss how to find and . However, the work in Ref. [20] also assumes collocated actuators and sensors. Under this assumption, the authors prove that the obtained always exponentially stabilizes the system using LQR. By additionally proving the observability condition, they invoke the argument of a unique stabilizing solution of Ref. [8] and conclude that their solution is unique and positive semidefinite. However, the proof is valid only for systems with collocated actuators and sensors. The authors do not address the more realistic and practical non-collocated actuators and sensors systems [22].
Finally, the icare method [23] in Matlab uses a modified version of the method of Ref. [8] for first-order systems, by employing a proprietary scaling routine. This extends the limit of (or ) without much loss in accuracy, albeit with a very significant increase in computation time. In comparison, the unscaled icare of Matlab produces poor results as increases beyond (or ).
Main Contribution: We present two novel closed-form solutions, in Theorems 2 and 3, to CARE for second-order systems. The first applies when the mass and stiffness matrices {} can be simultaneously congruently diagonalized. The second is valid for any positive definite , and . The solutions are unique, positive semidefinite, and optimal for the cost in (3). They are expressed in terms of the second-order system matrices , and offer physical insights. The proposed methods work very well for and achieve better accuracy than the Matlab’s unscaled icare [23] and similar accuracy to Matlab’s scaled icare, but are significantly faster than both of them.
2 Problem Statement
Moreover, if the conditions of stabilizability and detectability are, respectively, strengthened to controllability and observability, then the solution becomes positive definite. Note that the conditions of stabilizability and detectability are critical. Thus, any method that claims to solve the CARE for a unique positive semidefinite, stabilizing solution that is optimal to the cost in (3) should prove these conditions.
Moreover, , from (15), depends on terms that may be non-symmetric. For example, is not necessarily diagonal, the term might be non-symmetric because even if we assume to be symmetric, the product of symmetric matrices is not generally symmetric. Similarly, is not necessarily symmetric. This would result in not being necessarily symmetric, in contradiction with a key requirement for the correct CARE solution. Furthermore, it should be shown that the solution () and the design matrices () from (13) to (16) would result in positive semidefinite and . The work in Ref. [17] does not address these issues in finding a positive semidefinite solution to CARE. Also, the proposed solution is not closed-form and still depends on the eigenvector method [8].
We now present novel closed-form methods that solve CARE for second-order systems.
3 Method-I
Furthermore, since and are positive definite and semidefinite matrices, respectively, and is full-rank, the matrix is positive definite. Thus, all of the conditions for the existence of a solution to (17), as per Ref. [24], are satisfied.
Thus, if we can show that the proposed and are positive semidefinite along with the stabilizability and detectability conditions, then this would be the same as that obtained from Ref. [8] by virtue of uniqueness. Therefore, the proposed would be the unique positive semidefinite and stabilizing solution to (4) that is optimal for the LQR cost in (3) if the choice of ensures that matrices and are positive semidefinite, and the conditions of stabilizability and detectability are met.
Equation (33) may be difficult to solve analytically for a general second-order system. However, the problem simplifies greatly when the system is transformed to a modal form where matrices transform to their diagonal forms. Moreover, a block diagonal solution can be obtained in this case for the CARE in (4).
We now modify the presented method by transforming the system to its modal form. Furthermore, the assumption made on being invertible, after (25), is no longer needed in the modified method.
3.1 Modal Form—Block Diagonal Solution.
Since is a real symmetric matrix, can be directly obtained by orthogonal diagonalization. Note that all the matrix products inside the square bracket in (48) are symmetric. Thus, their positively weighted sum is also symmetric with real eigenvalues. Hence, the inequality in (49) is valid. Thus, the matrix is positive semidefinite for given by (49). This choice of also ensures that , from (43), is positive semidefinite.
4 Method-II
Now, we present another novel closed-form solution to (4). Here, we do not require to transform the system to its modal form, and only require the matrices to be positive definite. The solution is in terms of , as shown in Theorem 3.
The formulas for were designed by choosing candidate elements of () and () such that Eqs. (17)–(19) were satisfied. Additionally, these elements should also satisfy and . It can be easily verified that the given choice of exactly satisfy the associated CARE. In the following, we prove that the matrices and are positive semidefinite.
Note that the terms I and II are both symmetric and so is their positively weighted sum. Hence, the combined matrix on the right-hand side of (67) has only real eigenvalues. Thus, we have shown that for any and for as per (67).
For and to be simultaneously positive semidefinite, the scalar can be chosen as greater than or equal to the maximum of the values given by (67) and (71). If the inequality in (67) is considered strict, then . Then, based on the arguments given toward the end of method-I (after (54)), is the unique positive definite and stabilizing solution to (4) that is optimal for the LQR cost in (3).
5 Results and Discussion
Now, we present simulation results that numerically verify the proposed method. Since method-II works for any positive definite , it is more general than method-I, which requires modal decomposition. Thus, we only present results from method-II. We compare method-II’s results with the scaled and unscaled versions of matlab’s icare on the basis of the residual and computation time.
Figure 1 shows the -norm of the residual left behind, using scattered points, by different methods when solving the CARE. The median of the residuals is also shown for an interval of by solid lines. It is clear that method-II and the scaled and unscaled icare work almost equally well when for second-order systems. However, as increases, Matlab’s unscaled icare starts giving progressively large residuals. The poor performance of the unscaled icare could be attributed to the errors generated while computing the eigenvectors for large-size systems (). In contrast, method-II avoids eigenvector calculations and its associated errors.

Residual with respect to the system size. Systems have their dimension equal to the next immediate -axis tickmark. The scatter points show the actual residual norm. The solid lines show the median for an interval of . The size of the corresponding first-order matrix is .
The scaled icare produces much better results than the unscaled one because of the proprietary scaling routine. However, it does so at the cost of significant time and computation penalty, as shown in Fig. 2. The proposed method-II achieves similar accuracy to the scaled icare, and at a cost even smaller than the unscaled icare, see Fig. 2.

Computation time with respect to the system size. Figure shows the variation in time taken to compute the CARE solution as a function of the system size. Systems have their size equal to the next immediate tickmark on the -axis.
Figure 2 shows the time taken to compute the CARE solution with respect to the size of the second-order system, clearly illustrating the advantage of method-II from the computation cost perspective. Since Matlab’s unscaled icare requires the computation and reordering of the Hamiltonian matrix’s eigenvectors, it becomes computationally expensive for large-size systems. In addition, the scaled icare scales the input matrices according to a proprietary scaling routine, which further increases the computation time and cost. In contrast, method-II is closed-form and avoids eigenvector computation. Consequently, the time taken to compute the solution is significantly less for method-II, as evident from Fig. 2. Thus, method-II would perform much better than other methods in solving CARE for large-size systems in real-time.
The proposed methods enforce a fixed structure for design matrices and . Though the structure is fixed, matrix can still be varied by a designer by varying the design variables and . The variable can be selected as any number between , and the variable “” can be selected as any number greater or equal to , where are as provided in Theorem 3.
The matrix is fixed. However, this is the case with many control theory applications such as in obtaining the normalized coprime factors [1], -gap metric [1], and in other applications such as Youla-Kucera parameterization [27]. These applications fix as an identity matrix.
The freedom of selecting any structure of and (though can still be varied) is traded to obtain a closed-form solution to CARE for second-order systems that can now be directly written given a second-order system.
6 Applications
In this section, we discuss the advantages of our work in the context of some specific engineering problems such as vibration control.
6.1 Vibration Control of Large Space Structures.
Many large space structures require solving CARE for second-order systems to achieve vibration control [6,12]. Consider Ref. [6], where the authors improve the active vibration control of large space structures through structural modifications. To that end, the authors of Ref. [6] first solve a CARE to find the LQR solution. Then, with this solution, the authors obtain the closed-loop system, compute its eigenvalues, and the damping factors corresponding to these eigenvalues. Since these damping factors (and the eigenvalues) are dependent on the system’s matrices , any structural modification will change these matrices as well as the damping factors. Thus, required changes in the damping factors can be obtained through modification of these matrices by changing properties such as the area, length, etc. of the constituent structural elements.
6.2 Optimal Control of Vibrating Structures.
In this subsection, we show that a closed-form expression for the control gain of LQR can be directly obtained given a second-order system.
Consider a spring-mass-damper system with units, shown in Fig. 3, fixed from one side. The dynamics of such a system can be described by (1). This system can be used to describe simplified models of structures such as buildings [28], offshore wind turbines [29], etc. Each th unit has a lumped mass , with the spring and damping constants of and , respectively. An actuator force, , acts on each lumped mass, , to counter oscillations. These forces are modeled in terms of the control input , , with constant. The displacement of relative to its rest position is given by along the direction shown.
7 Conclusions
This article discussed the pertinent literature that attempts to find an analytical and closed-form solution to CARE for second-order systems. These methods have various shortcomings, for example, they do not solve the CARE accurately, do not always satisfy the positive semi-definiteness property of and/or , or are applicable only to a particular class of systems (collocated actuators and sensors systems). To address these shortcomings, we presented two novel methods that solve the CARE accurately and are applicable for both collocated and non-collocated control. The solution we designed is positive definite, stabilizing, and optimal to the LQR cost. Moreover, this solution always exists because the stabilizability and detectability conditions necessary for the existence and uniqueness of such a solution are satisfied.
Numerical simulations of randomized systems, with sizes ranging from to , were used to illustrate the advantages of the proposed methods. Results showed that method-II achieved a much better accuracy compared to the Hamiltonian eigenvector-based standard method, and similar accuracy with the state-of-the-art (Matlab’s scaled icare). However, it did so with a huge reduction in computation time compared to Matlab’s scaled and unscaled icare routine. Hence, method-II can significantly extend the limit on the system size, , to compute the CARE solution for large-size second-order systems.
Furthermore, the solution is a simple and direct formulation in terms of physically meaningful second-order matrices, , which have the property of being symmetric positive definite and can be sparse too. Thus, these closed-form expressions offer physical insight into the structure of the solution, which is lost otherwise. We showed that engineering problems such as optimal control of vibrating structures and vibration control of large space structures can be addressed in a simpler and computationally inexpensive way with our solution, given the second-order system’s matrices .
These methods, however, have restricted structures for and . We traded some freedom in selecting structures for and to obtain explicit closed-form solutions to CARE for second-order systems. Moreover, since method-I requires simultaneous diagonalization of matrices and , it could add to the computational cost. However, since method-II does not require simultaneous diagonalization, this additional cost is avoided.
Acknowledgment
The continuous support of the Office of Naval Research (ONR) under the grant number N00014-20-1-2080 is gratefully acknowledged.
Conflict of Interest
There are no conflicts of interest.
Data Availability Statement
The datasets generated and supporting the findings of this article are obtainable from the corresponding author upon reasonable request.