# 割线法

割线法是一种用于求标量函数 \( f(x) \) 的根的迭代数值算法；它用最近两个迭代点连线的斜率替代牛顿法中的导数。该方法需要两个初始值，且不需要知道 \( f' \)；在光滑函数的单根处，它以 \( p = (\sqrt{5}+1)/2 \approx 1.618 \) 的阶超线性收敛，该数即黄金比。<sup>[1](https://encyclopediaofmath.org/wiki/Secant_method)</sup>

| 关键事实 | 细节 |
|---|---|
| 迭代公式 | \( x_{k+1} = x_k - f(x_k)\dfrac{x_{k-1} - x_k}{f(x_{k-1}) - f(x_k)} \)，从两个初始点 \( x_0, x_1 \) 开始<sup>[1](https://encyclopediaofmath.org/wiki/Secant_method)</sup> |
| 所需导数 | 无需导数；每一步只使用 \( f \) 的值，第一步之后每次迭代进行一次新的求值<sup>[1](https://encyclopediaofmath.org/wiki/Secant_method)</sup> |
| 收敛阶 | 在单根处超线性，\( p = (\sqrt{5}+1)/2 \approx 1.618 \)，渐近常数 \( A = \lvert f''(\alpha)/2f'(\alpha) \rvert \)<sup>[1](https://encyclopediaofmath.org/wiki/Secant_method)</sup> |
| 重根 | 若根的重数大于一，收敛降为线性，渐近因子仍与黄金比有关<sup>[2](https://www.sciencedirect.com/science/article/pii/S0893965903901194)</sup> |
| 保证 | 不保证收敛；失败模式包括发散和循环轮转<sup>[3](https://agmath.github.io/NumericalMethodsCourse/Slides/D16_LinearInterpolation.html)</sup> |
| 与试位法的关系 | 插值公式相同，但试位法保留函数值异号的包围点对，而割线法保留最近两个估计值<sup>[4](https://iate.oac.uncor.edu/~mario/materia/nr/numrec/f9-1.pdf)</sup> |
| 软件 | SciPy 的 `newton` 在未提供导数时回退到割线法，而 `root_scalar(method='secant')` 直接暴露它<sup>[5](https://cache-docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.newton.html)</sup><sup> • </sup><sup>[6](https://docs.scipy.org/doc/scipy/reference/optimize.html)</sup> |

## 迭代如何工作

给定根的两个近似值 \( x_{k-1} \) 和 \( x_k \)，该方法通过点 \( (x_{k-1}, f(x_{k-1})) \) 与 \( (x_k, f(x_k)) \) 画直线（割线），并取该直线与横轴交点的横坐标作为下一个迭代点。代数上，这等同于将牛顿迭代中的导数 \( f'(x_k) \) 替换为有限差分 \( (f(x_k) - f(x_{k-1}))/(x_k - x_{k-1}) \) 的牛顿迭代，所得的下一个迭代点也是 \( f \) 在这两个点上的线性插值多项式的零点；两种解读都是标准的，并且各自导向其自身的多维类比方法族。<sup>[1](https://encyclopediaofmath.org/wiki/Secant_method)</sup><sup> • </sup><sup>[7](https://ece.uwaterloo.ca/~dwharder/NumericalAnalysis/10RootFinding/secant/complete.html)</sup>

更新规则为

\[ x_{k+1} = x_k - f(x_k)\,\frac{x_{k-1} - x_k}{f(x_{k-1}) - f(x_k)}, \qquad k = 1, 2, \dots \]

开始需要两个初始值。第一步之后，该方法很经济：每个新迭代点只需要一次新的 \( f \) 求值，因为 \( f(x_k) \) 已在上一步计算过。相比之下，牛顿法每一步都需要函数值及其导数值，其代价通常至少相当于两次函数求值。<sup>[1](https://encyclopediaofmath.org/wiki/Secant_method)</sup>

## 收敛性

**单根。** 若在根 \( \alpha \) 附近有 \( f \in C^2 \)，且 \( f'(\alpha) \neq 0 \)、\( f''(\alpha) \neq 0 \)，并且初始值足够接近 \( \alpha \)，则误差满足

\[ \lim_{k \to \infty} \frac{|x_{k+1} - \alpha|}{|x_k - \alpha|^{p}} = A, \qquad p = \frac{\sqrt{5}+1}{2} \approx 1.618, \]

其中 \( A = \lvert f''(\alpha)/2f'(\alpha) \rvert \)。<sup>[1](https://encyclopediaofmath.org/wiki/Secant_method)</sup> 这一速率介于二分法的线性收敛与牛顿法的二次收敛 \( p = 2 \) 之间。<sup>[8](https://ece.uwaterloo.ca/~dwharder/NumericalAnalysis/10RootFinding/secant/error.html)</sup> 黄金比通过误差指数的类斐波那契增长进入：因为每一步都复用前一个点，精确数字的位数按斐波那契数列的模式增长，其增长率为 \( (\sqrt{5}+1)/2 \)。<sup>[9](https://arxiv.org/abs/2510.13228)</sup>

**重根。** 超线性速率仅对单根成立。当根的重数大于一时，收敛变为线性，而相应的渐近收敛因子仍与黄金比有关。<sup>[2](https://www.sciencedirect.com/science/article/pii/S0893965903901194)</sup>

**相对于牛顿法的效率。** 尽管牛顿法具有更高的收敛 Q 阶，但这并不意味着它能在更短时间内达到给定精度，因为其每次迭代除函数求值外还要付出一次导数求值。一种正式比较权衡求值 \( f \) 的时间 \( m \) 与求值 \( f' \) 的时间 \( s \cdot m \)；当导数计算代价高昂时，割线法可能是更快的选择。<sup>[9](https://arxiv.org/abs/2510.13228)</sup> 按每次求值计，SciPy 的方法表给出割线法的收敛速率为每次迭代和每次函数求值均为 1.62，而牛顿法为每次迭代 2.00、但每次求值仅 1.41。<sup>[6](https://docs.scipy.org/doc/scipy/reference/optimize.html)</sup>

## 与试位法和包围方法的关系

割线法与试位法（regula falsi）使用相同的插值公式。区别在于保留哪两个点：割线法总是保留最近两个估计值，而试位法保留函数值异号的点对，因此根始终被包围，收敛有保证，但代价是收敛较慢且为线性，因为一个端点可能被冻结。<sup>[4](https://iate.oac.uncor.edu/~mario/materia/nr/numrec/f9-1.pdf)</sup><sup> • </sup><sup>[10](https://informatika.usk.ac.id/umam/numericalmethods.pdf)</sup> 割线法以包围保证换取速度：它完全不需要符号变化，其失败模式包括发散和陷入循环轮转。<sup>[3](https://agmath.github.io/NumericalMethodsCourse/Slides/D16_LinearInterpolation.html)</sup>

**混合方法。** 由于割线法速度快但没有保证，实用代码会将其与保护措施结合。标准库例程将其与区间二分法配对：当函数光滑时切换到割线公式，否则回退到二分法；ZEROIN 算法在此基础上加入逆二次插值，这一发展脉络产生了布伦特法：它尝试插值步骤，并在某一步落在包围区间之外或使区间收缩过慢时回退到二分法。<sup>[1](https://encyclopediaofmath.org/wiki/Secant_method)</sup><sup> • </sup><sup>[11](https://lemesurierb.people.charleston.edu/numerical-methods-and-analysis-julia/docs/root-finding-without-derivatives-julia.html)</sup>

## 软件中的使用

SciPy 的标量求根器 `scipy.optimize.newton` 在一个入口点中实现全部三种基于导数的变体：提供导数 `fprime` 时运行牛顿-拉夫森法；将 `fprime` 设为 `None`（默认）时运行割线法；同时提供二阶导数 `fprime2` 时运行哈雷法。割线路径除 `x0` 外还需要第二个起点 `x1`；该函数接受容差、迭代上限 `maxiter`（默认 50）以及 `disp` 标志；当收敛失败时，`disp` 标志会引发 `RuntimeError`，报告迭代次数和当前函数值。<sup>[5](https://cache-docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.newton.html)</sup> 独立的 `root_scalar(method='secant')` 接口暴露同一个求解器；文档建议在没有包围区间可用时使用这一族无导数方法，包括用于定义在复平面上的函数，因为包围方法无法用于这些函数。<sup>[6](https://docs.scipy.org/doc/scipy/reference/optimize.html)</sup><sup> • </sup><sup>[12](https://docs.scipy.org/doc/scipy/tutorial/optimize.html?highlight=nelder+mead)</sup>

## 历史

割线法远比通常将其表述为无导数牛顿法所暗示的更为古老。《美国数学月刊》上由乔安娜·M·帕帕康斯坦丁努（Joanna M. Papakonstantinou）与一位合著者撰写的历史文章将其追溯到公元前18世纪埃及莱因德纸草书（Rhind Papyrus）中所述的双假位法（Rule of Double False Position）：该法则的代数公式与将割线法应用于线性方程时相同，而割线法在线性方程上一步收敛，因此两种做法在此重合，而该法则比牛顿法早三千多年。<sup>[13](https://www.tandfonline.com/doi/abs/10.4169/amer.math.monthly.120.06.500)</sup>

该法则随后传播于许多文明。它出现在现存最早的中国数学文本《九章算术》（Jiu Zhang Suan Shu，The Nine Chapters on the Mathematical Art）中，约公元前200年；九世纪阿拉伯文献称之为希萨卜·哈塔因，即“双误差法则”；斐波那契（Fibonacci）于1202年在《计算之书》（Liber Abaci）中将其描述为埃尔哈塔伊姆法，并应用于表示线性方程的问题。<sup>[14](https://www.math.kent.edu/~reichel/courses/optimization/reading.material.1/secant.pdf)</sup> 1527年，彼得鲁斯·阿皮亚努斯（Petrus Apianus，Bienewitz）为该法则引入拉丁术语“Regula Falsi”，将其定义为一种“从两个谎言中得出真理”的方法；1540年，弗里修斯（Frisius）将修改版应用于二次方程，实际上是对非线性问题进行了一步割线法迭代。<sup>[14](https://www.math.kent.edu/~reichel/courses/optimization/reading.material.1/secant.pdf)</sup>

**命名混淆。** 双假位法、Regula Falsi 和割线法这些术语在几个世纪和教科书中被互换使用；《月刊》文章将这种混淆主要归因于过去500年，并认为过去50年尤其严重。现代文献中的一种惯例将割线法作为迭代过程，与作为非迭代法则的双假位法区分开来。<sup>[13](https://www.tandfonline.com/doi/abs/10.4169/amer.math.monthly.120.06.500)</sup><sup> • </sup><sup>[14](https://www.math.kent.edu/~reichel/courses/optimization/reading.material.1/secant.pdf)</sup> 另外，一份未出版的牛顿笔记合集被称为《牛顿废稿簿》（Newton's Waste Book），暂定年代为1665年初，其中包含一种可识别为用于求解非线性方程的割线法的迭代技术，这表明该方法在牛顿自身迭代法早期发展时期已被使用。<sup>[15](https://wwu.elsevierpure.com/ws/portalfiles/portal/40026944/Historical%20Development%20of%20the%20Newton-Raphson%20Method.pdf)</sup>

## References

1. [Secant method, Encyclopedia of Mathematics (Kh.D. Ikramov)](https://encyclopediaofmath.org/wiki/Secant_method)
2. [P. Díez (2003). A note on the convergence of the secant method for simple and multiple roots. Applied Mathematics Letters 16(8), 1211–1215.](https://www.sciencedirect.com/science/article/pii/S0893965903901194)
3. [MAT 370: Linear Interpolation for Root-Finding](https://agmath.github.io/NumericalMethodsCourse/Slides/D16_LinearInterpolation.html)
4. [Numerical Recipes in Fortran 77, §9.1–9.2 sample pages, Cambridge University Press](https://iate.oac.uncor.edu/~mario/materia/nr/numrec/f9-1.pdf)
5. [scipy.optimize.newton, SciPy v1.18.0 Manual](https://cache-docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.newton.html)
6. [Optimization and root finding (scipy.optimize), SciPy v1.18.0 Manual](https://docs.scipy.org/doc/scipy/reference/optimize.html)
7. [Topic 10.4: Secant Method, University of Waterloo](https://ece.uwaterloo.ca/~dwharder/NumericalAnalysis/10RootFinding/secant/complete.html)
8. [Topic 10.4: Secant Method (Error Analysis), University of Waterloo](https://ece.uwaterloo.ca/~dwharder/NumericalAnalysis/10RootFinding/secant/error.html)
9. [Y. Tan, C. Ye, Q. Zhang, S. Zhao. On Convergence of the Secant Method. arXiv:2510.13228](https://arxiv.org/abs/2510.13228)
10. [Numerical Methods in Scientific Computing, Volume I](https://informatika.usk.ac.id/umam/numericalmethods.pdf)
11. [Root-finding Without Derivatives, Numerical Methods and Analysis with Julia](https://lemesurierb.people.charleston.edu/numerical-methods-and-analysis-julia/docs/root-finding-without-derivatives-julia.html)
12. [Optimization (scipy.optimize) tutorial, SciPy v1.18.0 Manual](https://docs.scipy.org/doc/scipy/tutorial/optimize.html?highlight=nelder+mead)
13. [Origin and Evolution of the Secant Method in One Dimension, The American Mathematical Monthly 120(6)](https://www.tandfonline.com/doi/abs/10.4169/amer.math.monthly.120.06.500)
14. [Origin and Evolution of the Secant Method in One Dimension (full text PDF)](https://www.math.kent.edu/~reichel/courses/optimization/reading.material.1/secant.pdf)
15. [History of the Newton–Raphson Method (Elsevier)](https://wwu.elsevierpure.com/ws/portalfiles/portal/40026944/Historical%20Development%20of%20the%20Newton-Raphson%20Method.pdf)

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

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/secant-method

English original: https://www.edgepedia.org/secant-method
