- Research
- Open Access
- Published:

# Two modified least-squares iterative algorithms for the Lyapunov matrix equations

*Advances in Difference Equations*
**volume 2019**, Article number: 305 (2019)

## Abstract

In this paper two modified least-squares iterative algorithms are presented for solving the Lyapunov matrix equations. The first algorithm is based on the hierarchical identification principle, which can be viewed as a surrogate of the least-squares iterative algorithm proposed by Ding et al., whose convergence has not been proved until now. The second one is motivated by a new form of fixed point iterative scheme. With the tool of a new matrix norm, the proof of both algorithms’ global convergence is offered. Furthermore, the feasible sets of their convergence factors are analyzed. Finally, a numerical example is presented to illustrate the rationality of theoretical results.

## Introduction

Matrix equations are often encountered in control theory [1, 2], system theory [3, 4], and stability analysis [5,6,7]. For example, the stability of the autonomous system \(\dot{x}(t)=Ax(t)\) is determined by whether the associated Lyapunov equation \(X A + A^{\top }X =-M\) has a positive definite solution *X*, where *M* is a given positive definite matrix with approximate size [8]. In this paper, we are concerned with the following (continuous-time) Lyapunov matrix equations:

where $A\in {\mathbb{R}}^{m\times m}$ and $C\in {\mathbb{R}}^{m\times m}$ are the given constant matrices, and $X\in {\mathbb{R}}^{m\times m}$ is the unknown matrix to be determined.

Obviously, by using the Kronecker product ⊗ and the vec-operator vec, equation (1.1) can be written as a system of linear equations:

The order of its coefficient matrix is \(m^{2}\), which becomes very large when the constant *m* is large. For example, if \(m=100\), then \(m^{2}=10,000\). Obviously, a 10,000 order square matrix requires much more storage capacity than several 100 order square matrices. Furthermore, the inverse computation and eigenvalue computation of 10,000 order square matrix are much more difficult than those of 100 order square matrix.

To solve equation (1.1) or its special cases or generalized versions, different methods have been developed in the literature [5, 7, 9,10,11,12,13,14,15,16,17,18,19], which belong to the category of iterative methods. For example, two conjugate gradient methods are proposed in [7] to solve consistent or inconsistent equation (1.1). Both have finite termination property in the absence of round-off errors and can get least Frobenius norm solution or least-squares solution with the least Frobenius norm of equation (1.1) when they adopt some special kind of initial matrix. By using the hierarchical identification principle, Ding et al. [18] designed a gradient-based iterative algorithm and a least-squares iterative algorithm for equation (1.1), and they proved that the gradient-based iterative algorithm always converges to the exact solution for any initial matrix. However, convergence of the least-squares iterative algorithm is not proved in [18]. In fact, the authors claimed that convergence of the least-squares iterative algorithm is very difficult to prove and still requires studying further. In this paper, we are going to further study the least-squares iterative algorithm for equation (1.1) and present two convergent least-squares iterative algorithms. The feasible set of their convergence factor is presented.

The remainder of the paper is organized as follows. Section 2 presents the first least-squares iterative algorithm for equation (1.1) and its global convergence. Section 3 discusses the second least-squares iterative algorithm for equation (1.1) and its global convergence. Section 4 gives an example to illustrate the rationality of theoretical results. Section 5 ends the paper with some remarks.

## The first algorithm and its convergence

In this section, we give some notations, present the first least-squares iterative algorithm for equation (1.1), and analyze its global convergence.

The symbol *I* stands for an identity matrix of approximate size. For any $M\in {\mathbb{R}}^{n\times n}$, the symbol \(\lambda _{\mathrm{max}}[M]\) denotes the maximum eigenvalue of the square matrix *M*. For any $N\in {\mathbb{R}}^{m\times n}$, we use \(N^{\top }\) to denote its transpose, and the symbol tr(*N*) to stand for its trace. The Frobenius norm \(\|N\|\) is defined as \(\|N\|=\sqrt{\operatorname{tr}(N ^{\top }N)}\). The symbol \(A\otimes B\) defined as \(A\otimes B=(a_{ij}B)\) stands for the Kronecker product of matrices *A* and *B*. For a matrix $A\in {\mathbb{R}}^{m\times n}$, the vectorization operator \(\operatorname{vec}(A)\) is defined by \(\operatorname{vec}(A)=(a_{1}^{\top }, a_{2}^{\top }, \ldots ,a_{n}^{ \top })^{\top }\), where \(a_{k}\) is the *k*th column of the matrix *A*. According to the property of the Kronecker product, for any matrices *M*, *N*, and *X* with approximate size, we have

