学习目标Learning Objectives - Note
第1周:单变量非线性方程求解Week 1 - Solving Single Nonlinear Equations
在已知变号区间时应用二分法。Bilingual notes on bisection and Newton tangent methods.
These notes are polished from raw lecture text and formatted for direct MDX website use.
本笔记由原始课堂文本整理而成,并已格式化为可直接用于网站的 MDX 内容。
学习目标
Learning Objectives
-
理解用数值方法求解非线性方程 的基本含义。
-
Understand what it means to solve a nonlinear equation numerically.
-
在已知变号区间时应用二分法(Bisection Method)。
-
Apply bisection when a sign-changing interval is available.
-
推导并使用牛顿切线法实现局部快速收敛(Convergence)。
-
Derive and use Newton's tangent method for fast local convergence.
-
比较二分法(Bisection Method)与牛顿法(Newton's Method)在稳定性和收敛(Convergence)速度上的差异。
-
Compare robustness and convergence speed of bisection and Newton methods.
关键概念
Key Concepts
-
根是满足 的数值 。
-
A root is a value such that .
-
二分法(Bisection Method)要求函数连续且满足端点变号 。
-
Bisection requires continuity and a sign change .
-
牛顿迭代(Iteration)使用导数信息:。
-
Newton iteration uses derivative information: .
-
记号统一:迭代(Iteration)值记为 ,真根记为 ,误差(Error)记为 。
-
Notation standardization: iterate , true root , error .
定义与公式
Definitions and Formulas
定义模块:介值定理
Definition Block: Intermediate Value Theorem
若 且 ,则存在 使得 。
If and , then there exists with .
二分中点:。
Bisection midpoint: .
二分法(Bisection Method)误差(Error)界:。
Bisection error bound: .
平方根问题的牛顿更新:若 ,则 。
Newton update for square roots: if , then .
停止准则: 或 。
Stopping criteria: or .
推导
Derivations
由切线线性化推导牛顿公式
Newton Formula from Tangent Linearization
Linearize at : .
在 处线性化:。
令线性近似等于零并求下一次迭代(Iteration)值。
Set approximation to zero and solve for the next iterate.
Thus .
得到 。
二分法(Bisection Method)区间收缩
Bisection Contraction
每次迭代(Iteration)将区间长度减半:。
Each iteration halves interval length: .
中点误差(Error)不超过区间长度的一半。
Midpoint error is at most half interval length.
因此在满足条件时,二分法(Bisection Method)线性收敛(Convergence)且全局可靠。
Therefore bisection is linearly convergent and globally reliable under assumptions.
例题精讲
Worked Examples
例题模块1:二分法(Bisection Method)求解
Example Block 1: Bisection for
由课堂表可得 、,因此根位于 。
From the lecture table, and , so a root lies in .
前三个中点为 、、,函数值符号交替。
First three midpoints are , , and with alternating signs.
由此可将根定位在 附近。
This brackets a root near .
例题模块2:牛顿法(Newton's Method)求
Example Block 2: Newton for
取 ,初值 。
Set and choose .
Iterates: , , .
迭代(Iteration)结果:、、。
该方法快速收敛(Convergence)到 。
The method converges rapidly to .
例题模块3:牛顿法(Newton's Method)求解
Example Block 3: Newton for
由变号检验 、,取初值 。
Choose from the sign test with , .
With , we get and .
由 ,得到 、。
误差(Error)分析
Error Analysis
-
二分法(Bisection Method)具有有保证的线性收敛(Convergence):近似满足 。
-
Bisection has guaranteed linear convergence: roughly .
-
牛顿法(Newton's Method)在简单根附近具有局部二次收敛(Convergence):。
-
Newton has local quadratic convergence near simple roots: .
-
当 接近零或初值较差时,牛顿法(Newton's Method)可能失败。
-
Newton may fail if is close to zero or if the initial guess is poor.
常见错误
Common Mistakes
警示模块
Warning Block
-
未检查端点变号就直接使用二分法(Bisection Method)。
-
Applying bisection without checking endpoint sign change.
-
在浮点计算中用
f(x)==0作为停止条件。 -
Using exact equality
f(x)==0as stopping logic in floating-point arithmetic. -
导数写错,例如把 写错。
-
Using wrong derivative, such as miswriting .
-
没有基于容差的准则而过早停止。
-
Stopping too early without tolerance-based criteria.
总结
Summary
总结模块
Summary Block
-
第1周建立了求根的核心框架:区间法与切线法。
-
Week 1 established the core root-finding framework: bracketing methods and tangent-based methods.
-
二分法(Bisection Method)稳健;在导数可用且初值较好时牛顿法(Newton's Method)更快。
-
Bisection is robust; Newton is fast when derivative information and good initial guesses are available.
-
这两类方法为后续插值、数值微分与数值积分(Numerical Integration)算法奠定基础。
-
Both methods are foundational for later interpolation, differentiation, and integration algorithms.
练习题
Practice Questions
-
在 上对 进行 8 步二分,并给出最终误差(Error)上界。
-
Use bisection on over for 8 steps and report the final error bound.
-
以 为初值,用牛顿法(Newton's Method)求 ,直到 。
-
Apply Newton's method to compute from until .
-
说明在实际计算中何时应优先选择二分法(Bisection Method)而不是牛顿法(Newton's Method)。
-
Explain when bisection is preferred over Newton in practical computation.