Skip to content

1.1 极限与连续

极限是微积分的基石。连续则描述函数"没有断裂"的性质。


一、数列的极限

1.1 直观理解

考虑数列 an=1na_n = \dfrac{1}{n}

a1=1,  a2=0.5,  a3=0.333,  a4=0.25,  ,  a100=0.01,  a1000=0.001a_1 = 1,\; a_2 = 0.5,\; a_3 = 0.333,\; a_4 = 0.25,\; \dots,\; a_{100} = 0.01,\; a_{1000} = 0.001

nn 越来越大时,ana_n 越来越接近 00。我们说:数列 ana_n 的极限是 00,记作:

limn1n=0\lim_{n \to \infty} \frac{1}{n} = 0

核心思想:趋近但不等于。数列项可以无限接近某个值,但不一定等于它。

1.2 精确定义(ε\varepsilon-NN 语言)

对任意 ε>0\varepsilon > 0,存在正整数 NN,使得当 n>Nn > N 时,有 anL<ε|a_n - L| < \varepsilon

通俗地讲:不论你给一个多小的误差范围 ε\varepsilon,我总能找到一个 NN,之后的所有项都在这个误差范围内。

:证明 limn1n=0\displaystyle\lim_{n \to \infty} \frac{1}{n} = 0

  • 给定 ε>0\varepsilon > 0,我们需要 1n0<ε\left|\dfrac{1}{n} - 0\right| < \varepsilon,即 1n<ε\dfrac{1}{n} < \varepsilon
  • N=1εN = \left\lceil\dfrac{1}{\varepsilon}\right\rceil,则当 n>Nn > N 时,1n<ε\dfrac{1}{n} < \varepsilon

1.3 极限的性质

limnan=A\displaystyle\lim_{n \to \infty} a_n = Alimnbn=B\displaystyle\lim_{n \to \infty} b_n = B,则:

性质公式
线性lim(can+dbn)=cA+dB\displaystyle\lim (c a_n + d b_n) = cA + dB
乘积lim(anbn)=AB\displaystyle\lim (a_n b_n) = A \cdot B
limanbn=AB\displaystyle\lim \frac{a_n}{b_n} = \frac{A}{B}B0B \neq 0
夹逼ancnbna_n \le c_n \le b_nA=BA = B \Rightarrow limcn=A\displaystyle\lim c_n = A

手算验证线性性质

已知 limn1n=0\displaystyle\lim_{n \to \infty} \frac{1}{n} = 0limn2n=0\displaystyle\lim_{n \to \infty} \frac{2}{n} = 0。那么:

limn(31n+52n)=30+50=0\lim_{n \to \infty} \left(3 \cdot \frac{1}{n} + 5 \cdot \frac{2}{n}\right) = 3 \cdot 0 + 5 \cdot 0 = 0

验证:31n+52n=13n03 \cdot \frac{1}{n} + 5 \cdot \frac{2}{n} = \frac{13}{n} \to 0

手算验证乘积性质

limn(1n2n)=00=0\lim_{n \to \infty} \left(\frac{1}{n} \cdot \frac{2}{n}\right) = 0 \cdot 0 = 0

验证:1n2n=2n20\frac{1}{n} \cdot \frac{2}{n} = \frac{2}{n^2} \to 0

夹逼定理示例:证明 limnsinnn=0\displaystyle\lim_{n \to \infty} \frac{\sin n}{n} = 0

因为 1sinn1-1 \le \sin n \le 1,所以 1nsinnn1n-\dfrac{1}{n} \le \dfrac{\sin n}{n} \le \dfrac{1}{n}。两边极限都是 00,由夹逼定理,中间极限也是 00。✅


二、函数的极限

2.1 定义

limxaf(x)=L\lim_{x \to a} f(x) = L

含义:当 xx 无限接近 aa(但不等于 aa)时,f(x)f(x) 无限接近 LL

ε\varepsilon-δ\delta 语言:对任意 ε>0\varepsilon > 0,存在 δ>0\delta > 0,使得当 0<xa<δ0 < |x - a| < \delta 时,有 f(x)L<ε|f(x) - L| < \varepsilon

2.2 左极限与右极限

概念符号含义
左极限limxaf(x)\displaystyle\lim_{x \to a^-} f(x)从小于 aa 的一侧趋近
右极限limxa+f(x)\displaystyle\lim_{x \to a^+} f(x)从大于 aa 的一侧趋近

极限存在的条件limxaf(x)\displaystyle\lim_{x \to a} f(x) 存在     \iff 左极限 = 右极限

2.3 极限的判定方法

方法操作适用场景
直接代入先代入 x=ax = a连续函数
因式分解约去 0/00/0 型公因子多项式分式
有理化分子分母乘以共轭含根号分式
重要极限套用已知极限三角函数、自然常数 ee 的定义(eapprox2.71828e \\approx 2.71828,是自然对数的底数,详见 1.2)

三、极限的常用计算方法

3.1 直接代入法

limx2(x2+3x1)=4+61=9\lim_{x \to 2} (x^2 + 3x - 1) = 4 + 6 - 1 = 9

