fbpx
维基百科

牛顿法

牛顿法(英語:Newton's method)又称为牛顿-拉弗森方法(英語:Newton-Raphson method),它是一种在实数域和复数域上近似求解方程的方法。方法使用函数泰勒级数的前面几项来寻找方程的根。

起源 编辑

牛顿法最初由艾萨克·牛頓在《流数法》(Method of Fluxions,1671年完成,在牛顿去世后於1736年公开发表)中提出。约瑟夫·鮑易也曾于1690年在Analysis Aequationum中提出此方法。

方法说明 编辑

 
蓝线表示方程 而红线表示切线。可以看出  更靠近 所要求的根 

首先,选择一个接近函数 零点 ,计算相应的 和切线斜率 (这里 表示函数 导数)。然后我们计算穿过点 并且斜率为 的直线和 轴的交点的 坐标,也就是求如下方程的解:

 

我们将新求得的点的 坐标命名为 ,通常 会比 更接近方程 的解。因此我们现在可以利用 开始下一轮迭代。迭代公式可化简为如下所示:

 

已有证明牛顿迭代法的二次收敛[1]必须满足以下条件:
 ; 对于所有 ,其中 为区间[αr, α + r],且 在区间其中 内,即   的;
对于所有  是连续的;
 足够接近根 α

然而当  处有m重根时,这时牛顿法会降为线性收敛,虽然使用牛顿法也可以继续算下去,但收敛速度会减慢。[2]

其它例子 编辑

第一个例子 编辑

求方程 的根。令 ,两边求导,得 。由于 ,则 ,即 ,可知方程的根位于  之间。我们从 开始。

 

第二个例子 编辑

牛顿法亦可发挥与泰勒展开式,对于函式展开的功能。

  次方根。

 

  

而a的m次方根,亦是x的解,

以牛顿法来迭代:

 

 

 

(或  

應用 编辑

求解最值問題 编辑

牛頓法也被用於求函數的極值。由於函數取極值的點處的導數值為零,故可用牛頓法求導函數的零點,其疊代式為

 

求拐点的公式以此类推

註解 编辑

  1. ^ 存档副本 (PDF). [2018-06-26]. (原始内容 (PDF)于2021-04-24). 
  2. ^ 张宏伟,金光日,施吉林,董波 (编). 计算机科学计算 2013年第2版. 北京: 高等教育出版社. 2005: 138. ISBN 9787040365955. 

外部連結 编辑

  • JAVA:牛頓勘根法 (页面存档备份,存于互联网档案馆(繁體中文)

牛顿法, 英語, newton, method, 又称为牛顿, 拉弗森方法, 英語, newton, raphson, method, 它是一种在实数域和复数域上近似求解方程的方法, 方法使用函数f, displaystyle, 的泰勒级数的前面几项来寻找方程f, displaystyle, 的根, 目录, 起源, 方法说明, 其它例子, 第一个例子, 第二个例子, 應用, 求解最值問題, 註解, 外部連結起源, 编辑最初由艾萨克, 牛頓在, 流数法, method, fluxions, 1671年完成, 在牛顿去. 牛顿法 英語 Newton s method 又称为牛顿 拉弗森方法 英語 Newton Raphson method 它是一种在实数域和复数域上近似求解方程的方法 方法使用函数f x displaystyle f x 的泰勒级数的前面几项来寻找方程f x 0 displaystyle f x 0 的根 目录 1 起源 2 方法说明 3 其它例子 3 1 第一个例子 3 2 第二个例子 4 應用 4 1 求解最值問題 5 註解 6 外部連結起源 编辑牛顿法最初由艾萨克 牛頓在 流数法 Method of Fluxions 1671年完成 在牛顿去世后於1736年公开发表 中提出 约瑟夫 鮑易也曾于1690年在Analysis Aequationum中提出此方法 方法说明 编辑 nbsp 蓝线表示方程f displaystyle f nbsp 而红线表示切线 可以看出x n 1 displaystyle x n 1 nbsp 比x n displaystyle x n nbsp 更靠近f displaystyle f nbsp 所要求的根x displaystyle x nbsp 首先 选择一个接近函数f x displaystyle f x nbsp 零点的x 0 displaystyle x 0 nbsp 计算相应的f x 0 displaystyle f x 0 nbsp 和切线斜率f x 0 displaystyle f x 0 nbsp 这里f displaystyle f nbsp 表示函数f displaystyle f nbsp 的导数 然后我们计算穿过点 x 0 f x 0 displaystyle x 0 f x 0 nbsp 并且斜率为f x 0 displaystyle f x 0 nbsp 的直线和x displaystyle x nbsp 轴的交点的x displaystyle x nbsp 坐标 也就是求如下方程的解 0 x x 0 f x 0 f x 0 displaystyle 0 x x 0 cdot f x 0 f x 0 nbsp 我们将新求得的点的x displaystyle x nbsp 坐标命名为x 1 displaystyle x 1 nbsp 通常x 1 displaystyle x 1 nbsp 会比x 0 displaystyle x 0 nbsp 更接近方程f x 0 displaystyle f x 0 nbsp 的解 因此我们现在可以利用x 1 displaystyle x 1 nbsp 开始下一轮迭代 迭代公式可化简为如下所示 x n 1 x n f x n f x n displaystyle x n 1 x n frac f x n f x n nbsp 已有证明牛顿迭代法的二次收敛 1 必须满足以下条件 f x 0 displaystyle f x neq 0 nbsp 对于所有x I displaystyle x in I nbsp 其中I displaystyle I nbsp 为区间 a r a r 且x 0 displaystyle x 0 nbsp 在区间其中I displaystyle I nbsp 内 即 r a x 0 displaystyle r geqslant left a x 0 right nbsp 的 对于所有x I displaystyle x in I nbsp f x displaystyle f x nbsp 是连续的 x 0 displaystyle x 0 nbsp 足够接近根a 然而当f x 0 displaystyle f x 0 nbsp 在x a displaystyle x a nbsp 处有m重根时 这时牛顿法会降为线性收敛 虽然使用牛顿法也可以继续算下去 但收敛速度会减慢 2 其它例子 编辑第一个例子 编辑 求方程cos x x 3 0 displaystyle cos x x 3 0 nbsp 的根 令f x cos x x 3 displaystyle f x cos x x 3 nbsp 两边求导 得f x sin x 3 x 2 displaystyle f x sin x 3x 2 nbsp 由于 1 cos x 1 x displaystyle 1 leq cos x leq 1 forall x nbsp 则 1 x 3 1 displaystyle 1 leq x 3 leq 1 nbsp 即 1 x 1 displaystyle 1 leq x leq 1 nbsp 可知方程的根位于0 displaystyle 0 nbsp 和1 displaystyle 1 nbsp 之间 我们从x 0 0 5 displaystyle x 0 0 5 nbsp 开始 x 1 x 0 f x 0 f x 0 0 5 cos 0 5 0 5 3 sin 0 5 3 0 5 2 1 112141637097 x 2 x 1 f x 1 f x 1 0 909672693736 x 3 0 86 7263818209 x 4 0 86547 7135298 x 5 0 8654740331 11 x 6 0 865474033102 displaystyle begin matrix x 1 amp amp x 0 frac f x 0 f x 0 amp amp 0 5 frac cos 0 5 0 5 3 sin 0 5 3 times 0 5 2 amp amp 1 112141637097 x 2 amp amp x 1 frac f x 1 f x 1 amp amp vdots amp amp underline 0 909672693736 x 3 amp amp vdots amp amp vdots amp amp underline 0 86 7263818209 x 4 amp amp vdots amp amp vdots amp amp underline 0 86547 7135298 x 5 amp amp vdots amp amp vdots amp amp underline 0 8654740331 11 x 6 amp amp vdots amp amp vdots amp amp underline 0 865474033102 end matrix nbsp 第二个例子 编辑 牛顿法亦可发挥与泰勒展开式 对于函式展开的功能 求a displaystyle a nbsp 的m displaystyle m nbsp 次方根 x m a 0 displaystyle x m a 0 nbsp 设f x x m a displaystyle f x x m a nbsp f x m x m 1 displaystyle f x mx m 1 nbsp 而a的m次方根 亦是x的解 以牛顿法来迭代 x n 1 x n f x n f x n displaystyle x n 1 x n frac f x n f x n nbsp x n 1 x n x n m a m x n m 1 displaystyle x n 1 x n frac x n m a mx n m 1 nbsp x n 1 x n x n m 1 a x n m displaystyle x n 1 x n frac x n m 1 ax n m nbsp 或 x n 1 x n 1 m x n a x n x n m displaystyle x n 1 x n frac 1 m left x n a frac x n x n m right nbsp 應用 编辑求解最值問題 编辑 主条目 應用於最優化的牛頓法 牛頓法也被用於求函數的極值 由於函數取極值的點處的導數值為零 故可用牛頓法求導函數的零點 其疊代式為 x n 1 x n f x n f x n displaystyle x n 1 x n frac f prime x n f prime prime x n nbsp 求拐点的公式以此类推註解 编辑 存档副本 PDF 2018 06 26 原始内容存档 PDF 于2021 04 24 张宏伟 金光日 施吉林 董波 编 计算机科学计算 2013年第2版 北京 高等教育出版社 2005 138 ISBN 9787040365955 外部連結 编辑 nbsp 数学主题 JAVA 牛頓勘根法 页面存档备份 存于互联网档案馆 繁體中文 取自 https zh wikipedia org w index php title 牛顿法 amp oldid 78803862, 维基百科,wiki,书籍,书籍,图书馆,

文章

,阅读,下载,免费,免费下载,mp3,视频,mp4,3gp, jpg,jpeg,gif,png,图片,音乐,歌曲,电影,书籍,游戏,游戏。