The following definition is a simple extension of the Frobenius norm \(\|\cdot \|\).

### Definition 2.1

Given a positive definite matrix $M\in {\mathbb{R}}^{n\times n}$ and a matrix $N\in {\mathbb{R}}^{m\times n}$, the *M*-Frobenius norm \(\|N\|_{M}\) is defined as

The *M*-Frobenius norm \(\|\cdot \|_{M}\) defined in (2.1) satisfies the following properties.

### Theorem 2.1

*Given a positive definite matrix*
$M\in {\mathbb{R}}^{n\times n}$
*and three matrices*
$N,{N}_{1},{N}_{2}\in {\mathbb{R}}^{m\times n}$, *it holds that*

- (1)
\(\|N\|_{M}=0\Longleftrightarrow N=0\).

- (2)
\(\|N_{1}+N_{2}\|_{M}^{2}=\|N_{1}\|_{M}^{2}+2\operatorname{tr}(N_{1}^{ \top }MN_{2})+\|N_{2}\|_{M}^{2}\).

### Proof

The proof is elementary and is omitted here. □

### Theorem 2.2

([18])

*Equation* (1.1) *has a unique solution if and only if the matrix*
\(I_{m}\otimes A+A\otimes I_{m}\)
*is nonsingular*, *and the unique solution*
\(X^{*}\)
*is given by*

By using the hierarchical identification principle, Ding et al. [18] presented the following least-squares iterative algorithm for equation (1.1):

The initial matrix \(X(0)\) may be taken as any matrix ${X}_{0}\in {\mathbb{R}}^{m\times m}$.

The following example shows that the feasible set of the convergence factor *μ* of iterative scheme (2.2)–(2.4) maybe not the interval \((0,4)\).

### Example 2.1

Consider the Lyapunov matrix equations \(AX+XA^{\top }=C\) with

The numerical results of iterative scheme (2.2)–(2.4) with \(\mu =1, 0.99, 0.2\) are plotted in Fig. 1, in which

From the three curves in Fig. 1, we find that: (1) iterative scheme (2.2)–(2.4) with \(\mu =1\) is divergent, while iterative scheme (2.2)–(2.4) with \(\mu =0.99, 0.2\) is convergent; (2) the constant 1 maybe the upper bound of *μ* for this example; (3) smaller convergence factor often can accelerate the convergence of iterative scheme (2.2)–(2.4).

Based on iterative scheme (2.2)–(2.4), we propose the following modified least-squares iterative algorithm.

The iteration \(X_{1}(k)\) is defined the same as in (2.2), while the iterations \(X_{2}(k)\) and \(X(k)\) are defined as

The initial matrix \(X(0)\) can also be taken as any matrix ${X}_{0}\in {\mathbb{R}}^{m\times m}$.

### Remark 2.1

Modified least-squares iterative algorithm (2.2), (2.5), and (2.6) involves the inverse of the matrix \(A^{\top }A\). However, since this term is invariant in each iteration, we need only compute it once before all iterations.

In the remainder of this section, we shall prove the global convergence of the first least-squares iterative algorithm (2.2), (2.5), and (2.6), which is motivated by Theorem 4 in [18].

### Theorem 2.3

*If equation* (1.1) *has a unique solution*
\(X^{*}\)
*and*
\(r(A)=m\), *the sequence*
\(\{X(k)\}\)
*generated by iterative scheme* (2.2), (2.5), *and* (2.6) *converges to*
\(X^{*}\)
*for any initial matrix*
\(X(0)\), *where the convergence factor*
*μ*
*satisfies*

*and the constant*
*ν*
*is defined as*

### Proof

Firstly, let us define three error matrices as follows:

Then, by (2.4), the error matrix corresponding to \(X(k)\) can be written as

Thus, from the convexity of the function \(\|\cdot \|^{2}_{A^{\top }A}\), it holds that

Secondly, setting

Then, by (2.2), (2.10), and \(X^{*}\) is a solution of equation (1.1), \(\tilde{X}_{1}(k)\) can be written as

Similarly, by (2.5), (2.10), and \(X^{*}\) is a solution of equation (1.1), \(\tilde{X}_{2}(k)\) can be written as

From (2.11) and Theorem 2.1, we have

Similarly, from (2.12) and Theorem 2.1, we have

Substituting the above two inequalities into the right-hand side of (2.9) yields

Since \(0<\mu <2/\nu \), we have

