# 谱配置法

谱配置法是求解微分方程的一种数值技术，其中解由全局基函数的高阶展开表示，并要求方程在一组离散配置点上精确成立。其基本未知量是这些点上的解值，而非展开系数。<sup>[1](https://ntrs.nasa.gov/api/citations/19870020353/downloads/19870020353.pdf)</sup> 对于周期性问题，基函数通常取复指数（傅里叶模态）；对于非周期性问题，则取切比雪夫（Chebyshev）或勒让德（Legendre）多项式。<sup>[1](https://ntrs.nasa.gov/api/citations/19870020353/downloads/19870020353.pdf)</sup> 该方法也被称为谱方法的伪谱形式或配置形式，是科学计算中求解具有光滑解的常微分方程和偏微分方程的标准工具。<sup>[2](https://ignite.byu.edu/spectral/)</sup>

| 关键事实 | 详情 |
|---|---|
| 未知量 | 配置点上的解值；方程在这些点上精确成立<sup>[1](https://ntrs.nasa.gov/api/citations/19870020353/downloads/19870020353.pdf)</sup> |
| 基函数 | 傅里叶模态（周期性），切比雪夫或勒让德多项式（非周期性）<sup>[1](https://ntrs.nasa.gov/api/citations/19870020353/downloads/19870020353.pdf)</sup> |
| 精度 | 对于解析解，误差呈指数衰减；衰减速率仅由解的光滑性决定<sup>[1](https://ntrs.nasa.gov/api/citations/19870020353/downloads/19870020353.pdf)</sup> |
| 标准节点 | 区间 [-1, 1] 上的切比雪夫点 \( x_{k} = \cos(k \cdot \pi/N) \)<sup>[3](https://people.maths.ox.ac.uk/trefethen/publication/PDF/2006_119.pdf)</sup> |
| 导数 | 通过稠密微分矩阵 \( D \) 施加，或通过 FFT/余弦变换施加<sup>[4](https://www.math.purdue.edu/~shen7/sp_intro12/book.pdf)</sup> |
| 主要缺点 | 稠密矩阵、随分辨率增长的条件数恶化，以及显式积分的严格时间步长限制<sup>[5](https://arxiv.org/pdf/1905.10388)</sup><sup> • </sup><sup>[6](https://ar5iv.labs.arxiv.org/html/1202.1347)</sup><sup> • </sup><sup>[7](https://people.maths.ox.ac.uk/trefethen/8all.pdf)</sup> |
| 最适用于 | 简单或分片简单几何区域上的极光滑解问题<sup>[8](https://www.mdpi.com/2227-7390/10/23/4438)</sup> |

## 工作原理

谱方法是全局性的：函数被近似为若干光滑基函数之和，如傅里叶模态 \( e^{ikx} \)、切比雪夫多项式 \( T_{k}(x) \) 或勒让德多项式 \( L_{k}(x) \)，每个基函数都跨越整个区域，这与有限元和有限差分方法中局部基函数的做法形成对照。<sup>[4](https://www.math.purdue.edu/~shen7/sp_intro12/book.pdf)</sup><sup> • </sup><sup>[2](https://ignite.byu.edu/spectral/)</sup> 在配置形式中，投影就是简单的插值：多项式在网格点上取函数的精确值，微分方程的残差在这些点上被强制为零。等价地说，检验函数是平移的狄拉克δ函数而非试探函数本身，这正是配置法与伽辽金（Galerkin）形式的区别所在。<sup>[1](https://ntrs.nasa.gov/api/citations/19870020353/downloads/19870020353.pdf)</sup><sup> • </sup><sup>[9](http://hdl.handle.net/2060/19840003764)</sup>

导数通过微分矩阵 \( D \) 施加，其元素为 \( D_{jk} = F_{k}'(x_{j}) \)，于是诸如热传导方程这样的含时问题就变为 \( U_{t} = D^{2} \cdot U \)，其中 \( U \) 是网格值的向量。<sup>[4](https://www.math.purdue.edu/~shen7/sp_intro12/book.pdf)</sup> 伪谱方法可以理解为建立在全局多项式插值而非局部模板上的有限差分方法。<sup>[10](https://www.math.iit.edu/~fass/478578_Chapter_11.pdf)</sup>

精度来源于近似空间的光滑性。收敛速率通过索伯列夫（Sobolev）范数，仅取决于被近似函数的光滑性，实际计算中误差呈指数衰减，这种行为称为谱精度。<sup>[1](https://ntrs.nasa.gov/api/citations/19870020353/downloads/19870020353.pdf)</sup> 切比雪夫配置的指数收敛性由塔德莫尔（Tadmor）对在区间周围椭圆内解析的函数所证明。<sup>[1](https://ntrs.nasa.gov/api/citations/19870020353/downloads/19870020353.pdf)</sup> 如果解仅有 \( k \) 阶连续导数，收敛性降为代数收敛 \( O(n^{-k}) \)。<sup>[11](https://arxiv.org/html/2402.12952v2)</sup> 在计算中，指数衰减通常持续到达到双精度机器精度（约 \( 2.2 \times 10^{-16} \)）为止，不过特定计算中实际达到的平台值取决于方法和问题，可能更高。<sup>[12](https://ar5iv.labs.arxiv.org/html/gr-qc/0609020)</sup>

## 实施方法

实践者遵循一系列简短的步骤。

**选择基函数。** 周期性问题选用傅里叶模态，其导数可在谱空间中通过变换精确计算：\( \partial u/\partial x = F^{-1}[(2\pi i n/L) \cdot F(u)] \)；非周期性问题选用切比雪夫多项式，可利用快速余弦变换；当常权分析较为重要时选用勒让德多项式；存在快速离散勒让德变换算法，如 Hale & Townsend（2013）的 \( O(N(\log N)^{2}/\log\log N) \) 算法以及 arXiv:1505.00354 中基于 FFT 的离散勒让德变换，已在 Chebfun 和 Python 包 `flt` 中实现。<sup>[2](https://ignite.byu.edu/spectral/)</sup><sup> • </sup><sup>[1](https://ntrs.nasa.gov/api/citations/19870020353/downloads/19870020353.pdf)</sup><sup> • </sup><sup>[4](https://www.math.purdue.edu/~shen7/sp_intro12/book.pdf)</sup>

**选择配置点。** 高斯点不包含区间端点，高斯-拉道（Gauss-Radau）点包含一个端点，高斯-洛巴托（Gauss-Lobatto）点包含两个端点；洛巴托点最为常用，因为边界值位于配置点上，便于施加边界条件。<sup>[12](https://ar5iv.labs.arxiv.org/html/gr-qc/0609020)</sup><sup> • </sup><sup>[4](https://www.math.purdue.edu/~shen7/sp_intro12/book.pdf)</sup> 对于切比雪夫配置，标准网格为 \( x_{k} = \cos(k \cdot \pi/N) \)，即 \( T_{N}(x) \) 的极值点，由高斯-洛巴托公式得到。<sup>[3](https://people.maths.ox.ac.uk/trefethen/publication/PDF/2006_119.pdf)</sup><sup> • </sup><sup>[1](https://ntrs.nasa.gov/api/citations/19870020353/downloads/19870020353.pdf)</sup>

**组装并求解。** 构造微分矩阵 \( D \)（对于二阶算子，将 \( D \) 平方是合理的途径），去掉对应于狄利克雷条件的行和列，求解所得的稠密线性系统。矩形区域上的二维问题通过一维矩阵的克罗内克（Kronecker）积组装。<sup>[13](https://tobydriscoll.net/fd-spectral-notes/smim/chebbvp.html)</sup> 对于较大的 \( N \)，导数通过快速变换而非矩阵乘法施加；对于 \( N < 32 \)，在串行计算机上矩阵乘法具有竞争力。<sup>[1](https://ntrs.nasa.gov/api/citations/19870020353/downloads/19870020353.pdf)</sup> 对于显式时间积分，稳定性限制很严格：\( N \) 点网格上的一阶偏微分方程通常要求 \( k = O(N^{-2}) \)，而有限差分为 \( O(N^{-1}) \)；对于二阶方程则恶化为 \( O(N^{-4}) \)，有限差分为 \( O(N^{-2}) \)。<sup>[7](https://people.maths.ox.ac.uk/trefethen/8all.pdf)</sup>

## 起源

配置法的思想远早于现代谱方法：残差归零原理在高阶全局多项式被系统利用之前很久就已用于常微分方程的研究。决定性的实用推动力是快速傅里叶变换，它消除了稠密矩阵和昂贵变换的障碍，使高分辨率谱计算成为可能。<sup>[4](https://www.math.purdue.edu/~shen7/sp_intro12/book.pdf)</sup> 在模型问题上对配置（伪谱）近似与谱（伽辽金）近似的比较发现，尽管伪谱方法存在混叠项，两者给出相似的误差；这一结果确立了配置法作为伽辽金谱方法的重要替代方案的地位。<sup>[14](https://onlinelibrary.wiley.com/doi/10.1002/sapm1972513253)</sup> 配置法作为实用工具包的成型归功于 Lloyd N. Trefethen 于 2000 年由工业与应用数学学会出版的《MATLAB 中的谱方法》一书，该书将该方法呈现为一组简短的 MATLAB 程序，涵盖边值问题、特征值、波和数值求积。<sup>[15](https://doi.org/10.1137/1.9780898719598)</sup>

## 变体

**傅里叶配置法**处理周期性区域，通过 DFT/FFT 及带限周期 sinc 插值实现。<sup>[10](https://www.math.iit.edu/~fass/478578_Chapter_11.pdf)</sup> **切比雪夫配置法**是非周期性问题最流行的谱技术：其点和权重完全解析，且切比雪夫点上的多项式插值等价于等距点上的三角插值，因此可使用 \( O(N \log N) \) 的 FFT 实现微分。<sup>[16](https://apps.dtic.mil/sti/tr/pdf/ADA295013.pdf)</sup><sup> • </sup><sup>[12](https://ar5iv.labs.arxiv.org/html/gr-qc/0609020)</sup><sup> • </sup><sup>[7](https://people.maths.ox.ac.uk/trefethen/8all.pdf)</sup> **勒让德配置法**使用常权多项式，简化了某些分析，但其节点必须数值计算且没有快速变换可用，因此较少使用。<sup>[12](https://ar5iv.labs.arxiv.org/html/gr-qc/0609020)</sup><sup> • </sup><sup>[1](https://ntrs.nasa.gov/api/citations/19870020353/downloads/19870020353.pdf)</sup>

对于复杂几何，多区域和谱元变体将区域细分以避免全局映射；在每个单元内，解通过配置点上的张量积拉格朗日插值展开，随着单元阶数增加保持指数收敛。在变分（单位权重）谱元形式中，出于求积精度和效率的考虑，勒让德-洛巴托点优于切比雪夫点。<sup>[1](https://ntrs.nasa.gov/api/citations/19870020353/downloads/19870020353.pdf)</sup> 更一般地，谱有限元方法将高阶谱基函数与有限元框架相结合。<sup>[17](https://link.springer.com/article/10.1007/s11831-023-09911-2)</sup>

也存在良态的重构形式。超球谱方法产生几乎带状矩阵和 \( O(m^{2} \cdot n) \) 求解器，其中 \( m \) 是分辨算子系数的切比雪夫点数目，\( n \) 是分辨解的系数数目。<sup>[6](https://ar5iv.labs.arxiv.org/html/1202.1347)</sup> 有理插值可用于精心选择的点集以避免龙格（Runge）现象，Kosloff-Tal-Ezer 共形映射能更均匀地重新分布网格点，可缓解龙格型条件数恶化，尽管这两种技术都不能保证对任意点集和函数实现无龙格插值。<sup>[3](https://people.maths.ox.ac.uk/trefethen/publication/PDF/2006_119.pdf)</sup>

## 应用

谱方法在流体动力学中的稳定性、转捩和湍流模拟中发挥关键作用，尽管几何不灵活性等障碍限制了更广泛的采用。<sup>[18](https://ntrs.nasa.gov/api/citations/19860017078/downloads/19860017078.pdf)</sup> 切比雪夫谱配置已应用于描述粘弹性流动的边值问题。<sup>[19](https://link.springer.com/article/10.1007/s11831-025-10235-6)</sup> 谱求解器中的非线性项通过快速变换在配置网格上计算，这种伪谱计算比纯配置或纯谱方法快得多。<sup>[20](https://pmc.ncbi.nlm.nih.gov/articles/PMC13080004/)</sup> 现代软件包括 Dedalus，它将纯文本 PDE 字符串转换为谱求解器，支持傅里叶、切比雪夫、勒让德和球谐基函数，并具备系数与网格值之间的快速变换。<sup>[5](https://arxiv.org/pdf/1905.10388)</sup>

## 局限与替代方案

**节点选择并非可选。** 在均匀（等距）网格上插值会产生龙格现象，即随 \( N \) 增长的大边界误差，等距节点还会导致条件数恶化；切比雪夫点同时避免了这两个问题，平均每个波长仅需约 \( \pi/2 \) 个点，而等距点需要 6.3 个。<sup>[2](https://ignite.byu.edu/spectral/)</sup><sup> • </sup><sup>[21](https://www.ictp.acad.ro/gheorghiu/spectral.pdf)</sup><sup> • </sup><sup>[7](https://people.maths.ox.ac.uk/trefethen/8all.pdf)</sup> 在切比雪夫点上插值的多项式给出接近最佳的逼近，因此无法通过移动点来改善收敛性。<sup>[3](https://people.maths.ox.ac.uk/trefethen/publication/PDF/2006_119.pdf)</sup>

**间断。** 如果函数不连续，插值显示全局振荡（吉布斯（Gibbs）现象）；在最大范数下完全不收敛，因为过冲不衰减，而在远离间断的光滑区域收敛性仅为一阶，滤波方法可在远离间断处恢复谱精度。<sup>[1](https://ntrs.nasa.gov/api/citations/19870020353/downloads/19870020353.pdf)</sup><sup> • </sup><sup>[22](https://math.umd.edu/~tadmor/references/files/Gottlieb%20&%20Gottlieb%20Dundee%202004.pdf)</sup> 使用多区域离散化使每个子区域包含光滑函数。<sup>[12](https://ar5iv.labs.arxiv.org/html/gr-qc/0609020)</sup>

**条件数与矩阵结构。** 切比雪夫微分矩阵一般不是对称、反对称或正规的，这就是谱方法稳定性分析困难的原因。<sup>[7](https://people.maths.ox.ac.uk/trefethen/8all.pdf)</sup> 谱离散化的刚度矩阵条件数按 \( N^{2} \) 增长；在同一勒让德-高斯-洛巴托节点上用有限元矩阵预条件可使条件数与 \( N \) 无关。<sup>[23](https://www.mate.polimi.it/biblioteca/add/qmox/mox16.pdf)</sup> 配置系统是稠密的；具有不同试探和检验基函数的 tau/伽辽金途径则产生稀疏带状系统。<sup>[5](https://arxiv.org/pdf/1905.10388)</sup>

**与替代方案的比较。** 好的谱方法误差随分辨率指数下降，而二阶有限差分方法的误差仅随分辨率的平方下降。<sup>[24](http://cfd.me.berkeley.edu/wp-content/uploads/8Six/Description%20and%20Philosophy%20of%20Spectral%20Methods.pdf)</sup><sup> • </sup><sup>[2](https://ignite.byu.edu/spectral/)</sup> 有限差分方法将导数视为局部性质，设计上仅对低阶多项式精确。<sup>[25](https://www.cambridge.org/core/journals/acta-numerica/article/abs/review-of-pseudospectral-methods-for-solving-partial-differential-equations/E921CA187B5F35E0BEF9ACAA285C083B)</sup> 代价是几何不灵活性、稠密矩阵和更严格的时间步长限制，谱元和多区域变体部分消除了这些问题。<sup>[1](https://ntrs.nasa.gov/api/citations/19870020353/downloads/19870020353.pdf)</sup>

## References

1. [Spectral collocation methods (ICASE report, NASA Langley)](https://ntrs.nasa.gov/api/citations/19870020353/downloads/19870020353.pdf)
2. [An introduction to pseudospectral methods (BYU Ignite tutorial)](https://ignite.byu.edu/spectral/)
3. [An adaptive rational spectral method based on Chebyshev–Padé approximation (SIAM J. Sci. Comput.)](https://people.maths.ox.ac.uk/trefethen/publication/PDF/2006_119.pdf)
4. [Spectral and High-Order Methods with Applications (Shen, Tang, Wang)](https://www.math.purdue.edu/~shen7/sp_intro12/book.pdf)
5. [Dedalus: A flexible framework for numerical simulations with spectral methods](https://arxiv.org/pdf/1905.10388)
6. [A fast and well-conditioned spectral method (Hale & Olver, arXiv:1202.1347)](https://ar5iv.labs.arxiv.org/html/1202.1347)
7. [Chebyshev spectral methods (Trefethen, Spectral Methods in MATLAB chapter draft)](https://people.maths.ox.ac.uk/trefethen/8all.pdf)
8. [A Review of Collocation Approximations to Solutions of Differential Equations (Mathematics, 2022)](https://www.mdpi.com/2227-7390/10/23/4438)
9. [Spectral methods for partial differential equations (historical review; mirror copy)](http://hdl.handle.net/2060/19840003764)
10. [Pseudospectral Methods for Two-Point BVPs (Fasshauer course notes)](https://www.math.iit.edu/~fass/478578_Chapter_11.pdf)
11. [A spectral collocation method for functional and delay differential equations (2024)](https://arxiv.org/html/2402.12952v2)
12. [Introduction to spectral methods (Grandclément, arXiv gr-qc/0609020)](https://ar5iv.labs.arxiv.org/html/gr-qc/0609020)
13. [Chebyshev for BVPs, FD and Spectral methods for PDE (Driscoll)](https://tobydriscoll.net/fd-spectral-notes/smim/chebbvp.html)
14. [Comparison of Pseudospectral and Spectral Approximation (Orszag, 1972)](https://onlinelibrary.wiley.com/doi/10.1002/sapm1972513253)
15. [Lloyd N. Trefethen (2000). Spectral Methods in MATLAB. Society for Industrial and Applied Mathematics eBooks.](https://doi.org/10.1137/1.9780898719598)
16. [Spectral Methods on Arbitrary Grids (DTIC report)](https://apps.dtic.mil/sti/tr/pdf/ADA295013.pdf)
17. [A Review: Applications of the Spectral Finite Element Method (Archives of Computational Methods in Engineering, 2023)](https://link.springer.com/article/10.1007/s11831-023-09911-2)
18. [NASA report on spectral methods for stability, transition, and turbulence simulation](https://ntrs.nasa.gov/api/citations/19860017078/downloads/19860017078.pdf)
19. [A Review of Polynomial Matrix Collocation Methods in Engineering and Scientific Applications (Archives of Computational Methods in Engineering, 2025)](https://link.springer.com/article/10.1007/s11831-025-10235-6)
20. [Fast automated adjoints for spectral PDE solvers](https://pmc.ncbi.nlm.nih.gov/articles/PMC13080004/)
21. [Spectral Methods for Differential Problems (Gheorghiu)](https://www.ictp.acad.ro/gheorghiu/spectral.pdf)
22. [Spectral Methods for Discontinuous Problems (Gottlieb & Gottlieb, 2004)](https://math.umd.edu/~tadmor/references/files/Gottlieb%20&%20Gottlieb%20Dundee%202004.pdf)
23. [Spectral methods (Encyclopedia of Computational Mechanics chapter, MOX report)](https://www.mate.polimi.it/biblioteca/add/qmox/mox16.pdf)
24. [Description and Philosophy of Spectral Methods](http://cfd.me.berkeley.edu/wp-content/uploads/8Six/Description%20and%20Philosophy%20of%20Spectral%20Methods.pdf)
25. [A review of pseudospectral methods for solving partial differential equations (Hussaini & Zang, Acta Numerica)](https://www.cambridge.org/core/journals/acta-numerica/article/abs/review-of-pseudospectral-methods-for-solving-partial-differential-equations/E921CA187B5F35E0BEF9ACAA285C083B)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数学分析与数学模型 › Numerical analysis and computation › Spectral and collocation methods

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/spectral-collocation-method

English original: https://www.edgepedia.org/spectral-collocation-method
