主题
Search

牛顿法


牛顿法,也称为牛顿-拉夫森方法,是一种求根算法,它使用函数 f(x) 在疑似附近的泰勒级数的前几项。牛顿法有时也称为 牛顿迭代法,尽管在本文中,后一个术语保留用于应用牛顿法计算平方根

对于f(x),一个多项式,牛顿法本质上与霍纳法相同。

泰勒级数 f(x) 关于点 x=x_0+epsilon 由下式给出

 f(x_0+epsilon)=f(x_0)+f^'(x_0)epsilon+1/2f^('')(x_0)epsilon^2+....
(1)

仅保留到一阶项,

 f(x_0+epsilon) approx f(x_0)+f^'(x_0)epsilon.
(2)

方程 (2) 是曲线在 (x_0,f(x_0)) 处的切线方程,所以 (x_1,0) 是该切线x 轴的交点。因此,图表可以很好地直观地说明为什么牛顿法在良好选择的起始点处有效,以及为什么它可能在选择不当的起始点处发散。

上面的表达式可以用来估计从初始猜测 x_0 开始,为了更接近根所需的偏移量 epsilon。令 f(x_0+epsilon)=0 并求解 (2) 中的 epsilon=epsilon_0 得到

 epsilon_0=-(f(x_0))/(f^'(x_0)),
(3)

这是一阶调整到的位置。通过令 x_1=x_0+epsilon_0,计算新的 epsilon_1,等等,可以重复该过程,直到它使用下式收敛到不动点(这恰好是一个根)

 epsilon_n=-(f(x_n))/(f^'(x_n)).
(4)

不幸的是,此过程在水平渐近线局部极值附近可能不稳定。但是,如果的位置的初始选择良好,则可以迭代应用该算法以获得

 x_(n+1)=x_n-(f(x_n))/(f^'(x_n))
(5)

对于 n=1, 2, 3, .... 提供牛顿法安全收敛的初始点 x_0 称为近似零点

牛顿法可以在 Wolfram 语言中实现为

  NewtonsMethodList[f_, {x_, x0_}, n_] :=
    NestList[# - Function[x, f][#]/
      Derivative[1][Function[x, f]][#]& , x0, n]

假设牛顿迭代 x_(k+1) 收敛于 x^*f^'(x^*)!=0,并定义第 k 步后的误差为

 x_k=x^*+epsilon_k.
(6)

f(x_k)x^* 附近展开得到

f(x_k)=f(x^*)+f^'(x^*)epsilon_k+1/2f^('')(x^*)epsilon_k^2+...
(7)
=f^'(x^*)epsilon_k+1/2f^('')(x^*)epsilon_k^2+...
(8)
f^'(x_k)=f^'(x^*)+f^('')(x^*)epsilon_k+....
(9)

但是

epsilon_(k+1)=epsilon_k+(x_(k+1)-x_k)
(10)
=epsilon_k-(f(x_k))/(f^'(x_k))
(11)
 approx epsilon_k-(f^'(x^*)epsilon_k+1/2f^('')(x^*)epsilon_k^2)/(f^'(x^*)+f^('')(x^*)epsilon_k).
(12)

取二阶展开式

 (aepsilon+1/2bepsilon^2+cepsilon^3)/(a+bepsilon+depsilon^2) approx epsilon-b/(2a)epsilon^2
(13)

得到

 epsilon_(k+1) approx (f^('')(x^*))/(2f^'(x^*))epsilon_k^2.
(14)

因此,当该方法收敛时,它是二次收敛的。

NewtonsMethodBasins

将牛顿法应用于任何二次或更高次多项式的根会产生一个 C 的有理映射,并且当存在三个或更多不同的根时,此映射的 Julia 集是一个分形。迭代方法求解 z^n-1=0 的根,起始点为 z_0 得到

 z_(i+1)=z_i-(z_i^n-1)/(nz_i^(n-1))
(15)

(Mandelbrot 1983, Gleick 1988, Peitgen and Saupe 1988, Press et al. 1992, Dickau 1997)。由于这是一个 n多项式,因此存在 n 个算法可以收敛到的。为每个吸引盆(收敛到相同的初始点 z_0 的集合)着色不同的颜色,然后给出上面的图。

NewtonsMethodCross

分形通常也从非多项式映射中产生。上面的图显示了函数 z^2-2^z (D. Cross, 私人通信, 1月 10, 2005) 和 z^3-3^z 的牛顿法收敛所需的迭代次数。


另请参阅

Alpha-Test, 近似零点, 不动点, Halley 的无理公式, Halley 法, 霍纳法, Householder 法, Laguerre 法, 牛顿迭代法, 牛顿向量场, 求根算法 在 MathWorld 课堂中探索此主题

使用 Wolfram|Alpha 探索

参考文献

Abramowitz, M. and Stegun, I. A. (Eds.). Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables, 9th printing. New York: Dover, p. 18, 1972.Acton, F. S. Ch. 2 in Numerical Methods That Work. Washington, DC: Math. Assoc. Amer., 1990.Arfken, G. Mathematical Methods for Physicists, 3rd ed. Orlando, FL: Academic Press, pp. 963-964, 1985.Boyer, C. B. and Merzbacher, U. C. A History of Mathematics, 2nd ed. New York: Wiley, 1991.Dickau, R. M. "Basins of Attraction for z^5=1 Using Newton's Method in the Complex Plane." http://mathforum.org/advanced/robertd/newtons.html.Dickau, R. M. "Variations on Newton's Method." http://mathforum.org/advanced/robertd/newnewton.html.Dickau, R. M. "Compilation of Iterative and List Operations." Mathematica J. 7, 14-15, 1997.Gleick, J. Chaos: Making a New Science. New York: Penguin Books, plate 6 (following p. 114) and p. 220, 1988.Gourdon, X. and Sebah, P. "Newton's Iteration." http://numbers.computation.free.fr/Constants/Algorithms/newton.html.Householder, A. S. Principles of Numerical Analysis. New York: McGraw-Hill, pp. 135-138, 1953.Mandelbrot, B. B. The Fractal Geometry of Nature. San Francisco, CA: W. H. Freeman, 1983.Newton, I. Methodus fluxionum et serierum infinitarum. 1664-1671.Ortega, J. M. and Rheinboldt, W. C. Iterative Solution of Nonlinear Equations in Several Variables. Philadelphia, PA: SIAM, 2000.Peitgen, H.-O. and Saupe, D. The Science of Fractal Images. New York: Springer-Verlag, 1988.Press, W. H.; Flannery, B. P.; Teukolsky, S. A.; and Vetterling, W. T. "Newton-Raphson Method Using Derivatives" and "Newton-Raphson Methods for Nonlinear Systems of Equations." §9.4 and 9.6 in Numerical Recipes in FORTRAN: The Art of Scientific Computing, 2nd ed. Cambridge, England: Cambridge University Press, pp. 355-362 and 372-375, 1992.Ralston, A. and Rabinowitz, P. §8.4 in A First Course in Numerical Analysis, 2nd ed. New York: McGraw-Hill, 1978.Raphson, J. Analysis aequationum universalis. London, 1690.Smale, S. "On the Efficiency of Algorithms of Analysis." Bull. Amer. Math. Soc. 13, 87-121, 1985.Varona, J. L. "Graphic and Numerical Comparison Between Iterative Methods." Math. Intell. 24, 37-46, 2002.Whittaker, E. T. and Robinson, G. "The Newton-Raphson Method." §44 in The Calculus of Observations: A Treatise on Numerical Mathematics, 4th ed. New York: Dover, pp. 84-87, 1967.

在 Wolfram|Alpha 上被引用

牛顿法

请引用本文为

Weisstein, Eric W. "牛顿法。" 来自 MathWorld--一个 Wolfram Web 资源。 https://mathworld.net.cn/NewtonsMethod.html

学科分类