3.2 因式分解

limx1x21x1=limx1(x1)(x+1)x1=limx1(x+1)=2\lim_{x \to 1} \frac{x^2 - 1}{x - 1} = \lim_{x \to 1} \frac{(x-1)(x+1)}{x-1} = \lim_{x \to 1} (x+1) = 2

3.3 两个重要极限

第一个limx0sinxx=1\displaystyle\lim_{x \to 0} \frac{\sin x}{x} = 1

xx 很小时 sinxx\sin x \approx x,比值接近 1。

第二个limn(1+1n)n=e\displaystyle\lim_{n \to \infty} \left(1 + \frac{1}{n}\right)^n = ee2.71828e \approx 2.71828

nn(1+1/n)n(1 + 1/n)^n
12
102.5937
1002.7048
10002.7169
100002.7181

3.4 洛必达法则

处理 00\frac{0}{0}\frac{\infty}{\infty} 型(用到导数 f(x)f'(x),详见 1.2 导数):

limxaf(x)g(x)=limxaf(x)g(x)\lim_{x \to a} \frac{f(x)}{g(x)} = \lim_{x \to a} \frac{f'(x)}{g'(x)}

limx0sinxx=limx0cosx1=1\lim_{x \to 0} \frac{\sin x}{x} = \lim_{x \to 0} \frac{\cos x}{1} = 1

limx01cosxx2=limx0sinx2x=12\lim_{x \to 0} \frac{1 - \cos x}{x^2} = \lim_{x \to 0} \frac{\sin x}{2x} = \frac{1}{2}

WARNING

使用洛必达前必须确认是 00\frac{0}{0}\frac{\infty}{\infty} 型,且导数极限存在。


四、函数的连续性

4.1 定义

f(x)f(x)x=ax = a 处连续     \iff 同时满足三个条件:

  1. f(a)f(a) 有定义
  2. limxaf(x)\displaystyle\lim_{x \to a} f(x) 存在
  3. limxaf(x)=f(a)\displaystyle\lim_{x \to a} f(x) = f(a)

4.2 间断点类型

类型例子
可去间断x21x1\dfrac{x^2-1}{x-1}x=1x=1:有个洞,补上就连续
跳跃间断x\lfloor x \rfloor 在整数点:左右极限不相等
无穷间断1x\dfrac{1}{x}x=0x=0:趋近无穷
震荡间断sin1x\sin\dfrac{1}{x}x=0x=0:极限不存在

4.3 连续函数的性质

  • 连续函数的和、差、积、商(分母不为零)仍连续
  • 连续函数的复合函数连续
  • 介值定理:若 ff[a,b][a,b] 上连续,则 ff 能取到 f(a)f(a)f(b)f(b) 之间的所有值
  • 最值定理:若 ff[a,b][a,b] 上连续,则 ff 在该区间上能取到最大值和最小值

4.4 量化应用:二分法找零

介值定理的经典应用——找方程的根。假设要找到隐含波动率 σ\sigma 使得期权价格 C(σ)=16.5C(\sigma) = 16.5

python
def find_implied_vol(target_price, low=0.01, high=2.0, tol=1e-6):
    """二分法找隐含波动率"""
    while high - low > tol:
        mid = (low + high) / 2
        price = black_scholes_price(mid)
        if price < target_price:
            low = mid
        else:
            high = mid
    return (low + high) / 2

理论基础:若 C(low)<16.5<C(high)C(\text{low}) < 16.5 < C(\text{high}),由介值定理,中间必存在 σ\sigma 使 C(σ)=16.5C(\sigma) = 16.5


五、Python 验证

python
import numpy as np

# 数列极限:1/n → 0
n_vals = np.array([1, 10, 100, 1000, 10000, 100000])
print("n → ∞ 时 1/n 的值:")
for n, val in zip(n_vals, 1/n_vals):
    print(f"  n = {n:6d}: 1/n = {val:.8f}")

# 重要极限:sin x / x → 1
x_vals = np.array([0.1, 0.05, 0.01, 0.005, 0.001])
print("\nx → 0 时 sin(x)/x 的值:")
for x in x_vals:
    print(f"  x = {x:.4f}: sin(x)/x = {np.sin(x)/x:.8f}")

# 重要极限:(1+1/n)^n → e
print("\nn → ∞ 时 (1+1/n)^n 的值:")
for n in [1, 10, 100, 1000, 10000]:
    print(f"  n = {n:5d}: (1+1/n)^n = {(1+1/n)**n:.8f}")

小结

概念要点
极限趋近但不等于,ε\varepsilon-NN / ε\varepsilon-δ\delta 定义
左右极限极限存在的充要条件
重要极限sinxx\dfrac{\sin x}{x}ee 的定义
洛必达法则处理 00\frac{0}{0}\frac{\infty}{\infty}
连续性一笔画、介值定理、最值定理

下一步:继续学习 1.2 导数与微分——极限的延伸应用,梯度下降的直接数学基础。

Built with VitePress