from which it holds that

That is,

So

Since the matrix \(I_{m}\otimes A+A\otimes I_{m}\) is nonsingular, we have

Thus

This completes the proof. □

### Remark 2.2

We can adopt some iterative methods, such as the sum method, the power method [20], to compute the maximum eigenvalue in the constant *ν*.

## The second algorithm and its convergence

In this section, we present the second least-squares iterative algorithm for equation (1.1) and analyze its global convergence.

Define a matrix *C̄* as follows:

Then equation (1.1) can be written as

From [18], the least-squares solution of the system *S* is

Substituting (3.1) into the above equation, we have

Then, we get the second least-squares iterative algorithm for equation (1.1) as follows:

The initial matrix \(X(0)\) may be taken as any matrix ${X}_{0}\in {\mathbb{R}}^{m\times m}$.

### Theorem 3.1

*If equation* (1.1) *has a unique solution*
\(X^{*}\)
*and*
\(r(A)=m\), *the sequence*
\(\{X(k)\}\)
*generated by iterative scheme* (3.2) *converges to*
\(X^{*}\)
*for any initial matrix*
\(X(0)\), *where the convergence factor*
*μ*
*satisfies*

### Proof

Firstly, let us define an error matrix as follows:

Then, by (3.2), it holds that

So

Then

Set \(\nu =1+2\mu +\mu ^{2}-2\mu (1-\mu )\lambda _{\min }(A\otimes A^{-1})+ \mu ^{2}\lambda _{\max }^{2}(A\otimes A^{-1})\). From (3.3), it holds that \(0<\nu <1\). Thus

Then

So

This completes the proof. □

### Example 3.1

Let us apply the two modified least-squares iterative algorithms, i.e., iterative scheme (2.2), (2.5), and (2.6) (denoted by LSIA1) and iterative scheme (3.2) (denoted by LSIA2), to solve the Lyapunov matrix equations in Example 2.1. We set \(\mu =0.2546\) in the first algorithm and \(\mu =0.3478\) in the second algorithm. The numerical results are plotted in Fig. 2.

The two curves in Fig. 2 illustrate that the two modified least-squares iterative algorithms are both convergent, and LSIA2 is faster than LSIA1 for this problem.

## Numerical results

In this section, an example is given to show the efficiency of the two proposed algorithms (denoted by LSIA1 and LSIA2) in Sect. 2 and Sect. 3, and we give some comparisons with the gradient-based iterative algorithm in [18] (denoted by GBIA). The convergence factors in both algorithms are set to their upper bounds.

### Example 4.1

Let us consider a medium scale Lyapunov matrix equation

with

We set \(n=20\) and set the initial matrix \(X(0)=0\).

The convergence factors in the three algorithms are all taken half of their upper bounds. Three curves in Fig. 3 indicate that LSIA2 is much faster than LSIA1, and LSIA1 is little faster than GBIA for this problem. In fact, the numbers of iterations of LSIA1, LSIA2, and GBIA are 134, 12, and 135, respectively. The final errors of LSIA1, LSIA2, and GBIA are \(9.1473\mbox{e}{-}07\), \(4.1768\mbox{e}{-}07\), and \(8.9406\mbox{e}{-}07\), respectively.

## Conclusions

In this paper, two modified least-squares iteration algorithms are proposed for solving the Lyapunov matrix equations, whose global convergence is proved. The feasible set of their convergence factor is analyzed. Some numerical results are presented to verify the theoretical results. In the future, we shall analyze the convergence property of the least-squares iteration algorithm for solving the Sylvester matrix equations.

## References

- 1.
Wu, A.G., Fu, Y.M., Duan, G.R.: On solutions of matrix equations \(v-AV F = BW\) and \(v- a\bar{V}f = BW\). Math. Comput. Model.

**47**(11–12), 1181–1197 (2008) - 2.
Wu, A.G., Wang, H.Q., Duan, G.R.: On matrix equations \(x-AX F = c\) and \(x-a\bar{X} f = c\). J. Comput. Appl. Math.

**230**(2), 690–698 (2009) - 3.
Zhang, H.M., Ding, F.: Iterative algorithms for \(x + a^{\top }x^{-1} a = \mathrm{i}\) by using the hierarchical identification principle. J. Franklin Inst.

**353**(5), 1132–1146 (2016) - 4.
Wu, A.G., Feng, G., Duan, G.R., Liu, W.Q.: Iterative solutions to the Kalman–Yakubovich-conjugate matrix equation. Appl. Math. Comput.

