第1模块以一个下落的球结束。在 t t t 秒后,它下落了 s ( t ) = 4.9 t 2 s(t) = 4.9t^2 s ( t ) = 4.9 t 2 米,且在时间 t = 1 t = 1 t = 1 和 t = 1 + h t = 1 + h t = 1 + h 之间的平均速度是差商
s ( 1 + h ) − s ( 1 ) h = 9.8 + 4.9 h ( h ≠ 0 ) . \frac{s(1 + h) - s(1)}{h} = 9.8 + 4.9h \qquad (h \ne 0). h s ( 1 + h ) − s ( 1 ) = 9.8 + 4.9 h ( h = 0 ) .
当 h h h 从两侧趋近于 0 时,这些平均速度趋于 9.8 m/s,这是球在时刻 t = 1 t = 1 t = 1 的瞬时速度(第1.6节 )。有两点值得注意。你不能将 h = 0 h = 0 h = 0 带入:商将变为 0 / 0 , 0/0\mathclose{\text{,}} 0/0 , 这没有意义。而且 9.8 并不是平均速度之一,因为 9.8 + 4.9 h = 9.8 9.8 + 4.9h = 9.8 9.8 + 4.9 h = 9.8 仅当 h = 0 h = 0 h = 0 时成立。这个数是平均速度趋近的数。这样的数是一个 极限 ,整个微积分都建立在这个概念之上。
这里是没有物理的情境。函数
f ( x ) = x 2 − 1 x − 1 f(x) = \frac{x^2 - 1}{x - 1} f ( x ) = x − 1 x 2 − 1
在 x = 1 x = 1 x = 1 处未定义,那里它给出 0 / 0 。 0/0\mathclose{\text{。}} 0/0 。 在接近 1 的地方它是有定义的,其值的表格显示了它在那里行为:
x x x x 2 − 1 x − 1 \dfrac{x^2-1}{x-1} x − 1 x 2 − 1 0.9 0.9 0.9 1.9 1.9 1.9 0.99 0.99 0.99 1.99 1.99 1.99 0.999 0.999 0.999 1.999 1.999 1.999 0.9999 0.9999 0.9999 1.9999 1.9999 1.9999 1.0001 1.0001 1.0001 2.0001 2.0001 2.0001 1.001 1.001 1.001 2.001 2.001 2.001 1.01 1.01 1.01 2.01 2.01 2.01 1.1 1.1 1.1 2.1 2.1 2.1
x x x 越接近 1(从任一侧),则 f ( x ) f(x) f ( x ) 越接近 2。代数解释了这一点。将分子 x 2 − 1 = ( x − 1 ) ( x + 1 ) x^2 - 1 = (x - 1)(x + 1) x 2 − 1 = ( x − 1 ) ( x + 1 ) 因式分解,并约去因子 x − 1 , x - 1\mathclose{\text{,}} x − 1 , 当 x ≠ 1 x \ne 1 x = 1 时,该因子不为 0:
f ( x ) = ( x − 1 ) ( x + 1 ) x − 1 = x + 1 ( x ≠ 1 ) . f(x) = \frac{(x - 1)(x + 1)}{x - 1} = x + 1 \qquad (x \ne 1). f ( x ) = x − 1 ( x − 1 ) ( x + 1 ) = x + 1 ( x = 1 ) .
因此,f f f 的图像是一条 y = x + 1 y = x + 1 y = x + 1 的直线,但缺少一个点,在 ( 1 , 2 ) (1, 2) ( 1 , 2 ) 处有一个空洞,就像 例 1.5 (图 2.1, left) 中的有理函数。当 x x x 接近 1 时,f ( x ) = x + 1 f(x) = x + 1 f ( x ) = x + 1 接近 2。
定义 2.1极限
设含数 a a a 的开区间内,函数 f f f 对每个 x x x 都有定义,唯独可以在 a a a 处没有定义。如果只要令 x x x 足够接近 a a a 且不等于 a , a\mathclose{\text{,}} a , 就能使 f ( x ) f(x) f ( x ) 任意接近 L , L\mathclose{\text{,}} L , 则称 L L L 是 f ( x ) f(x) f ( x ) 在 x x x 趋近 a a a 时的极限 ,记作
lim x → a f ( x ) = L . \lim_{x\to a} f(x) = L. x → a lim f ( x ) = L .
lim x → a f ( x ) = L \lim_{x\to a} f(x) = L lim x → a f ( x ) = L 读作「x 趋近 a 时,f(x) 的极限为 L」。也可写作当 x → a x \to a x → a 时 f ( x ) → L , f(x) \to L\mathclose{\text{,}} f ( x ) → L , 读作「x 趋近 a 时,f(x) 趋近 L」。如果没有满足条件的数 L , L\mathclose{\text{,}} L , 则极限不存在 。目前的结论如下。
lim x → 1 x 2 − 1 x − 1 = 2 , lim h → 0 s ( 1 + h ) − s ( 1 ) h = 9.8. \begin{aligned} \lim_{x\to 1}\frac{x^2 - 1}{x - 1} &= 2, \\ \lim_{h\to 0}\frac{s(1 + h) - s(1)}{h} &= 9.8. \end{aligned} x → 1 lim x − 1 x 2 − 1 h → 0 lim h s ( 1 + h ) − s ( 1 ) = 2 , = 9.8.
变量的名称并不重要:在第二个极限中h h h 起x x x 的作用,0起a a a 的作用。
定义2.1是不正式的:“任意接近”和“足够接近”尚未精确。第2.7节将它们转化为数值,并用这些数值进行证明。在那之前,表格、图像和代数将足够使用。
要点
一个极限描述的是f ( x ) f(x) f ( x ) 在x x x 趋近于a a a 时的行为,而不是在a a a 处发生的事情。值f ( a ) f(a) f ( a ) 可能是未定义的、等于极限的或与极限不同的,而这三种情况下极限都是相同的(图2.1)。
图 2.1 三个函数在 x = 1 x = 1 x = 1 处有相同的极限;左图:f ( x ) = x 2 − 1 x − 1 f(x) = \dfrac{x^2 - 1}{x - 1} f ( x ) = x − 1 x 2 − 1 在 1 处未定义;当 x x x 从两侧趋近于 1(x x x 轴上的橙色箭头),f ( x ) f(x) f ( x ) 趋近于 2(y y y 轴旁的橙色箭头)。中间:g ( x ) = x + 1 , g(x) = x + 1\mathclose{\text{,}} g ( x ) = x + 1 , 带有 g ( 1 ) = 2 。 g(1) = 2\mathclose{\text{。}} g ( 1 ) = 2 。 右图:h ( x ) = x + 1 h(x) = x + 1 h ( x ) = x + 1 对于 x ≠ 1 , x \ne 1\mathclose{\text{,}} x = 1 , 以及 h ( 1 ) = 1 。 h(1) = 1\mathclose{\text{。}} h ( 1 ) = 1 。 远离 x = 1 x = 1 x = 1 时,三个图像都是同一条直线,因此在 1 处所有三个极限都是 2。
例 2.1从表格估计极限 ✓ 已检验
估计 sin x x \dfrac{\sin x}{x} x sin x 在 x → 0 x \to 0 x → 0 处的极限,其中 x x x 以弧度为单位。
该函数在 x = 0 x = 0 x = 0 处未定义,因此计算其在 0 附近的值:
x x x sin x x \dfrac{\sin x}{x} x sin x 1 1 1 0.84147098 0.84147098 0.84147098 0.5 0.5 0.5 0.95885108 0.95885108 0.95885108 0.1 0.1 0.1 0.99833417 0.99833417 0.99833417 0.01 0.01 0.01 0.99998333 0.99998333 0.99998333 0.001 0.001 0.001 0.99999983 0.99999983 0.99999983
x x x 的负值给出相同的结果:正弦函数是奇函数(第 1.4 节 ]),因此
sin ( − x ) − x = − sin x − x = sin x x . \frac{\sin(-x)}{-x} = \frac{-\sin x}{-x} = \frac{\sin x}{x}. − x sin ( − x ) = − x − sin x = x sin x .
这些值趋近于 1,因此可以合理猜测
lim x → 0 sin x x = 1. \lim_{x\to 0}\frac{\sin x}{x} = 1. x → 0 lim x sin x = 1.
一张表格建议了一个极限,但并不能证明它。第 2.6 节证明了这个极限,它是微积分中最重要的极限之一。
注意
一张表格显示有限个值,这些值可能会产生误导。尝试 f ( x ) = sin ( π / x ) f(x) = \sin(\pi/x) f ( x ) = sin ( π / x ) 在 x = 0.1 , x = 0.1\mathclose{\text{,}} x = 0.1 , 0.01 和 0.001 处:这些值分别是 sin ( 10 π ) , \sin(10\pi)\mathclose{\text{,}} sin ( 10 π ) , sin ( 100 π ) \sin(100\pi) sin ( 100 π ) 和 sin ( 1000 π ) , \sin(1000\pi)\mathclose{\text{,}} sin ( 1000 π ) , 全部精确为 0,因此表格暗示极限为 0,如 x → 0 x \to 0 x → 0 所示。但在 x = 2 21 ≈ 0.095 x = \tfrac{2}{21} \approx 0.095 x = 21 2 ≈ 0.095 处的值是 sin 21 π 2 = 1 , \sin\tfrac{21\pi}{2} = 1\mathclose{\text{,}} sin 2 21 π = 1 , 在 x = 2 201 ≈ 0.00995 x = \tfrac{2}{201} \approx 0.00995 x = 201 2 ≈ 0.00995 处的值又回到 sin 201 π 2 = 1 。 \sin\tfrac{201\pi}{2} = 1\mathclose{\text{。}} sin 2 201 π = 1 。 无论你如何接近 0,都存在使得 f ( x ) = 0 f(x) = 0 f ( x ) = 0 的点和使得 f ( x ) = 1 f(x) = 1 f ( x ) = 1 的点,因此极限不存在,原因如 例 2.3 所述,对于 sin ( 1 / x ) 。 \sin(1/x)\mathclose{\text{。}} sin ( 1/ x ) 。 用表格来猜测;用代数或证明来确保正确。
模块 1 绘制了分段函数
f ( x ) = { x 2 if x < 1 , 3 − x if x ≥ 1 , f(x) = \begin{cases} x^2 & \text{if } x < 1, \\ 3 - x & \text{if } x \ge 1, \end{cases} f ( x ) = { x 2 3 − x if x < 1 , if x ≥ 1 ,
其图像在 x = 1 x = 1 x = 1 (例 1.3 )处跳跃。在 1 附近,其值为
x x x f ( x ) f(x) f ( x ) 0.9 0.9 0.9 0.81 0.81 0.81 0.99 0.99 0.99 0.9801 0.9801 0.9801 0.999 0.999 0.999 0.998001 0.998001 0.998001 1.001 1.001 1.001 1.999 1.999 1.999 1.01 1.01 1.01 1.99 1.99 1.99 1.1 1.1 1.1 1.9 1.9 1.9
在 1 的左侧,f ( x ) = x 2 f(x) = x^2 f ( x ) = x 2 接近 1;在 1 的右侧,f ( x ) = 3 − x f(x) = 3 - x f ( x ) = 3 − x 接近 2。没有一个数是从两侧同时接近的,因此 lim x → 1 f ( x ) \lim_{x\to1} f(x) lim x → 1 f ( x ) 不存在。但是每个单独的一侧都有一个极限。
定义 2.2单侧极限
设 f f f 在一个开区间 ( c , a ) (c, a) ( c , a ) 上定义,该区间在 a a a 处结束。如果通过取 x x x 足够接近 a a a 且满足 x < a , x < a\mathclose{\text{,}} x < a , 可以使 f ( x ) f(x) f ( x ) 任意接近一个数 L , L\mathclose{\text{,}} L , 那么 L L L 是 左侧极限 (或 左极限 )f f f 在 a a a 处的值,记作
lim x → a − f ( x ) = L . \lim_{x\to a^-} f(x) = L. x → a − lim f ( x ) = L .
右极限 (或称右侧极限 )lim x → a + f ( x ) = L \lim_{x\to a^+} f(x) = L lim x → a + f ( x ) = L 的定义类似,其中 f f f 在区间 ( a , d ) (a, d) ( a , d ) 上有定义,且 x > a 。 x > a\mathclose{\text{。}} x > a 。
将 x → a − x \to a^- x → a − 读作 “x 从左侧趋近于 a”,通过小于 a a a 的值;将 x → a + x \to a^+ x → a + 读作 “x 从右侧趋近于 a”。对于上面的分段函数,
lim x → 1 − f ( x ) = 1 , lim x → 1 + f ( x ) = 2 , f ( 1 ) = 2. \lim_{x\to 1^-} f(x) = 1, \quad \lim_{x\to 1^+} f(x) = 2, \quad f(1) = 2. x → 1 − lim f ( x ) = 1 , x → 1 + lim f ( x ) = 2 , f ( 1 ) = 2.
定义 2.1 中的双侧极限要求同时在两侧接近,因此它存在的条件是单侧极限存在且一致:
要点
lim x → a f ( x ) = L \lim_{x\to a} f(x) = L lim x → a f ( x ) = L 恰当当 lim x → a − f ( x ) = L \lim_{x\to a^-} f(x) = L lim x → a − f ( x ) = L 且 lim x → a + f ( x ) = L 。 \lim_{x\to a^+} f(x) = L\mathclose{\text{。}} lim x → a + f ( x ) = L 。 如果单侧极限不同,或者其中一个不存在,则 lim x → a f ( x ) \lim_{x\to a} f(x) lim x → a f ( x ) 不存在。(定理 2.7 从精确定义中证明了这一点。)
例 2.2在 0 处有跳跃 ✓ 已检验
求 f ( x ) = ∣ x ∣ x f(x) = \dfrac{\abs{x}}{x} f ( x ) = x ∣ x ∣ 在 0 处的单侧极限。lim x → 0 f ( x ) \lim_{x\to0} f(x) lim x → 0 f ( x ) 是否存在?
f f f 在每个 x ≠ 0 x \ne 0 x = 0 都有定义。对于 x > 0 , x > 0\mathclose{\text{,}} x > 0 , ∣ x ∣ = x , \abs{x} = x\mathclose{\text{,}} ∣ x ∣ = x , 因此 f ( x ) = x / x = 1 ; f(x) = x/x = 1\mathclose{\text{;}} f ( x ) = x / x = 1 ; 对于 x < 0 , x < 0\mathclose{\text{,}} x < 0 , ∣ x ∣ = − x , \abs{x} = -x\mathclose{\text{,}} ∣ x ∣ = − x , 因此 f ( x ) = − x / x = − 1 。 f(x) = -x/x = -1\mathclose{\text{。}} f ( x ) = − x / x = − 1 。 每个部分都是常数,因此
lim x → 0 − ∣ x ∣ x = − 1 and lim x → 0 + ∣ x ∣ x = 1. \lim_{x\to0^-}\frac{\abs{x}}{x} = -1 \quad\text{and}\quad \lim_{x\to0^+}\frac{\abs{x}}{x} = 1. x → 0 − lim x ∣ x ∣ = − 1 and x → 0 + lim x ∣ x ∣ = 1.
单侧极限不同,因此 lim x → 0 ∣ x ∣ / x \lim_{x\to0} \abs{x}/x lim x → 0 ∣ x ∣ / x 不存在。图(图 2.2,左)由两条水平射线组成,在 x = 0 x = 0 x = 0 处有一个 2 的跳跃。
跳跃在工程中很常见。一个开关在时间 t = 0 t = 0 t = 0 闭合的电路,可以用 单位阶跃函数 u ( t ) u(t) u ( t ) 来描述,它在 t < 0 t < 0 t < 0 时为 0,在 t > 0 t > 0 t > 0 时为 1(关于其在 0 处的值,不同书有不同的定义)。无论 u ( 0 ) u(0) u ( 0 ) 是什么,该函数在 0 处的左极限为 0,右极限为 1。信号处理利用它来构建开关信号。
注意
两种对符号的误读。x → 1 − x \to 1^- x → 1 − 表示 x x x 从下方趋近于 1,通过 0.9、0.99 和 0.999 等值。这并不意味着 x → − 1 , x \to -1\mathclose{\text{,}} x → − 1 , 且 x x x 的值也不必为负数。单侧极限不依赖于该点的函数值:对于上面的分段函数,f ( 1 ) = 2 f(1) = 2 f ( 1 ) = 2 来自右侧的公式,但如果 f ( 1 ) f(1) f ( 1 ) 改为 7,右侧的极限仍为 2。
极限可能以三种方式不存在。图 2.2 展示了其中一种情况。
图 2.2 极限不存在的三种方式,全部在 x = 0 x = 0 x = 0 处。左侧,跳跃:∣ x ∣ / x \abs{x}/x ∣ x ∣ / x 在 0 的左侧为 − 1 , -1\mathclose{\text{,}} − 1 , 右侧为 1。中间,无穷大:1 / x 2 1/x^2 1/ x 2 超过每一个界限。右侧,震荡:sin ( 1 / x ) \sin(1/x) sin ( 1/ x ) 在 − 1 -1 − 1 和 1 之间摆动,且随着 x x x 接近 0 越来越快;在接近 0 处,摆动过于密集以至于无法绘制,图像看起来像一条实线带。
跳变。 单侧极限存在但不同,如 ∣ x ∣ / x \abs{x}/x ∣ x ∣ / x 在 0 处(例 2.2)。
爆炸。 当 x x x 接近 0 时,1 / x 2 1/x^2 1/ x 2 的值超过任意界限:
x x x 1 x 2 \dfrac{1}{x^2} x 2 1 1 1 1 1 1 1 0.1 0.1 0.1 100 100 100 0.01 0.01 0.01 10000 10000 10000 0.001 0.001 0.001 1 × 10 6 1\times10^{6} 1 × 1 0 6
且 − x -x − x 给出的值与 x x x 相同。无论你命名哪个数 L , L\mathclose{\text{,}} L , 1 / x 2 > ∣ L ∣ + 1 1/x^2 > \abs{L} + 1 1/ x 2 > ∣ L ∣ + 1 对于每一个 x ≠ 0 x \ne 0 x = 0 满足 x 2 < 1 / ( ∣ L ∣ + 1 ) , x^2 < 1/(\abs{L} + 1)\mathclose{\text{,}} x 2 < 1/ ( ∣ L ∣ + 1 ) , 因此接近 0 时,1 / x 2 1/x^2 1/ x 2 的值与 L L L 的距离超过 1。没有数是极限。模块 3 通过写 lim x → 0 1 / x 2 = ∞ \lim_{x\to0} 1/x^2 = \infty lim x → 0 1/ x 2 = ∞ 来描述这种行为,即 无限极限 ;但 ∞ \infty ∞ 不是一个数,在定义 2.1 的意义上极限不存在。
振荡。 当 x x x 接近 0 时,sin ( 1 / x ) \sin(1/x) sin ( 1/ x ) 在 − 1 -1 − 1 与 1 之间无限次摆动。
例 2.3振荡 ✓ 已检验
证明 lim x → 0 sin ( 1 / x ) \lim_{x\to0}\sin(1/x) lim x → 0 sin ( 1/ x ) 不存在。
sin u = 1 \sin u = 1 sin u = 1 当 u = π 2 , 5 π 2 , 9 π 2 , … , u = \tfrac{\pi}{2}, \tfrac{5\pi}{2}, \tfrac{9\pi}{2}, \dots\mathclose{\text{,}} u = 2 π , 2 5 π , 2 9 π , … , 且 sin u = − 1 \sin u = -1 sin u = − 1 当 u = 3 π 2 , 7 π 2 , 11 π 2 , … 。 u = \tfrac{3\pi}{2}, \tfrac{7\pi}{2}, \tfrac{11\pi}{2}, \dots\mathclose{\text{。}} u = 2 3 π , 2 7 π , 2 11 π , … 。 取 u = 1 / x , u = 1/x\mathclose{\text{,}} u = 1/ x , 即 x = 1 / u , x = 1/u\mathclose{\text{,}} x = 1/ u , 得到越来越接近 0 的点,其中 sin ( 1 / x ) \sin(1/x) sin ( 1/ x ) 是 1,而 − 1 -1 − 1 依次:
x x x x ( decimal ) x\ (\text{decimal}) x ( decimal ) sin ( 1 / x ) \sin(1/x) sin ( 1/ x ) 2 π \frac{2}{\pi} π 2 0.6366 0.6366 0.6366 1 1 1 2 3 π \frac{2}{3 \pi} 3 π 2 0.2122 0.2122 0.2122 − 1 -1 − 1 2 5 π \frac{2}{5 \pi} 5 π 2 0.1273 0.1273 0.1273 1 1 1 2 7 π \frac{2}{7 \pi} 7 π 2 0.09095 0.09095 0.09095 − 1 -1 − 1 2 9 π \frac{2}{9 \pi} 9 π 2 0.07074 0.07074 0.07074 1 1 1 2 11 π \frac{2}{11 \pi} 11 π 2 0.05787 0.05787 0.05787 − 1 -1 − 1
一般来说 x = 2 ( 4 k + 1 ) π x = \dfrac{2}{(4k + 1)\pi} x = ( 4 k + 1 ) π 2 给出 sin ( 1 / x ) = 1 , \sin(1/x) = 1\mathclose{\text{,}} sin ( 1/ x ) = 1 , x = 2 ( 4 k + 3 ) π x = \dfrac{2}{(4k + 3)\pi} x = ( 4 k + 3 ) π 2 给出 sin ( 1 / x ) = − 1 , \sin(1/x) = -1\mathclose{\text{,}} sin ( 1/ x ) = − 1 , 对于 k = 0 , 1 , 2 , … , k = 0, 1, 2, \dots\mathclose{\text{,}} k = 0 , 1 , 2 , … , 并且当 k k k 增大时,这些点可以任意接近 0。因此,每个包含 0 的开区间,无论多小,都包含使得 sin ( 1 / x ) = 1 \sin(1/x) = 1 sin ( 1/ x ) = 1 成立的点和使得 sin ( 1 / x ) = − 1 \sin(1/x) = -1 sin ( 1/ x ) = − 1 成立的点。如果 0 附近的所有值都保持在某个数 L L L 的 1 2 \tfrac12 2 1 之内,那么 1 和 − 1 -1 − 1 都会在 1 2 \tfrac12 2 1 之内 L , L\mathclose{\text{,}} L , 从而彼此之间不超过 1;但它们之间相差 2。没有数 L L L 是极限。
注意
“极限不存在”和“函数在 a a a 处未定义”是不同的陈述,彼此之间也不可相互推导。x 2 − 1 x − 1 \dfrac{x^2 - 1}{x - 1} x − 1 x 2 − 1 在 1 处未定义,但在那里有极限 2。对于 x < 0 x < 0 x < 0 为 − 1 -1 − 1 且 x ≥ 0 x \ge 0 x ≥ 0 为 1 的函数,在 0 处定义,其值为 1,但在那里没有极限。
表格和图像提示极限;极限法则通过将复杂极限分解为简单极限来动手计算们。最简单的两个是
lim x → a c = c and lim x → a x = a \lim_{x\to a} c = c \qquad\text{and}\qquad \lim_{x\to a} x = a x → a lim c = c and x → a lim x = a
对于每一个常数 c c c 和每一个数 a 。 a\mathclose{\text{。}} a 。 第一个法则说明常数函数保持其常数值;第二个法则说明当 x x x 趋近于 a a a 时,函数值 x x x 趋近于 a 。 a\mathclose{\text{。}} a 。 第2.7节从精确定义出发证明了这两个法则。
定理 2.1极限法则
假设 lim x → a f ( x ) = L \lim_{x\to a} f(x) = L lim x → a f ( x ) = L 和 lim x → a g ( x ) = M , \lim_{x\to a} g(x) = M\mathclose{\text{,}} lim x → a g ( x ) = M , 并且设 c c c 为一个常数。那么:
法则
公式
和
lim x → a ( f ( x ) + g ( x ) ) = L + M \lim\limits_{x\to a}\big(f(x) + g(x)\big) = L + M x → a lim ( f ( x ) + g ( x ) ) = L + M
差
lim x → a ( f ( x ) − g ( x ) ) = L − M \lim\limits_{x\to a}\big(f(x) - g(x)\big) = L - M x → a lim ( f ( x ) − g ( x ) ) = L − M
常数倍
lim x → a c f ( x ) = c L \lim\limits_{x\to a} c\,f(x) = cL x → a lim c f ( x ) = c L
积
lim x → a f ( x ) g ( x ) = L M \lim\limits_{x\to a} f(x)\,g(x) = LM x → a lim f ( x ) g ( x ) = L M
商
lim x → a f ( x ) g ( x ) = L M , \lim\limits_{x\to a} \dfrac{f(x)}{g(x)} = \dfrac{L}{M}\mathclose{\text{,}} x → a lim g ( x ) f ( x ) = M L , 如果 M ≠ 0 M \ne 0 M = 0
幂
lim x → a ( f ( x ) ) n = L n , \lim\limits_{x\to a} \big(f(x)\big)^n = L^n\mathclose{\text{,}} x → a lim ( f ( x ) ) n = L n , 对于 n = 1 , 2 , 3 , … n = 1, 2, 3, \dots n = 1 , 2 , 3 , …
根值判别法
lim x → a f ( x ) n = L n , \lim\limits_{x\to a} \sqrt[n]{f(x)} = \sqrt[n]{L}\mathclose{\text{,}} x → a lim n f ( x ) = n L , 对于 n = 2 , 3 , … , n = 2, 3, \dots\mathclose{\text{,}} n = 2 , 3 , … , 如果 L > 0 L > 0 L > 0 当 n n n 为偶数时
对于单侧极限,相同的法则也成立。
词语:和的极限是各极限之和,积的极限是各极限之积,依此类推,前提是各部分的极限存在,并且对于商的情况,分母的极限不为 0。这些法则如你所预期的那样:如果 f ( x ) f(x) f ( x ) 接近 L L L 且 g ( x ) g(x) g ( x ) 接近 M , M\mathclose{\text{,}} M , 那么 f ( x ) + g ( x ) f(x) + g(x) f ( x ) + g ( x ) 接近 L + M L + M L + M 且 f ( x ) g ( x ) f(x)g(x) f ( x ) g ( x ) 接近 L M 。 LM\mathclose{\text{。}} L M 。 将“接近”转化为证明需要精确的定义,因此证明见第 2.7 节,其中有一个“深入一步”框证明了和、积和商法则。其余法则由这三个法则推导得出:f − g f - g f − g 是 f + ( − 1 ) g ; f + (-1)g\mathclose{\text{;}} f + ( − 1 ) g ; 常数倍 c f c\,f c f 是 f f f 与常数函数 c c c 的乘积;幂法则则是乘积法则使用 n − 1 n - 1 n − 1 次。平方根的根法则见练习 2.9。其他根的处理方式类似,只是用 n n n 次幂的差代替平方差;对于 L = 0 L = 0 L = 0 的情况,奇数 n n n 允许的,更简单,因为 ∣ f ( x ) n ∣ < c \abs{\sqrt[n]{f(x)}} < c n f ( x ) < c 每当 ∣ f ( x ) ∣ < c n 。 \abs{f(x)} < c^n\mathclose{\text{。}} ∣ f ( x ) ∣ < c n 。
例 2.4使用极限法则 ✓ 已检验
求
lim x → 2 2 x 2 − 3 x + 1 x + 3 , \lim_{x\to2}\frac{2x^2 - 3x + 1}{x + 3}, x → 2 lim x + 3 2 x 2 − 3 x + 1 ,
用于每一步的定律名称。
从分子开始。根据和差法则,再根据常数倍法则,
lim x → 2 ( 2 x 2 − 3 x + 1 ) = 2 lim x → 2 x 2 − 3 lim x → 2 x + lim x → 2 1. \begin{aligned} &\lim_{x\to2}\big(2x^2 - 3x + 1\big) \\ &\quad= 2\lim_{x\to2} x^2 - 3\lim_{x\to2} x + \lim_{x\to2} 1. \end{aligned} x → 2 lim ( 2 x 2 − 3 x + 1 ) = 2 x → 2 lim x 2 − 3 x → 2 lim x + x → 2 lim 1.
根据幂法则和两个基本极限 lim x → 2 x 2 = 2 2 = 4 、 \lim_{x\to2} x^2 = 2^2 = 4\mathclose{\text{、}} lim x → 2 x 2 = 2 2 = 4 、 lim x → 2 x = 2 \lim_{x\to2} x = 2 lim x → 2 x = 2 和 lim x → 2 1 = 1 , \lim_{x\to2} 1 = 1\mathclose{\text{,}} lim x → 2 1 = 1 , 因此分子趋近于 2 ⋅ 4 − 3 ⋅ 2 + 1 = 3 。 2 \cdot 4 - 3 \cdot 2 + 1 = 3\mathclose{\text{。}} 2 ⋅ 4 − 3 ⋅ 2 + 1 = 3 。 同样地,分母趋近于 2 + 3 = 5 。 2 + 3 = 5\mathclose{\text{。}} 2 + 3 = 5 。 这不等于 0,因此商法则适用:
lim x → 2 2 x 2 − 3 x + 1 x + 3 = 3 5 . \lim_{x\to2}\frac{2x^2 - 3x + 1}{x + 3} = \frac{3}{5}. x → 2 lim x + 3 2 x 2 − 3 x + 1 = 5 3 .
直接代入
例 2.4 的答案 3 5 \tfrac35 5 3 是函数在 2 处的值 2 ⋅ 2 2 − 3 ⋅ 2 + 1 2 + 3 = 3 5 。 \dfrac{2 \cdot 2^2 - 3 \cdot 2 + 1}{2 + 3} = \dfrac35\mathclose{\text{。}} 2 + 3 2 ⋅ 2 2 − 3 ⋅ 2 + 1 = 5 3 。 这并非偶然。
定理 2.2直接代入
如果 p p p 是多项式,则 lim x → a p ( x ) = p ( a ) \lim_{x\to a} p(x) = p(a) lim x → a p ( x ) = p ( a ) 对每个数 a a a 都成立。如果 r = p / q r = p/q r = p / q 是有理函数且 q ( a ) ≠ 0 , q(a) \ne 0\mathclose{\text{,}} q ( a ) = 0 , 则 lim x → a r ( x ) = r ( a ) 。 \lim_{x\to a} r(x) = r(a)\mathclose{\text{。}} lim x → a r ( x ) = r ( a ) 。
证明
写出 p ( x ) = c n x n + ⋯ + c 1 x + c 0 。 p(x) = c_n x^n + \dots + c_1 x + c_0\mathclose{\text{。}} p ( x ) = c n x n + ⋯ + c 1 x + c 0 。 根据幂法则和基本极限 lim x → a x = a , \lim_{x\to a} x = a\mathclose{\text{,}} lim x → a x = a , 对于每个 lim x → a x k = a k , \lim_{x\to a} x^k = a^k\mathclose{\text{,}} lim x → a x k = a k , k ≥ 1 k \ge 1 k ≥ 1 成立;根据常数倍法则,lim x → a c k x k = c k a k ; \lim_{x\to a} c_k x^k = c_k a^k\mathclose{\text{;}} lim x → a c k x k = c k a k ; 再根据和法则,每个加号使用一次,结合 lim x → a c 0 = c 0 , \lim_{x\to a} c_0 = c_0\mathclose{\text{,}} lim x → a c 0 = c 0 ,
lim x → a p ( x ) = c n a n + ⋯ + c 1 a + c 0 = p ( a ) . \begin{aligned} \lim_{x\to a} p(x) &= c_n a^n + \dots + c_1 a + c_0 \\ &= p(a). \end{aligned} x → a lim p ( x ) = c n a n + ⋯ + c 1 a + c 0 = p ( a ) .
如果 r = p / q , r = p/q\mathclose{\text{,}} r = p / q , 则 lim x → a p ( x ) = p ( a ) \lim_{x\to a} p(x) = p(a) lim x → a p ( x ) = p ( a ) 和 lim x → a q ( x ) = q ( a ) , \lim_{x\to a} q(x) = q(a)\mathclose{\text{,}} lim x → a q ( x ) = q ( a ) , 这不等于 0,因此商法则给出 lim x → a r ( x ) = p ( a ) / q ( a ) = r ( a ) 。 \lim_{x\to a} r(x) = p(a)/q(a) = r(a)\mathclose{\text{。}} lim x → a r ( x ) = p ( a ) / q ( a ) = r ( a ) 。
∎
直接代入法也适用于根的情况,根据根的法则:例如,lim x → 4 x = 4 = 2 。 \lim_{x\to4}\sqrt{x} = \sqrt4 = 2\mathclose{\text{。}} lim x → 4 x = 4 = 2 。 模块3显示,这种方法适用于模块1目录中所有函数在其定义域内的每个点;这样的函数被称为连续 。在本模块中,直到那时为止,仅对多项式、有理函数和根使用直接代入法,第2.6节通过手动证明了sin θ → 0 \sin\theta \to 0 sin θ → 0 和cos θ → 1 \cos\theta \to 1 cos θ → 1 在θ → 0 \theta \to 0 θ → 0 时的极限。
注意
两个法则的误用。首先,商法则需要M ≠ 0 。 M \ne 0\mathclose{\text{。}} M = 0 。 对于lim x → 1 x 2 − 1 x − 1 , \lim_{x\to1}\dfrac{x^2 - 1}{x - 1}\mathclose{\text{,}} lim x → 1 x − 1 x 2 − 1 , 它会给出0 0 , \dfrac00\mathclose{\text{,}} 0 0 , 这不是一个数:法则不适用,极限2必须通过其他方法找到,如第2.1节所示。其次,法则仅单向适用。如果各个部分有极限,那么组合也有极限;但组合可能有极限,而各个部分却没有。尽管sin ( 1 / x ) \sin(1/x) sin ( 1/ x ) 和− sin ( 1 / x ) -\sin(1/x) − sin ( 1/ x ) 在0处都没有极限,它们的和对于每一个x ≠ 0 x \ne 0 x = 0 都是0,极限为0。
0/0型
当直接代入商式得到0 / 0 0/0 0/0 时,极限仍可能存在,且可以是任何数。这四个商式在0 / 0 0/0 0/0 处都给出x = 1 : x = 1\mathclose{\text{:}} x = 1 :
f ( x ) f(x) f ( x )
当 x ≠ 1 x \ne 1 x = 1 时,f ( x ) f(x) f ( x )
lim x → 1 f ( x ) \lim\limits_{x\to1} f(x) x → 1 lim f ( x )
x 2 − 1 x − 1 \dfrac{x^2 - 1}{x - 1} x − 1 x 2 − 1
x + 1 x + 1 x + 1
2
3 x − 3 x − 1 \dfrac{3x - 3}{x - 1} x − 1 3 x − 3
3 3 3
3
x 2 − 2 x + 1 x − 1 \dfrac{x^2 - 2x + 1}{x - 1} x − 1 x 2 − 2 x + 1
x − 1 x - 1 x − 1
0
x − 1 x 2 − 2 x + 1 \dfrac{x - 1}{x^2 - 2x + 1} x 2 − 2 x + 1 x − 1
1 x − 1 \dfrac{1}{x - 1} x − 1 1
不存在
最后一个在 1 处发散,1 右侧有极大的正值,左侧有极大的负值。因此 0 / 0 0/0 0/0 被称为一个 不定式 :这种形式本身并不能确定极限。这是一个需要进一步工作的信号,而不是答案。这种工作是代数运算,将商式 x ≠ a x \ne a x = a 重写为一个可以直接代入的函数,而这个定理使得这种做法合法:
定理 2.3在某一点附近相等的函数
如果 f ( x ) = g ( x ) f(x) = g(x) f ( x ) = g ( x ) 对于每一个 x ≠ a x \ne a x = a 在包含 a a a 的开区间内,且 lim x → a g ( x ) = L , \lim_{x\to a} g(x) = L\mathclose{\text{,}} lim x → a g ( x ) = L , 那么 lim x → a f ( x ) = L 。 \lim_{x\to a} f(x) = L\mathclose{\text{。}} lim x → a f ( x ) = L 。 当考虑单侧极限时,同样的结论也成立,只要 f ( x ) = g ( x ) f(x) = g(x) f ( x ) = g ( x ) 在一个以 a a a 为端点的开区间内。
证明
极限 f f f 在 a a a 处仅依赖于 f ( x ) f(x) f ( x ) 在 a a a 附近 x x x 的值,且 x ≠ a 。 x \ne a\mathclose{\text{。}} x = a 。 足够接近 a a a 时,每个这样的 x x x 都在区间内,其中 f ( x ) = g ( x ) 。 f(x) = g(x)\mathclose{\text{。}} f ( x ) = g ( x ) 。 因此,f ( x ) f(x) f ( x ) 可以被任意接近 L , L\mathclose{\text{,}} L , 当且仅当 g ( x ) g(x) g ( x ) 也可以被任意接近。 (用第 2.7 节的语言:一个对 g g g 起作用的 δ , \delta\mathclose{\text{,}} δ , 如果需要的话可以减小,使得 ( a − δ , a + δ ) (a - \delta, a + \delta) ( a − δ , a + δ ) 位于区间内,那么它对 f f f 也起作用。)对于单侧极限,相同的论证只考虑 a a a 一侧。
∎
因式分解并约分
如果替换后得到 0 / 0 0/0 0/0 在多项式商中,则 x − a x - a x − a 是分子和分母的公因式。原因:如果 p ( a ) = 0 , p(a) = 0\mathclose{\text{,}} p ( a ) = 0 , 则 p ( x ) = p ( x ) − p ( a ) = c n ( x n − a n ) + ⋯ + c 1 ( x − a ) , p(x) = p(x) - p(a) = c_n(x^n - a^n) + \dots + c_1(x - a)\mathclose{\text{,}} p ( x ) = p ( x ) − p ( a ) = c n ( x n − a n ) + ⋯ + c 1 ( x − a ) , 且每个 x k − a k x^k - a^k x k − a k 都包含因式 x − a : x - a\mathclose{\text{:}} x − a :
x k − a k = ( x − a ) ( x k − 1 + x k − 2 a + ⋯ + a k − 1 ) . \begin{aligned} &x^k - a^k \\ &\quad= (x - a)\big(x^{k-1} + x^{k-2}a + \dots + a^{k-1}\big). \end{aligned} x k − a k = ( x − a ) ( x k − 1 + x k − 2 a + ⋯ + a k − 1 ) .
因此,对分子和分母进行因式分解,约去 x − a x - a x − a (允许这样做,因为 x ≠ a ), x \ne a\mathclose{\text{),}} x = a ), 然后替换;如果 0 / 0 0/0 0/0 再次出现,则重复此过程。
例 2.5下落球的速度 ✓ 已检验
求下落球的速度,s ( t ) = 4.9 t 2 , s(t) = 4.9t^2\mathclose{\text{,}} s ( t ) = 4.9 t 2 , 在时间 t = a t = a t = a 时:
lim h → 0 s ( a + h ) − s ( a ) h . \lim_{h\to0}\frac{s(a + h) - s(a)}{h}. h → 0 lim h s ( a + h ) − s ( a ) .
代入 h = 0 h = 0 h = 0 得到 0 / 0 。 0/0\mathclose{\text{。}} 0/0 。 展开 s ( a + h ) s(a + h) s ( a + h ) 并减去 s ( a ) : s(a)\mathclose{\text{:}} s ( a ) :
s ( a + h ) − s ( a ) = 4.9 ( a 2 + 2 a h + h 2 ) − 4.9 a 2 = 9.8 a h + 4.9 h 2 = h ( 9.8 a + 4.9 h ) . \begin{aligned} &s(a + h) - s(a) \\ &\quad= 4.9(a^2 + 2ah + h^2) - 4.9a^2 \\ &\quad= 9.8ah + 4.9h^2 = h(9.8a + 4.9h). \end{aligned} s ( a + h ) − s ( a ) = 4.9 ( a 2 + 2 ah + h 2 ) − 4.9 a 2 = 9.8 ah + 4.9 h 2 = h ( 9.8 a + 4.9 h ) .
对于 h ≠ 0 , h \ne 0\mathclose{\text{,}} h = 0 , 因子 h h h 抵消:
s ( a + h ) − s ( a ) h = 9.8 a + 4.9 h . \frac{s(a + h) - s(a)}{h} = 9.8a + 4.9h. h s ( a + h ) − s ( a ) = 9.8 a + 4.9 h .
根据定理 2.3 和直接代入(在变量 h h h 中),
lim h → 0 s ( a + h ) − s ( a ) h = 9.8 a . \lim_{h\to0}\frac{s(a + h) - s(a)}{h} = 9.8a. h → 0 lim h s ( a + h ) − s ( a ) = 9.8 a .
在时间 a a a 时,球下落速度为 9.8 a 9.8a 9.8 a m/s:1 秒后为 9.8 m/s,如模块 1 所示,2 秒后为 19.6 m/s。其速度每秒增加 9.8 m/s,即模块 1 中的重力加速度。此类极限是模块 4 中的导数。
例 2.6因式分解并约分 ✓ 已检验
求
lim x → 3 x 2 − x − 6 x 2 − 9 . \lim_{x\to3}\frac{x^2 - x - 6}{x^2 - 9}. x → 3 lim x 2 − 9 x 2 − x − 6 .
在 x = 3 x = 3 x = 3 时,分子是 9 − 3 − 6 = 0 , 9 - 3 - 6 = 0\mathclose{\text{,}} 9 − 3 − 6 = 0 , 分母是 9 − 9 = 0 , 9 - 9 = 0\mathclose{\text{,}} 9 − 9 = 0 , 因此两者都有因子 x − 3 : x - 3\mathclose{\text{:}} x − 3 : x 2 − x − 6 = ( x − 3 ) ( x + 2 ) x^2 - x - 6 = (x - 3)(x + 2) x 2 − x − 6 = ( x − 3 ) ( x + 2 ) 和 x 2 − 9 = ( x − 3 ) ( x + 3 ) 。 x^2 - 9 = (x - 3)(x + 3)\mathclose{\text{。}} x 2 − 9 = ( x − 3 ) ( x + 3 ) 。 对于 x ≠ 3 x \ne 3 x = 3 (和 x ≠ − 3 ), x \ne -3\mathclose{\text{),}} x = − 3 ),
x 2 − x − 6 x 2 − 9 = ( x − 3 ) ( x + 2 ) ( x − 3 ) ( x + 3 ) = x + 2 x + 3 . \frac{x^2 - x - 6}{x^2 - 9} = \frac{(x - 3)(x + 2)}{(x - 3)(x + 3)} = \frac{x + 2}{x + 3}. x 2 − 9 x 2 − x − 6 = ( x − 3 ) ( x + 3 ) ( x − 3 ) ( x + 2 ) = x + 3 x + 2 .
新的分母在 x = 3 x = 3 x = 3 时为 6,不是 0,因此根据定理 2.3 和直接代入
lim x → 3 x 2 − x − 6 x 2 − 9 = 3 + 2 3 + 3 = 5 6 . \lim_{x\to3}\frac{x^2 - x - 6}{x^2 - 9} = \frac{3 + 2}{3 + 3} = \frac56. x → 3 lim x 2 − 9 x 2 − x − 6 = 3 + 3 3 + 2 = 6 5 .
有理化
当 0 / 0 0/0 0/0 来自一个包含平方根的差时,将分子和分母都乘以 共轭 ,即两个相同项之间符号相反的表达式。 A − B \sqrt{A} - B A − B 的共轭是 A + B , \sqrt{A} + B\mathclose{\text{,}} A + B , 它们的乘积为
( A − B ) ( A + B ) = A − B 2 ( A ≥ 0 ) , \big(\sqrt{A} - B\big)\big(\sqrt{A} + B\big) = A - B^2 \quad (A \ge 0), ( A − B ) ( A + B ) = A − B 2 ( A ≥ 0 ) ,
不再含有平方根。
例 2.7有理化 ✓ 已检验
求
lim x → 0 x + 9 − 3 x . \lim_{x\to0}\frac{\sqrt{x + 9} - 3}{x}. x → 0 lim x x + 9 − 3 .
替换得到 ( 9 − 3 ) / 0 = 0 / 0 。 (\sqrt9 - 3)/0 = 0/0\mathclose{\text{。}} ( 9 − 3 ) /0 = 0/0 。 将分子和分母乘以共轭 x + 9 + 3 , \sqrt{x + 9} + 3\mathclose{\text{,}} x + 9 + 3 , 其为正数。对于 x ≠ 0 x \ne 0 x = 0 (和 x ≥ − 9 ), x \ge -9\mathclose{\text{),}} x ≥ − 9 ),
x + 9 − 3 x = ( x + 9 − 3 ) ( x + 9 + 3 ) x ( x + 9 + 3 ) = ( x + 9 ) − 9 x ( x + 9 + 3 ) = 1 x + 9 + 3 . \begin{aligned} \frac{\sqrt{x + 9} - 3}{x} &= \frac{\big(\sqrt{x + 9} - 3\big)\big(\sqrt{x + 9} + 3\big)}{x\big(\sqrt{x + 9} + 3\big)} \\ &= \frac{(x + 9) - 9}{x\big(\sqrt{x + 9} + 3\big)} \\ &= \frac{1}{\sqrt{x + 9} + 3}. \end{aligned} x x + 9 − 3 = x ( x + 9 + 3 ) ( x + 9 − 3 ) ( x + 9 + 3 ) = x ( x + 9 + 3 ) ( x + 9 ) − 9 = x + 9 + 3 1 .
根据根的法则,x + 9 → 9 = 3 \sqrt{x + 9} \to \sqrt9 = 3 x + 9 → 9 = 3 等于 x → 0 ; x \to 0\mathclose{\text{;}} x → 0 ; 然后利用和与商的法则得到
lim x → 0 x + 9 − 3 x = 1 3 + 3 = 1 6 . \lim_{x\to0}\frac{\sqrt{x + 9} - 3}{x} = \frac{1}{3 + 3} = \frac16. x → 0 lim x x + 9 − 3 = 3 + 3 1 = 6 1 .
合并分数
当商中含有分数时,先将其放在同一个分母上。
例 2.8合并分数 ✓ 已检验
求
lim x → 3 1 x − 1 3 x − 3 . \lim_{x\to3}\frac{\dfrac1x - \dfrac13}{x - 3}. x → 3 lim x − 3 x 1 − 3 1 .
替换得到 ( 1 3 − 1 3 ) / 0 = 0 / 0 。 \big(\tfrac13 - \tfrac13\big)/0 = 0/0\mathclose{\text{。}} ( 3 1 − 3 1 ) /0 = 0/0 。 在公共分母 3 x 3x 3 x 上,分子是
1 x − 1 3 = 3 − x 3 x = − x − 3 3 x . \frac1x - \frac13 = \frac{3 - x}{3x} = -\frac{x - 3}{3x}. x 1 − 3 1 = 3 x 3 − x = − 3 x x − 3 .
因此,对于 x ≠ 3 x \ne 3 x = 3 (和 x ≠ 0 ), x \ne 0\mathclose{\text{),}} x = 0 ),
1 x − 1 3 x − 3 = − x − 3 3 x ( x − 3 ) = − 1 3 x , \frac{\dfrac1x - \dfrac13}{x - 3} = -\frac{x - 3}{3x(x - 3)} = -\frac{1}{3x}, x − 3 x 1 − 3 1 = − 3 x ( x − 3 ) x − 3 = − 3 x 1 ,
并且根据定理 2.3 和直接替换,极限是 − 1 3 ⋅ 3 = − 1 9 。 -\dfrac{1}{3 \cdot 3} = -\dfrac19\mathclose{\text{。}} − 3 ⋅ 3 1 = − 9 1 。 这是 1 / x 1/x 1/ x 在 x = 3 x = 3 x = 3 处的变化率。练习 1.9 发现 1 / x 1/x 1/ x 在 a a a 处的差商趋近于 − 1 / a 2 , -1/a^2\mathclose{\text{,}} − 1/ a 2 , 以及 − 1 / 3 2 = − 1 9 。 -1/3^2 = -\tfrac19\mathclose{\text{。}} − 1/ 3 2 = − 9 1 。
注意
两张带有 0 / 0 0/0 0/0 的卡片。“替换得到 0 / 0 , 0/0\mathclose{\text{,}} 0/0 , 因此极限是 0”(或 1,或"不存在")是错误的:0 / 0 0/0 0/0 是一种形式,而不是值,而且本节开头的表格显示了四种 0 / 0 0/0 0/0 形式,对应四种不同的结果。并且要约去因子,不要约去项:在 x 2 − x − 6 x 2 − 9 \dfrac{x^2 - x - 6}{x^2 - 9} x 2 − 9 x 2 − x − 6 中,你可以在两个都分解后约去因子 x − 3 , x - 3\mathclose{\text{,}} x − 3 , 但你不能将 x 2 x^2 x 2 上下交叉约去以得到 − x − 6 − 9 , \dfrac{-x - 6}{-9}\mathclose{\text{,}} − 9 − x − 6 , 这是不同的函数(在 x = 1 x = 1 x = 1 处得到 7 9 , \tfrac79\mathclose{\text{,}} 9 7 , 而原函数得到 3 4 )。 \tfrac34\mathclose{\text{)。}} 4 3 )。
一些极限是通过夹逼找到的。将例 2.3 中振荡的 sin ( 1 / x ) \sin(1/x) sin ( 1/ x ) 乘以 x 。 x\mathclose{\text{。}} x 。 由于 ∣ sin ( 1 / x ) ∣ ≤ 1 , \abs{\sin(1/x)} \le 1\mathclose{\text{,}} ∣ sin ( 1/ x ) ∣ ≤ 1 ,
∣ x sin 1 x ∣ = ∣ x ∣ ∣ sin 1 x ∣ ≤ ∣ x ∣ , that is, \abs{x\sin\frac1x} = \abs{x}\,\abs{\sin\frac1x} \le \abs{x}, \quad\text{that is,} x sin x 1 = ∣ x ∣ sin x 1 ≤ ∣ x ∣ , that is,
− ∣ x ∣ ≤ x sin 1 x ≤ ∣ x ∣ ( x ≠ 0 ) . -\abs{x} \le x\sin\frac1x \le \abs{x} \qquad (x \ne 0). − ∣ x ∣ ≤ x sin x 1 ≤ ∣ x ∣ ( x = 0 ) .
图像仍然在 0 附近无限次振荡,但介于直线 y = ∣ x ∣ y = \abs{x} y = ∣ x ∣ 和 y = − ∣ x ∣ y = -\abs{x} y = − ∣ x ∣ 之间,这两条直线在原点处收敛(图 2.3,左图)。值无处可去,只能趋向于 0。
图 2.3 夹逼定理的两个例子。左图中,x sin ( 1 / x ) x\sin(1/x) x sin ( 1/ x ) 在零附近无限次振荡,但总在 y = − ∣ x ∣ y = -\abs{x} y = − ∣ x ∣ 与 y = ∣ x ∣ y = \abs{x} y = ∣ x ∣ (虚线)之间。两条边界曲线在原点相交,所以它在零点的极限是零(例 2.9)。右图中,对 0 < ∣ θ ∣ < π / 2 , 0 < \abs{\theta} < \pi/2\mathclose{\text{,}} 0 < ∣ θ ∣ < π /2 , sin θ θ \dfrac{\sin\theta}{\theta} θ sin θ 介于 cos θ \cos\theta cos θ 和 1 之间;当 θ → 0 \theta \to 0 θ → 0 时,两者都趋近 1(定理 2.5)。
定理 2.4夹逼定理
假设对于包含 a a a 的某个开区间内的每个 x ≠ a x \ne a x = a 都有 g ( x ) ≤ f ( x ) ≤ h ( x ) , g(x) \le f(x) \le h(x)\mathclose{\text{,}} g ( x ) ≤ f ( x ) ≤ h ( x ) , 并且
lim x → a g ( x ) = lim x → a h ( x ) = L . \lim_{x\to a} g(x) = \lim_{x\to a} h(x) = L. x → a lim g ( x ) = x → a lim h ( x ) = L .
那么 lim x → a f ( x ) = L 。 \lim_{x\to a} f(x) = L\mathclose{\text{。}} lim x → a f ( x ) = L 。 单侧极限也适用,只需考虑 a a a 一侧的不等式。
原因是:在 a a a 附近,值 g ( x ) g(x) g ( x ) 和 h ( x ) h(x) h ( x ) 都可以任意接近 L , L\mathclose{\text{,}} L , 介于它们之间的每个数,包括 f ( x ) , f(x)\mathclose{\text{,}} f ( x ) , 也是如此。第 2.7 节的“深入理解”框中用精确定义写出了这一点。该定理也被称为夹逼定理。
例 2.9被夹逼的震荡 ✓ 已检验
证明 lim x → 0 x sin ( 1 / x ) = 0 。 \lim_{x\to0} x\sin(1/x) = 0\mathclose{\text{。}} lim x → 0 x sin ( 1/ x ) = 0 。
该函数对于每一个 x ≠ 0 x \ne 0 x = 0 都有定义,对于那些 x , x\mathclose{\text{,}} x , 如上所示,− ∣ x ∣ ≤ x sin ( 1 / x ) ≤ ∣ x ∣ 。 -\abs{x} \le x\sin(1/x) \le \abs{x}\mathclose{\text{。}} − ∣ x ∣ ≤ x sin ( 1/ x ) ≤ ∣ x ∣ 。 两个界都趋于 0。事实上 ∣ x ∣ = − x \abs{x} = -x ∣ x ∣ = − x 对于 x < 0 , x < 0\mathclose{\text{,}} x < 0 , ∣ x ∣ = x \abs{x} = x ∣ x ∣ = x 对于 x > 0 , x > 0\mathclose{\text{,}} x > 0 , 因此 ∣ x ∣ \abs{x} ∣ x ∣ 在 0 处的两个单侧极限都是 0,且 lim x → 0 ∣ x ∣ = 0 ; \lim_{x\to0}\abs{x} = 0\mathclose{\text{;}} lim x → 0 ∣ x ∣ = 0 ; 然后 lim x → 0 ( − ∣ x ∣ ) = 0 \lim_{x\to0}\big(-\abs{x}\big) = 0 lim x → 0 ( − ∣ x ∣ ) = 0 由常数倍法则。根据夹逼定理,lim x → 0 x sin ( 1 / x ) = 0 。 \lim_{x\to0} x\sin(1/x) = 0\mathclose{\text{。}} lim x → 0 x sin ( 1/ x ) = 0 。 因子 x x x 抑制了例 2.3 中的振荡。
两个三角函数极限
夹逼定理最重要的应用是例2.1中猜测的极限。它需要从单位圆的几何中得出一个不等式。设 0 < θ < π / 2 。 0 < \theta < \pi/2\mathclose{\text{。}} 0 < θ < π /2 。 在图2.4中,O O O 是原点,A = ( 1 , 0 ) , A = (1, 0)\mathclose{\text{,}} A = ( 1 , 0 ) , P = ( cos θ , sin θ ) P = (\cos\theta, \sin\theta) P = ( cos θ , sin θ ) 是单位圆上角度为 θ \theta θ 的点,Q = ( 1 , tan θ ) Q = (1, \tan\theta) Q = ( 1 , tan θ ) 是直线 O P OP O P 与垂直直线 x = 1 x = 1 x = 1 相交的点。三个区域依次嵌套:三角形 O A P , OAP\mathclose{\text{,}} O A P , 扇形 O A P OAP O A P (在半径 O A OA O A 和 O P OP O P 之间的圆盘切片)以及三角形 O A Q 。 OAQ\mathclose{\text{。}} O A Q 。 因此它们的面积按此顺序递增。三角形 O A P OAP O A P 的底边为 O A = 1 , OA = 1\mathclose{\text{,}} O A = 1 , 高为 sin θ 。 \sin\theta\mathclose{\text{。}} sin θ 。 扇形是整个圆盘面积 θ / ( 2 π ) \theta/(2\pi) θ / ( 2 π ) 的一部分,整个圆盘的面积是 π , \pi\mathclose{\text{,}} π , 因此扇形的面积是 θ / 2 。 \theta/2\mathclose{\text{。}} θ /2 。 三角形 O A Q OAQ O A Q 的底边为1,高为 tan θ 。 \tan\theta\mathclose{\text{。}} tan θ 。 因此
1 2 sin θ < 1 2 θ < 1 2 tan θ , so sin θ < θ < tan θ ( 0 < θ < π 2 ) . \begin{aligned} \frac12\sin\theta &< \frac12\theta < \frac12\tan\theta, \quad\text{so} \\ \sin\theta &< \theta < \tan\theta \qquad \Big(0 < \theta < \frac{\pi}{2}\Big). \end{aligned} 2 1 sin θ sin θ < 2 1 θ < 2 1 tan θ , so < θ < tan θ ( 0 < θ < 2 π ) .
图 2.4 定理 2.5 的面积比较,角 θ \theta θ 在零与 π / 2 \pi/2 π /2 之间。左图的三角形 O A P OAP O A P 包含在中图的扇形 O A P OAP O A P 中,扇形又包含在右图的三角形 O A Q OAQ O A Q 中,因此 1 2 sin θ < 1 2 θ < 1 2 tan θ 。 \tfrac12\sin\theta < \tfrac12\theta < \tfrac12\tan\theta\mathclose{\text{。}} 2 1 sin θ < 2 1 θ < 2 1 tan θ 。
例 2.10正弦和余弦在0附近 ✓ 已检验
证明 lim θ → 0 sin θ = 0 \lim_{\theta\to0}\sin\theta = 0 lim θ → 0 sin θ = 0 和 lim θ → 0 cos θ = 1 。 \lim_{\theta\to0}\cos\theta = 1\mathclose{\text{。}} lim θ → 0 cos θ = 1 。
对于 0 < θ < π / 2 , 0 < \theta < \pi/2\mathclose{\text{,}} 0 < θ < π /2 , sin θ > 0 \sin\theta > 0 sin θ > 0 (点 P P P 位于 x x x 轴上方),并且上面的不等式给出 sin θ < θ ; \sin\theta < \theta\mathclose{\text{;}} sin θ < θ ; 因此 0 < sin θ < θ 。 0 < \sin\theta < \theta\mathclose{\text{。}} 0 < sin θ < θ 。 正弦是奇函数,因此对于 − π / 2 < θ < 0 -\pi/2 < \theta < 0 − π /2 < θ < 0 这个变为 θ < sin θ < 0 。 \theta < \sin\theta < 0\mathclose{\text{。}} θ < sin θ < 0 。 在两种情况下
− ∣ θ ∣ ≤ sin θ ≤ ∣ θ ∣ ( 0 < ∣ θ ∣ < π 2 ) , -\abs{\theta} \le \sin\theta \le \abs{\theta} \qquad \Big(0 < \abs{\theta} < \frac{\pi}{2}\Big), − ∣ θ ∣ ≤ sin θ ≤ ∣ θ ∣ ( 0 < ∣ θ ∣ < 2 π ) ,
并且两个界都趋近于0(例2.9),因此 lim θ → 0 sin θ = 0 \lim_{\theta\to0}\sin\theta = 0 lim θ → 0 sin θ = 0 由夹逼定理。
对于余弦,使用 sin 2 θ + cos 2 θ = 1 。 \sin^2\theta + \cos^2\theta = 1\mathclose{\text{。}} sin 2 θ + cos 2 θ = 1 。 对于 0 < ∣ θ ∣ < π / 2 , 0 < \abs{\theta} < \pi/2\mathclose{\text{,}} 0 < ∣ θ ∣ < π /2 , 点 P P P 位于 y y y 轴右侧,因此 cos θ > 0 \cos\theta > 0 cos θ > 0 和 1 + cos θ > 1 。 1 + \cos\theta > 1\mathclose{\text{。}} 1 + cos θ > 1 。 将 1 + cos θ 1 + \cos\theta 1 + cos θ 相乘相除:
1 − cos θ = ( 1 − cos θ ) ( 1 + cos θ ) 1 + cos θ = sin 2 θ 1 + cos θ . \begin{aligned} 1 - \cos\theta &= \frac{(1 - \cos\theta)(1 + \cos\theta)}{1 + \cos\theta} \\ &= \frac{\sin^2\theta}{1 + \cos\theta}. \end{aligned} 1 − cos θ = 1 + cos θ ( 1 − cos θ ) ( 1 + cos θ ) = 1 + cos θ sin 2 θ .
这个值介于0和 sin 2 θ \sin^2\theta sin 2 θ 之间,因为分母大于1,且 sin 2 θ ≤ θ 2 \sin^2\theta \le \theta^2 sin 2 θ ≤ θ 2 由第一部分给出。因此 0 ≤ 1 − cos θ ≤ θ 2 。 0 \le 1 - \cos\theta \le \theta^2\mathclose{\text{。}} 0 ≤ 1 − cos θ ≤ θ 2 。 由于 θ 2 → 0 , \theta^2 \to 0\mathclose{\text{,}} θ 2 → 0 , 夹逼定理给出 1 − cos θ → 0 , 1 - \cos\theta \to 0\mathclose{\text{,}} 1 − cos θ → 0 , 差值法则给出 cos θ = 1 − ( 1 − cos θ ) → 1 − 0 = 1 。 \cos\theta = 1 - (1 - \cos\theta) \to 1 - 0 = 1\mathclose{\text{。}} cos θ = 1 − ( 1 − cos θ ) → 1 − 0 = 1 。
定理 2.5sin θ/θ 的极限
以弧度为单位的 θ \theta θ
lim θ → 0 sin θ θ = 1. \lim_{\theta\to0}\frac{\sin\theta}{\theta} = 1. θ → 0 lim θ sin θ = 1.
证明
设 0 < θ < π / 2 。 0 < \theta < \pi/2\mathclose{\text{。}} 0 < θ < π /2 。 将 sin θ < θ \sin\theta < \theta sin θ < θ 除以 θ > 0 \theta > 0 θ > 0 得到 sin θ θ < 1 。 \dfrac{\sin\theta}{\theta} < 1\mathclose{\text{。}} θ sin θ < 1 。 将 θ < tan θ = sin θ cos θ \theta < \tan\theta = \dfrac{\sin\theta}{\cos\theta} θ < tan θ = cos θ sin θ 乘以 cos θ θ > 0 \dfrac{\cos\theta}{\theta} > 0 θ cos θ > 0 得到 cos θ < sin θ θ 。 \cos\theta < \dfrac{\sin\theta}{\theta}\mathclose{\text{。}} cos θ < θ sin θ 。 因此
cos θ < sin θ θ < 1. \cos\theta < \frac{\sin\theta}{\theta} < 1. cos θ < θ sin θ < 1.
余弦函数是偶函数 (小节 1.4 ), 同样 sin θ θ \dfrac{\sin\theta}{\theta} θ sin θ (例 2.1) 也是偶函数,因此对于 − π / 2 < θ < 0 -\pi/2 < \theta < 0 − π /2 < θ < 0 (图 2.3,右图) 也成立相同的不等式。如 θ → 0 , \theta \to 0\mathclose{\text{,}} θ → 0 , cos θ → 1 \cos\theta \to 1 cos θ → 1 (例 2.10),常数 1 保持为 1。根据夹逼定理,sin θ θ → 1 。 \dfrac{\sin\theta}{\theta} \to 1\mathclose{\text{。}} θ sin θ → 1 。
∎
定理 2.6(1 − cos θ)/θ 的极限
以弧度为单位的 θ \theta θ
lim θ → 0 1 − cos θ θ = 0. \lim_{\theta\to0}\frac{1 - \cos\theta}{\theta} = 0. θ → 0 lim θ 1 − cos θ = 0.
证明
对于 0 < ∣ θ ∣ < π / 2 , 0 < \abs{\theta} < \pi/2\mathclose{\text{,}} 0 < ∣ θ ∣ < π /2 , 1 + cos θ > 0 . 1 + \cos\theta > 0\mathclose{\text{.}} 1 + cos θ > 0 . 将分子和分母同乘以 1 + cos θ , 1 + \cos\theta\mathclose{\text{,}} 1 + cos θ , 并使用 1 − cos 2 θ = sin 2 θ : 1 - \cos^2\theta = \sin^2\theta\mathclose{\text{:}} 1 − cos 2 θ = sin 2 θ :
1 − cos θ θ = 1 − cos 2 θ θ ( 1 + cos θ ) = sin θ θ ⋅ sin θ 1 + cos θ . \begin{aligned} \frac{1 - \cos\theta}{\theta} &= \frac{1 - \cos^2\theta}{\theta(1 + \cos\theta)} \\ &= \frac{\sin\theta}{\theta}\cdot\frac{\sin\theta}{1 + \cos\theta}. \end{aligned} θ 1 − cos θ = θ ( 1 + cos θ ) 1 − cos 2 θ = θ sin θ ⋅ 1 + cos θ sin θ .
如 θ → 0 , \theta \to 0\mathclose{\text{,}} θ → 0 , sin θ θ → 1 \dfrac{\sin\theta}{\theta} \to 1 θ sin θ → 1 (定理 2.5), sin θ → 0 \sin\theta \to 0 sin θ → 0 和 1 + cos θ → 2 1 + \cos\theta \to 2 1 + cos θ → 2 (例 2.10)。根据乘积与商的极限法则,极限为 1 ⋅ 0 2 = 0 。 1 \cdot \dfrac02 = 0\mathclose{\text{。}} 1 ⋅ 2 0 = 0 。
∎
定理 2.5 表示 sin θ ≈ θ \sin\theta \approx \theta sin θ ≈ θ 对于小的 θ , \theta\mathclose{\text{,}} θ , 误差即使与 θ \theta θ 本身相比也很小:在 θ = 0.1 \theta = 0.1 θ = 0.1 处,比值 sin θ / θ \sin\theta/\theta sin θ / θ 大约是 0.99833。物理学家使用这个 小角度近似 ,例如用于摆动角度很小的单摆,以及模块 5 使用定理 2.5 和 2.6 来找出 sin x \sin x sin x 的变化率。
例 2.11使用两个极限 ✓ 已检验
求 x → 0 x \to 0 x → 0 时 (a) sin 3 x x \dfrac{\sin 3x}{x} x sin 3 x 和 (b) tan x x \dfrac{\tan x}{x} x tan x 的极限。
(a) 定理 2.5 需要相同的角度在上方和下方。因此,设 θ = 3 x \theta = 3x θ = 3 x 并写出
sin 3 x x = 3 ⋅ sin 3 x 3 x = 3 ⋅ sin θ θ . \frac{\sin 3x}{x} = 3\cdot\frac{\sin 3x}{3x} = 3\cdot\frac{\sin\theta}{\theta}. x sin 3 x = 3 ⋅ 3 x sin 3 x = 3 ⋅ θ sin θ .
当 x → 0 x \to 0 x → 0 与 x ≠ 0 , x \ne 0\mathclose{\text{,}} x = 0 , θ → 0 \theta \to 0 θ → 0 与 θ ≠ 0 , \theta \ne 0\mathclose{\text{,}} θ = 0 , 所以 sin θ / θ → 1 。 \sin\theta/\theta \to 1\mathclose{\text{。}} sin θ / θ → 1 。 (第 2.7 节使这一步精确:如果 sin θ / θ \sin\theta/\theta sin θ / θ 在 ε \varepsilon ε 之内为 1 时,只要 0 < ∣ θ ∣ < δ , 0 < \abs{\theta} < \delta\mathclose{\text{,}} 0 < ∣ θ ∣ < δ , 那么 sin 3 x / ( 3 x ) \sin 3x/(3x) sin 3 x / ( 3 x ) 在 ε \varepsilon ε 之内为 1 时,只要 0 < ∣ x ∣ < δ / 3 , 0 < \abs{x} < \delta/3\mathclose{\text{,}} 0 < ∣ x ∣ < δ /3 , 因为此时 0 < ∣ 3 x ∣ < δ 。) 0 < \abs{3x} < \delta\mathclose{\text{。)}} 0 < ∣ 3 x ∣ < δ 。) 根据常数倍法则,
lim x → 0 sin 3 x x = 3 ⋅ 1 = 3. \lim_{x\to0}\frac{\sin 3x}{x} = 3 \cdot 1 = 3. x → 0 lim x sin 3 x = 3 ⋅ 1 = 3.
(b) 写
tan x x = sin x x ⋅ 1 cos x . \frac{\tan x}{x} = \frac{\sin x}{x}\cdot\frac{1}{\cos x}. x tan x = x sin x ⋅ cos x 1 .
第一个因子趋近于 1(定理 2.5)和 cos x → 1 \cos x \to 1 cos x → 1 (例 2.10),因此根据乘积法则和商法则
lim x → 0 tan x x = 1 ⋅ 1 1 = 1. \lim_{x\to0}\frac{\tan x}{x} = 1 \cdot \frac11 = 1. x → 0 lim x tan x = 1 ⋅ 1 1 = 1.
注意
定理 2.5 需要以弧度为单位。一个 x x x 度的角等于 π x / 180 \pi x/180 π x /180 弧度,因此以度数为单位时,例 2.11 中的参数给出
lim x → 0 sin ( x ∘ ) x = lim x → 0 π 180 ⋅ sin ( π x / 180 ) π x / 180 = π 180 ≈ 0.01745 , \begin{aligned} \lim_{x\to0}\frac{\sin(x^\circ)}{x} &= \lim_{x\to0}\frac{\pi}{180}\cdot\frac{\sin(\pi x/180)}{\pi x/180} \\ &= \frac{\pi}{180} \approx 0.01745, \end{aligned} x → 0 lim x sin ( x ∘ ) = x → 0 lim 180 π ⋅ π x /180 sin ( π x /180 ) = 180 π ≈ 0.01745 ,
并不是 1:这是微积分在弧度下有效的一个原因。并且只有 sin θ / θ , \sin\theta/\theta\mathclose{\text{,}} sin θ / θ , 在上面和下面都使用相同的 θ , \theta\mathclose{\text{,}} θ , 才会趋近于 1:sin 3 x x \dfrac{\sin 3x}{x} x sin 3 x 趋近于 3。
定义 2.1 依赖于两个短语,“接近到你想要的程度”和“足够接近”。要证明一个极限是 L , L\mathclose{\text{,}} L , 或者一个函数没有极限,你必须确切地说明它们的含义。答案是 19 世纪 20 年代的柯西和 19 世纪 60 年代和 70 年代的魏尔斯特拉斯为微积分所提供的基础。它通过距离来衡量接近程度:∣ f ( x ) − L ∣ \abs{f(x) - L} ∣ f ( x ) − L ∣ 是 f ( x ) f(x) f ( x ) 和 L L L 之间的距离,而 ∣ x − a ∣ \abs{x - a} ∣ x − a ∣ 是 x x x 和 a a a 之间的距离(第 1.3 节 ])。对于一个正数 δ , \delta\mathclose{\text{,}} δ ,
∣ x − a ∣ < δ means a − δ < x < a + δ , \abs{x - a} < \delta \quad\text{means}\quad a - \delta < x < a + \delta, ∣ x − a ∣ < δ means a − δ < x < a + δ ,
除了上述内容,0 < ∣ x − a ∣ < δ 0 < \abs{x - a} < \delta 0 < ∣ x − a ∣ < δ 还说明 x ≠ a 。 x \ne a\mathclose{\text{。}} x = a 。 同样地,∣ f ( x ) − L ∣ < ε \abs{f(x) - L} < \varepsilon ∣ f ( x ) − L ∣ < ε 表示 L − ε < f ( x ) < L + ε 。 L - \varepsilon < f(x) < L + \varepsilon\mathclose{\text{。}} L − ε < f ( x ) < L + ε 。 希腊字母 ε \varepsilon ε (“epsilon”)和 δ \delta δ (“delta”)是这两个距离的传统名称。
定义 2.3极限,精确定义
设 f f f 在包含 a a a 的开区间上定义,除了可能在 a a a 本身处未定义。那么 lim x → a f ( x ) = L \lim_{x\to a} f(x) = L lim x → a f ( x ) = L 表示:对于每一个数 ε > 0 , \varepsilon > 0\mathclose{\text{,}} ε > 0 , 存在一个数 δ > 0 , \delta > 0\mathclose{\text{,}} δ > 0 , 使得对于每一个 x x x 满足 0 < ∣ x − a ∣ < δ , 0 < \abs{x - a} < \delta\mathclose{\text{,}} 0 < ∣ x − a ∣ < δ ,
∣ f ( x ) − L ∣ < ε . \abs{f(x) - L} < \varepsilon. ∣ f ( x ) − L ∣ < ε .
定义 2.1 中的每一部分都有其精确的对应:
定义 2.1
定义 2.3
f ( x ) f(x) f ( x ) 接近 L L L 到任意程度
对于每一个 ε > 0 , \varepsilon > 0\mathclose{\text{,}} ε > 0 , ∣ f ( x ) − L ∣ < ε \abs{f(x) - L} < \varepsilon ∣ f ( x ) − L ∣ < ε
通过取 x x x 足够接近 a a a
存在一个 δ > 0 \delta > 0 δ > 0 满足 ∣ x − a ∣ < δ \abs{x - a} < \delta ∣ x − a ∣ < δ
但不等于 a a a
0 < ∣ x − a ∣ 0 < \abs{x - a} 0 < ∣ x − a ∣
单侧极限以相同方式精确化:对于 lim x → a − f ( x ) = L , \lim_{x\to a^-} f(x) = L\mathclose{\text{,}} lim x → a − f ( x ) = L , 将 0 < ∣ x − a ∣ < δ 0 < \abs{x - a} < \delta 0 < ∣ x − a ∣ < δ 替换为 a − δ < x < a , a - \delta < x < a\mathclose{\text{,}} a − δ < x < a , 对于 lim x → a + f ( x ) = L \lim_{x\to a^+} f(x) = L lim x → a + f ( x ) = L 替换为 a < x < a + δ 。 a < x < a + \delta\mathclose{\text{。}} a < x < a + δ 。
挑战与回应
可以把定义 2.3 看成两人游戏。挑战者给出一个任意小的误差容许量 ε > 0 , \varepsilon > 0\mathclose{\text{,}} ε > 0 , 你选定一个 δ > 0 \delta > 0 δ > 0 作答。若每个满足 0 < ∣ x − a ∣ < δ 0 < \abs{x - a} < \delta 0 < ∣ x − a ∣ < δ 的 x x x 都给出 ∣ f ( x ) − L ∣ < ε , \abs{f(x) - L} < \varepsilon\mathclose{\text{,}} ∣ f ( x ) − L ∣ < ε , 你就获胜。在图 2.5 中,除 x = a x = a x = a 本身外,竖条 a − δ < x < a + δ a - \delta < x < a + \delta a − δ < x < a + δ 内的图像必须全部落在水平带 L − ε < y < L + ε L - \varepsilon < y < L + \varepsilon L − ε < y < L + ε 内。
lim x → a f ( x ) = L \lim_{x\to a} f(x) = L lim x → a f ( x ) = L 表示你可以赢得每一回合:无论挑战者指定的 ε \varepsilon ε 是什么,你都有一个获胜的 δ 。 \delta\mathclose{\text{。}} δ 。
你的 δ \delta δ 是在 ε \varepsilon ε 之后选择的,可能依赖于它;通常一个更小的 ε \varepsilon ε 需要一个更小的 δ 。 \delta\mathclose{\text{。}} δ 。
一旦一个 δ \delta δ 获胜,每一个更小的正 δ \delta δ 也会获胜,因为它允许的 x x x 更少。
要证明 L L L 不是极限,挑战者需要一个 ε , \varepsilon\mathclose{\text{,}} ε , 使得没有任何 δ \delta δ 能够回应。
图 2.5 对于 y = x 2 y = x^2 y = x 2 接近 a = 3 a = 3 a = 3 的情况,涉及 L = 9 L = 9 L = 9 和挑战 ε = 3 。 \varepsilon = 3\mathclose{\text{。}} ε = 3 。 橙色带是 L − ε < y < L + ε ; L - \varepsilon < y < L + \varepsilon\mathclose{\text{;}} L − ε < y < L + ε ; 绿色带状区域是 a − δ < x < a + δ 。 a - \delta < x < a + \delta\mathclose{\text{。}} a − δ < x < a + δ 。 左图:在 δ = 0.4 \delta = 0.4 δ = 0.4 的情况下,图像在带状区域内保持在带状区域中,因此 δ = 0.4 \delta = 0.4 δ = 0.4 获胜。右图:在 δ = 0.8 \delta = 0.8 δ = 0.8 的情况下,图像在带状区域的两侧附近离开带状区域(红色),因此 δ = 0.8 \delta = 0.8 δ = 0.8 失败。
打个比方
一台机器切割应为 400 平方厘米面积的正方形瓷砖,因此边长应为 20 厘米。客户对面积的公差是挑战 ε ; \varepsilon\mathclose{\text{;}} ε ; 切割边长的精度是响应 δ 。 \delta\mathclose{\text{。}} δ 。 更小的公差需要更高的精度,但每个公差都可以通过足够精确的切割来满足:这就是 lim s → 20 s 2 = 400 \lim_{s\to20} s^2 = 400 lim s → 20 s 2 = 400 的含义。练习 2.8 计算了 1 平方厘米公差所需的精度。
使用 ε 和 δ 的证明
一个证明 lim x → a f ( x ) = L \lim_{x\to a} f(x) = L lim x → a f ( x ) = L 是该游戏的策略:一个将任何 ε \varepsilon ε 转换为获胜 δ \delta δ 的规则。你分两个阶段找到它。在 草稿工作 中,你从 ∣ f ( x ) − L ∣ < ε \abs{f(x) - L} < \varepsilon ∣ f ( x ) − L ∣ < ε 开始并反向推导出 ∣ x − a ∣ \abs{x - a} ∣ x − a ∣ 上的条件。在 证明 中,你从 0 < ∣ x − a ∣ < δ 0 < \abs{x - a} < \delta 0 < ∣ x − a ∣ < δ 向 ∣ f ( x ) − L ∣ < ε \abs{f(x) - L} < \varepsilon ∣ f ( x ) − L ∣ < ε 正向运行论证。
例 2.12一条直线的 ε–δ 证明 ✓ 已检验
证明 lim x → 2 ( 3 x − 1 ) = 5 。 \lim_{x\to2}(3x - 1) = 5\mathclose{\text{。}} lim x → 2 ( 3 x − 1 ) = 5 。
草稿. ∣ ( 3 x − 1 ) − 5 ∣ = ∣ 3 x − 6 ∣ = 3 ∣ x − 2 ∣ , \abs{(3x - 1) - 5} = \abs{3x - 6} = 3\abs{x - 2}\mathclose{\text{,}} ∣ ( 3 x − 1 ) − 5 ∣ = ∣ 3 x − 6 ∣ = 3 ∣ x − 2 ∣ , 并且这小于 ε \varepsilon ε 恰好当 ∣ x − 2 ∣ < ε / 3 . \abs{x - 2} < \varepsilon/3\mathclose{\text{.}} ∣ x − 2 ∣ < ε /3 . 所以尝试 δ = ε / 3 . \delta = \varepsilon/3\mathclose{\text{.}} δ = ε /3 .
证明. 设 ε > 0 , \varepsilon > 0\mathclose{\text{,}} ε > 0 , 并选择 δ = ε / 3 . \delta = \varepsilon/3\mathclose{\text{.}} δ = ε /3 . 如果 0 < ∣ x − 2 ∣ < δ , 0 < \abs{x - 2} < \delta\mathclose{\text{,}} 0 < ∣ x − 2 ∣ < δ , 那么
∣ ( 3 x − 1 ) − 5 ∣ = 3 ∣ x − 2 ∣ < 3 δ = ε . \abs{(3x - 1) - 5} = 3\abs{x - 2} < 3\delta = \varepsilon. ∣ ( 3 x − 1 ) − 5 ∣ = 3 ∣ x − 2 ∣ < 3 δ = ε .
所以每个挑战都被满足,且 lim x → 2 ( 3 x − 1 ) = 5 . \lim_{x\to2}(3x - 1) = 5\mathclose{\text{.}} lim x → 2 ( 3 x − 1 ) = 5 . 例如,挑战 ε = 0.3 \varepsilon = 0.3 ε = 0.3 被 δ = 0.1 \delta = 0.1 δ = 0.1 满足:如果 x x x 在 2 的 0.1 范围内,那么 3 x − 1 3x - 1 3 x − 1 在 5 的 0.3 范围内。
相同的论证证明了 lim x → a ( m x + b ) = m a + b \lim_{x\to a}(mx + b) = ma + b lim x → a ( m x + b ) = ma + b 对于每条斜率为 m ≠ 0 m \ne 0 m = 0 的直线都成立:由于 ∣ ( m x + b ) − ( m a + b ) ∣ = ∣ m ∣ ∣ x − a ∣ , \abs{(mx + b) - (ma + b)} = \abs{m}\,\abs{x - a}\mathclose{\text{,}} ∣ ( m x + b ) − ( ma + b ) ∣ = ∣ m ∣ ∣ x − a ∣ , 响应 δ = ε / ∣ m ∣ \delta = \varepsilon/\abs{m} δ = ε / ∣ m ∣ 赢得。如果 m = 0 , m = 0\mathclose{\text{,}} m = 0 , 函数是常数 b , b\mathclose{\text{,}} b , ∣ f ( x ) − b ∣ = 0 < ε \abs{f(x) - b} = 0 < \varepsilon ∣ f ( x ) − b ∣ = 0 < ε 对于每个 x , x\mathclose{\text{,}} x , 每个 δ \delta δ 都赢得。结合 m = 0 m = 0 m = 0 和 b = c , b = c\mathclose{\text{,}} b = c , 以及 m = 1 m = 1 m = 1 和 b = 0 , b = 0\mathclose{\text{,}} b = 0 , 这证明了第 2.4 节的两个基本极限 lim x → a c = c \lim_{x\to a} c = c lim x → a c = c 和 lim x → a x = a . \lim_{x\to a} x = a\mathclose{\text{.}} lim x → a x = a .
例 2.13一个关于抛物线的 ε–δ 证明 ✓ 已检验
证明 lim x → 3 x 2 = 9 。 \lim_{x\to3} x^2 = 9\mathclose{\text{。}} lim x → 3 x 2 = 9 。
草稿. ∣ x 2 − 9 ∣ = ∣ x − 3 ∣ ∣ x + 3 ∣ . \abs{x^2 - 9} = \abs{x - 3}\,\abs{x + 3}\mathclose{\text{.}} x 2 − 9 = ∣ x − 3 ∣ ∣ x + 3 ∣ . 这个因子 ∣ x − 3 ∣ \abs{x - 3} ∣ x − 3 ∣ 可以小到你想要的程度;这个因子 ∣ x + 3 ∣ \abs{x + 3} ∣ x + 3 ∣ 并不是常数,但当 x x x 接近 3 时它并不大。因此事先约定取 δ ≤ 1 。 \delta \le 1\mathclose{\text{。}} δ ≤ 1 。 那么 ∣ x − 3 ∣ < 1 \abs{x - 3} < 1 ∣ x − 3 ∣ < 1 表示 2 < x < 4 , 2 < x < 4\mathclose{\text{,}} 2 < x < 4 , 因此 5 < x + 3 < 7 5 < x + 3 < 7 5 < x + 3 < 7 和 ∣ x + 3 ∣ < 7 。 \abs{x + 3} < 7\mathclose{\text{。}} ∣ x + 3 ∣ < 7 。 这样,∣ x 2 − 9 ∣ < 7 ∣ x − 3 ∣ , \abs{x^2 - 9} < 7\abs{x - 3}\mathclose{\text{,}} x 2 − 9 < 7 ∣ x − 3 ∣ , 当 ∣ x − 3 ∣ < ε / 7 \abs{x - 3} < \varepsilon/7 ∣ x − 3 ∣ < ε /7 时它小于 ε 。 \varepsilon\mathclose{\text{。}} ε 。 如果 δ \delta δ 是 1 和 ε / 7 \varepsilon/7 ε /7 中的较小者,即 δ = min ( 1 , ε / 7 ) , \delta = \min(1, \varepsilon/7)\mathclose{\text{,}} δ = min ( 1 , ε /7 ) , 那么这两个条件都成立。
证明. 设 ε > 0 \varepsilon > 0 ε > 0 和 δ = min ( 1 , ε / 7 ) 。 \delta = \min(1, \varepsilon/7)\mathclose{\text{。}} δ = min ( 1 , ε /7 ) 。 假设 0 < ∣ x − 3 ∣ < δ 。 0 < \abs{x - 3} < \delta\mathclose{\text{。}} 0 < ∣ x − 3 ∣ < δ 。 由于 δ ≤ 1 , \delta \le 1\mathclose{\text{,}} δ ≤ 1 , 2 < x < 4 , 2 < x < 4\mathclose{\text{,}} 2 < x < 4 , 因此 ∣ x + 3 ∣ < 7 。 \abs{x + 3} < 7\mathclose{\text{。}} ∣ x + 3 ∣ < 7 。 由于 δ ≤ ε / 7 , \delta \le \varepsilon/7\mathclose{\text{,}} δ ≤ ε /7 , ∣ x − 3 ∣ < ε / 7 。 \abs{x - 3} < \varepsilon/7\mathclose{\text{。}} ∣ x − 3 ∣ < ε /7 。 因此
∣ x 2 − 9 ∣ = ∣ x + 3 ∣ ∣ x − 3 ∣ < 7 ⋅ ε 7 = ε . \abs{x^2 - 9} = \abs{x + 3}\,\abs{x - 3} < 7 \cdot \frac{\varepsilon}{7} = \varepsilon. x 2 − 9 = ∣ x + 3 ∣ ∣ x − 3 ∣ < 7 ⋅ 7 ε = ε .
对于挑战 ε = 0.5 , \varepsilon = 0.5\mathclose{\text{,}} ε = 0.5 , 证明给出 δ = min ( 1 , 0.5 7 ) = 1 14 ≈ 0.0714 。 \delta = \min(1, \tfrac{0.5}{7}) = \tfrac{1}{14} \approx 0.0714\mathclose{\text{。}} δ = min ( 1 , 7 0.5 ) = 14 1 ≈ 0.0714 。 这并不是最大的 δ \delta δ 能够获胜:当 x < 9.5 ≈ 3.0822 x < \sqrt{9.5} \approx 3.0822 x < 9.5 ≈ 3.0822 时为 x 2 < 9.5 , x^2 < 9.5\mathclose{\text{,}} x 2 < 9.5 , 当 x > 8.5 ≈ 2.9155 x > \sqrt{8.5} \approx 2.9155 x > 8.5 ≈ 2.9155 时为 x 2 > 8.5 , x^2 > 8.5\mathclose{\text{,}} x 2 > 8.5 , 因此每个 δ \delta δ 直到 9.5 − 3 ≈ 0.0822 \sqrt{9.5} - 3 \approx 0.0822 9.5 − 3 ≈ 0.0822 都能获胜。一个证明不需要最好的 δ , \delta\mathclose{\text{,}} δ , 只需要一个能够获胜的。
证明一个极限不存在
当挑战者有必胜策略时,lim x → a f ( x ) = L \lim_{x\to a} f(x) = L lim x → a f ( x ) = L 不成立。即存在一个 ε > 0 , \varepsilon > 0\mathclose{\text{,}} ε > 0 , 使得对每个 δ > 0 \delta > 0 δ > 0 都能找到某个满足 0 < ∣ x − a ∣ < δ 0 < \abs{x - a} < \delta 0 < ∣ x − a ∣ < δ 的 x , x\mathclose{\text{,}} x , 且 ∣ f ( x ) − L ∣ ≥ ε 。 \abs{f(x) - L} \ge \varepsilon\mathclose{\text{。}} ∣ f ( x ) − L ∣ ≥ ε 。 要证明极限不存在,需要对每个数 L L L 都证明这一点。主要工具是三角不等式 :
∣ p + q ∣ ≤ ∣ p ∣ + ∣ q ∣ , \abs{p + q} \le \abs{p} + \abs{q}, ∣ p + q ∣ ≤ ∣ p ∣ + ∣ q ∣ ,
对于所有实数 p p p 和 q 。 q\mathclose{\text{。}} q 。 它成立是因为 − ∣ p ∣ ≤ p ≤ ∣ p ∣ -\abs{p} \le p \le \abs{p} − ∣ p ∣ ≤ p ≤ ∣ p ∣ 和 − ∣ q ∣ ≤ q ≤ ∣ q ∣ ; -\abs{q} \le q \le \abs{q}\mathclose{\text{;}} − ∣ q ∣ ≤ q ≤ ∣ q ∣ ; 相加得到 − ( ∣ p ∣ + ∣ q ∣ ) ≤ p + q ≤ ∣ p ∣ + ∣ q ∣ , -\big(\abs{p} + \abs{q}\big) \le p + q \le \abs{p} + \abs{q}\mathclose{\text{,}} − ( ∣ p ∣ + ∣ q ∣ ) ≤ p + q ≤ ∣ p ∣ + ∣ q ∣ , 这说明 ∣ p + q ∣ ≤ ∣ p ∣ + ∣ q ∣ 。 \abs{p + q} \le \abs{p} + \abs{q}\mathclose{\text{。}} ∣ p + q ∣ ≤ ∣ p ∣ + ∣ q ∣ 。
例 2.14证明一个极限不存在 ✓ 已检验
证明 ∣ x ∣ x \dfrac{\abs{x}}{x} x ∣ x ∣ 在 0 处没有极限。
设 L L L 为任意数。挑战者指定 ε = 1 ; \varepsilon = 1\mathclose{\text{;}} ε = 1 ; 令 δ > 0 \delta > 0 δ > 0 为任意回应。点 x = δ / 2 x = \delta/2 x = δ /2 和 x = − δ / 2 x = -\delta/2 x = − δ /2 都满足 0 < ∣ x ∣ < δ , 0 < \abs{x} < \delta\mathclose{\text{,}} 0 < ∣ x ∣ < δ , 并且 f ( δ / 2 ) = 1 f(\delta/2) = 1 f ( δ /2 ) = 1 而 f ( − δ / 2 ) = − 1 f(-\delta/2) = -1 f ( − δ /2 ) = − 1 (例 2.2)。如果这两个值都在 L L L 的 1 之内,三角不等式将给出
2 = ∣ 1 − ( − 1 ) ∣ = ∣ ( 1 − L ) + ( L + 1 ) ∣ ≤ ∣ 1 − L ∣ + ∣ L + 1 ∣ < 1 + 1 = 2 , \begin{aligned} 2 &= \abs{1 - (-1)} = \abs{(1 - L) + (L + 1)} \\ &\le \abs{1 - L} + \abs{L + 1} < 1 + 1 = 2, \end{aligned} 2 = ∣ 1 − ( − 1 ) ∣ = ∣ ( 1 − L ) + ( L + 1 ) ∣ ≤ ∣ 1 − L ∣ + ∣ L + 1 ∣ < 1 + 1 = 2 ,
这是不可能的。因此,这两个点中至少有一个位于 L − 1 < y < L + 1 L - 1 < y < L + 1 L − 1 < y < L + 1 之外,δ \delta δ 失败。由于 δ \delta δ 是任意回应,L L L 是任意数,因此没有数是 ∣ x ∣ / x \abs{x}/x ∣ x ∣ / x 在 0 处的极限。
使用例2.3中的点,可以证明 sin ( 1 / x ) \sin(1/x) sin ( 1/ x ) 在0处没有极限(练习2.10)。它还表明,当极限存在时,它是一个单一的数。假设 f ( x ) f(x) f ( x ) 趋向于 L L L 且趋向于 M ≠ L , M \ne L\mathclose{\text{,}} M = L , 并用 ε = ∣ L − M ∣ / 2 \varepsilon = \abs{L - M}/2 ε = ∣ L − M ∣ /2 挑战这两个极限。对于足够接近 a a a 的 x ≠ a , x \ne a\mathclose{\text{,}} x = a , 两个 ∣ f ( x ) − L ∣ < ε \abs{f(x) - L} < \varepsilon ∣ f ( x ) − L ∣ < ε 和 ∣ f ( x ) − M ∣ < ε \abs{f(x) - M} < \varepsilon ∣ f ( x ) − M ∣ < ε 都成立,然后通过三角不等式,
∣ L − M ∣ = ∣ ( L − f ( x ) ) + ( f ( x ) − M ) ∣ ≤ ∣ L − f ( x ) ∣ + ∣ f ( x ) − M ∣ < ε + ε = ∣ L − M ∣ , \begin{aligned} \abs{L - M} &= \abs{\big(L - f(x)\big) + \big(f(x) - M\big)} \\ &\le \abs{L - f(x)} + \abs{f(x) - M} \\ &< \varepsilon + \varepsilon = \abs{L - M}, \end{aligned} ∣ L − M ∣ = ( L − f ( x ) ) + ( f ( x ) − M ) ≤ ∣ L − f ( x ) ∣ + ∣ f ( x ) − M ∣ < ε + ε = ∣ L − M ∣ ,
这是不可能的。精确的定义也证明了第2.2节的核心思想:
定理 2.7单侧极限和双侧极限
lim x → a f ( x ) = L \lim_{x\to a} f(x) = L lim x → a f ( x ) = L 当且仅当 lim x → a − f ( x ) = L \lim_{x\to a^-} f(x) = L lim x → a − f ( x ) = L 和 lim x → a + f ( x ) = L 。 \lim_{x\to a^+} f(x) = L\mathclose{\text{。}} lim x → a + f ( x ) = L 。
证明
假设 lim x → a f ( x ) = L , \lim_{x\to a} f(x) = L\mathclose{\text{,}} lim x → a f ( x ) = L , 并令 ε > 0 。 \varepsilon > 0\mathclose{\text{。}} ε > 0 。 一个 δ \delta δ 如果对两边极限成立,则对每个单侧极限也成立,因为 a − δ < x < a a - \delta < x < a a − δ < x < a 和 a < x < a + δ a < x < a + \delta a < x < a + δ 都蕴含 0 < ∣ x − a ∣ < δ 。 0 < \abs{x - a} < \delta\mathclose{\text{。}} 0 < ∣ x − a ∣ < δ 。 反之,假设两个单侧极限都是 L , L\mathclose{\text{,}} L , 并令 ε > 0 。 \varepsilon > 0\mathclose{\text{。}} ε > 0 。 存在一个 δ 1 > 0 \delta_1 > 0 δ 1 > 0 对 x x x 与 a − δ 1 < x < a a - \delta_1 < x < a a − δ 1 < x < a 成立,且存在一个 δ 2 > 0 \delta_2 > 0 δ 2 > 0 对 x x x 与 a < x < a + δ 2 a < x < a + \delta_2 a < x < a + δ 2 成立。令 δ = min ( δ 1 , δ 2 ) 。 \delta = \min(\delta_1, \delta_2)\mathclose{\text{。}} δ = min ( δ 1 , δ 2 ) 。 每一个 x x x 与 0 < ∣ x − a ∣ < δ 0 < \abs{x - a} < \delta 0 < ∣ x − a ∣ < δ 满足 a − δ 1 < x < a a - \delta_1 < x < a a − δ 1 < x < a 或 a < x < a + δ 2 , a < x < a + \delta_2\mathclose{\text{,}} a < x < a + δ 2 , 因此 ∣ f ( x ) − L ∣ < ε 。 \abs{f(x) - L} < \varepsilon\mathclose{\text{。}} ∣ f ( x ) − L ∣ < ε 。
∎
注意
词语的顺序很重要。“对于每一个 ε \varepsilon ε 存在一个 δ \delta δ ” 允许 δ \delta δ 依赖于 ε 。 \varepsilon\mathclose{\text{。}} ε 。 "存在一个 δ \delta δ 对每一个 ε \varepsilon ε 成立" 表示更多:此时 ∣ f ( x ) − L ∣ \abs{f(x) - L} ∣ f ( x ) − L ∣ 小于每一个正数,因此 f ( x ) = L f(x) = L f ( x ) = L 对每一个 x x x 与 0 < ∣ x − a ∣ < δ 0 < \abs{x - a} < \delta 0 < ∣ x − a ∣ < δ 成立。赢得一轮并不能证明什么:δ = 0.1 \delta = 0.1 δ = 0.1 在 ε = 0.3 \varepsilon = 0.3 ε = 0.3 处对 3 x − 1 3x - 1 3 x − 1 回答 2,但一个证明必须对每一个 ε \varepsilon ε 回答,正如 δ = ε / 3 \delta = \varepsilon/3 δ = ε /3 所做的那样。
深入一步夹逼定理和极限法则的证明
第一次阅读可以跳过这个框。在每个证明中,ε > 0 \varepsilon > 0 ε > 0 是一个挑战,任务是找到一个获胜的 δ 。 \delta\mathclose{\text{。}} δ 。
夹逼定理。 假设 g ( x ) ≤ f ( x ) ≤ h ( x ) g(x) \le f(x) \le h(x) g ( x ) ≤ f ( x ) ≤ h ( x ) 对于 x ≠ a x \ne a x = a 在包含 a a a 的开区间内成立,并且 g ( x ) → L g(x) \to L g ( x ) → L 和 h ( x ) → L 。 h(x) \to L\mathclose{\text{。}} h ( x ) → L 。 选择 δ > 0 \delta > 0 δ > 0 足够小,使得 ( a − δ , a + δ ) (a - \delta, a + \delta) ( a − δ , a + δ ) 位于该区间内,并且 ∣ g ( x ) − L ∣ < ε \abs{g(x) - L} < \varepsilon ∣ g ( x ) − L ∣ < ε 和 ∣ h ( x ) − L ∣ < ε \abs{h(x) - L} < \varepsilon ∣ h ( x ) − L ∣ < ε 对于 0 < ∣ x − a ∣ < δ 0 < \abs{x - a} < \delta 0 < ∣ x − a ∣ < δ 成立(三个 δ \delta δ 中最小的那个将起作用)。对于这样的 x , x\mathclose{\text{,}} x ,
L − ε < g ( x ) ≤ f ( x ) ≤ h ( x ) < L + ε , L - \varepsilon < g(x) \le f(x) \le h(x) < L + \varepsilon, L − ε < g ( x ) ≤ f ( x ) ≤ h ( x ) < L + ε ,
所以 ∣ f ( x ) − L ∣ < ε 。 \abs{f(x) - L} < \varepsilon\mathclose{\text{。}} ∣ f ( x ) − L ∣ < ε 。
从这里开始,lim x → a f ( x ) = L \lim_{x\to a} f(x) = L lim x → a f ( x ) = L 和 lim x → a g ( x ) = M 。 \lim_{x\to a} g(x) = M\mathclose{\text{。}} lim x → a g ( x ) = M 。
和积法则。 挑战 f f f 与 ε / 2 : \varepsilon/2\mathclose{\text{:}} ε /2 : 存在一个 δ 1 > 0 , \delta_1 > 0\mathclose{\text{,}} δ 1 > 0 , 使得 ∣ f ( x ) − L ∣ < ε / 2 \abs{f(x) - L} < \varepsilon/2 ∣ f ( x ) − L ∣ < ε /2 每当 0 < ∣ x − a ∣ < δ 1 0 < \abs{x - a} < \delta_1 0 < ∣ x − a ∣ < δ 1 时成立。同样地,存在一个 δ 2 > 0 \delta_2 > 0 δ 2 > 0 对于 g 。 g\mathclose{\text{。}} g 。 令 δ = min ( δ 1 , δ 2 ) 。 \delta = \min(\delta_1, \delta_2)\mathclose{\text{。}} δ = min ( δ 1 , δ 2 ) 。 如果 0 < ∣ x − a ∣ < δ , 0 < \abs{x - a} < \delta\mathclose{\text{,}} 0 < ∣ x − a ∣ < δ , 两个不等式都成立,并且通过三角不等式
∣ ( f ( x ) + g ( x ) ) − ( L + M ) ∣ ≤ ∣ f ( x ) − L ∣ + ∣ g ( x ) − M ∣ < ε 2 + ε 2 = ε . \begin{aligned} &\abs{\big(f(x) + g(x)\big) - (L + M)} \\ &\quad\le \abs{f(x) - L} + \abs{g(x) - M} \\ &\quad< \frac{\varepsilon}{2} + \frac{\varepsilon}{2} = \varepsilon. \end{aligned} ( f ( x ) + g ( x ) ) − ( L + M ) ≤ ∣ f ( x ) − L ∣ + ∣ g ( x ) − M ∣ < 2 ε + 2 ε = ε .
乘积法则。 首先, g g g 在 a a a 附近保持有界:挑战 1 给出一个 δ 0 > 0 \delta_0 > 0 δ 0 > 0 使得 ∣ g ( x ) − M ∣ < 1 , \abs{g(x) - M} < 1\mathclose{\text{,}} ∣ g ( x ) − M ∣ < 1 , 因此 ∣ g ( x ) ∣ < ∣ M ∣ + 1 , \abs{g(x)} < \abs{M} + 1\mathclose{\text{,}} ∣ g ( x ) ∣ < ∣ M ∣ + 1 , 对于 0 < ∣ x − a ∣ < δ 0 。 0 < \abs{x - a} < \delta_0\mathclose{\text{。}} 0 < ∣ x − a ∣ < δ 0 。 接下来,
f ( x ) g ( x ) − L M = ( f ( x ) − L ) g ( x ) + L ( g ( x ) − M ) , \begin{aligned} &f(x)g(x) - LM \\ &\quad= \big(f(x) - L\big)g(x) + L\big(g(x) - M\big), \end{aligned} f ( x ) g ( x ) − L M = ( f ( x ) − L ) g ( x ) + L ( g ( x ) − M ) ,
所以,根据三角不等式,对于那些 x x x
∣ f ( x ) g ( x ) − L M ∣ ≤ ∣ f ( x ) − L ∣ ( ∣ M ∣ + 1 ) + ∣ L ∣ ∣ g ( x ) − M ∣ . \begin{aligned} &\abs{f(x)g(x) - LM} \\ &\quad\le \abs{f(x) - L}\big(\abs{M} + 1\big) \\ &\qquad + \abs{L}\,\abs{g(x) - M}. \end{aligned} ∣ f ( x ) g ( x ) − L M ∣ ≤ ∣ f ( x ) − L ∣ ( ∣ M ∣ + 1 ) + ∣ L ∣ ∣ g ( x ) − M ∣ .
现在选择 δ ≤ δ 0 \delta \le \delta_0 δ ≤ δ 0 足够小,使得 ∣ f ( x ) − L ∣ < ε 2 ( ∣ M ∣ + 1 ) \abs{f(x) - L} < \dfrac{\varepsilon}{2(\abs{M} + 1)} ∣ f ( x ) − L ∣ < 2 ( ∣ M ∣ + 1 ) ε 和 ∣ g ( x ) − M ∣ < ε 2 ( ∣ L ∣ + 1 ) \abs{g(x) - M} < \dfrac{\varepsilon}{2(\abs{L} + 1)} ∣ g ( x ) − M ∣ < 2 ( ∣ L ∣ + 1 ) ε 对于 0 < ∣ x − a ∣ < δ 。 0 < \abs{x - a} < \delta\mathclose{\text{。}} 0 < ∣ x − a ∣ < δ 。 然后
∣ f ( x ) g ( x ) − L M ∣ < ε 2 + ∣ L ∣ ∣ L ∣ + 1 ⋅ ε 2 < ε 2 + ε 2 = ε . \begin{aligned} \abs{f(x)g(x) - LM} &< \frac{\varepsilon}{2} + \frac{\abs{L}}{\abs{L} + 1}\cdot\frac{\varepsilon}{2} \\ &< \frac{\varepsilon}{2} + \frac{\varepsilon}{2} = \varepsilon. \end{aligned} ∣ f ( x ) g ( x ) − L M ∣ < 2 ε + ∣ L ∣ + 1 ∣ L ∣ ⋅ 2 ε < 2 ε + 2 ε = ε .
商法则。 由于 f / g = f ⋅ ( 1 / g ) , f/g = f \cdot (1/g)\mathclose{\text{,}} f / g = f ⋅ ( 1/ g ) , 乘积法则将此简化为 lim x → a 1 / g ( x ) = 1 / M , \lim_{x\to a} 1/g(x) = 1/M\mathclose{\text{,}} lim x → a 1/ g ( x ) = 1/ M , 对于 M ≠ 0 。 M \ne 0\mathclose{\text{。}} M = 0 。 挑战 ∣ M ∣ / 2 \abs{M}/2 ∣ M ∣ /2 给出了一个 δ 0 > 0 , \delta_0 > 0\mathclose{\text{,}} δ 0 > 0 , 其中 ∣ g ( x ) − M ∣ < ∣ M ∣ / 2 \abs{g(x) - M} < \abs{M}/2 ∣ g ( x ) − M ∣ < ∣ M ∣ /2 对于 0 < ∣ x − a ∣ < δ 0 。 0 < \abs{x - a} < \delta_0\mathclose{\text{。}} 0 < ∣ x − a ∣ < δ 0 。 对于那些 x , x\mathclose{\text{,}} x , 三角不等式 ∣ M ∣ ≤ ∣ M − g ( x ) ∣ + ∣ g ( x ) ∣ \abs{M} \le \abs{M - g(x)} + \abs{g(x)} ∣ M ∣ ≤ ∣ M − g ( x ) ∣ + ∣ g ( x ) ∣ 给出 ∣ g ( x ) ∣ > ∣ M ∣ / 2 ; \abs{g(x)} > \abs{M}/2\mathclose{\text{;}} ∣ g ( x ) ∣ > ∣ M ∣ /2 ; 特别是 g ( x ) ≠ 0 , g(x) \ne 0\mathclose{\text{,}} g ( x ) = 0 , 因此 1 / g ( x ) 1/g(x) 1/ g ( x ) 是定义的,并且
∣ 1 g ( x ) − 1 M ∣ = ∣ M − g ( x ) ∣ ∣ g ( x ) ∣ ∣ M ∣ ≤ 2 ∣ M ∣ 2 ∣ g ( x ) − M ∣ . \begin{aligned} \abs{\frac{1}{g(x)} - \frac1M} &= \frac{\abs{M - g(x)}}{\abs{g(x)}\,\abs{M}} \\ &\le \frac{2}{\abs{M}^2}\,\abs{g(x) - M}. \end{aligned} g ( x ) 1 − M 1 = ∣ g ( x ) ∣ ∣ M ∣ ∣ M − g ( x ) ∣ ≤ ∣ M ∣ 2 2 ∣ g ( x ) − M ∣ .
选择 δ ≤ δ 0 \delta \le \delta_0 δ ≤ δ 0 足够小,使得 ∣ g ( x ) − M ∣ < 1 2 ε ∣ M ∣ 2 \abs{g(x) - M} < \tfrac12\varepsilon\abs{M}^2 ∣ g ( x ) − M ∣ < 2 1 ε ∣ M ∣ 2 对于 0 < ∣ x − a ∣ < δ ; 0 < \abs{x - a} < \delta\mathclose{\text{;}} 0 < ∣ x − a ∣ < δ ; 然后 ∣ 1 / g ( x ) − 1 / M ∣ < ε 。 \abs{1/g(x) - 1/M} < \varepsilon\mathclose{\text{。}} ∣ 1/ g ( x ) − 1/ M ∣ < ε 。
测试一个 δ
第 2.7 节的探索者决定一个 δ \delta δ 是否获胜,通过在带状区域的成千上万个点上计算 f 。 f\mathclose{\text{。}} f 。 同样的测试用几行 Python 代码和 NumPy 即可实现。
动手计算在许多点上测试一个 δ
函数 wins 在许多满足 0 < ∣ x − a ∣ < δ 0 < \abs{x - a} < \delta 0 < ∣ x − a ∣ < δ 的点 x x x 上检查 ∣ f ( x ) − L ∣ < ε 。 \abs{f(x) - L} < \varepsilon\mathclose{\text{。}} ∣ f ( x ) − L ∣ < ε 。 这里针对挑战 ε = 0.5 \varepsilon = 0.5 ε = 0.5 检验例 2.13 的抛物线:
Python 复制
import numpy as np
def wins (f, a, L, eps, delta, n=200_000 ):
# n points strictly inside (a - delta, a + delta), none of them equal to a
xs = a + delta*np.linspace (-1 , 1 , n + 2 )[1 :-1 ]
xs = xs[xs != a]
return bool (np.all (np.abs (f (xs) - L) < eps))
for delta in [0.1 , 0.0825 , 0.082 , 1 /14 ]:
print (f"delta = {delta:.4f}: {wins(lambda x: x**2, 3, 9, 0.5, delta)}" )
输出
delta = 0.1000: False
delta = 0.0825: False
delta = 0.0820: True
delta = 0.0714: True
该测试与例 2.13 一致:证明中的 δ = 1 14 ≈ 0.0714 \delta = \tfrac{1}{14} \approx 0.0714 δ = 14 1 ≈ 0.0714 赢得胜利,最佳 δ \delta δ 值介于 0.082 和 0.0825 之间;它为 9.5 − 3 ≈ 0.0822 。 \sqrt{9.5} - 3 \approx 0.0822\mathclose{\text{。}} 9.5 − 3 ≈ 0.0822 。 但计算机测试,如同表格,一次只检查有限多个点和一个 ε , \varepsilon\mathclose{\text{,}} ε , 因此它只能提供证据,而非证明:像 sin ( 1 / x ) \sin(1/x) sin ( 1/ x ) 这样的函数可能在被测试的点之间表现出不良行为。例 2.13 的证明同时覆盖了所有 x x x 和所有 ε 。 \varepsilon\mathclose{\text{。}} ε 。
消去
在模块 1 结束时,Python 计算出自由下落物体在 [ 1 , 1.001 ] [1, 1.001] [ 1 , 1.001 ] 期间的平均速度为 9.804899999998895,其中精确值为 9.8049,而该级数承诺会给出解释。计算机将实数存储为 浮点数 :以二进制形式存储,四舍五入到大约 16 位有效十进制数字。因此,几乎每个数都被存储为略微错误的值,通常是在第 16 位(甚至像 4.9 这样的数也没有精确的二进制表示)。这种误差在两个几乎相等的数相减时才变得有害。这里 s ( 1.001 ) = 4.9098049 s(1.001) = 4.9098049 s ( 1.001 ) = 4.9098049 和 s ( 1 ) = 4.9 s(1) = 4.9 s ( 1 ) = 4.9 在前三位数字上一致;在它们的差值 0.0098049 中,这些数字被抵消了,而原本在 s ( 1.001 ) s(1.001) s ( 1.001 ) 的第 16 位的舍入误差现在出现在结果的第 13 位。除以 h = 0.001 h = 0.001 h = 0.001 并不能修复这些误差。当两个几乎相等的数相减时,导致精度损失的现象称为 消去误差 。两个数越接近,被抵消的位数越多:两个在前 k k k 位上一致的数相减,会损失大约 k k k 位的精度。
动手计算浮点数中的消去
首先是一个下落的球体,其h h h 收缩程度比模块1中更为剧烈:
Python 复制
def s (t):
return 4.9 *t**2
for h in [1e-3 , 1e-6 , 1e-9 , 1e-12 , 1e-15 ]:
print (h, (s (1 + h) - s (1 ))/h)
输出
0.001 9.804899999998895
1e-06 9.80000490002908
1e-09 9.800000810855636
1e-12 9.801048861390882
1e-15 10.658141036401503
精确的值是9.8 + 4.9 h : 9.8 + 4.9h\mathclose{\text{:}} 9.8 + 4.9 h : 9.8049,9.8000049,9.8000000049,依此类推。随着h h h 收缩,s ( 1 + h ) s(1 + h) s ( 1 + h ) 和s ( 1 ) s(1) s ( 1 ) 共享更多位数,更多的数字被抵消,误差也随之增大,从大约10 − 12 10^{-12} 1 0 − 12 在h = 10 − 3 h = 10^{-3} h = 1 0 − 3 时,到大约10 − 3 10^{-3} 1 0 − 3 在h = 10 − 12 h = 10^{-12} h = 1 0 − 12 时;在h = 10 − 15 h = 10^{-15} h = 1 0 − 15 时,答案变为10.66而不是9.8。更小的h h h 有助于公式,但会损害计算,模块4找到了最佳的折中方案。
现在是1 − cos x x 2 , \dfrac{1 - \cos x}{x^2}\mathclose{\text{,}} x 2 1 − cos x , 其在0处的极限是1 2 , \tfrac12\mathclose{\text{,}} 2 1 , 如下文所示。第二列从重新排列的公式计算相同的函数:
Python 复制
import math
for k in range (1 , 10 ):
x = 10.0 **(-k)
direct = (1 - math.cos (x))/x**2
rearranged = (math.sin (x)/x)**2 /(1 + math.cos (x))
print (f"x = {x:.0e}: {direct:.12f} {rearranged:.12f}" )
输出
x = 1e-01: 0.499583472197 0.499583472197
x = 1e-02: 0.499995833347 0.499995833347
x = 1e-03: 0.499999958326 0.499999958333
x = 1e-04: 0.499999996961 0.499999999583
x = 1e-05: 0.500000041370 0.499999999996
x = 1e-06: 0.500044450291 0.500000000000
x = 1e-07: 0.499600361081 0.500000000000
x = 1e-08: 0.000000000000 0.500000000000
x = 1e-09: 0.000000000000 0.500000000000
两列在x = 0.1 x = 0.1 x = 0.1 和x = 0.01 x = 0.01 x = 0.01 时一致。然后直接公式开始偏离:在x = 10 − 6 x = 10^{-6} x = 1 0 − 6 时,误差大约为4 × 10 − 5 , 4 \times 10^{-5}\mathclose{\text{,}} 4 × 1 0 − 5 , 从x = 10 − 8 x = 10^{-8} x = 1 0 − 8 开始它给出0,这是一个完全错误的答案。原因如下:
Python 复制
print (math.cos (1e-8 ), math.cos (1e-8 ) == 1 )
cos ( 10 − 8 ) = 1 − 5 × 10 − 17 + … \cos(10^{-8}) = 1 - 5 \times 10^{-17} + \dots cos ( 1 0 − 8 ) = 1 − 5 × 1 0 − 17 + … 比任何其他浮点数更接近 1,因此计算机存储的是精确的 1,而 1 − cos x 1 - \cos x 1 − cos x 输出为 0:每一位数字都相互抵消了。重新排列的公式来源于定理 2.6 的证明。将分子和分母同时乘以 1 + cos x , 1 + \cos x\mathclose{\text{,}} 1 + cos x , 它在 ∣ x ∣ < π \abs{x} < \pi ∣ x ∣ < π 时为正。对于 0 < ∣ x ∣ < π , 0 < \abs{x} < \pi\mathclose{\text{,}} 0 < ∣ x ∣ < π ,
1 − cos x x 2 = 1 − cos 2 x x 2 ( 1 + cos x ) = ( sin x x ) 2 ⋅ 1 1 + cos x . \begin{aligned} \frac{1 - \cos x}{x^2} &= \frac{1 - \cos^2 x}{x^2(1 + \cos x)} \\ &= \Big(\frac{\sin x}{x}\Big)^2\cdot\frac{1}{1 + \cos x}. \end{aligned} x 2 1 − cos x = x 2 ( 1 + cos x ) 1 − cos 2 x = ( x sin x ) 2 ⋅ 1 + cos x 1 .
该公式并未减去任何内容,且其输出的每一位数字都是正确的。它还给出了极限:根据定理 2.5 和例 2.10,它趋近于 1 2 ⋅ 1 2 = 1 2 。 1^2 \cdot \tfrac12 = \tfrac12\mathclose{\text{。}} 1 2 ⋅ 2 1 = 2 1 。
练习 2.11 提供了另一个会欺骗计算机的公式及其解决方法。
使用 SymPy 计算极限
动手计算使用 SymPy 计算极限
SymPy 用 sp.limit(f, x, a, '+-') 精确计算极限。它的参数是表达式、变量、点和侧边:'+-' 要求的是定义 2.1 中的双边极限,x x x 从两侧趋近于 a 。 a\mathclose{\text{。}} a 。
Python 复制
import sympy as sp
x = sp.symbols ('x' )
print (sp.limit ((x**2 - 1 )/(x - 1 ), x, 1 , '+-' ))
print (sp.limit ((sp.sqrt (x + 9 ) - 3 )/x, x, 0 , '+-' ))
print (sp.limit (sp.sin (x)/x, x, 0 , '+-' ))
print (sp.limit ((1 - sp.cos (x))/x**2 , x, 0 , '+-' ))
这些是第2.1节,例2.7,定理2.5以及上面的框中的极限,它们是精确的:1/6,不是0.1666…。对于单侧极限,写'-'(从左侧)或'+'(从右侧)代替。省略侧边,会发生一些令人惊讶的事情:
Python 复制
f = sp.Abs (x)/x
print (sp.limit (f, x, 0 , '-' ), sp.limit (f, x, 0 , '+' ))
print (sp.limit (f, x, 0 ))
看第二行:没有第四个参数时,SymPy计算的是右侧极限,并且没有提及左侧。两侧极限不存在,并且使用'+-'时,SymPy会说明这一点:
Python 故意出错的例子
print (sp.limit (f, x, 0 , '+-' ))
错误
ValueError: The limit does not exist since left hand limit = -1 and right hand limit = 1
SymPy解释了为什么极限不存在。对于另外两种失败的方式,它描述了值的行为:
Python 复制
print (sp.limit (1 /x**2 , x, 0 , '+-' ))
print (sp.limit (sp.sin (1 /x), x, 0 , '+-' ))
oo,两个字母o,是SymPy的∞ \infty ∞ (sp.oo在程序中):1 / x 2 1/x^2 1/ x 2 的值会超过每一个界限,模块 3将其写为lim x → 0 1 / x 2 = ∞ \lim_{x\to0} 1/x^2 = \infty lim x → 0 1/ x 2 = ∞ 的爆炸。AccumBounds(-1, 1),即“积累界限”,表示在0附近,sin ( 1 / x ) \sin(1/x) sin ( 1/ x ) 的值在− 1 -1 − 1 和1之间不断摆动而无法稳定:即例2.3中的振荡。这两种情况都不符合定义2.1中的极限意义。
注意
sp.limit(f, x, a) 是一个单侧极限:如果没有第四个参数,SymPy 默认从右侧趋近。因此 sp.limit(sp.Abs(x)/x, x, 0) 给出 1,sp.limit(1/x, x, 0) 给出 oo,尽管这两个函数在 0 处都没有极限:∣ x ∣ / x \abs{x}/x ∣ x ∣ / x 在那里跳跃,而 1 / x 1/x 1/ x 在 0 的右侧极大正数,左侧极大负数。当你想表示定义 2.1 中的极限时,应使用 '+-';对于 1 / x , 1/x\mathclose{\text{,}} 1/ x , SymPy 则返回 zoo,这是它表示无限值但无确定符号的符号。
lim x → a f ( x ) = L \lim_{x\to a} f(x) = L lim x → a f ( x ) = L 表示,通过让 x x x 足够接近 a a a (但不等于 a ), a\mathclose{\text{),}} a ), 可以使 f ( x ) f(x) f ( x ) 任意接近 L 。 L\mathclose{\text{。}} L 。 如果存在,f ( a ) f(a) f ( a ) 的值并不起作用。
表格和图像可以提示极限,但可能产生误导;代数和证明可以确认极限。
单侧极限 x → a − x \to a^- x → a − 和 x → a + x \to a^+ x → a + 仅考虑一侧。极限存在的条件是当且仅当两个单侧极限都存在且相等。
极限可能因跳跃、无穷大或震荡而不存在。
极限法则给出了和、差、常数倍、积、商(当分母的极限不为0时)、幂和根的极限。对于多项式,以及分母在 a a a 处不为0的有理函数,极限是直接代入的值。
0 / 0 0/0 0/0 是一个不确定形式,提示需要做更多工作:因式分解并约分,用共轭有理化,或合并分数,然后代入。
夹逼定理将一个函数夹在两个具有相同极限的函数之间。在单位圆的面积中,它证明了 lim θ → 0 sin θ θ = 1 \lim_{\theta\to0}\dfrac{\sin\theta}{\theta} = 1 lim θ → 0 θ sin θ = 1 和 lim θ → 0 1 − cos θ θ = 0 , \lim_{\theta\to0}\dfrac{1 - \cos\theta}{\theta} = 0\mathclose{\text{,}} lim θ → 0 θ 1 − cos θ = 0 , 其中 θ \theta θ 以弧度为单位。
精确地说,lim x → a f ( x ) = L \lim_{x\to a} f(x) = L lim x → a f ( x ) = L 表示对于每一个 ε > 0 , \varepsilon > 0\mathclose{\text{,}} ε > 0 , 存在一个 δ > 0 , \delta > 0\mathclose{\text{,}} δ > 0 , 使得 0 < ∣ x − a ∣ < δ 0 < \abs{x - a} < \delta 0 < ∣ x − a ∣ < δ 推出 ∣ f ( x ) − L ∣ < ε 。 \abs{f(x) - L} < \varepsilon\mathclose{\text{。}} ∣ f ( x ) − L ∣ < ε 。 一个证明是一个规则,将任何 ε \varepsilon ε 转换为一个成功的 δ ; \delta\mathclose{\text{;}} δ ; 要反驳一个极限,找到一个 ε , \varepsilon\mathclose{\text{,}} ε , 使得没有 δ \delta δ 能够回答。
浮点数保留大约16位有效数字,相减几乎相等的数会丢失这些数字:抵消误差。重新排列公式可以避免这种情况。SymPy 的 sp.limit 可以精确计算极限;如果没有第四个参数,它计算的是右边的极限,因此要写 '+-' 来得到双边极限。
练习 2.1 ★ 阅读分段函数
设
f ( x ) = { 2 x + 1 if x < 1 , 5 if x = 1 , 4 − x 2 if x > 1. f(x) = \begin{cases} 2x + 1 & \text{if } x < 1, \\ 5 & \text{if } x = 1, \\ 4 - x^2 & \text{if } x > 1. \end{cases} f ( x ) = ⎩ ⎨ ⎧ 2 x + 1 5 4 − x 2 if x < 1 , if x = 1 , if x > 1.
(a) 求 lim x → 1 − f ( x ) \lim_{x\to1^-} f(x) lim x → 1 − f ( x ) 和 lim x → 1 + f ( x ) 。 \lim_{x\to1^+} f(x)\mathclose{\text{。}} lim x → 1 + f ( x ) 。 lim x → 1 f ( x ) \lim_{x\to1} f(x) lim x → 1 f ( x ) 是否存在?
(b) 在 1 处的极限是否等于 f ( 1 ) ? f(1)\mathclose{\text{?}} f ( 1 ) ? 描述 x = 1 x = 1 x = 1 附近的图像。
(c) 求 lim x → − 2 f ( x ) \lim_{x\to-2} f(x) lim x → − 2 f ( x ) 和 lim x → 2 f ( x ) 。 \lim_{x\to2} f(x)\mathclose{\text{。}} lim x → 2 f ( x ) 。
查看解答✓ 已检验
(a) 在 1 的左侧,f ( x ) = 2 x + 1 , f(x) = 2x + 1\mathclose{\text{,}} f ( x ) = 2 x + 1 , 其趋近于 2 ⋅ 1 + 1 = 3 2 \cdot 1 + 1 = 3 2 ⋅ 1 + 1 = 3 (定理 2.3 对一侧,以及线性公式中的直接代入)。在右侧,f ( x ) = 4 − x 2 , f(x) = 4 - x^2\mathclose{\text{,}} f ( x ) = 4 − x 2 , 其趋近于 4 − 1 = 3 。 4 - 1 = 3\mathclose{\text{。}} 4 − 1 = 3 。 两个单侧极限都是 3,因此 lim x → 1 f ( x ) = 3 。 \lim_{x\to1} f(x) = 3\mathclose{\text{。}} lim x → 1 f ( x ) = 3 。
(b) 否:f ( 1 ) = 5 , f(1) = 5\mathclose{\text{,}} f ( 1 ) = 5 , 而极限是 3。图像在左侧是直线 y = 2 x + 1 , y = 2x + 1\mathclose{\text{,}} y = 2 x + 1 , 在右侧是抛物线 y = 4 − x 2 。 y = 4 - x^2\mathclose{\text{。}} y = 4 − x 2 。 它们在 ( 1 , 3 ) (1, 3) ( 1 , 3 ) 处相交,该点不在图像上(空心点),图像在 ( 1 , 5 ) (1, 5) ( 1 , 5 ) 处有一个实心点,位于空洞之上。极限忽略该点。
(c) 在包含 ( − ∞ , 1 ) (-\infty, 1) ( − ∞ , 1 ) 的开区间 − 2 -2 − 2 上,f ( x ) = 2 x + 1 ; f(x) = 2x + 1\mathclose{\text{;}} f ( x ) = 2 x + 1 ; 因此根据定理 2.3 和直接代入,lim x → − 2 f ( x ) = 2 ( − 2 ) + 1 = − 3 。 \lim_{x\to-2} f(x) = 2(-2) + 1 = -3\mathclose{\text{。}} lim x → − 2 f ( x ) = 2 ( − 2 ) + 1 = − 3 。 在 ( 1 , ∞ ) (1, \infty) ( 1 , ∞ ) 上,包含 2,f ( x ) = 4 − x 2 , f(x) = 4 - x^2\mathclose{\text{,}} f ( x ) = 4 − x 2 , 因此 lim x → 2 f ( x ) = 4 − 4 = 0 。 \lim_{x\to2} f(x) = 4 - 4 = 0\mathclose{\text{。}} lim x → 2 f ( x ) = 4 − 4 = 0 。
练习 2.2 ★ 极限法则的应用
假设 lim x → a f ( x ) = 4 \lim_{x\to a} f(x) = 4 lim x → a f ( x ) = 4 和 lim x → a g ( x ) = − 2 。 \lim_{x\to a} g(x) = -2\mathclose{\text{。}} lim x → a g ( x ) = − 2 。 求每个极限,指出你使用的法则,或解释为何法则无法给出该结果。
(a) lim x → a ( 3 f ( x ) − g ( x ) ) \lim_{x\to a}\big(3f(x) - g(x)\big) lim x → a ( 3 f ( x ) − g ( x ) )
(b) lim x → a f ( x ) ( g ( x ) ) 2 \lim_{x\to a} f(x)\big(g(x)\big)^2 lim x → a f ( x ) ( g ( x ) ) 2
(c) lim x → a f ( x ) g ( x ) \lim_{x\to a}\dfrac{\sqrt{f(x)}}{g(x)} lim x → a g ( x ) f ( x )
(d) lim x → a f ( x ) f ( x ) + 2 g ( x ) \lim_{x\to a}\dfrac{f(x)}{f(x) + 2g(x)} lim x → a f ( x ) + 2 g ( x ) f ( x )
查看解答✓ 已检验
(a) 根据差和常数倍法则,极限是 3 ⋅ 4 − ( − 2 ) = 14 。 3 \cdot 4 - (-2) = 14\mathclose{\text{。}} 3 ⋅ 4 − ( − 2 ) = 14 。
(b) 根据幂法则,( g ( x ) ) 2 → ( − 2 ) 2 = 4 ; \big(g(x)\big)^2 \to (-2)^2 = 4\mathclose{\text{;}} ( g ( x ) ) 2 → ( − 2 ) 2 = 4 ; 然后根据乘积法则,极限是 4 ⋅ 4 = 16 。 4 \cdot 4 = 16\mathclose{\text{。}} 4 ⋅ 4 = 16 。
(c) 根据根法则(f f f 的极限是 4 > 0 ), 4 > 0\mathclose{\text{),}} 4 > 0 ), f ( x ) → 4 = 2 。 \sqrt{f(x)} \to \sqrt4 = 2\mathclose{\text{。}} f ( x ) → 4 = 2 。 分母的极限是 − 2 , -2\mathclose{\text{,}} − 2 , 不是 0,因此根据商法则,极限是 2 / ( − 2 ) = − 1 。 2/(-2) = -1\mathclose{\text{。}} 2/ ( − 2 ) = − 1 。
(d) 分母趋于 4 + 2 ( − 2 ) = 0 , 4 + 2(-2) = 0\mathclose{\text{,}} 4 + 2 ( − 2 ) = 0 , 因此商法则不适用。事实上这个极限不存在。称商为 q ( x ) 。 q(x)\mathclose{\text{。}} q ( x ) 。 如果 q ( x ) q(x) q ( x ) 有一个极限 K , K\mathclose{\text{,}} K , 乘积法则将给出 f ( x ) = q ( x ) ( f ( x ) + 2 g ( x ) ) → K ⋅ 0 = 0 ; f(x) = q(x)\big(f(x) + 2g(x)\big) \to K \cdot 0 = 0\mathclose{\text{;}} f ( x ) = q ( x ) ( f ( x ) + 2 g ( x ) ) → K ⋅ 0 = 0 ; 但 f ( x ) → 4 。 f(x) \to 4\mathclose{\text{。}} f ( x ) → 4 。 例如, f ( x ) = 4 + x f(x) = 4 + x f ( x ) = 4 + x 和 g ( x ) = − 2 + x g(x) = -2 + x g ( x ) = − 2 + x 在 a = 0 a = 0 a = 0 处给出 q ( x ) = 4 + x 3 x , q(x) = \dfrac{4 + x}{3x}\mathclose{\text{,}} q ( x ) = 3 x 4 + x , 它在 0 处发散。
练习 2.3 ★ 极限是否存在?
求每个极限,或解释为什么不存在。
(a) lim x → 2 x 2 + x − 6 x − 2 \lim_{x\to2}\dfrac{x^2 + x - 6}{x - 2} lim x → 2 x − 2 x 2 + x − 6
(b) lim x → 0 1 x \lim_{x\to0}\dfrac1x lim x → 0 x 1
(c) lim x → 0 cos 1 x \lim_{x\to0}\cos\dfrac1x lim x → 0 cos x 1
(d) lim x → 0 x 2 cos 1 x \lim_{x\to0} x^2\cos\dfrac1x lim x → 0 x 2 cos x 1
然后 (e) 从值表中估计 lim x → 0 + x x 。 \lim_{x\to0^+} x^x\mathclose{\text{。}} lim x → 0 + x x 。 为什么这里只有右边的极限有意义?
查看解答✓ 已检验
(a) 代入得到 0 / 0 。 0/0\mathclose{\text{。}} 0/0 。 因式分解:x 2 + x − 6 = ( x − 2 ) ( x + 3 ) , x^2 + x - 6 = (x - 2)(x + 3)\mathclose{\text{,}} x 2 + x − 6 = ( x − 2 ) ( x + 3 ) , 因此对于 x ≠ 2 , x \ne 2\mathclose{\text{,}} x = 2 , 商为 x + 3 , x + 3\mathclose{\text{,}} x + 3 , 极限为 2 + 3 = 5 。 2 + 3 = 5\mathclose{\text{。}} 2 + 3 = 5 。
(b) 它不存在:出现爆破现象。在 0 的右侧,1 / x 1/x 1/ x 是一个非常大的正数 (1 / 0.001 = 1000 ); 1/0.001 = 1000\mathclose{\text{);}} 1/0.001 = 1000 ); 在左侧,它是一个非常大的负数 (1 / ( − 0.001 ) = − 1000 ). 1/(-0.001) = -1000\mathclose{\text{).}} 1/ ( − 0.001 ) = − 1000 ). 关于 1 / x 2 1/x^2 1/ x 2 在第 2.3 节中,无论你命名哪个数 L , L\mathclose{\text{,}} L , 1 / x > ∣ L ∣ + 1 1/x > \abs{L} + 1 1/ x > ∣ L ∣ + 1 对于 0 < x < 1 / ( ∣ L ∣ + 1 ) , 0 < x < 1/(\abs{L} + 1)\mathclose{\text{,}} 0 < x < 1/ ( ∣ L ∣ + 1 ) , 所以接近 0 的地方都有值与 L L L 相距超过 1:没有数是极限。
(c) 它不存在:出现震荡现象。cos ( 1 / x ) = 1 \cos(1/x) = 1 cos ( 1/ x ) = 1 在 x = 1 / ( 2 k π ) x = 1/(2k\pi) x = 1/ ( 2 k π ) 处和 cos ( 1 / x ) = − 1 \cos(1/x) = -1 cos ( 1/ x ) = − 1 在 x = 1 / ( ( 2 k + 1 ) π ) x = 1/\big((2k + 1)\pi\big) x = 1/ ( ( 2 k + 1 ) π ) 处,对于 k = 1 , 2 , 3 , … , k = 1, 2, 3, \dots\mathclose{\text{,}} k = 1 , 2 , 3 , … , 并且这些点可以无限接近 0。如同例 2.3 中那样,值 1 和 − 1 -1 − 1 相距 2,不能同时都在某个数的 1 2 \tfrac12 2 1 邻域内。
(d) 它是 0,根据夹逼定理:∣ cos ( 1 / x ) ∣ ≤ 1 , \abs{\cos(1/x)} \le 1\mathclose{\text{,}} ∣ cos ( 1/ x ) ∣ ≤ 1 , 因此 − x 2 ≤ x 2 cos ( 1 / x ) ≤ x 2 -x^2 \le x^2\cos(1/x) \le x^2 − x 2 ≤ x 2 cos ( 1/ x ) ≤ x 2 对于 x ≠ 0 , x \ne 0\mathclose{\text{,}} x = 0 , 并且两个界都趋近于 0。
(e) x x x^x x x 是一个具有变量指数的幂,需要一个正底数(第 1.4 节 )。因此 x x x^x x x 对于每一个 x > 0 x > 0 x > 0 都有定义,但在 0 左侧的任何区间上都没有定义(例如在 x = − 1 2 x = -\tfrac12 x = − 2 1 处,它将是 1 / − 1 / 2 ), 1/\sqrt{-1/2}\mathclose{\text{),}} 1/ − 1/2 ), 只有从右侧的极限才有意义。其在 0 附近的值:
x x x x x x^x x x 0.1 0.1 0.1 0.794328 0.794328 0.794328 0.01 0.01 0.01 0.954993 0.954993 0.954993 0.001 0.001 0.001 0.993116 0.993116 0.993116 0.0001 0.0001 0.0001 0.999079 0.999079 0.999079 0.00001 0.00001 0.00001 0.999885 0.999885 0.999885
这些值趋向于 1,一个合理的猜测是 lim x → 0 + x x = 1 。 \lim_{x\to0^+} x^x = 1\mathclose{\text{。}} lim x → 0 + x x = 1 。 它们上升得缓慢:在 x = 0.1 x = 0.1 x = 0.1 处,值仍然低于 0.8,因此只有非常接近 0 的值才能显示出它们的趋向。表格不能证明这个猜测;模块 7 会证明。
练习 2.4 ★★ 三种代数技巧
求每个极限,展示代数过程。
(a) lim x → − 2 x 2 + 5 x + 6 x 2 − 4 \lim_{x\to-2}\dfrac{x^2 + 5x + 6}{x^2 - 4} lim x → − 2 x 2 − 4 x 2 + 5 x + 6
(b) lim x → 9 x − 9 x − 3 \lim_{x\to9}\dfrac{x - 9}{\sqrt x - 3} lim x → 9 x − 3 x − 9
(c) lim h → 0 1 h ( 1 ( 1 + h ) 2 − 1 ) \lim_{h\to0}\dfrac{1}{h}\Big(\dfrac{1}{(1 + h)^2} - 1\Big) lim h → 0 h 1 ( ( 1 + h ) 2 1 − 1 )
查看解答✓ 已检验
(a) 在 x = − 2 x = -2 x = − 2 处,分子是 4 − 10 + 6 = 0 , 4 - 10 + 6 = 0\mathclose{\text{,}} 4 − 10 + 6 = 0 , 分母是 4 − 4 = 0 。 4 - 4 = 0\mathclose{\text{。}} 4 − 4 = 0 。 因式分解:x 2 + 5 x + 6 = ( x + 2 ) ( x + 3 ) x^2 + 5x + 6 = (x + 2)(x + 3) x 2 + 5 x + 6 = ( x + 2 ) ( x + 3 ) 和 x 2 − 4 = ( x + 2 ) ( x − 2 ) 。 x^2 - 4 = (x + 2)(x - 2)\mathclose{\text{。}} x 2 − 4 = ( x + 2 ) ( x − 2 ) 。 对于 x ≠ − 2 x \ne -2 x = − 2 (以及 x ≠ 2 ), x \ne 2\mathclose{\text{),}} x = 2 ),
x 2 + 5 x + 6 x 2 − 4 = x + 3 x − 2 → − 2 + 3 − 2 − 2 = − 1 4 . \begin{aligned} \frac{x^2 + 5x + 6}{x^2 - 4} &= \frac{x + 3}{x - 2} \\ &\to \frac{-2 + 3}{-2 - 2} = -\frac14. \end{aligned} x 2 − 4 x 2 + 5 x + 6 = x − 2 x + 3 → − 2 − 2 − 2 + 3 = − 4 1 .
(b) 替换得到 0 / 0 。 0/0\mathclose{\text{。}} 0/0 。 将分子和分母乘以共轭 x + 3 , \sqrt x + 3\mathclose{\text{,}} x + 3 , 或者注意到对于 x ≥ 0 , x \ge 0\mathclose{\text{,}} x ≥ 0 , x − 9 = ( x − 3 ) ( x + 3 ) 。 x - 9 = \big(\sqrt x - 3\big)\big(\sqrt x + 3\big)\mathclose{\text{。}} x − 9 = ( x − 3 ) ( x + 3 ) 。 无论哪种方式,对于 x ≥ 0 x \ge 0 x ≥ 0 中的 x ≠ 9 , x \ne 9\mathclose{\text{,}} x = 9 ,
x − 9 x − 3 = x + 3 → 9 + 3 = 6 \begin{aligned} \frac{x - 9}{\sqrt x - 3} &= \sqrt x + 3 \\ &\to \sqrt9 + 3 = 6 \end{aligned} x − 3 x − 9 = x + 3 → 9 + 3 = 6
根据根与和的法则。
(c) 替换得到 0 / 0 。 0/0\mathclose{\text{。}} 0/0 。 将括号放在公共分母 ( 1 + h ) 2 (1 + h)^2 ( 1 + h ) 2 上并展开:
1 ( 1 + h ) 2 − 1 = 1 − ( 1 + h ) 2 ( 1 + h ) 2 = − 2 h − h 2 ( 1 + h ) 2 = − h ( 2 + h ) ( 1 + h ) 2 . \begin{aligned} \frac{1}{(1 + h)^2} - 1 &= \frac{1 - (1 + h)^2}{(1 + h)^2} \\ &= \frac{-2h - h^2}{(1 + h)^2} \\ &= \frac{-h(2 + h)}{(1 + h)^2}. \end{aligned} ( 1 + h ) 2 1 − 1 = ( 1 + h ) 2 1 − ( 1 + h ) 2 = ( 1 + h ) 2 − 2 h − h 2 = ( 1 + h ) 2 − h ( 2 + h ) .
因此,对于 h ≠ 0 h \ne 0 h = 0 (和 h ≠ − 1 ), h \ne -1\mathclose{\text{),}} h = − 1 ),
1 h ( 1 ( 1 + h ) 2 − 1 ) = − 2 + h ( 1 + h ) 2 → − 2 1 = − 2. \begin{aligned} \frac{1}{h}\Big(\frac{1}{(1 + h)^2} - 1\Big) &= -\frac{2 + h}{(1 + h)^2} \\ &\to -\frac{2}{1} = -2. \end{aligned} h 1 ( ( 1 + h ) 2 1 − 1 ) = − ( 1 + h ) 2 2 + h → − 1 2 = − 2.
这是 1 / x 2 1/x^2 1/ x 2 在 x = 1 x = 1 x = 1 处的变化率。
练习 2.5 ★★ 三角函数极限
以 x x x 弧度为单位,求
(a) lim x → 0 sin 5 x 2 x \lim_{x\to0}\dfrac{\sin 5x}{2x} lim x → 0 2 x sin 5 x
(b) lim x → 0 sin 3 x sin 2 x \lim_{x\to0}\dfrac{\sin 3x}{\sin 2x} lim x → 0 sin 2 x sin 3 x
(c) lim x → 0 1 − cos x x sin x \lim_{x\to0}\dfrac{1 - \cos x}{x\sin x} lim x → 0 x sin x 1 − cos x
查看解答✓ 已检验
(a) 使角度出现在下方:sin 5 x 2 x = 5 2 ⋅ sin 5 x 5 x 。 \dfrac{\sin 5x}{2x} = \dfrac52\cdot\dfrac{\sin 5x}{5x}\mathclose{\text{。}} 2 x sin 5 x = 2 5 ⋅ 5 x sin 5 x 。 如例 2.11 所示,sin 5 x 5 x → 1 , \dfrac{\sin 5x}{5x} \to 1\mathclose{\text{,}} 5 x sin 5 x → 1 , 因此极限是 5 2 。 \dfrac52\mathclose{\text{。}} 2 5 。
(b) 将分子和分母都除以 x , x\mathclose{\text{,}} x , 并将两者按 (a) 的方式整理:
sin 3 x sin 2 x = sin 3 x x sin 2 x x = 3 ⋅ sin 3 x 3 x 2 ⋅ sin 2 x 2 x → 3 ⋅ 1 2 ⋅ 1 = 3 2 , \begin{aligned} \frac{\sin 3x}{\sin 2x} &= \frac{\dfrac{\sin 3x}{x}}{\dfrac{\sin 2x}{x}} = \frac{3\cdot\dfrac{\sin 3x}{3x}}{2\cdot\dfrac{\sin 2x}{2x}} \\ &\to \frac{3 \cdot 1}{2 \cdot 1} = \frac32, \end{aligned} sin 2 x sin 3 x = x sin 2 x x sin 3 x = 2 ⋅ 2 x sin 2 x 3 ⋅ 3 x sin 3 x → 2 ⋅ 1 3 ⋅ 1 = 2 3 ,
根据商法则,因为分母的极限为 2(不为 0)。一个常见的错误答案是 1,来源于这样的想法:两个都趋于 0 的量的商趋于 1:这就是第 2.5 节中的 0 / 0 0/0 0/0 错误。
(c) 将分子和分母都乘以 1 + cos x , 1 + \cos x\mathclose{\text{,}} 1 + cos x , 如定理 2.6 的证明所示。对于 0 < ∣ x ∣ < π / 2 , 0 < \abs{x} < \pi/2\mathclose{\text{,}} 0 < ∣ x ∣ < π /2 , 其中 sin x ≠ 0 \sin x \ne 0 sin x = 0 和 1 + cos x > 0 , 1 + \cos x > 0\mathclose{\text{,}} 1 + cos x > 0 ,
1 − cos x x sin x = sin 2 x x sin x ( 1 + cos x ) = sin x x ⋅ 1 1 + cos x → 1 ⋅ 1 2 = 1 2 . \begin{aligned} \frac{1 - \cos x}{x\sin x} &= \frac{\sin^2 x}{x\sin x\,(1 + \cos x)} \\ &= \frac{\sin x}{x}\cdot\frac{1}{1 + \cos x} \\ &\to 1 \cdot \frac12 = \frac12. \end{aligned} x sin x 1 − cos x = x sin x ( 1 + cos x ) sin 2 x = x sin x ⋅ 1 + cos x 1 → 1 ⋅ 2 1 = 2 1 .
练习 2.6 ★★ 选择一个常数
设
f ( x ) = { x 2 + c if x < 2 , 3 x − 1 if x ≥ 2 , f(x) = \begin{cases} x^2 + c & \text{if } x < 2, \\ 3x - 1 & \text{if } x \ge 2, \end{cases} f ( x ) = { x 2 + c 3 x − 1 if x < 2 , if x ≥ 2 ,
其中 c c c 是一个常数。
(a) 以 c c c 表示的形式,求 f f f 在 2 处的单侧极限。
(b) 当 c c c 取何值时,lim x → 2 f ( x ) \lim_{x\to2} f(x) lim x → 2 f ( x ) 存在?此时极限是多少?
(c) 当 c = 3 c = 3 c = 3 时,描述 x = 2 x = 2 x = 2 附近的图像。
查看解答✓ 已检验
(a) 从左侧趋近时,f ( x ) = x 2 + c → 4 + c ; f(x) = x^2 + c \to 4 + c\mathclose{\text{;}} f ( x ) = x 2 + c → 4 + c ; 从右侧趋近时,f ( x ) = 3 x − 1 → 5 f(x) = 3x - 1 \to 5 f ( x ) = 3 x − 1 → 5 (每个公式直接代入)。
(b) 极限存在的充要条件是单侧极限相等:4 + c = 5 , 4 + c = 5\mathclose{\text{,}} 4 + c = 5 , 因此 c = 1 。 c = 1\mathclose{\text{。}} c = 1 。 此时 lim x → 2 f ( x ) = 5 , \lim_{x\to2} f(x) = 5\mathclose{\text{,}} lim x → 2 f ( x ) = 5 , 这同样等于 f ( 2 ) : f(2)\mathclose{\text{:}} f ( 2 ) : 两部分连接处没有间隙。
(c) 以 c = 3 c = 3 c = 3 为界,左侧极限为 7,右侧极限为 5。图象在 x = 2 x = 2 x = 2 处跳跃下降 2:抛物线在 ( 2 , 7 ) (2, 7) ( 2 , 7 ) 处以空点结束,直线从实点 ( 2 , 5 ) (2, 5) ( 2 , 5 ) 开始。
练习 2.7 ★★ 一条直线的 ε–δ 证明
(a) 根据定义 2.3 证明 lim x → − 1 ( 5 − 2 x ) = 7 。 \lim_{x\to-1}(5 - 2x) = 7\mathclose{\text{。}} lim x → − 1 ( 5 − 2 x ) = 7 。
(b) 你的证明为 ε = 0.01 \varepsilon = 0.01 ε = 0.01 给出哪个 δ ? \delta\mathclose{\text{?}} δ ? 是否有更大的 δ \delta δ 也成立?
查看解答✓ 已检验
(a) 草稿工作。 ∣ ( 5 − 2 x ) − 7 ∣ = ∣ − 2 x − 2 ∣ = 2 ∣ x + 1 ∣ \abs{(5 - 2x) - 7} = \abs{-2x - 2} = 2\abs{x + 1} ∣ ( 5 − 2 x ) − 7 ∣ = ∣ − 2 x − 2 ∣ = 2 ∣ x + 1 ∣ 小于 ε \varepsilon ε 恰好当 ∣ x + 1 ∣ < ε / 2 。 \abs{x + 1} < \varepsilon/2\mathclose{\text{。}} ∣ x + 1 ∣ < ε /2 。
证明。 设 ε > 0 \varepsilon > 0 ε > 0 和 δ = ε / 2 。 \delta = \varepsilon/2\mathclose{\text{。}} δ = ε /2 。 若 0 < ∣ x − ( − 1 ) ∣ < δ , 0 < \abs{x - (-1)} < \delta\mathclose{\text{,}} 0 < ∣ x − ( − 1 ) ∣ < δ , 即 0 < ∣ x + 1 ∣ < δ , 0 < \abs{x + 1} < \delta\mathclose{\text{,}} 0 < ∣ x + 1 ∣ < δ , 则
∣ ( 5 − 2 x ) − 7 ∣ = 2 ∣ x + 1 ∣ < 2 δ = ε . \begin{aligned} \abs{(5 - 2x) - 7} &= 2\abs{x + 1} \\ &< 2\delta = \varepsilon. \end{aligned} ∣ ( 5 − 2 x ) − 7 ∣ = 2 ∣ x + 1 ∣ < 2 δ = ε .
(b) δ = 0.01 / 2 = 0.005 。 \delta = 0.01/2 = 0.005\mathclose{\text{。}} δ = 0.01/2 = 0.005 。 没有更大的 δ \delta δ 成立:若 δ > 0.005 , \delta > 0.005\mathclose{\text{,}} δ > 0.005 , 点 x = − 1.005 x = -1.005 x = − 1.005 满足 0 < ∣ x + 1 ∣ = 0.005 < δ , 0 < \abs{x + 1} = 0.005 < \delta\mathclose{\text{,}} 0 < ∣ x + 1 ∣ = 0.005 < δ , 但 ∣ ( 5 − 2 x ) − 7 ∣ = ∣ 7.01 − 7 ∣ = 0.01 , \abs{(5 - 2x) - 7} = \abs{7.01 - 7} = 0.01\mathclose{\text{,}} ∣ ( 5 − 2 x ) − 7 ∣ = ∣ 7.01 − 7 ∣ = 0.01 , 这不小于 ε 。 \varepsilon\mathclose{\text{。}} ε 。 对于直线,草稿工作中的“恰好当”使证明的 δ \delta δ 成为最佳可能;而对于例 2.13 中的抛物线则不是。
练习 2.8 ★★ 瓷砖需要切割多精确?
一个正方形瓷砖的面积应为 400 cm²,客户接受的面积范围在 399 到 401 cm² 之间。用第 2.7 节的语言来说,这是 ε = 1 \varepsilon = 1 ε = 1 对 lim s → 20 s 2 = 400 \lim_{s\to20} s^2 = 400 lim s → 20 s 2 = 400 的挑战,其中 s s s 是以厘米为单位的边长。
(a) 使用例 2.13 的方法,首先确定 δ ≤ 1 , \delta \le 1\mathclose{\text{,}} δ ≤ 1 , 找出一个 δ , \delta\mathclose{\text{,}} δ , 使得 ∣ s − 20 ∣ < δ \abs{s - 20} < \delta ∣ s − 20 ∣ < δ 保证公差。
(b) 找出最大的这样的 δ , \delta\mathclose{\text{,}} δ , 保留三位有效数字,并说明它在毫米中的含义。
(c) 将 (a) 转化为定义 2.3 的证明,证明 lim s → 20 s 2 = 400 : \lim_{s\to20} s^2 = 400\mathclose{\text{:}} lim s → 20 s 2 = 400 : 给出一个 δ , \delta\mathclose{\text{,}} δ , 它能击败每一个 ε > 0 。 \varepsilon > 0\mathclose{\text{。}} ε > 0 。
查看解答✓ 已检验
(a) ∣ s 2 − 400 ∣ = ∣ s − 20 ∣ ∣ s + 20 ∣ . \abs{s^2 - 400} = \abs{s - 20}\,\abs{s + 20}\mathclose{\text{.}} s 2 − 400 = ∣ s − 20 ∣ ∣ s + 20 ∣ . 如果 ∣ s − 20 ∣ < 1 , \abs{s - 20} < 1\mathclose{\text{,}} ∣ s − 20 ∣ < 1 , 则 19 < s < 21 , 19 < s < 21\mathclose{\text{,}} 19 < s < 21 , 因此 39 < s + 20 < 41 39 < s + 20 < 41 39 < s + 20 < 41 和 ∣ s + 20 ∣ < 41 . \abs{s + 20} < 41\mathclose{\text{.}} ∣ s + 20 ∣ < 41 . 然后 ∣ s 2 − 400 ∣ < 41 ∣ s − 20 ∣ , \abs{s^2 - 400} < 41\abs{s - 20}\mathclose{\text{,}} s 2 − 400 < 41 ∣ s − 20 ∣ , 当 ∣ s − 20 ∣ < 1 41 \abs{s - 20} < \tfrac{1}{41} ∣ s − 20 ∣ < 41 1 时小于 1。因此 δ = min ( 1 , 1 41 ) = 1 41 ≈ 0.0244 \delta = \min\big(1, \tfrac{1}{41}\big) = \tfrac{1}{41} \approx 0.0244 δ = min ( 1 , 41 1 ) = 41 1 ≈ 0.0244 厘米可行。
(b) 对于 s > 0 , s > 0\mathclose{\text{,}} s > 0 , 当 399 < s < 401 \sqrt{399} < s < \sqrt{401} 399 < s < 401 时,容忍度 399 < s 2 < 401 399 < s^2 < 401 399 < s 2 < 401 恰好成立,也就是说,大约 19.97498 < s < 20.02498 。 19.97498 < s < 20.02498\mathclose{\text{。}} 19.97498 < s < 20.02498 。 20 附近的区间必须在两侧都包含,并且两侧并不相等:20 − 399 ≈ 0.025016 20 - \sqrt{399} \approx 0.025016 20 − 399 ≈ 0.025016 和 401 − 20 ≈ 0.024984 。 \sqrt{401} - 20 \approx 0.024984\mathclose{\text{。}} 401 − 20 ≈ 0.024984 。 最大的 δ \delta δ 是较小的,401 − 20 ≈ 0.0250 \sqrt{401} - 20 \approx 0.0250 401 − 20 ≈ 0.0250 厘米:边必须被切割到大约十分之一毫米以内。δ \delta δ 的 (a) 是稍微小一点的,正如例 2.13 所预期的那样。
(c) 用 (a) 中的任意 ε > 0 \varepsilon > 0 ε > 0 替换容忍度 1。证明。 设 ε > 0 \varepsilon > 0 ε > 0 和 δ = min ( 1 , ε / 41 ) 。 \delta = \min(1, \varepsilon/41)\mathclose{\text{。}} δ = min ( 1 , ε /41 ) 。 假设 0 < ∣ s − 20 ∣ < δ 。 0 < \abs{s - 20} < \delta\mathclose{\text{。}} 0 < ∣ s − 20 ∣ < δ 。 由于 δ ≤ 1 , \delta \le 1\mathclose{\text{,}} δ ≤ 1 , 19 < s < 21 , 19 < s < 21\mathclose{\text{,}} 19 < s < 21 , 因此 ∣ s + 20 ∣ < 41 。 \abs{s + 20} < 41\mathclose{\text{。}} ∣ s + 20 ∣ < 41 。 由于 δ ≤ ε / 41 , \delta \le \varepsilon/41\mathclose{\text{,}} δ ≤ ε /41 , ∣ s − 20 ∣ < ε / 41 。 \abs{s - 20} < \varepsilon/41\mathclose{\text{。}} ∣ s − 20 ∣ < ε /41 。 因此
∣ s 2 − 400 ∣ = ∣ s + 20 ∣ ∣ s − 20 ∣ < 41 ⋅ ε 41 = ε . \begin{aligned} \abs{s^2 - 400} &= \abs{s + 20}\,\abs{s - 20} \\ &< 41 \cdot \frac{\varepsilon}{41} = \varepsilon. \end{aligned} s 2 − 400 = ∣ s + 20 ∣ ∣ s − 20 ∣ < 41 ⋅ 41 ε = ε .
每个挑战都被满足,且 lim s → 20 s 2 = 400 。 \lim_{s\to20} s^2 = 400\mathclose{\text{。}} lim s → 20 s 2 = 400 。 对于 ε = 1 , \varepsilon = 1\mathclose{\text{,}} ε = 1 , 证明给出了 (a) 的 δ = 1 41 。 \delta = \tfrac{1}{41}\mathclose{\text{。}} δ = 41 1 。
练习 2.9 ★★★ 平方根的根律
假设 lim x → a f ( x ) = L , \lim_{x\to a} f(x) = L\mathclose{\text{,}} lim x → a f ( x ) = L , 其中 L > 0 。 L > 0\mathclose{\text{。}} L > 0 。
(a) 证明存在一个 δ 0 > 0 , \delta_0 > 0\mathclose{\text{,}} δ 0 > 0 , 使得 f ( x ) > L / 2 f(x) > L/2 f ( x ) > L /2 当且仅当 0 < ∣ x − a ∣ < δ 0 。 0 < \abs{x - a} < \delta_0\mathclose{\text{。}} 0 < ∣ x − a ∣ < δ 0 。 (因此,对于那些 x , x\mathclose{\text{,}} x , f ( x ) \sqrt{f(x)} f ( x ) 是定义良好的。)
(b) 证明对于那些 x , x\mathclose{\text{,}} x , ∣ f ( x ) − L ∣ ≤ ∣ f ( x ) − L ∣ L 。 \big\lvert\sqrt{f(x)} - \sqrt{L}\big\rvert \le \dfrac{\abs{f(x) - L}}{\sqrt L}\mathclose{\text{。}} f ( x ) − L ≤ L ∣ f ( x ) − L ∣ 。 (请合理化。)
(c) 证明 lim x → a f ( x ) = L 。 \lim_{x\to a}\sqrt{f(x)} = \sqrt L\mathclose{\text{。}} lim x → a f ( x ) = L 。 推论 lim x → a x = a \lim_{x\to a}\sqrt x = \sqrt a lim x → a x = a 对于每一个 a > 0 a > 0 a > 0 都成立。
查看解答✓ 已检验
(a) 使用定义 2.3 中的挑战 ε = L / 2 : \varepsilon = L/2\mathclose{\text{:}} ε = L /2 : 存在一个 δ 0 > 0 , \delta_0 > 0\mathclose{\text{,}} δ 0 > 0 , 使得 ∣ f ( x ) − L ∣ < L / 2 \abs{f(x) - L} < L/2 ∣ f ( x ) − L ∣ < L /2 当且仅当 0 < ∣ x − a ∣ < δ 0 。 0 < \abs{x - a} < \delta_0\mathclose{\text{。}} 0 < ∣ x − a ∣ < δ 0 。 然后 f ( x ) > L − L / 2 = L / 2 > 0 。 f(x) > L - L/2 = L/2 > 0\mathclose{\text{。}} f ( x ) > L − L /2 = L /2 > 0 。
(b) 对于这样的 x , x\mathclose{\text{,}} x , f ( x ) \sqrt{f(x)} f ( x ) 和 L \sqrt L L 都是定义良好的,且它们的和至少为 L > 0 。 \sqrt L > 0\mathclose{\text{。}} L > 0 。 乘以并除以共轭 f ( x ) + L ; \sqrt{f(x)} + \sqrt L\mathclose{\text{;}} f ( x ) + L ; 由于 ( f ( x ) − L ) ( f ( x ) + L ) = f ( x ) − L , \big(\sqrt{f(x)} - \sqrt L\big)\big(\sqrt{f(x)} + \sqrt L\big) = f(x) - L\mathclose{\text{,}} ( f ( x ) − L ) ( f ( x ) + L ) = f ( x ) − L ,
f ( x ) − L = f ( x ) − L f ( x ) + L . \sqrt{f(x)} - \sqrt L = \frac{f(x) - L}{\sqrt{f(x)} + \sqrt L}. f ( x ) − L = f ( x ) + L f ( x ) − L .
取绝对值,并使用 f ( x ) + L ≥ L : \sqrt{f(x)} + \sqrt L \ge \sqrt L\mathclose{\text{:}} f ( x ) + L ≥ L :
∣ f ( x ) − L ∣ = ∣ f ( x ) − L ∣ f ( x ) + L ≤ ∣ f ( x ) − L ∣ L . \begin{aligned} \big\lvert\sqrt{f(x)} - \sqrt L\big\rvert &= \frac{\abs{f(x) - L}}{\sqrt{f(x)} + \sqrt L} \\ &\le \frac{\abs{f(x) - L}}{\sqrt L}. \end{aligned} f ( x ) − L = f ( x ) + L ∣ f ( x ) − L ∣ ≤ L ∣ f ( x ) − L ∣ .
(c) 设 ε > 0 。 \varepsilon > 0\mathclose{\text{。}} ε > 0 。 挑战 f f f 与 ε L : \varepsilon\sqrt L\mathclose{\text{:}} ε L : 存在一个 δ 1 > 0 , \delta_1 > 0\mathclose{\text{,}} δ 1 > 0 , 使得 ∣ f ( x ) − L ∣ < ε L \abs{f(x) - L} < \varepsilon\sqrt L ∣ f ( x ) − L ∣ < ε L 当且仅当 0 < ∣ x − a ∣ < δ 1 。 0 < \abs{x - a} < \delta_1\mathclose{\text{。}} 0 < ∣ x − a ∣ < δ 1 。 设 δ = min ( δ 0 , δ 1 ) 。 \delta = \min(\delta_0, \delta_1)\mathclose{\text{。}} δ = min ( δ 0 , δ 1 ) 。 如果 0 < ∣ x − a ∣ < δ , 0 < \abs{x - a} < \delta\mathclose{\text{,}} 0 < ∣ x − a ∣ < δ , 则由 (b)
∣ f ( x ) − L ∣ ≤ ∣ f ( x ) − L ∣ L < ε L L = ε . \begin{aligned} \big\lvert\sqrt{f(x)} - \sqrt L\big\rvert &\le \frac{\abs{f(x) - L}}{\sqrt L} \\ &< \frac{\varepsilon\sqrt L}{\sqrt L} = \varepsilon. \end{aligned} f ( x ) − L ≤ L ∣ f ( x ) − L ∣ < L ε L = ε .
所以 lim x → a f ( x ) = L 。 \lim_{x\to a}\sqrt{f(x)} = \sqrt L\mathclose{\text{。}} lim x → a f ( x ) = L 。 对于 f ( x ) = x , f(x) = x\mathclose{\text{,}} f ( x ) = x , 其在 a a a 处的极限是 a a a (第 2.7 节),这给出 lim x → a x = a \lim_{x\to a}\sqrt x = \sqrt a lim x → a x = a 对于每个 a > 0 。 a > 0\mathclose{\text{。}} a > 0 。
练习 2.10 ★★★ sin(1/x) 没有极限
从定义 2.3 证明 lim x → 0 sin ( 1 / x ) \lim_{x\to0}\sin(1/x) lim x → 0 sin ( 1/ x ) 不存在。(使用例 2.3 中的点以及例 2.14 的策略。)
查看解答✓ 已检验
设 L L L 为任意数;挑战 ε = 1 \varepsilon = 1 ε = 1 将击败它。设 δ > 0 \delta > 0 δ > 0 为任意响应,并选择一个整数 k ≥ 1 k \ge 1 k ≥ 1 满足 k ≥ 1 / δ 。 k \ge 1/\delta\mathclose{\text{。}} k ≥ 1/ δ 。 这些点
x 1 = 2 ( 4 k + 1 ) π , x 2 = 2 ( 4 k + 3 ) π \begin{aligned} x_1 &= \frac{2}{(4k + 1)\pi}, \\ x_2 &= \frac{2}{(4k + 3)\pi} \end{aligned} x 1 x 2 = ( 4 k + 1 ) π 2 , = ( 4 k + 3 ) π 2
是正的,并且
x 2 < x 1 < 2 4 k π = 1 2 k π ≤ δ 2 π < δ , \begin{aligned} x_2 < x_1 &< \frac{2}{4k\pi} = \frac{1}{2k\pi} \\ &\le \frac{\delta}{2\pi} < \delta, \end{aligned} x 2 < x 1 < 4 k π 2 = 2 k π 1 ≤ 2 π δ < δ ,
所以这两个都满足 0 < ∣ x ∣ < δ 。 0 < \abs{x} < \delta\mathclose{\text{。}} 0 < ∣ x ∣ < δ 。 在这些点 sin ( 1 / x 1 ) = sin ( 4 k + 1 ) π 2 = 1 \sin(1/x_1) = \sin\dfrac{(4k + 1)\pi}{2} = 1 sin ( 1/ x 1 ) = sin 2 ( 4 k + 1 ) π = 1 和 sin ( 1 / x 2 ) = sin ( 4 k + 3 ) π 2 = − 1 。 \sin(1/x_2) = \sin\dfrac{(4k + 3)\pi}{2} = -1\mathclose{\text{。}} sin ( 1/ x 2 ) = sin 2 ( 4 k + 3 ) π = − 1 。 如果这两个值都在 L L L 的 1 之内,三角不等式将给出
2 = ∣ ( 1 − L ) + ( L + 1 ) ∣ ≤ ∣ 1 − L ∣ + ∣ L + 1 ∣ < 1 + 1 = 2 , \begin{aligned} 2 &= \abs{(1 - L) + (L + 1)} \\ &\le \abs{1 - L} + \abs{L + 1} \\ &< 1 + 1 = 2, \end{aligned} 2 = ∣ ( 1 − L ) + ( L + 1 ) ∣ ≤ ∣ 1 − L ∣ + ∣ L + 1 ∣ < 1 + 1 = 2 ,
这是不可能的。因此,至少 x 1 x_1 x 1 或 x 2 x_2 x 2 中有一个给出 ∣ sin ( 1 / x ) − L ∣ ≥ 1 , \abs{\sin(1/x) - L} \ge 1\mathclose{\text{,}} ∣ sin ( 1/ x ) − L ∣ ≥ 1 , 并且 δ \delta δ 失败。由于 δ \delta δ 和 L L L 是任意的,sin ( 1 / x ) \sin(1/x) sin ( 1/ x ) 在 0 处没有极限。
练习 2.11 ★★★ 一个欺骗计算机的公式
设 f ( x ) = x 2 + 1 − 1 x 2 f(x) = \dfrac{\sqrt{x^2 + 1} - 1}{x^2} f ( x ) = x 2 x 2 + 1 − 1 对于 x ≠ 0 。 x \ne 0\mathclose{\text{。}} x = 0 。
(a) 通过有理化求 lim x → 0 f ( x ) 。 \lim_{x\to0} f(x)\mathclose{\text{。}} lim x → 0 f ( x ) 。
(b) 在 Python 中,(math.sqrt(x**2 + 1) - 1)/x**2 给出 0.0 对于 x = 1e-8。解释原因。
(c) 找出一个公式 f ( x ) , f(x)\mathclose{\text{,}} f ( x ) , 使得计算机在小 x x x 时能够准确计算,并比较 Python 中的两个公式。
查看解答✓ 已检验
(a) 将分子和分母乘以共轭 x 2 + 1 + 1 : \sqrt{x^2 + 1} + 1\mathclose{\text{:}} x 2 + 1 + 1 :
f ( x ) = ( x 2 + 1 ) − 1 x 2 ( x 2 + 1 + 1 ) = 1 x 2 + 1 + 1 ( x ≠ 0 ) . \begin{aligned} f(x) &= \frac{(x^2 + 1) - 1}{x^2\big(\sqrt{x^2 + 1} + 1\big)} \\ &= \frac{1}{\sqrt{x^2 + 1} + 1} \qquad (x \ne 0). \end{aligned} f ( x ) = x 2 ( x 2 + 1 + 1 ) ( x 2 + 1 ) − 1 = x 2 + 1 + 1 1 ( x = 0 ) .
根据根定律,x 2 + 1 → 1 , \sqrt{x^2 + 1} \to 1\mathclose{\text{,}} x 2 + 1 → 1 , 因此 f ( x ) → 1 1 + 1 = 1 2 。 f(x) \to \dfrac{1}{1 + 1} = \dfrac12\mathclose{\text{。}} f ( x ) → 1 + 1 1 = 2 1 。
(b) 对于 x = 10 − 8 , x = 10^{-8}\mathclose{\text{,}} x = 1 0 − 8 , x 2 + 1 = 1 + 10 − 16 。 x^2 + 1 = 1 + 10^{-16}\mathclose{\text{。}} x 2 + 1 = 1 + 1 0 − 16 。 1 之后的下一个浮点数大约是 1 + 2.2 × 10 − 16 , 1 + 2.2 \times 10^{-16}\mathclose{\text{,}} 1 + 2.2 × 1 0 − 16 , 因此 1 + 10 − 16 , 1 + 10^{-16}\mathclose{\text{,}} 1 + 1 0 − 16 , 更接近 1,被存储为恰好 1。然后 1 − 1 = 0 : \sqrt1 - 1 = 0\mathclose{\text{:}} 1 − 1 = 0 : 每一位都抵消了,商为 0 / 10 − 16 = 0 。 0/10^{-16} = 0\mathclose{\text{。}} 0/1 0 − 16 = 0 。
(c) (a) 中有理化公式 1 x 2 + 1 + 1 , \dfrac{1}{\sqrt{x^2 + 1} + 1}\mathclose{\text{,}} x 2 + 1 + 1 1 , 相加而非相减,因此没有抵消:
Python 复制
import math
for x in [1e-2 , 1e-4 , 1e-6 , 1e-7 , 1e-8 ]:
direct = (math.sqrt (x**2 + 1 ) - 1 )/x**2
rationalised = 1 /(math.sqrt (x**2 + 1 ) + 1 )
print (f"x = {x:.0e}: {direct:.12f} {rationalised:.12f}" )
输出
x = 1e-02: 0.499987500624 0.499987500625
x = 1e-04: 0.499999996961 0.499999998750
x = 1e-06: 0.500044450291 0.500000000000
x = 1e-07: 0.488498130835 0.500000000000
x = 1e-08: 0.000000000000 0.500000000000
直接公式随着 x x x 变小而损失数字,并在 x = 10 − 8 x = 10^{-8} x = 1 0 − 8 处给出 0;有理化公式则保持准确并趋近于 1 2 , \tfrac12\mathclose{\text{,}} 2 1 , 如 (a) 所述。
1 如果
f ( x ) = x + 1 f(x) = x + 1 f ( x ) = x + 1 对于每一个
x ≠ 1 , x \ne 1\mathclose{\text{,}} x = 1 , 且
f ( 1 ) = 5 , f(1) = 5\mathclose{\text{,}} f ( 1 ) = 5 , 那么
lim x → 1 f ( x ) \lim_{x\to1} f(x) lim x → 1 f ( x ) 是
5 2 1 不存在,因为图在 x = 1 x = 1 x = 1 处有间断点 在 1 附近,
f ( x ) = x + 1 , f(x) = x + 1\mathclose{\text{,}} f ( x ) = x + 1 , 从两侧趋近于 2;极限忽略 1 处本身的值。5 是
f ( 1 ) , f(1)\mathclose{\text{,}} f ( 1 ) , 不是极限。在
( 1 , 5 ) (1, 5) ( 1 , 5 ) 处的单独点不会阻止两侧极限相等,因此极限存在。1 是
x x x 的值,而不是
f ( x ) f(x) f ( x ) 的值。
2 lim x → 2 − ∣ x − 2 ∣ x − 2 \lim_{x\to2^-}\dfrac{\abs{x - 2}}{x - 2} lim x → 2 − x − 2 ∣ x − 2 ∣ 等于
1 0 − 1 -1 − 1 不存在 对于
x < 2 , x < 2\mathclose{\text{,}} x < 2 , x − 2 x - 2 x − 2 是负数,因此
∣ x − 2 ∣ = − ( x − 2 ) \abs{x - 2} = -(x - 2) ∣ x − 2 ∣ = − ( x − 2 ) 和商为
− 1 , -1\mathclose{\text{,}} − 1 , 对于每一个这样的
x 。 x\mathclose{\text{。}} x 。 右侧极限是 1,因此两侧极限不存在;但问题要求左侧极限,而该极限存在。0 来源于仅在分子中代入
x = 2 。 x = 2\mathclose{\text{。}} x = 2 。
3 直接代入
lim x → 2 x 2 − 4 x − 2 \lim_{x\to2}\dfrac{x^2 - 4}{x - 2} lim x → 2 x − 2 x 2 − 4 得到
0 0 。 \dfrac00\mathclose{\text{。}} 0 0 。 因此极限
是 0 是 1 不存在 是 4 0 / 0 0/0 0/0 是一个不定式,提示需要进一步计算:对于
x ≠ 2 , x \ne 2\mathclose{\text{,}} x = 2 , x 2 − 4 x − 2 = x + 2 , \dfrac{x^2 - 4}{x - 2} = x + 2\mathclose{\text{,}} x − 2 x 2 − 4 = x + 2 , 其趋近于 4。其他三个答案将
0 / 0 0/0 0/0 当作一个值来处理。
4 lim x → 0 1 + x − 1 x \lim_{x\to0}\dfrac{\sqrt{1 + x} - 1}{x} lim x → 0 x 1 + x − 1 等于
1 2 \dfrac12 2 1 0 2 1 有理化:
1 + x − 1 x = 1 1 + x + 1 → 1 1 + 1 = 1 2 。 \dfrac{\sqrt{1 + x} - 1}{x} = \dfrac{1}{\sqrt{1 + x} + 1} \to \dfrac{1}{1 + 1} = \dfrac12\mathclose{\text{。}} x 1 + x − 1 = 1 + x + 1 1 → 1 + 1 1 = 2 1 。 0 来源于仅在分子中代入;2 是
1 + x + 1 \sqrt{1 + x} + 1 1 + x + 1 的极限,但忽略了倒数;1 来源于舍去平方根。
5 以
x x x 弧度计算,
lim x → 0 sin 4 x x \lim_{x\to0}\dfrac{\sin 4x}{x} lim x → 0 x sin 4 x 为
1 4 1 4 \dfrac14 4 1 0 sin 4 x x = 4 ⋅ sin 4 x 4 x → 4 ⋅ 1 = 4 。 \dfrac{\sin 4x}{x} = 4\cdot\dfrac{\sin 4x}{4x} \to 4 \cdot 1 = 4\mathclose{\text{。}} x sin 4 x = 4 ⋅ 4 x sin 4 x → 4 ⋅ 1 = 4 。 定理 2.5 仅在角度与分母相同的情况下给出 1。
1 4 \tfrac14 4 1 将因子倒置,0 来源于分子中
sin 0 = 0 \sin 0 = 0 sin 0 = 0 单独代入。
6 如果
1 − x 2 ≤ f ( x ) ≤ 1 + x 2 1 - x^2 \le f(x) \le 1 + x^2 1 − x 2 ≤ f ( x ) ≤ 1 + x 2 对于每一个
x , x\mathclose{\text{,}} x , 则
lim x → 0 f ( x ) \lim_{x\to0} f(x) lim x → 0 f ( x ) 在没有 f f f 公式的情况下无法找到 是 0 仅当 f ( 0 ) = 1 f(0) = 1 f ( 0 ) = 1 时才存在 是 1 两个界值随着
x → 0 x \to 0 x → 0 趋近于 1,因此根据夹逼定理
f ( x ) → 1 , f(x) \to 1\mathclose{\text{,}} f ( x ) → 1 , 无论公式如何,极限值都是 1。值
f ( 0 ) f(0) f ( 0 ) 在极限中不起作用(此处不等式恰好强制
f ( 0 ) = 1 f(0) = 1 f ( 0 ) = 1 为 1)。0 是
x 2 x^2 x 2 的极限,而不是这些界值的极限。
7 对于
lim x → 1 ( 4 x + 3 ) = 7 , \lim_{x\to1}(4x + 3) = 7\mathclose{\text{,}} lim x → 1 ( 4 x + 3 ) = 7 , 哪个响应
δ \delta δ 能够应对每一个挑战
ε > 0 ? \varepsilon > 0\mathclose{\text{?}} ε > 0 ? δ = ε / 4 \delta = \varepsilon/4 δ = ε /4 δ = ε \delta = \varepsilon δ = ε δ = 4 ε \delta = 4\varepsilon δ = 4 ε δ = 0.1 , \delta = 0.1\mathclose{\text{,}} δ = 0.1 , 无论 ε \varepsilon ε 是什么∣ ( 4 x + 3 ) − 7 ∣ = 4 ∣ x − 1 ∣ < 4 δ , \abs{(4x + 3) - 7} = 4\abs{x - 1} < 4\delta\mathclose{\text{,}} ∣ ( 4 x + 3 ) − 7 ∣ = 4 ∣ x − 1 ∣ < 4 δ , 取
δ = ε / 4 \delta = \varepsilon/4 δ = ε /4 时就有
ε 。 \varepsilon\mathclose{\text{。}} ε 。 δ = ε \delta = \varepsilon δ = ε 太大:
x = 1 + ε / 2 x = 1 + \varepsilon/2 x = 1 + ε /2 与 1 的距离在
δ \delta δ 以内,却得到
4 ⋅ ε / 2 = 2 ε ; 4 \cdot \varepsilon/2 = 2\varepsilon\mathclose{\text{;}} 4 ⋅ ε /2 = 2 ε ; 4 ε 4\varepsilon 4 ε 更差。把
δ \delta δ 固定为 0.1 之类的值就无法应对更严格的挑战,所以
δ \delta δ 必须取决于
ε 。 \varepsilon\mathclose{\text{。}} ε 。
8 在浮点运算中,
(1 - math.cos(x))/x**2 在
x = 1e-8 处给出
0.0,尽管在 0 处的极限是
1 2 。 \tfrac12\mathclose{\text{。}} 2 1 。 为什么?
极限实际上为 0。 x 2 = 10 − 16 x^2 = 10^{-16} x 2 = 1 0 − 16 对于计算机来说太小,因此变为 0。cos ( 10 − 8 ) \cos(10^{-8}) cos ( 1 0 − 8 ) 非常接近 1,以至于被存储为恰好 1,因此分子为 0。Python 的 math.cos 以度数计算。 cos ( 10 − 8 ) = 1 − 5 × 10 − 17 + … \cos(10^{-8}) = 1 - 5 \times 10^{-17} + \dots cos ( 1 0 − 8 ) = 1 − 5 × 1 0 − 17 + … 比任何其他浮点数更接近 1,因此
1 − cos x 1 - \cos x 1 − cos x 结果为 0:抵消。Python 处理的数值远小于
10 − 16 10^{-16} 1 0 − 16 (小至约
10 − 308 ), 10^{-308}\mathclose{\text{),}} 1 0 − 308 ), 且
0 / 10 − 16 0/10^{-16} 0/1 0 − 16 为 0,而非错误;
math.cos 以弧度计算;并且极限确实为
1 2 , \tfrac12\mathclose{\text{,}} 2 1 , 如第 2.8 节的重排公式和 SymPy 所证实。
重新作答