# 西尔维斯特方程

**西尔维斯特方程**（Sylvester equation）是线性矩阵方程 \( AX + XB = C \)，其中 \( A \) 是 \( m \times m \) 矩阵，\( B \) 是 \( n \times n \) 矩阵，\( C \) 是给定的 \( m \times n \) 矩阵，而 \( m \times n \) 矩阵 \( X \) 是未知量<sup>[1](https://mathworld.wolfram.com/SylvesterEquation.html)</sup>。许多作者将第二项写成带负号的形式 \( AX - XB = C \)，这等价于把 \( B \) 替换为 \( -B \) 的同一方程<sup>[2](https://nhigham.com/2020/09/01/what-is-the-sylvester-equation/)</sup>。它得名于詹姆斯·约瑟夫·西尔维斯特（James Joseph Sylvester，1814–1897），他在1884年考虑了齐次版本 \( AX - XB = 0 \)<sup>[2](https://nhigham.com/2020/09/01/what-is-the-sylvester-equation/)</sup>。

| 关键事实 | 细节 |
|---|---|
| 标准形式 | \( AX + XB = C \)，其中 \( A \in \mathbb{C}^{m \times m} \)，\( B \in \mathbb{C}^{n \times n} \)，\( X, C \in \mathbb{C}^{m \times n} \)<sup>[1](https://mathworld.wolfram.com/SylvesterEquation.html)</sup> |
| 唯一可解性 | 对每个 \( C \) 都存在唯一解，当且仅当 \( A \) 的任一特征值都不是 \( B \) 的某个特征值的相反数，即 \( A \) 与 \( -B \) 的谱不相交<sup>[1](https://mathworld.wolfram.com/SylvesterEquation.html)</sup> |
| 向量化形式 | \( (I_n \otimes A - B^T \otimes I_m)\,\mathrm{vec}(X) = \mathrm{vec}(C) \)，一个 \( mn \times mn \) 线性系统，其特征值为 \( \lambda_i(A) - \lambda_j(B) \)<sup>[2](https://nhigham.com/2020/09/01/what-is-the-sylvester-equation/)</sup> |
| 标准算法 | 巴特尔斯–斯图尔特算法（Bartels–Stewart algorithm，1972）在对 \( A \) 和 \( B \) 作舒尔分解后求解该方程<sup>[1](https://mathworld.wolfram.com/SylvesterEquation.html)</sup> |
| 特殊情况 | 李雅普诺夫方程 \( AX + XA^* = C \)；在稳定性应用中 \( B = -A^\top \)，且数据对称<sup>[2](https://nhigham.com/2020/09/01/what-is-the-sylvester-equation/)</sup><sup> • </sup><sup>[3](https://www.control.utoronto.ca/~jwsimpson/papers/2023j/)</sup> |
| 积分解 | 若 \( A \) 与 \( -B \) 的特征值均具有负实部，则 \( X = -\int_0^{\infty} e^{At} C e^{-Bt}\,dt \) 是唯一解<sup>[2](https://nhigham.com/2020/09/01/what-is-the-sylvester-equation/)</sup> |
| 软件 | LAPACK 的 xTRSYL 求解（准）三角方程，xTGSYL 求解广义版本；MATLAB 的 `sylvester` 函数实现巴特尔斯–斯图尔特方法<sup>[4](https://www.netlib.org/lapack/lug/node58.html)</sup><sup> • </sup><sup>[5](https://www.mathworks.com/help/matlab/ref/sylvester.html)</sup> |

## 起源

詹姆斯·约瑟夫·西尔维斯特于1850年创造了“矩阵”一词，并于1884年发表了与该方程相关的结果<sup>[6](https://eprints.maths.manchester.ac.uk/2142/1/paper.pdf)</sup>。他的札记《一个观念的起源，或关于多量方程的一项发现的来历》发表于《自然》（*Nature*）第31卷，第35–36页，日期为1884年11月13日，当时他在牛津大学新学院（New College, Oxford）；在文中，他宣布了自己所谓矩阵理论中的一项非凡发现，这项发现最早通过《法国科学院通报》（*Comptes Rendus*）交流<sup>[7](https://www.nature.com/articles/031035a0)</sup>。通过考虑该方程的齐次版本，西尔维斯特证明了唯一解的条件是 \( A \) 与 \( -B \) 没有公共特征值<sup>[6](https://eprints.maths.manchester.ac.uk/2142/1/paper.pdf)</sup>。

因为该方程关于 \( X \) 是线性的，所以它可以改写成熟悉的形式“\( Ax = b \)”。用 vec 算子将 \( X \) 的各列堆叠成一个向量，并使用由 \( F \otimes G := (f_{ij}G) \) 定义的克罗内克积 \( \otimes \)，可得

\[ (I_n \otimes A - B^T \otimes I_m)\,\mathrm{vec}(X) = \mathrm{vec}(C). \]

这个 \( mn \times mn \) 系数矩阵的特征值为 \( \lambda_i(A) - \lambda_j(B) \)，其中 \( i = 1:m \)，\( j = 1:n \)，因此它非奇异当且仅当 \( A \) 与 \( B \) 没有公共特征值<sup>[2](https://nhigham.com/2020/09/01/what-is-the-sylvester-equation/)</sup><sup> • </sup><sup>[8](https://epubs.siam.org/doi/10.1137/1.9780898718027.ch16)</sup>。西尔维斯特称这个系数矩阵为 *niveauleur*（法语，意为“整平器”）<sup>[6](https://eprints.maths.manchester.ac.uk/2142/1/paper.pdf)</sup>。克罗内克积本身早于该方程：1858年，泽富斯（Zehfuss）给出了结果 \( \det(A \otimes B) = \det(A)^n \det(B)^m \)<sup>[6](https://eprints.maths.manchester.ac.uk/2142/1/paper.pdf)</sup>。

## 可解性与特殊情况

左端 \( X \mapsto AX - XB \) 定义了 \( m \times n \) 矩阵空间上的一个线性映射，常称为西尔维斯特算子 \( \mathcal{S}(X) = AX + XB \)<sup>[3](https://www.control.utoronto.ca/~jwsimpson/papers/2023j/)</sup><sup> • </sup><sup>[9](https://arxiv.org/abs/1811.08327)</sup>。在 \( AX - XB \) 约定下，该算子可逆，且方程对每个 \( C \) 都有唯一解，当且仅当 \( \sigma(A) \cap \sigma(B) = \emptyset \)<sup>[3](https://www.control.utoronto.ca/~jwsimpson/papers/2023j/)</sup>。

该方程具有教学意义，因为它将若干标准线性代数问题作为特殊情况包含在内<sup>[8](https://epubs.siam.org/doi/10.1137/1.9780898718027.ch16)</sup>：

1. 线性方程组 \( Ax = c \)，
2. 多右端项方程组 \( AX = C \)，
3. 矩阵求逆 \( AX = I \)，
4. 给定特征值 \( b \) 的特征向量方程 \( (A - bI)x = 0 \)，
5. 交换性条件 \( AX - XA = 0 \)。

最突出的特殊情况是**李雅普诺夫方程**（Lyapunov equation）\( AX + XA^* = C \)，它在 \( B = A^* \) 时得到<sup>[2](https://nhigham.com/2020/09/01/what-is-the-sylvester-equation/)</sup>。在其最著名的控制论实例中，李雅普诺夫方程刻画矩阵 \( A \) 的赫尔维茨稳定性（Hurwitz stability）：此时 \( B = -A^\top \)，\( C \) 为对称负定，解 \( \Pi \) 为对称正定<sup>[3](https://www.control.utoronto.ca/~jwsimpson/papers/2023j/)</sup>。

一个相容性条件说明了该方程的结构。当 \( B = A \) 时，对 \( AX - XA = C \) 两边取迹得到 \( \mathrm{trace}(C) = 0 \)，因此只有当 \( C \) 的迹为零时才可能有解；例如 \( AX - XA = I \) 无解<sup>[2](https://nhigham.com/2020/09/01/what-is-the-sylvester-equation/)</sup>。

当 \( A \) 与 \( -B \) 稳定，即它们的特征值具有负实部时，唯一解具有如下闭式：

\[ X = -\int_0^{\infty} e^{At} C e^{-Bt}\,dt, \]

这可通过微分 \( Z(t) = e^{At}Ce^{-Bt} \) 得到<sup>[2](https://nhigham.com/2020/09/01/what-is-the-sylvester-equation/)</sup>。

## 应用

西尔维斯特方程出现在系统与控制理论中。一般方程的应用的不完全列表包括观测器设计（伦伯格（Luenberger），1964）、输出调节（弗朗西斯和旺纳姆（Francis and Wonham），1975）、极点配置（沙法伊和巴塔查里亚（Shafai and Bhattacharyya），1988）、干扰解耦（西尔莫斯（Syrmos），1994）、级联镇定（阿斯托尔菲等（Astolfi et al.），2022）以及模型降阶（加利文等（Gallivan et al.），2004）<sup>[3](https://www.control.utoronto.ca/~jwsimpson/papers/2023j/)</sup>。在这些情形中，解 \( \Pi \) 可能是中间变量，也可能是反馈设计中的一个增益<sup>[3](https://www.control.utoronto.ca/~jwsimpson/papers/2023j/)</sup>。

**块对角化。** 一个直接的代数用途是将块上三角矩阵块对角化。对于 \( T = \begin{bmatrix} A & C \\ 0 & B \end{bmatrix} \)，变换 \( Z = \begin{bmatrix} I & -X \\ 0 & I \end{bmatrix} \) 恰好当 \( X \) 满足 \( AX - XB = C \) 时将 \( T \) 块对角化，而当 \( A \) 与 \( B \) 的特征值互异时这是可能的。这个限制不可避免：没有它，该构造将把一个 \( 2 \times 2 \) 若尔当块对角化，而这是不可能的<sup>[2](https://nhigham.com/2020/09/01/what-is-the-sylvester-equation/)</sup>。同样的计算是矩阵函数的舒尔–帕莱特算法（Schur–Parlett algorithm）的基础，该算法逐块求解 \( TF - FT = 0 \) 以得到 \( F = f(T) \)<sup>[2](https://nhigham.com/2020/09/01/what-is-the-sylvester-equation/)</sup>。

**矩阵函数与离散化偏微分方程。** 西尔维斯特方程也出现在矩阵平方根的扰动理论中：\( x^{1/2} \) 的弗雷歇导数（Fréchet derivative）导致方程 \( X^{1/2}Z + ZX^{1/2} = E \)，而平方根的牛顿法需要求解西尔维斯特方程<sup>[2](https://nhigham.com/2020/09/01/what-is-the-sylvester-equation/)</sup>。矩形区域上可分离椭圆边值问题的有限差分离散化也会产生一个这样的方程，其中 \( A \) 和 \( B \) 分别表示“y”和“x”方向上的差分算子<sup>[8](https://epubs.siam.org/doi/10.1137/1.9780898718027.ch16)</sup>。

**微分版本。** 微分西尔维斯特方程

\[ \dot{X}(t) = AX(t) + X(t)B + C, \qquad X(t_0) = D, \]

及其对称版本——微分李雅普诺夫方程——出现在控制理论、系统理论和模型降阶中，例如在线性时变系统的稳定性分析与控制器设计，以及有限时间区间上线性时不变系统的最优控制中<sup>[9](https://arxiv.org/abs/1811.08327)</sup>。

## 数值解法

将向量化形式视为一般的 \( mn \times mn \) 线性系统并用 LU 分解求解，除非 \( m \) 和 \( n \) 很小，否则代价高得不可行，因为 LU 无法利用克罗内克积结构<sup>[2](https://nhigham.com/2020/09/01/what-is-the-sylvester-equation/)</sup>。标准直接法是**巴特尔斯–斯图尔特算法**，由理查德·H·巴特尔斯（Richard H. Bartels）和 G. W. 斯图尔特（G. W. Stewart）于1972年9月在《美国计算机学会通讯》（*Communications of the ACM*）上发表为算法432（第15卷，第820–826页）<sup>[1](https://mathworld.wolfram.com/SylvesterEquation.html)</sup><sup> • </sup><sup>[10](https://doi.org/10.1145/361573.361582)</sup>。它计算舒尔分解 \( A = URU^* \) 和 \( B = VSV^* \)，其中 \( R \) 和 \( S \) 为上三角矩阵，将方程变换为 \( RY - YS = D \)，并通过回代逐列求解这个三角系统<sup>[2](https://nhigham.com/2020/09/01/what-is-the-sylvester-equation/)</sup>。该方法在 MATLAB 的 `sylvester` 函数中实现，如果 \( A \) 与 \( -B \) 的特征值不互异，该函数返回错误<sup>[5](https://www.mathworks.com/help/matlab/ref/sylvester.html)</sup>。在 LAPACK 中，xTRSYL 在 \( A \) 和 \( B \) 已处于舒尔标准型时求解该方程，xTGSYL 求解广义西尔维斯特方程 \( AR - LB = sC \) 和 \( DR - LE = sF \)，其中缩放因子 \( s \) 的选择用于避免溢出<sup>[4](https://www.netlib.org/lapack/lug/node58.html)</sup>。

对于大型问题，基于舒尔的直接方法因计算舒尔型的代价而变得低效<sup>[11](https://stax.strath.ac.uk/downloads/f7623d04x)</sup>。近期研究集中于 \( A \) 和 \( B \) 大型稀疏且 \( C \) 为低秩的方程，这类方程出现在控制理论和模型降阶中；此时解通常具有快速衰减的奇异值，可以很好地用低秩形式近似，而基于克雷洛夫子空间的迭代方法（通过重复矩阵乘法构造解近似的迭代方法）非常成功<sup>[2](https://nhigham.com/2020/09/01/what-is-the-sylvester-equation/)</sup><sup> • </sup><sup>[11](https://stax.strath.ac.uk/downloads/f7623d04x)</sup>。对于此类问题，交替方向隐式（ADI）方法以及投影到标准、扩展和有理克雷洛夫子空间上的投影方法是常用工具<sup>[11](https://stax.strath.ac.uk/downloads/f7623d04x)</sup>。

## 敏感性

解对扰动的反应强度由 \( A \) 与 \( B \) 的**分离度**（separation）衡量，

\[ \mathrm{sep}(A,B) = \min_{Z \ne 0} \frac{\|AZ - ZB\|_F}{\|Z\|_F}, \]

该概念由斯图尔特在20世纪70年代引入，作为研究不变子空间敏感性的工具<sup>[2](https://nhigham.com/2020/09/01/what-is-the-sylvester-equation/)</sup>。如果 \( X \) 是方程 \( AX - XB = C \) 的解，那么 \( \|X\|_F \le \|C\|_F / \mathrm{sep}(A,B) \)，这个界推广了普通线性系统的 \( \|x\|_2 \le \|A^{-1}\|_2 \|b\|_2 \)<sup>[2](https://nhigham.com/2020/09/01/what-is-the-sylvester-equation/)</sup>。当 \( A \) 与 \( B \) 没有公共特征值时，分离度为正，并且满足 \( \mathrm{sep}(A,B) \le \min_{i,j} |\lambda_i(A) - \lambda_j(B)| \)，但对非正规矩阵，这个不等式可能极弱：即使两个矩阵的特征值相距很远，它们的分离度也可能很小<sup>[2](https://nhigham.com/2020/09/01/what-is-the-sylvester-equation/)</sup>。更引人注目的是，即使 \( A \)、\( B \)、\( C \) 以及克罗内克和 \( I \otimes A - B^T \otimes I \) 全都完全良态，解也可能任意病态<sup>[12](https://arxiv.org/abs/2609.04050)</sup>。

## 推广

该方程在几个方向上得到推广。离散西尔维斯特方程是 \( X + AXB = C \)，而多项版本在 \( X \) 两侧放置系数矩阵，给出 \( \sum_{i=1}^k A_i X B_i = C \)<sup>[2](https://nhigham.com/2020/09/01/what-is-the-sylvester-equation/)</sup>。对于 \( k \le 2 \) 且 \( m = n \)，这个广义方程可以在 \( O(n^3) \) 次浮点运算内求解；对于 \( k > 2 \)，尚无已知的 \( O(n^3) \) 算法，而且该方程出现在带随机输入的偏微分方程的随机有限元离散化中，其中 \( k \) 可以任意大<sup>[2](https://nhigham.com/2020/09/01/what-is-the-sylvester-equation/)</sup>。在非线性系统与控制中，该方程推广为关于未知函数的非线性偏微分方程，称为不变性方程，它们表达状态空间中一个流形的不变性<sup>[3](https://www.control.utoronto.ca/~jwsimpson/papers/2023j/)</sup>。

## References

1. [Sylvester Equation, Wolfram MathWorld](https://mathworld.wolfram.com/SylvesterEquation.html)
2. [Nicholas J. Higham (2020). What Is the Sylvester Equation?](https://nhigham.com/2020/09/01/what-is-the-sylvester-equation/)
3. [D. Astolfi, J. W. Simpson-Porco, and G. Scarciotti (2024). On the Role of Dual Sylvester and Invariance Equations in Systems and Control, IFAC](https://www.control.utoronto.ca/~jwsimpson/papers/2023j/)
4. [LAPACK Users' Guide: Deflating Subspaces and Condition Numbers (xTGSYL)](https://www.netlib.org/lapack/lug/node58.html)
5. [sylvester – Solve Sylvester equation AX + XB = C for X, MATLAB documentation](https://www.mathworks.com/help/matlab/ref/sylvester.html)
6. [Nicholas J. Higham (2014). Sylvester's Influence on Applied Mathematics, MIMS EPrints, University of Manchester](https://eprints.maths.manchester.ac.uk/2142/1/paper.pdf)
7. [J. J. Sylvester (1884). The Genesis of an Idea, or Story of a Discovery Relating to Equations in Multiple Quantity, Nature 31, 35–36](https://www.nature.com/articles/031035a0)
8. [Nicholas J. Higham. Accuracy and Stability of Numerical Algorithms, Chapter 16: The Sylvester Equation, SIAM](https://epubs.siam.org/doi/10.1137/1.9780898718027.ch16)
9. [solution formulas for differential sylvester and lyapunov equations](https://arxiv.org/abs/1811.08327)
10. [R. H. Bartels, G. W. Stewart (1972). Algorithm 432 [C2]: Solution of the matrix equation AX + XB = C [F4], Communications of the ACM 15(9), 820–826](https://doi.org/10.1145/361573.361582)
11. [PhD thesis, University of Strathclyde: numerical solution of Sylvester and Lyapunov matrix equations](https://stax.strath.ac.uk/downloads/f7623d04x)
12. [Massimiliano Fasi, Behnam Hashemi. Conditioning of solutions to the Sylvester equation, arXiv](https://arxiv.org/abs/2609.04050)

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

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › 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/zh/sylvester-equation

English original: https://www.edgepedia.org/sylvester-equation