**217**(9), 4427–4438 (2011) - 5.
Hajarian, M.: Developing biCOR and CORS methods for coupled Sylvester-transpose and periodic Sylvester matrix equations. Appl. Math. Model.

**39**(9), 6073–6084 (2015) - 6.
Song, C.Q., Feng, J.E.: On solutions to the matrix equations \(X B- AX = CY\) and \(X B - a\hat{X} = CY \). J. Franklin Inst.

**353**(5), 1075–1088 (2016) - 7.
Sun, M., Wang, Y.J.: The conjugate gradient methods for solving the generalized periodic Sylvester matrix equations. J. Appl. Math. Comput.

**60**, 413–434 (2019) - 8.
Datta, B.N.: Numerical Methods for Linear Control Systems. Elsevier, Amsterdam (2003)

- 9.
Ding, J., Liu, Y.J., Ding, F.: Iterative solutions to matrix equations of the form \(A_{i}XB_{i}=F_{i}\). Comput. Math. Appl.

**59**(11), 3500–3507 (2010) - 10.
Xie, L., Liu, Y.J., Yang, H.Z.: Gradient based and least squares based iterative algorithms for matrix equations \(AXB+CX^{\top }D=F\). Appl. Math. Comput.

**217**(5), 2191–2199 (2010) - 11.
Ding, F., Chen, T.W.: Iterative least-squares solutions of coupled Sylvester matrix equations. Syst. Control Lett.

**54**(2), 95–107 (2005) - 12.
Xie, L., Ding, J., Ding, F.: Gradient based iterative solutions for general linear matrix equations. Comput. Math. Appl.

**58**(7), 1441–1448 (2009) - 13.
Ding, F., Zhang, H.M.: Gradient-based iterative algorithm for a class of the coupled matrix equations related to control systems. IET Control Theory Appl.

**8**(15), 1588–1595 (2014) - 14.
Ding, F., Chen, T.W.: On iterative solutions of general coupled matrix equations. SIAM J. Control Optim.

**44**(6), 2269–2284 (2006) - 15.
Chen, L.J., Ma, C.F.: Developing CRS iterative methods for periodic Sylvester matrix equation. Adv. Differ. Equ.

**2019**, 87 (2019) - 16.
Berzig, M., Duan, X.F., Samet, B.: Positive definite solution of the matrix equation \(X=Q?A^{*}X^{?1}A + B^{*}X^{?1}B\) via Bhaskar–Lakshmikantham fixed point theorem. Adv. Differ. Equ.

**6**27 (2012) - 17.
Vaezzadeh, S., Vaezpour, S.M., Saadati, R., Park, C.: The iterative methods for solving nonlinear matrix equation \(X+A^{*}X^{?1}A+B^{*}X^{?1}B=Q\). Adv. Differ. Equ.

**2013**, 27 (2013) - 18.
Ding, F., Liu, P.X., Ding, J.: Iterative solutions of the generalized Sylvester matrix equations by using the hierarchical identification principle. Appl. Math. Comput.,

**197**(1), 41–50 (2008) - 19.
Sun, M., Wang, Y.J., Liu, J.: Generalized Peaceman–Rachford splitting method for multiple-block separable convex programming with applications to robust PCA. Calcolo

**54**(1), 77–94 (2017) - 20.
Wang, P.C.: Computation Method. Higher Education Press, Beijing (2014)

## Acknowledgements

The authors thank two anonymous reviewers for their valuable comments and suggestions that have helped them in improving the paper.

### Funding

This work is supported by the National Natural Science Foundation of Shandong Province (No. ZR2016AL05) and the Doctoral Foundation of Zaozhuang University.

## Author information

### Affiliations

### Contributions

The first author provided the problem and gave the proof of the main results, the second author finished the numerical experiment, and the third author improved the writing. All authors read and approved the final manuscript.

### Corresponding author

Correspondence to Min Sun.

## Ethics declarations

### Competing interests

The authors declare that there are no competing interests.

## Additional information

### Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Rights and permissions

**Open Access** This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

## About this article

### Cite this article

Sun, M., Wang, Y. & Liu, J. Two modified least-squares iterative algorithms for the Lyapunov matrix equations.
*Adv Differ Equ* **2019, **305 (2019). https://doi.org/10.1186/s13662-019-2253-7

Received:

Accepted:

Published:

### MSC

- 65H10
- 90C33
- 90C30

### Keywords

- Least-squares iterative algorithm
- Lyapunov matrix equations
- Hierarchical identification principle