模块 9 通过将区域切割成细条,用矩形近似每个条,相加矩形并取和的极限来求曲线下的面积;模块 10 用原函数来计算这样的极限。同样的四个步骤可以计算比面积更多的内容:体积、长度、功、质量、质心和概率。本节展示该方法在一个例子上的应用。模块其余部分将反复使用该方法。
假设一根 2 米长的金属杆一端较粗,因此其 密度 ,即单位长度的质量,是
ρ ( x ) = 1 + x 2 kg/m \rho(x) = 1 + x^2 \text{ kg/m} ρ ( x ) = 1 + x 2 kg/m
在薄端点 x x x 米处的点。 (杆是假设的;ρ \rho ρ 是希腊字母“rho”。)它的质量是多少?如果密度是常数,质量就是密度乘以长度。密度不是常数,但在杆的一小段上几乎不变。因此将杆切成 n n n 个长度为 Δ x = 2 / n \Delta x = 2/n Δ x = 2/ n 的小段,两端为 x 0 = 0 , x 1 , … , x n = 2 。 x_0 = 0, x_1, \dots, x_n = 2\mathclose{\text{。}} x 0 = 0 , x 1 , … , x n = 2 。 第 i i i 段的密度接近 ρ ( x i − 1 ) , \rho(x_{i-1})\mathclose{\text{,}} ρ ( x i − 1 ) , 即该段左端的密度值,因此其质量约为 ρ ( x i − 1 ) Δ x 。 \rho(x_{i-1})\,\Delta x\mathclose{\text{。}} ρ ( x i − 1 ) Δ x 。 将这些小段相加得到杆质量的估计值 L n ; L_n\mathclose{\text{;}} L n ; 用右端代替左端则得到另一个估计值 R n : R_n\mathclose{\text{:}} R n :
L n = ∑ i = 1 n ρ ( x i − 1 ) Δ x , R n = ∑ i = 1 n ρ ( x i ) Δ x . \begin{aligned} L_n &= \sum_{i=1}^{n} \rho(x_{i-1})\,\Delta x, \\ R_n &= \sum_{i=1}^{n} \rho(x_i)\,\Delta x. \end{aligned} L n R n = i = 1 ∑ n ρ ( x i − 1 ) Δ x , = i = 1 ∑ n ρ ( x i ) Δ x .
n n n L n L_n L n R n R_n R n 4 4 4 3.75 3.75 3.75 5.75 5.75 5.75 10 10 10 4.28 4.28 4.28 5.08 5.08 5.08 100 100 100 4.6268 4.6268 4.6268 4.7068 4.7068 4.7068 1000 1000 1000 4.66267 4.66267 4.66267 4.67067 4.67067 4.67067
密度沿杆增加,因此每个小段的质量比其左端估计值大,比其右端估计值小:杆的真实质量 M M M 满足 L n ≤ M ≤ R n L_n \le M \le R_n L n ≤ M ≤ R n 对于每个 n 。 n\mathclose{\text{。}} n 。 这两个和都是 ρ \rho ρ 在 [ 0 , 2 ] [0, 2] [ 0 , 2 ] 上的黎曼和,因此当 n → ∞ n \to \infty n → ∞ 趋近于 0 时(模块 9),它们都趋近于 ∫ 0 2 ρ ( x ) d x , \int_0^2 \rho(x)\,dx\mathclose{\text{,}} ∫ 0 2 ρ ( x ) d x , 而 M M M 被这两个和夹在中间,因此必须等于该积分:
M = ∫ 0 2 ( 1 + x 2 ) d x = [ x + x 3 3 ] 0 2 = 2 + 8 3 = 14 3 ≈ 4.667 kg . \begin{aligned} M &= \int_0^2 (1 + x^2)\,dx = \Big[x + \frac{x^3}{3}\Big]_0^2 \\ &= 2 + \frac83 = \frac{14}{3} \approx 4.667 \text{ kg}. \end{aligned} M = ∫ 0 2 ( 1 + x 2 ) d x = [ x + 3 x 3 ] 0 2 = 2 + 3 8 = 3 14 ≈ 4.667 kg .
表格一致:对于 n = 1000 , n = 1000\mathclose{\text{,}} n = 1000 , 两个和将质量夹在 4.66267 和 4.67067 kg 之间。
要点
切分,近似,相加,取极限。 要计算一个在区间 [ a , b ] [a, b] [ a , b ] 上分布的量 Q : Q\mathclose{\text{:}} Q :
把 [ a , b ] [a, b] [ a , b ] 切分 为 n n n 个宽度为 Δ x \Delta x Δ x 的小片。
用 q ( x ) Δ x q(x)\,\Delta x q ( x ) Δ x 近似 Q Q Q 在 x x x 附近小片中的份额,其中 q q q 为连续函数。例子包括密度乘长度、高度乘宽度、力乘距离。
添加 各部分:Q ≈ ∑ i = 1 n q ( x i ∗ ) Δ x , Q \approx \sum_{i=1}^{n} q(x_i^*)\,\Delta x\mathclose{\text{,}} Q ≈ ∑ i = 1 n q ( x i ∗ ) Δ x , 一个黎曼和。
取极限 作为 n → ∞ : n \to \infty\mathclose{\text{:}} n → ∞ : Q = ∫ a b q ( x ) d x . Q = \int_a^b q(x)\,dx\mathclose{\text{.}} Q = ∫ a b q ( x ) d x .
为什么极限恰好是Q , Q\mathclose{\text{,}} Q , 而不仅仅是接近它?杆子展示了原因。在每一段上,一个连续的q q q 都有最小值和最大值(极值定理,模块3)。如果每段中的真实量介于Δ x \Delta x Δ x 乘以最小值和Δ x \Delta x Δ x 乘以最大值之间,那么Q Q Q 就介于q q q 的两个黎曼和之间:一个是在每段中q q q 取最小值时采样的和,另一个是在每段中q q q 取最大值时采样的和。这两个和都趋近于∫ a b q ( x ) d x , \int_a^b q(x)\,dx\mathclose{\text{,}} ∫ a b q ( x ) d x , 因此Q Q Q 被挤压到该值,如第2.6节 的夹逼定理所示。当你设置一个新的应用时,这是需要寻找的性质。没有这种保证的近似可能会给出错误的答案,正如第12.5节所示。
莱布尼茨的记号保持了方法的直观。 将宽度为 d x dx d x 的小段上的量写作 d Q = q ( x ) d x , dQ = q(x)\,dx\mathclose{\text{,}} d Q = q ( x ) d x , 这里为 d m = ρ ( x ) d x , dm = \rho(x)\,dx\mathclose{\text{,}} d m = ρ ( x ) d x , 总和写作 Q = ∫ a b d Q 。 Q = \int_a^b dQ\mathclose{\text{。}} Q = ∫ a b d Q 。
提示
单位检查:被积函数乘以 d x dx d x 必须具有答案的单位,这里为 kg/m × m = kg ; \text{kg/m} \times \text{m} = \text{kg}\mathclose{\text{;}} kg/m × m = kg ; 对于体积,是一个面积乘以长度;对于功,是一个力乘以距离。
注意
每一项是切片中的量 q ( x i ) Δ x , q(x_i)\,\Delta x\mathclose{\text{,}} q ( x i ) Δ x , 而不是单独的值 q ( x i ) 。 q(x_i)\mathclose{\text{。}} q ( x i ) 。 杆的右端密度之和为 1.25 + 2 + 3.25 + 5 = 11.5 1.25 + 2 + 3.25 + 5 = 11.5 1.25 + 2 + 3.25 + 5 = 11.5 对于 n = 4 , n = 4\mathclose{\text{,}} n = 4 , 约为 2335 对于 n = 1000 : n = 1000\mathclose{\text{:}} n = 1000 : 没有因子 Δ x , \Delta x\mathclose{\text{,}} Δ x , 这些和将无限增长而不是收敛到质量。
当一个区域位于两条曲线之间,即 y = f ( x ) y = f(x) y = f ( x ) 在上, y = g ( x ) y = g(x) y = g ( x ) 在下,对于 a ≤ x ≤ b , a \le x \le b\mathclose{\text{,}} a ≤ x ≤ b , 用垂直线切分该区域。在 x x x 处的条带,宽度为 Δ x , \Delta x\mathclose{\text{,}} Δ x , 近似为高度为 f ( x ) − g ( x ) f(x) - g(x) f ( x ) − g ( x ) 的矩形,即上边减去下边。将这些条带相加并取极限得到面积。
定义 12.1曲线之间的面积
设 f f f 和 g g g 在 [ a , b ] [a, b] [ a , b ] 上连续,且 g ( x ) ≤ f ( x ) g(x) \le f(x) g ( x ) ≤ f ( x ) 对于 a ≤ x ≤ b 。 a \le x \le b\mathclose{\text{。}} a ≤ x ≤ b 。 两曲线之间区域的 面积 ,即点集 ( x , y ) (x, y) ( x , y ) 满足 a ≤ x ≤ b a \le x \le b a ≤ x ≤ b 且 g ( x ) ≤ y ≤ f ( x ) , g(x) \le y \le f(x)\mathclose{\text{,}} g ( x ) ≤ y ≤ f ( x ) , 是
A = ∫ a b ( f ( x ) − g ( x ) ) d x . A = \int_a^b \big(f(x) - g(x)\big)\,dx. A = ∫ a b ( f ( x ) − g ( x ) ) d x .
与 g = 0 g = 0 g = 0 相关的是曲线下的面积,如第 9 模块所示。曲线可能低于 x x x 轴:只关心每个矩形条的 f ( x ) − g ( x ) f(x) - g(x) f ( x ) − g ( x ) 高度,且将两条曲线同时向上移动相同距离不会改变面积。对于“由两条曲线围成的区域”,积分限 a a a 和 b b b 是曲线相交的点:解方程 f ( x ) = g ( x ) 。 f(x) = g(x)\mathclose{\text{。}} f ( x ) = g ( x ) 。
例 12.1两条抛物线 ✓ 已检验
求由抛物线 y = 4 − x 2 y = 4 - x^2 y = 4 − x 2 和 y = x 2 − 2 x y = x^2 - 2x y = x 2 − 2 x 围成的区域的面积。
曲线相交于 4 − x 2 = x 2 − 2 x , 4 - x^2 = x^2 - 2x\mathclose{\text{,}} 4 − x 2 = x 2 − 2 x , 即 2 x 2 − 2 x − 4 = 0 , 2x^2 - 2x - 4 = 0\mathclose{\text{,}} 2 x 2 − 2 x − 4 = 0 , 或 x 2 − x − 2 = 0 。 x^2 - x - 2 = 0\mathclose{\text{。}} x 2 − x − 2 = 0 。 这可以因式分解为 ( x − 2 ) ( x + 1 ) = 0 , (x - 2)(x + 1) = 0\mathclose{\text{,}} ( x − 2 ) ( x + 1 ) = 0 , 因此曲线在 x = − 1 x = -1 x = − 1 和 x = 2 x = 2 x = 2 相交。在两个交点之间,同一曲线始终在上方(否则根据第 3 模块的中间值定理,连续函数 f − g f - g f − g 在中间某处会为 0),因此测试一个点:在 x = 0 , x = 0\mathclose{\text{,}} x = 0 , 4 − x 2 = 4 4 - x^2 = 4 4 − x 2 = 4 和 x 2 − 2 x = 0 , x^2 - 2x = 0\mathclose{\text{,}} x 2 − 2 x = 0 , 所以 y = 4 − x 2 y = 4 - x^2 y = 4 − x 2 在上方。上减下为 ( 4 − x 2 ) − ( x 2 − 2 x ) = 4 + 2 x − 2 x 2 , (4 - x^2) - (x^2 - 2x) = 4 + 2x - 2x^2\mathclose{\text{,}} ( 4 − x 2 ) − ( x 2 − 2 x ) = 4 + 2 x − 2 x 2 ,
A = ∫ − 1 2 ( 4 + 2 x − 2 x 2 ) d x = [ 4 x + x 2 − 2 x 3 3 ] − 1 2 = 20 3 − ( − 7 3 ) = 9. \begin{aligned} A &= \int_{-1}^{2} \big(4 + 2x - 2x^2\big)\,dx \\ &= \Big[4x + x^2 - \frac{2x^3}{3}\Big]_{-1}^{2} \\ &= \frac{20}{3} - \Big(-\frac{7}{3}\Big) = 9. \end{aligned} A = ∫ − 1 2 ( 4 + 2 x − 2 x 2 ) d x = [ 4 x + x 2 − 3 2 x 3 ] − 1 2 = 3 20 − ( − 3 7 ) = 9.
当曲线相交时,每处相交点处上方和下方的曲线互换。面积计算将每一条条带都视为正数,因此应在相交点处将区间分割;在一个公式中,面积为 ∫ a b ∣ f ( x ) − g ( x ) ∣ d x 。 \int_a^b \abs{f(x) - g(x)}\,dx\mathclose{\text{。}} ∫ a b ∣ f ( x ) − g ( x ) ∣ d x 。
例 12.2相交曲线 ✓ 已检验
求 0 ≤ x ≤ π 0 \le x \le \pi 0 ≤ x ≤ π 下 y = sin x y = \sin x y = sin x 和 y = cos x y = \cos x y = cos x 之间的区域的面积。
曲线在 sin x = cos x \sin x = \cos x sin x = cos x 处相交,即 tan x = 1 ; \tan x = 1\mathclose{\text{;}} tan x = 1 ; 在 [ 0 , π ] [0, \pi] [ 0 , π ] 中,这种情况仅在 x = π / 4 x = \pi/4 x = π /4 发生。在 x = 0 , x = 0\mathclose{\text{,}} x = 0 , cos x = 1 \cos x = 1 cos x = 1 和 sin x = 0 , \sin x = 0\mathclose{\text{,}} sin x = 0 , 因此 cos x \cos x cos x 在 [ 0 , π / 4 ] [0, \pi/4] [ 0 , π /4 ] 上方;在 x = π / 2 , x = \pi/2\mathclose{\text{,}} x = π /2 , sin x = 1 \sin x = 1 sin x = 1 和 cos x = 0 , \cos x = 0\mathclose{\text{,}} cos x = 0 , 因此 sin x \sin x sin x 在 [ π / 4 , π ] [\pi/4, \pi] [ π /4 , π ] 上方。因此
A = ∫ 0 π / 4 ( cos x − sin x ) d x + ∫ π / 4 π ( sin x − cos x ) d x = [ sin x + cos x ] 0 π / 4 + [ − cos x − sin x ] π / 4 π = ( 2 − 1 ) + ( 1 + 2 ) = 2 2 ≈ 2.828. \begin{aligned} A &= \int_0^{\pi/4} (\cos x - \sin x)\,dx \\ &\qquad + \int_{\pi/4}^{\pi} (\sin x - \cos x)\,dx \\ &= \big[\sin x + \cos x\big]_0^{\pi/4} \\ &\qquad + \big[-\cos x - \sin x\big]_{\pi/4}^{\pi} \\ &= \big(\sqrt2 - 1\big) + \big(1 + \sqrt2\big) \\ &= 2\sqrt2 \approx 2.828. \end{aligned} A = ∫ 0 π /4 ( cos x − sin x ) d x + ∫ π /4 π ( sin x − cos x ) d x = [ sin x + cos x ] 0 π /4 + [ − cos x − sin x ] π /4 π = ( 2 − 1 ) + ( 1 + 2 ) = 2 2 ≈ 2.828.
注意
不进行分割时,积分结果不是面积: ∫ 0 π ( cos x − sin x ) d x = [ sin x + cos x ] 0 π = − 1 − 1 = − 2 。 \int_0^\pi (\cos x - \sin x)\,dx = \big[\sin x + \cos x\big]_0^\pi = -1 - 1 = -2\mathclose{\text{。}} ∫ 0 π ( cos x − sin x ) d x = [ sin x + cos x ] 0 π = − 1 − 1 = − 2 。 其中 sin x \sin x sin x 在上方的条带被计为负数,而面积永远不会为负数。在积分前,应先找出曲线的交点,并确定在交点之间的曲线哪一条在上方。
水平条带
有些区域更适合反向切片:选择每个条带在相同两条曲线之间延伸的方向。图 12.1 显示了抛物线 x = y 2 x = y^2 x = y 2 与直线 y = x − 2 y = x - 2 y = x − 2 之间的区域。当 0 ≤ x ≤ 1 0 \le x \le 1 0 ≤ x ≤ 1 时,垂直条带从抛物线的下半部分 y = − x y = -\sqrt x y = − x 延伸到上半部分,但当 1 ≤ x ≤ 4 1 \le x \le 4 1 ≤ x ≤ 4 时,则从直线延伸到上半部分:两个公式,因此需要两个积分。每个水平条带都从左侧的抛物线延伸到右侧的直线。对于左边界为 x = x L ( y ) 、 x = x_L(y)\mathclose{\text{、}} x = x L ( y ) 、 右边界为 x = x R ( y ) x = x_R(y) x = x R ( y ) 的区域,当 c ≤ y ≤ d c \le y \le d c ≤ y ≤ d 时,高度为 Δ y \Delta y Δ y 的水平条带长度为 x R ( y ) − x L ( y ) , x_R(y) - x_L(y)\mathclose{\text{,}} x R ( y ) − x L ( y ) , 即右减左,且
A = ∫ c d ( x R ( y ) − x L ( y ) ) d y . A = \int_c^d \big(x_R(y) - x_L(y)\big)\,dy. A = ∫ c d ( x R ( y ) − x L ( y ) ) d y .
图 12.1 抛物线 x = y 2 x = y^2 x = y 2 和直线 y = x − 2 y = x - 2 y = x − 2 之间的区域,它们在 ( 1 , − 1 ) (1, -1) ( 1 , − 1 ) 和 ( 4 , 2 ) (4, 2) ( 4 , 2 ) 处相交。左图:当 x < 1 x < 1 x < 1 时,一条垂直条带从 y = − x y = -\sqrt x y = − x 运行到 y = x , y = \sqrt x\mathclose{\text{,}} y = x , 但当 x > 1 x > 1 x > 1 时,条带从 y = x − 2 y = x - 2 y = x − 2 运行到 y = x , y = \sqrt x\mathclose{\text{,}} y = x , 因此垂直条带需要两个积分。右图:每一条水平条带从 x = y 2 x = y^2 x = y 2 运行到 x = y + 2 , x = y + 2\mathclose{\text{,}} x = y + 2 , 因此只需一个积分即可(例12.3)。
例 12.3水平条带 ✓ 已检验
求 x = y 2 x = y^2 x = y 2 和 y = x − 2 y = x - 2 y = x − 2 之间区域的面积,用水平条带和用垂直条带。
水平条带。 将直线写成 x = y + 2 。 x = y + 2\mathclose{\text{。}} x = y + 2 。 曲线相交于 y 2 = y + 2 , y^2 = y + 2\mathclose{\text{,}} y 2 = y + 2 , 即 ( y − 2 ) ( y + 1 ) = 0 : (y - 2)(y + 1) = 0\mathclose{\text{:}} ( y − 2 ) ( y + 1 ) = 0 : 在 y = − 1 y = -1 y = − 1 和 y = 2 y = 2 y = 2 处,点 ( 1 , − 1 ) (1, -1) ( 1 , − 1 ) 和 ( 4 , 2 ) 。 (4, 2)\mathclose{\text{。}} ( 4 , 2 ) 。 在 y = 0 y = 0 y = 0 处,直线在 x = 2 , x = 2\mathclose{\text{,}} x = 2 , 抛物线在 x = 0 , x = 0\mathclose{\text{,}} x = 0 , 因此直线在右边:
A = ∫ − 1 2 ( ( y + 2 ) − y 2 ) d y = [ y 2 2 + 2 y − y 3 3 ] − 1 2 = 10 3 − ( − 7 6 ) = 9 2 . \begin{aligned} A &= \int_{-1}^{2} \big((y + 2) - y^2\big)\,dy \\ &= \Big[\frac{y^2}{2} + 2y - \frac{y^3}{3}\Big]_{-1}^{2} \\ &= \frac{10}{3} - \Big(-\frac{7}{6}\Big) = \frac{9}{2}. \end{aligned} A = ∫ − 1 2 ( ( y + 2 ) − y 2 ) d y = [ 2 y 2 + 2 y − 3 y 3 ] − 1 2 = 3 10 − ( − 6 7 ) = 2 9 .
垂直条带。 从 x = 0 x = 0 x = 0 到 x = 1 , x = 1\mathclose{\text{,}} x = 1 , 一条条带从 − x -\sqrt x − x 到 x ; \sqrt x\mathclose{\text{;}} x ; 从 x = 1 x = 1 x = 1 到 x = 4 , x = 4\mathclose{\text{,}} x = 4 , 从 x − 2 x - 2 x − 2 到 x 。 \sqrt x\mathclose{\text{。}} x 。 使用原函数 4 3 x 3 / 2 \tfrac43 x^{3/2} 3 4 x 3/2 和 2 3 x 3 / 2 − 1 2 x 2 + 2 x , \tfrac23 x^{3/2} - \tfrac12 x^2 + 2x\mathclose{\text{,}} 3 2 x 3/2 − 2 1 x 2 + 2 x ,
A = ∫ 0 1 2 x d x + ∫ 1 4 ( x − x + 2 ) d x = 4 3 + 19 6 = 9 2 . \begin{aligned} A &= \int_0^1 2\sqrt x\,dx \\ &\qquad + \int_1^4 \big(\sqrt x - x + 2\big)\,dx \\ &= \frac43 + \frac{19}{6} = \frac{9}{2}. \end{aligned} A = ∫ 0 1 2 x d x + ∫ 1 4 ( x − x + 2 ) d x = 3 4 + 6 19 = 2 9 .
相同的面积,如所必须的,但需要更多计算。
注意
在关于 y y y 的积分中,所有内容都用 y y y 来表示:边界为 x = … , x = \dots\mathclose{\text{,}} x = … , 条形的长度为右减左(不是上减下),积分限为 y y y 的值。在例 12.3 中,积分限是 − 1 -1 − 1 和 2 , 2\mathclose{\text{,}} 2 , 即交点的 y y y 坐标,而不是它们的 x x x 坐标 1 和 4。
横截面
切一片面包:每一片近似为一个扁平的薄片,其体积为其底面面积乘以厚度。同样的想法可用于计算任何已知横截面的立体的体积。在立体中引入一个 x x x 轴,设 A ( x ) A(x) A ( x ) 为通过该轴上点 x x x 的垂直平面所截得的横截面的面积。在 x x x 处厚度为 Δ x \Delta x Δ x 的薄片体积约为 A ( x ) Δ x 。 A(x)\,\Delta x\mathclose{\text{。}} A ( x ) Δ x 。 将这些相加并取极限:
定义 12.2切片法求体积
设一立体位于垂直于x x x 轴的平面x = a x = a x = a 与x = b x = b x = b 之间,且其在x x x 处的截面面积为A ( x ) , A(x)\mathclose{\text{,}} A ( x ) , 其中A A A 在[ a , b ] [a, b] [ a , b ] 上连续。该立体的体积 为
V = ∫ a b A ( x ) d x . V = \int_a^b A(x)\,dx. V = ∫ a b A ( x ) d x .
检查:一个高度为 h h h 的棱柱或圆柱,其所有横截面面积相同,均为 B , B\mathclose{\text{,}} B , 则体积为 V = ∫ 0 h B d x = B h , V = \int_0^h B\,dx = Bh\mathclose{\text{,}} V = ∫ 0 h B d x = B h , 即底面积乘以高度,这是熟知的公式。
例 12.4一个棱锥 ✓ 已检验
一个棱锥有一个边长为 s s s 的正方形底面和高度为 h 。 h\mathclose{\text{。}} h 。 求其体积。
将顶点放在原点,使 x x x 轴穿过底面中心向下,这样 x x x 是从顶点向下到底面的深度,底面位于 x = h 。 x = h\mathclose{\text{。}} x = h 。 深度为 x x x 处的横截面是一个正方形。由相似三角形可知,其边长随深度按比例增长,从顶点处的 0 增长到底面处的 s , s\mathclose{\text{,}} s , 因此为 s x / h 。 sx/h\mathclose{\text{。}} s x / h 。 所以 A ( x ) = ( s x / h ) 2 = s 2 x 2 / h 2 , A(x) = (sx/h)^2 = s^2x^2/h^2\mathclose{\text{,}} A ( x ) = ( s x / h ) 2 = s 2 x 2 / h 2 ,
V = ∫ 0 h s 2 h 2 x 2 d x = s 2 h 2 ⋅ h 3 3 = 1 3 s 2 h . V = \int_0^h \frac{s^2}{h^2}x^2\,dx = \frac{s^2}{h^2}\cdot\frac{h^3}{3} = \frac{1}{3}s^2h. V = ∫ 0 h h 2 s 2 x 2 d x = h 2 s 2 ⋅ 3 h 3 = 3 1 s 2 h .
一个金字塔占据与之同底同高的盒子的三分之一。这个论证适用于任何形状的底面:在深度 x x x 处的横截面是底面按因子 x / h x/h x / h 缩放,因此其面积为 B x 2 / h 2 , B\,x^2/h^2\mathclose{\text{,}} B x 2 / h 2 , 其中 B B B 是底面的面积(面积按因子的平方缩放),且 V = ∫ 0 h B x 2 / h 2 d x = 1 3 B h 。 V = \int_0^h Bx^2/h^2\,dx = \tfrac13 Bh\mathclose{\text{。}} V = ∫ 0 h B x 2 / h 2 d x = 3 1 B h 。 半径为 r r r 的圆锥是情形 B = π r 2 : B = \pi r^2\mathclose{\text{:}} B = π r 2 : 即 V = 1 3 π r 2 h 。 V = \tfrac13\pi r^2h\mathclose{\text{。}} V = 3 1 π r 2 h 。
圆盘与圆环
旋转连续函数 f ≥ 0 f \ge 0 f ≥ 0 的图像,对于 a ≤ x ≤ b , a \le x \le b\mathclose{\text{,}} a ≤ x ≤ b , 关于 x x x 轴。它扫出一个 旋转体 。区域中的每个点绕轴旋转成一个圆,因此在 x x x 处的横截面是一个半径为 f ( x ) 、 f(x)\mathclose{\text{、}} f ( x ) 、 面积为 π f ( x ) 2 \pi f(x)^2 π f ( x ) 2 的圆盘,
V = π ∫ a b f ( x ) 2 d x (discs) . V = \pi\int_a^b f(x)^2\,dx \qquad\text{(discs)}. V = π ∫ a b f ( x ) 2 d x (discs) .
例 12.5一个球体的体积 ✓ 已检验
求半径为 a a a 的球体的体积。
球体是由 y = a 2 − x 2 y = \sqrt{a^2 - x^2} y = a 2 − x 2 下方的半圆盘 − a ≤ x ≤ a -a \le x \le a − a ≤ x ≤ a 扫出的。这里 f ( x ) 2 = a 2 − x 2 , f(x)^2 = a^2 - x^2\mathclose{\text{,}} f ( x ) 2 = a 2 − x 2 , 因此平方根消失:
V = π ∫ − a a ( a 2 − x 2 ) d x = π [ a 2 x − x 3 3 ] − a a = π ( 2 a 3 3 + 2 a 3 3 ) = 4 3 π a 3 . \begin{aligned} V &= \pi\int_{-a}^{a} \big(a^2 - x^2\big)\,dx \\ &= \pi\Big[a^2x - \frac{x^3}{3}\Big]_{-a}^{a} \\ &= \pi\Big(\frac{2a^3}{3} + \frac{2a^3}{3}\Big) = \frac43\pi a^3. \end{aligned} V = π ∫ − a a ( a 2 − x 2 ) d x = π [ a 2 x − 3 x 3 ] − a a = π ( 3 2 a 3 + 3 2 a 3 ) = 3 4 π a 3 .
若区域未触及轴,则所得立体存在孔洞。设区域位于y = R ( x ) y = R(x) y = R ( x ) 与y = r ( x ) y = r(x) y = r ( x ) 之间,且满足0 ≤ r ( x ) ≤ R ( x ) 。 0 \le r(x) \le R(x)\mathclose{\text{。}} 0 ≤ r ( x ) ≤ R ( x ) 。 则在x x x 处的截面为washer ,即半径为R ( x ) R(x) R ( x ) 的圆盘挖去半径为r ( x ) r(x) r ( x ) 的孔(图12.2),其面积为π R ( x ) 2 − π r ( x ) 2 , \pi R(x)^2 - \pi r(x)^2\mathclose{\text{,}} π R ( x ) 2 − π r ( x ) 2 , 且
V = π ∫ a b ( R ( x ) 2 − r ( x ) 2 ) d x (washers) . V = \pi\int_a^b \big(R(x)^2 - r(x)^2\big)\,dx \quad\text{(washers)}. V = π ∫ a b ( R ( x ) 2 − r ( x ) 2 ) d x (washers) .
外半径 R ( x ) R(x) R ( x ) 是从轴线到较远边界的距离,而 内半径 r ( x ) r(x) r ( x ) 是到较近边界的距离。
图 12.2 左图:y = x y = \sqrt x y = x 与y = x 2 y = x^2 y = x 2 之间、0 ≤ x ≤ 1 0 \le x \le 1 0 ≤ x ≤ 1 (深蓝色)的区域绕x x x 轴旋转扫出一个形似厚碗的立体(例12.6);其外表面以透明壳绘制,紫色圆位于其内表面。x x x 处的切片(橙色)为圆环。右图:沿轴观察该圆环,外半径为R = x , R = \sqrt x\mathclose{\text{,}} R = x , 内半径为r = x 2 。 r = x^2\mathclose{\text{。}} r = x 2 。
例 12.6有孔的立体 ✓ 已检验
求当区域在 y = x y = \sqrt x y = x 和 y = x 2 y = x^2 y = x 2 之间绕 x x x 轴旋转时所扫过的立体的体积。
曲线在 x = x 2 \sqrt x = x^2 x = x 2 处相交;平方后,得到 x = x 4 , x = x^4\mathclose{\text{,}} x = x 4 , 即 x ( x 3 − 1 ) = 0 , x(x^3 - 1) = 0\mathclose{\text{,}} x ( x 3 − 1 ) = 0 , 因此在 x = 0 x = 0 x = 0 和 x = 1 x = 1 x = 1 处相交。对于 0 < x < 1 , 0 < x < 1\mathclose{\text{,}} 0 < x < 1 , 在 x > x 2 \sqrt x > x^2 x > x 2 (在 x = 1 4 , x = \tfrac14\mathclose{\text{,}} x = 4 1 , 1 2 > 1 16 \tfrac12 > \tfrac{1}{16} 2 1 > 16 1 处),因此 R ( x ) = x R(x) = \sqrt x R ( x ) = x 和 r ( x ) = x 2 : r(x) = x^2\mathclose{\text{:}} r ( x ) = x 2 :
V = π ∫ 0 1 ( x − x 4 ) d x = π ( 1 2 − 1 5 ) = 3 π 10 ≈ 0.942. \begin{aligned} V &= \pi\int_0^1 \big(x - x^4\big)\,dx = \pi\Big(\frac12 - \frac15\Big) \\ &= \frac{3\pi}{10} \approx 0.942. \end{aligned} V = π ∫ 0 1 ( x − x 4 ) d x = π ( 2 1 − 5 1 ) = 10 3 π ≈ 0.942.
注意
洗涤器的面积是 π R 2 − π r 2 , \pi R^2 - \pi r^2\mathclose{\text{,}} π R 2 − π r 2 , 不是 π ( R − r ) 2 。 \pi(R - r)^2\mathclose{\text{。}} π ( R − r ) 2 。 用 R = 2 R = 2 R = 2 和 r = 1 r = 1 r = 1 作为洗涤器的面积是 4 π − π = 3 π , 4\pi - \pi = 3\pi\mathclose{\text{,}} 4 π − π = 3 π , 而 π ( R − r ) 2 = π 。 \pi(R - r)^2 = \pi\mathclose{\text{。}} π ( R − r ) 2 = π 。 将每个半径平方,然后相减。
其他坐标轴
对任何坐标轴都适用同样的推理:沿轴垂直切片,并从轴测量每个半径。对于 y y y 轴,切片是水平的,因此半径是 y y y 的函数,以及 V = π ∫ c d ( R ( y ) 2 − r ( y ) 2 ) d y 。 V = \pi\int_c^d \big(R(y)^2 - r(y)^2\big)\,dy\mathclose{\text{。}} V = π ∫ c d ( R ( y ) 2 − r ( y ) 2 ) d y 。 对于一条水平线 y = k , y = k\mathclose{\text{,}} y = k , 高度为 y y y 的点到轴的距离是 ∣ y − k ∣ 。 \abs{y - k}\mathclose{\text{。}} ∣ y − k ∣ 。
例 12.7绕其他直线旋转 ✓ 已检验
(a) 一个碗的形状是当抛物线 y = x 2 y = x^2 y = x 2 绕 y y y 轴旋转时所扫出的曲面。当水深为 h h h 时,求碗中水的体积。
(b) 在 y = x y = x y = x 和 y = x 2 y = x^2 y = x 2 之间的区域 0 ≤ x ≤ 1 0 \le x \le 1 0 ≤ x ≤ 1 绕直线 y = − 1 y = -1 y = − 1 旋转,求所得立体的体积。
(a) 水是被 y y y 轴和抛物线所扫出的立体,对于 0 ≤ y ≤ h 0 \le y \le h 0 ≤ y ≤ h 的高度。在高度 y y y 处的横截面是一个圆盘,其半径是 x ≥ 0 x \ge 0 x ≥ 0 与 x 2 = y x^2 = y x 2 = y 的关系,即 y 。 \sqrt y\mathclose{\text{。}} y 。 因此
V = π ∫ 0 h ( y ) 2 d y = π ∫ 0 h y d y = π h 2 2 . \begin{aligned} V &= \pi\int_0^h \big(\sqrt y\big)^2\,dy \\ &= \pi\int_0^h y\,dy = \frac{\pi h^2}{2}. \end{aligned} V = π ∫ 0 h ( y ) 2 d y = π ∫ 0 h y d y = 2 π h 2 .
一个高度相同为 h h h 且顶部半径相同为 h \sqrt h h 的圆柱体的体积为 π ( h ) 2 h = π h 2 : \pi\big(\sqrt h\big)^2 h = \pi h^2\mathclose{\text{:}} π ( h ) 2 h = π h 2 : 碗的体积恰好是它的二分之一。
(b) 垂直于轴 y = − 1 y = -1 y = − 1 的横截面是竖直的,因此积分在 x x x 进行。两条曲线都在轴上方,对于 0 < x < 1 , 0 < x < 1\mathclose{\text{,}} 0 < x < 1 , 线 y = x y = x y = x 距离轴更远,因为 x > x 2 。 x > x^2\mathclose{\text{。}} x > x 2 。 半径是到轴的距离:即 R ( x ) = x − ( − 1 ) = x + 1 R(x) = x - (-1) = x + 1 R ( x ) = x − ( − 1 ) = x + 1 和 r ( x ) = x 2 + 1 。 r(x) = x^2 + 1\mathclose{\text{。}} r ( x ) = x 2 + 1 。 因此
V = π ∫ 0 1 ( ( x + 1 ) 2 − ( x 2 + 1 ) 2 ) d x = π ∫ 0 1 ( 2 x − x 2 − x 4 ) d x = π ( 1 − 1 3 − 1 5 ) = 7 π 15 ≈ 1.466. \begin{aligned} V &= \pi\int_0^1 \big((x + 1)^2 - (x^2 + 1)^2\big)\,dx \\ &= \pi\int_0^1 \big(2x - x^2 - x^4\big)\,dx \\ &= \pi\Big(1 - \frac13 - \frac15\Big) = \frac{7\pi}{15} \approx 1.466. \end{aligned} V = π ∫ 0 1 ( ( x + 1 ) 2 − ( x 2 + 1 ) 2 ) d x = π ∫ 0 1 ( 2 x − x 2 − x 4 ) d x = π ( 1 − 3 1 − 5 1 ) = 15 7 π ≈ 1.466.
注意
半径是从旋转轴到曲线的距离,不是高度。绕 y = − 1 y = -1 y = − 1 旋转时,曲线 y = x y = x y = x 的半径是 x + 1 , x + 1\mathclose{\text{,}} x + 1 , 而不是 x 。 x\mathclose{\text{。}} x 。 将同一区域绕 y = 2 y = 2 y = 2 旋转,该轴位于其上方,外半径属于下边的曲线:即 R ( x ) = 2 − x 2 R(x) = 2 - x^2 R ( x ) = 2 − x 2 和 r ( x ) = 2 − x 。 r(x) = 2 - x\mathclose{\text{。}} r ( x ) = 2 − x 。
将曲线 y = 4 x − x 3 、 y = 4x - x^3\mathclose{\text{、}} y = 4 x − x 3 、 0 ≤ x ≤ 2 0 \le x \le 2 0 ≤ x ≤ 2 下方的区域绕 y y y 轴旋转。使用 washer 法则需要水平切片,且高度为 y y y 的切片的半径是立方方程 4 x − x 3 = y 4x - x^3 = y 4 x − x 3 = y 的解 x : x\mathclose{\text{:}} x : 难以求解。改用垂直切片,将区域分割成垂直条带。一个距离轴为 x 、 x\mathclose{\text{、}} x 、 宽度为 Δ x 、 \Delta x\mathclose{\text{、}} Δ x 、 高度为 f ( x ) f(x) f ( x ) 的细条,在旋转时形成一个细长的 圆柱壳 ,其半径为 x , x\mathclose{\text{,}} x , 高度为 f ( x ) , f(x)\mathclose{\text{,}} f ( x ) , 厚度为 Δ x \Delta x Δ x (图 12.3)。将圆柱壳沿高度切开并展开:它近似为一个扁平的板,长度为 2 π x 2\pi x 2 π x (周长),高度为 f ( x ) , f(x)\mathclose{\text{,}} f ( x ) , 厚度为 Δ x , \Delta x\mathclose{\text{,}} Δ x , 体积约为 2 π x f ( x ) Δ x 。 2\pi x\,f(x)\,\Delta x\mathclose{\text{。}} 2 π x f ( x ) Δ x 。
这个近似足够好。在半径 x x x 和 x + Δ x x + \Delta x x + Δ x 之间、高度为 h h h 的圆柱体的体积为
π ( x + Δ x ) 2 h − π x 2 h = 2 π ( x + Δ x 2 ) h Δ x , \pi(x + \Delta x)^2h - \pi x^2h = 2\pi\Big(x + \frac{\Delta x}{2}\Big)h\,\Delta x, π ( x + Δ x ) 2 h − π x 2 h = 2 π ( x + 2 Δ x ) h Δ x ,
管中部的周长乘以高度和厚度。用x x x 表示半径,这最多改变π h ( Δ x ) 2 , \pi h(\Delta x)^2\mathclose{\text{,}} π h ( Δ x ) 2 , 若H H H 是区域的最大高度,则最多为π H ( Δ x ) 2 ; \pi H(\Delta x)^2\mathclose{\text{;}} π H ( Δ x ) 2 ; 对所有n n n 个壳求和,最多为π H ( b − a ) Δ x , \pi H(b - a)\,\Delta x\mathclose{\text{,}} π H ( b − a ) Δ x , 其趋于0。高度在条带上略有变化,但如第12.1节所示,条扫过的固体位于具有条带最小和最大高度的管之间。将壳相加并取极限,得到壳方法 :当连续函数f ≥ 0 f \ge 0 f ≥ 0 在0 ≤ a ≤ x ≤ b 0 \le a \le x \le b 0 ≤ a ≤ x ≤ b 下的区域绕y y y 轴旋转时,
V = 2 π ∫ a b x f ( x ) d x . V = 2\pi\int_a^b x\,f(x)\,dx. V = 2 π ∫ a b x f ( x ) d x .
对于其他区域和垂直轴 V = 2 π ∫ ( radius ) ( height ) d x , V = 2\pi\int (\text{radius})(\text{height})\,dx\mathclose{\text{,}} V = 2 π ∫ ( radius ) ( height ) d x , 半径是从轴测量的,高度为上边界减去下边界。当壳法和盘法(washer method)都适用时,它们总是给出相同的体积;练习 12.11 证明了对于一个递减曲线下的区域,这一结论成立。
图 12.3 圆柱壳法。左图:区域y = 4 x − x 3 、 y = 4x - x^3\mathclose{\text{、}} y = 4 x − x 3 、 0 ≤ x ≤ 2 0 \le x \le 2 0 ≤ x ≤ 2 下方,距y y y 轴距离x x x 处有一条宽度为Δ x \Delta x Δ x 的条带。右图:绕y y y 轴(虚线)旋转,该条带扫出一个半径为x 、 x\mathclose{\text{、}} x 、 高为f ( x ) 、 f(x)\mathclose{\text{、}} f ( x ) 、 厚度为Δ x \Delta x Δ x 的薄壳,位于蓝色轮廓所示的实体内部。展开后,该壳近似为一个体积为2 π x ⋅ f ( x ) ⋅ Δ x 2\pi x \cdot f(x) \cdot \Delta x 2 π x ⋅ f ( x ) ⋅ Δ x 的板。
例 12.8当壳法优于盘法时 ✓ 已检验
求当区域在 y = 4 x − x 3 y = 4x - x^3 y = 4 x − x 3 和 0 ≤ x ≤ 2 0 \le x \le 2 0 ≤ x ≤ 2 下方绕 y y y 轴旋转时,所扫出的实体的体积。
该区域位于 x x x 轴上方:对于 0 ≤ x ≤ 2 , 0 \le x \le 2\mathclose{\text{,}} 0 ≤ x ≤ 2 , 有 4 x − x 3 = x ( 2 − x ) ( 2 + x ) ≥ 0 。 4x - x^3 = x(2 - x)(2 + x) \ge 0\mathclose{\text{。}} 4 x − x 3 = x ( 2 − x ) ( 2 + x ) ≥ 0 。 使用壳法,半径为 x , x\mathclose{\text{,}} x , 高度为 4 x − x 3 , 4x - x^3\mathclose{\text{,}} 4 x − x 3 ,
V = 2 π ∫ 0 2 x ( 4 x − x 3 ) d x = 2 π ∫ 0 2 ( 4 x 2 − x 4 ) d x = 2 π ( 32 3 − 32 5 ) = 128 π 15 ≈ 26.81. \begin{aligned} V &= 2\pi\int_0^2 x\big(4x - x^3\big)\,dx \\ &= 2\pi\int_0^2 \big(4x^2 - x^4\big)\,dx \\ &= 2\pi\Big(\frac{32}{3} - \frac{32}{5}\Big) = \frac{128\pi}{15} \approx 26.81. \end{aligned} V = 2 π ∫ 0 2 x ( 4 x − x 3 ) d x = 2 π ∫ 0 2 ( 4 x 2 − x 4 ) d x = 2 π ( 3 32 − 5 32 ) = 15 128 π ≈ 26.81.
要点
洗盘法(Washers)的切片垂直于轴;壳层法(Shells)的切片平行于轴。关于水平轴,洗盘法积分在 x , x\mathclose{\text{,}} x , 壳层法在 y ; y\mathclose{\text{;}} y ; 关于垂直轴,洗盘法积分在 y , y\mathclose{\text{,}} y , 壳层法在 x 。 x\mathclose{\text{。}} x 。 选择一种方法,其切片只需一个公式,且半径容易写出:当求解 x x x 时壳层法会很困难,如例 12.8 所示。
注意
壳层法的半径是其到轴的距离。旋转区域 y = x y = x y = x 和 y = x 2 y = x^2 y = x 2 之间的 0 ≤ x ≤ 1 0 \le x \le 1 0 ≤ x ≤ 1 关于直线 x = 2 , x = 2\mathclose{\text{,}} x = 2 , 位于 x x x 处的条带距离轴为 2 − x , 2 - x\mathclose{\text{,}} 2 − x , 因此 V = 2 π ∫ 0 1 ( 2 − x ) ( x − x 2 ) d x = π / 2 。 V = 2\pi\int_0^1 (2 - x)(x - x^2)\,dx = \pi/2\mathclose{\text{。}} V = 2 π ∫ 0 1 ( 2 − x ) ( x − x 2 ) d x = π /2 。 使用 x x x 作为半径将给出 y y y 轴的体积,即 π / 6 。 \pi/6\mathclose{\text{。}} π /6 。
动手计算使用 SymPy 计算面积和体积
SymPy 通过 solve 找出曲线的交点,并通过 integrate 计算积分。对于例 12.6 的区域:
Python 复制
import sympy as sp
x, y = sp.symbols ('x y' )
print (sp.solve (sp.Eq (sp.sqrt (x), x**2 ), x)) # where the curves meet
print (sp.integrate (sp.sqrt (x) - x**2 , (x, 0 , 1 ))) # the area between them
print (sp.pi*sp.integrate (x - x**4 , (x, 0 , 1 ))) # the volume by washers
现在用两种方法计算同一体积:区域在 y = x y = x y = x 和 y = x 2 、 y = x^2\mathclose{\text{、}} y = x 2 、 0 ≤ x ≤ 1 0 \le x \le 1 0 ≤ x ≤ 1 之间,绕 y y y 轴旋转。壳层的半径为 x , x\mathclose{\text{,}} x , 高度为 x − x 2 。 x - x^2\mathclose{\text{。}} x − x 2 。 水平切片在高度 y y y 处从 x = y x = y x = y 到 x = y , x = \sqrt y\mathclose{\text{,}} x = y , 因此洗盘的外半径为 R = y , R = \sqrt y\mathclose{\text{,}} R = y , 内半径为 r = y : r = y\mathclose{\text{:}} r = y :
Python 复制
shells = 2 *sp.pi*sp.integrate (x*(x - x**2 ), (x, 0 , 1 ))
washers = sp.pi*sp.integrate (sp.sqrt (y)**2 - y**2 , (y, 0 , 1 ))
print (shells, washers)
两种方法结果一致,正如它们必须如此:它们以不同的方式切分同一个立体。
曲线 y = sin x y = \sin x y = sin x 从 x = 0 x = 0 x = 0 到 x = π x = \pi x = π 一个拱的长度是多少?直尺测量直线段,因此用多边形近似曲线。选择 n + 1 n + 1 n + 1 个等间距的点 x 0 = 0 , x 1 , … , x n = π , x_0 = 0, x_1, \dots, x_n = \pi\mathclose{\text{,}} x 0 = 0 , x 1 , … , x n = π , 并将曲线邻近点用直线连接。根据勾股定理,从 ( x i − 1 , f ( x i − 1 ) ) \big(x_{i-1}, f(x_{i-1})\big) ( x i − 1 , f ( x i − 1 ) ) 到 ( x i , f ( x i ) ) \big(x_i, f(x_i)\big) ( x i , f ( x i ) ) 的弦长为 ( Δ x ) 2 + ( Δ y i ) 2 , \sqrt{(\Delta x)^2 + (\Delta y_i)^2}\mathclose{\text{,}} ( Δ x ) 2 + ( Δ y i ) 2 , 其中 Δ y i = f ( x i ) − f ( x i − 1 ) 。 \Delta y_i = f(x_i) - f(x_{i-1})\mathclose{\text{。}} Δ y i = f ( x i ) − f ( x i − 1 ) 。 随着 n n n 增大,多边形更贴近曲线:
弦 n n n
多边形的长度
1
3.14159
2
3.72419
4
3.79009
8
3.81253
16
3.81827
64
3.82008
长度增加:每个多边形的顶点都是下一个多边形的顶点,用两个弦代替一条弦不会缩短路径,因为直线段是其两端点之间的最短路径。并且它们趋于接近 3.820。这个数就是曲线长度的含义。
定义 12.3弧长
长度 (或弧长 )是f f f 从x = a x = a x = a 到x = b x = b x = b 的图形的长度,即当n → ∞ n \to \infty n → ∞ 时,其顶点为n + 1 n + 1 n + 1 处等距值a = x 0 < x 1 < ⋯ < x n = b a = x_0 < x_1 < \dots < x_n = b a = x 0 < x 1 < ⋯ < x n = b 的图形上各点的多边形长度的极限,如果该极限存在。
定理 12.1弧长公式
如果 f ′ f' f ′ 在 [ a , b ] [a, b] [ a , b ] 上连续,那么曲线 f f f 从 x = a x = a x = a 到 x = b x = b x = b 的长度是
L = ∫ a b 1 + f ′ ( x ) 2 d x . L = \int_a^b \sqrt{1 + f'(x)^2}\,dx. L = ∫ a b 1 + f ′ ( x ) 2 d x .
证明
根据中值定理(模块 8),应用于 f f f 在 [ x i − 1 , x i ] [x_{i-1}, x_i] [ x i − 1 , x i ] 上,存在该区间内的一个点 x i ∗ , x_i^*\mathclose{\text{,}} x i ∗ , 使得 Δ y i = f ′ ( x i ∗ ) Δ x 。 \Delta y_i = f'(x_i^*)\,\Delta x\mathclose{\text{。}} Δ y i = f ′ ( x i ∗ ) Δ x 。 因此,第 i i i 条弦的长度为
( Δ x ) 2 + f ′ ( x i ∗ ) 2 ( Δ x ) 2 = 1 + f ′ ( x i ∗ ) 2 Δ x , \begin{aligned} &\sqrt{(\Delta x)^2 + f'(x_i^*)^2(\Delta x)^2} \\ &\qquad= \sqrt{1 + f'(x_i^*)^2}\,\Delta x, \end{aligned} ( Δ x ) 2 + f ′ ( x i ∗ ) 2 ( Δ x ) 2 = 1 + f ′ ( x i ∗ ) 2 Δ x ,
和这个多边形的长度为 ∑ i = 1 n 1 + f ′ ( x i ∗ ) 2 Δ x 。 \sum_{i=1}^{n} \sqrt{1 + f'(x_i^*)^2}\,\Delta x\mathclose{\text{。}} ∑ i = 1 n 1 + f ′ ( x i ∗ ) 2 Δ x 。 这是函数 1 + f ′ ( x ) 2 \sqrt{1 + f'(x)^2} 1 + f ′ ( x ) 2 的一个黎曼和,该函数在 [ a , b ] [a, b] [ a , b ] 上连续,因为 f ′ f' f ′ 是连续的。因此,当 n → ∞ n \to \infty n → ∞ 趋于 0 时,多边形的长度趋近于 ∫ a b 1 + f ′ ( x ) 2 d x \int_a^b \sqrt{1 + f'(x)^2}\,dx ∫ a b 1 + f ′ ( x ) 2 d x (模块 9)。
∎
在莱布尼茨记号中,曲线的一小段是直角三角形斜边,该直角三角形的两条直角边分别为 d x dx d x 和 d y : dy\mathclose{\text{:}} d y : d L = ( d x ) 2 + ( d y ) 2 = 1 + ( d y / d x ) 2 d x 。 dL = \sqrt{(dx)^2 + (dy)^2} = \sqrt{1 + (dy/dx)^2}\,dx\mathclose{\text{。}} d L = ( d x ) 2 + ( d y ) 2 = 1 + ( d y / d x ) 2 d x 。 模块 16 将公式推广到由参数方程给出的曲线。
例 12.9悬挂的电缆 ✓ 已检验
一根缆绳或链条在自身重力作用下会形成一个悬链线(模块 6),即函数 y = a cosh ( x / a ) y = a\cosh(x/a) y = a cosh ( x / a ) 的图像,其中 a > 0 a > 0 a > 0 为常数,而 cosh \cosh cosh 是双曲余弦函数。求悬链线 y = cosh x y = \cosh x y = cosh x 从 x = − 1 x = -1 x = − 1 到 x = 1 x = 1 x = 1 的长度。
这里 f ′ ( x ) = sinh x , f'(x) = \sinh x\mathclose{\text{,}} f ′ ( x ) = sinh x , 且由恒等式 cosh 2 x − sinh 2 x = 1 \cosh^2 x - \sinh^2 x = 1 cosh 2 x − sinh 2 x = 1 (模块 6)可得 1 + sinh 2 x = cosh 2 x 。 1 + \sinh^2 x = \cosh^2 x\mathclose{\text{。}} 1 + sinh 2 x = cosh 2 x 。 由于 cosh x > 0 , \cosh x > 0\mathclose{\text{,}} cosh x > 0 , 1 + f ′ ( x ) 2 = cosh x , \sqrt{1 + f'(x)^2} = \cosh x\mathclose{\text{,}} 1 + f ′ ( x ) 2 = cosh x , 和
L = ∫ − 1 1 cosh x d x = [ sinh x ] − 1 1 = 2 sinh 1 = e − e − 1 ≈ 2.350. \begin{aligned} L &= \int_{-1}^{1} \cosh x\,dx = \big[\sinh x\big]_{-1}^{1} \\ &= 2\sinh 1 = e - e^{-1} \approx 2.350. \end{aligned} L = ∫ − 1 1 cosh x d x = [ sinh x ] − 1 1 = 2 sinh 1 = e − e − 1 ≈ 2.350.
以米为单位:一根 2.350 米长的缆绳,挂在两个高度为 cosh 1 ≈ 1.543 \cosh 1 \approx 1.543 cosh 1 ≈ 1.543 米的钩子之间,两钩相距 2 米,缆绳下垂至最低点距离地面 1 米。
当弧长公式中的平方根没有初等原函数时,数值积分可以近似长度。
例 12.10一个正弦曲线的拱形 ✓ 已检验
求 y = sin x 、 y = \sin x\mathclose{\text{、}} y = sin x 、 0 ≤ x ≤ π 0 \le x \le \pi 0 ≤ x ≤ π 的长度。
这里 f ′ ( x ) = cos x , f'(x) = \cos x\mathclose{\text{,}} f ′ ( x ) = cos x , 所以 L = ∫ 0 π 1 + cos 2 x d x 。 L = \int_0^\pi \sqrt{1 + \cos^2 x}\,dx\mathclose{\text{。}} L = ∫ 0 π 1 + cos 2 x d x 。 这是一个椭圆积分。它的被积函数没有初等原函数,这是一个我们不加证明而直接使用的事实。模块 11 解释了这意味着什么。使用辛普森法则来近似长度。利用 n = 4 n = 4 n = 4 和 Δ x = π / 4 , \Delta x = \pi/4\mathclose{\text{,}} Δ x = π /4 , 你需要在五个点 g ( x ) = 1 + cos 2 x : g(x) = \sqrt{1 + \cos^2 x}\mathclose{\text{:}} g ( x ) = 1 + cos 2 x : g ( 0 ) = g ( π ) = 2 、 g(0) = g(\pi) = \sqrt2\mathclose{\text{、}} g ( 0 ) = g ( π ) = 2 、 g ( π / 4 ) = g ( 3 π / 4 ) = 3 / 2 g(\pi/4) = g(3\pi/4) = \sqrt{3/2} g ( π /4 ) = g ( 3 π /4 ) = 3/2 和 g ( π / 2 ) = 1 。 g(\pi/2) = 1\mathclose{\text{。}} g ( π /2 ) = 1 。 因此
S 4 = π / 4 3 [ 2 + 4 3 2 + 2 ⋅ 1 + 4 3 2 + 2 ] = π 12 ( 2 2 + 8 3 2 + 2 ) ≈ 3.8292. \begin{aligned} S_4 &= \frac{\pi/4}{3}\Big[\sqrt2 + 4\sqrt{\tfrac32} + 2 \cdot 1 \\ &\qquad + 4\sqrt{\tfrac32} + \sqrt2\Big] \\ &= \frac{\pi}{12}\Big(2\sqrt2 + 8\sqrt{\tfrac32} + 2\Big) \\ &\approx 3.8292. \end{aligned} S 4 = 3 π /4 [ 2 + 4 2 3 + 2 ⋅ 1 + 4 2 3 + 2 ] = 12 π ( 2 2 + 8 2 3 + 2 ) ≈ 3.8292.
使用更多点时,辛普森法则给出 S 8 ≈ 3.82028 S_8 \approx 3.82028 S 8 ≈ 3.82028 和 S 16 ≈ 3.8201978 S_{16} \approx 3.8201978 S 16 ≈ 3.8201978 (下面的“动手计算”框中),因此拱形的长度为 L ≈ 3.8202 , L \approx 3.8202\mathclose{\text{,}} L ≈ 3.8202 , 正如多边形所暗示的那样。这比其底边 π \pi π 约长 21.6%:一种波浪形金属板,其轮廓为正弦曲线,需要比其宽度多出这么多的平直金属板。
注意
逼近必须遵循曲线的方向。一个由 n n n 水平步和 n n n 垂直步组成的阶梯,每个步长为 1 / n , 1/n\mathclose{\text{,}} 1/ n , 沿着单位正方形的对角线从一个角到另一个角。它的长度为 2 n ⋅ 1 n = 2 , 2n \cdot \tfrac1n = 2\mathclose{\text{,}} 2 n ⋅ n 1 = 2 , 无论 n n n 取何值,它可以任意接近对角线;然而,对角线的长度为 2 ≈ 1.414 。 \sqrt2 \approx 1.414\mathclose{\text{。}} 2 ≈ 1.414 。 每个步将对角线长度为 ( Δ x ) 2 + ( Δ y ) 2 \sqrt{(\Delta x)^2 + (\Delta y)^2} ( Δ x ) 2 + ( Δ y ) 2 的一段替换为 Δ x + Δ y , \Delta x + \Delta y\mathclose{\text{,}} Δ x + Δ y , 无论将这段分成多小的部分,替换后的长度都不接近原长度。弦沿着曲线方向,而阶梯则不然。
动手计算用计算机计算弧长
多边形和辛普森法则只需几行 Python 代码。 math.hypot(dx, dy) 是 d x 2 + d y 2 , \sqrt{dx^2 + dy^2}\mathclose{\text{,}} d x 2 + d y 2 , 毕达哥拉斯定理:
Python 复制
import math
def polygon (f, a, b, n):
"""Polygon through n + 1 equally spaced points of y = f(x)."""
xs = [a + (b - a)*i/n for i in range (n + 1 )]
return sum (math.hypot (xs[i + 1 ] - xs[i], f (xs[i + 1 ]) - f (xs[i]))
for i in range (n))
def simpson (g, a, b, n):
"""Simpson's rule with n subintervals (n even)."""
h = (b - a)/n
inner = sum ((4 if i % 2 else 2 )*g (a + i*h) for i in range (1 , n))
return h/3 *(g (a) + inner + g (b))
P = polygon (math.sin, 0 , math.pi, 1000 )
print (f"polygon, 1000 chords: {P:.10f}" )
g = lambda x: math.sqrt (1 + math.cos (x)**2 )
for n in [4 , 8 , 16 , 32 ]:
print (f"Simpson, n = {n:2d}: {simpson(g, 0, math.pi, n):.10f}" )
输出
polygon, 1000 chords: 3.8201972963
Simpson, n = 4: 3.8291789256
Simpson, n = 8: 3.8202824061
Simpson, n = 16: 3.8201978136
Simpson, n = 32: 3.8201977890
即使有上千条弦,误差也大约为 5 × 10 − 7 , 5 \times 10^{-7}\mathclose{\text{,}} 5 × 1 0 − 7 , 而使用 n = 32 n = 32 n = 32 的辛普森法则与真实长度在显示的十位小数上完全一致。SymPy 可以计算出任意多的小数位的积分结果。当要求反函数时,它返回未计算的积分形式:它没有找到初等反函数。(虽然确实不存在,但 SymPy 的失败并不能单独证明这一点。)
Python 复制
import sympy as sp
x = sp.symbols ('x' )
print (sp.Integral (sp.sqrt (1 + sp.cos (x)**2 ), (x, 0 , sp.pi)).evalf (20 ))
print (sp.integrate (sp.sqrt (1 + sp.cos (x)**2 ), x))
输出
3.8201977890277120179
Integral(sqrt(cos(x)**2 + 1), x)
匀速提起一袋2 kg的面粉1.5 m。你施加的力等于其重量,m g = 2 × 9.8 = 19.6 mg = 2 \times 9.8 = 19.6 m g = 2 × 9.8 = 19.6 牛顿(N),其中 g ≈ 9.8 g \approx 9.8 g ≈ 9.8 m/s² 是重力加速度(模块1)。恒力 F F F 作用距离 d d d 所做的功为 功 W = F d , W = Fd\mathclose{\text{,}} W = F d , 此处 19.6 × 1.5 = 29.4 19.6 \times 1.5 = 29.4 19.6 × 1.5 = 29.4 焦耳(J):1 牛顿的力作用1米所做的功为1焦耳。当力沿路径变化时,将路径分段。在长度为 Δ x \Delta x Δ x 的短段上,力几乎恒定,因此该段所做的功约为 F ( x ) Δ x 。 F(x)\,\Delta x\mathclose{\text{。}} F ( x ) Δ x 。
定义 12.4功
如果一个连续的力 F ( x ) F(x) F ( x ) 沿一条直线作用,使物体从 x = a x = a x = a 移动到 x = b , x = b\mathclose{\text{,}} x = b , 则所做的 功 为
W = ∫ a b F ( x ) d x . W = \int_a^b F(x)\,dx. W = ∫ a b F ( x ) d x .
弹簧. 拉伸一个弹簧 x x x 米超过其自然长度,它会以与 x : x\mathclose{\text{:}} x : F ( x ) = k x F(x) = kx F ( x ) = k x 成正比的力拉回,其中弹簧常数 k k k 的单位是 N/m。这就是虎克定律 。它适用于不太大的拉伸(在弹簧的弹性限度内),也适用于压缩。要拉伸弹簧,你必须自己施加这个力 k x 。 kx\mathclose{\text{。}} k x 。
例 12.11拉伸弹簧 ✓ 已检验
一个 30 N 的力使弹簧拉伸到其自然长度以外 0.15 m 处。将其拉伸(a)从自然长度到其自然长度以外 0.15 m 处,以及(b)从自然长度以外 0.15 m 到 0.30 m 处,需要做多少功?
根据虎克定律 30 = k × 0.15 , 30 = k \times 0.15\mathclose{\text{,}} 30 = k × 0.15 , 因此 k = 200 k = 200 k = 200 N/m,且在拉伸 x x x 处所需的力为 200 x 200x 200 x N。 200 x 200x 200 x 的一个原函数是 100 x 2 。 100x^2\mathclose{\text{。}} 100 x 2 。
(a) W = ∫ 0 0.15 200 x d x = [ 100 x 2 ] 0 0.15 = 100 × 0.0225 = 2.25 W = \int_0^{0.15} 200x\,dx = \big[100x^2\big]_0^{0.15} = 100 \times 0.0225 = 2.25 W = ∫ 0 0.15 200 x d x = [ 100 x 2 ] 0 0.15 = 100 × 0.0225 = 2.25 J.
(b) W = [ 100 x 2 ] 0.15 0.30 = 9 − 2.25 = 6.75 W = \big[100x^2\big]_{0.15}^{0.30} = 9 - 2.25 = 6.75 W = [ 100 x 2 ] 0.15 0.30 = 9 − 2.25 = 6.75 J: 三倍于相同额外 0.15 m 的功,因为弹簧被拉伸得越多,拉力越强。
注意
“力乘以距离”仅适用于恒定的力。在 (a) 中, 30 × 0.15 = 4.5 30 \times 0.15 = 4.5 30 × 0.15 = 4.5 J 是真实功的两倍:力从 0 增加到 30 N,其在拉伸过程中的平均值为 15 N。而 x x x 是超出自然长度的部分,不是弹簧的总长度。
提起一根绳子。 当物体的不同部分移动不同距离时,将物体切片,而不是路径。
例 12.12提起一根绳子 ✓ 已检验
一根 20 m 长的绳子,每米质量为 0.4 kg,从建筑物顶部垂下(图 12.4,左图)。将整根绳子提起至顶部需要做多少功?
从顶部向下测量深度 y 。 y\mathclose{\text{。}} y 。 深度 y y y 和 y + Δ y y + \Delta y y + Δ y 之间的绳子质量为 0.4 Δ y 0.4\,\Delta y 0.4 Δ y kg,重力为 0.4 × 9.8 Δ y = 3.92 Δ y 0.4 \times 9.8\,\Delta y = 3.92\,\Delta y 0.4 × 9.8 Δ y = 3.92 Δ y N,被提起约 y y y 米。因此其功约为 3.92 y Δ y 3.92\,y\,\Delta y 3.92 y Δ y J,
W = ∫ 0 20 3.92 y d y = 3.92 × 20 2 2 = 784 J . \begin{aligned} W &= \int_0^{20} 3.92\,y\,dy \\ &= 3.92 \times \frac{20^2}{2} = 784 \text{ J}. \end{aligned} W = ∫ 0 20 3.92 y d y = 3.92 × 2 2 0 2 = 784 J .
切割运动反而得到相同的结果:当 x x x 米被拉起时,悬挂部分的重量为 3.92 ( 20 − x ) 3.92(20 - x) 3.92 ( 20 − x ) N,且做功为 ∫ 0 20 3.92 ( 20 − x ) d x = 784 \int_0^{20} 3.92(20 - x)\,dx = 784 ∫ 0 20 3.92 ( 20 − x ) d x = 784 J。
注意
绳子的重量为 3.92 × 20 = 78.4 3.92 \times 20 = 78.4 3.92 × 20 = 78.4 N,但所做的功不是 78.4 × 20 = 1568 78.4 \times 20 = 1568 78.4 × 20 = 1568 J:只有绳子的末端上升了 20 m,而顶端几乎不动。平均而言,绳子上升了 10 m,因此做功为 78.4 × 10 = 784 78.4 \times 10 = 784 78.4 × 10 = 784 J。这个平均值即为绳子质心的深度(第 12.7 节)。
抽水液体。 为了排空一个储罐,将液体切成薄的水平层:每一层整体被提升至出口。
图 12.4 左图:一根 20 m 长的绳子从建筑物顶部垂下;深度为 y y y 的部分,长度为 Δ y , \Delta y\mathclose{\text{,}} Δ y , 被拉起了 y y y 米(例 12.12)。右图:例 12.13 中的锥形储罐,深 4 m,顶部半径为 2 m;高度为 y y y 处的水层,半径为 y / 2 , y/2\mathclose{\text{,}} y /2 , 被抽到顶部提升了 4 − y 4 - y 4 − y 米。
例 12.13排空储罐 ✓ 已检验
圆锥形水箱如例7.2 ],深4米,顶点在底部,顶部半径为2米,装满水,水的密度为1000 kg/m³。将所有水抽到顶部需要做多少功?
设y y y 为顶点以上的高度(图12.4,右)。如例7.2所示,相似三角形给出高度为y y y 时水面的半径为y / 2 。 y/2\mathclose{\text{。}} y /2 。 高度在y y y 到y + Δ y y + \Delta y y + Δ y 之间的水层近似为一个半径为y / 2 、 y/2\mathclose{\text{、}} y /2 、 厚度为Δ y \Delta y Δ y 的圆盘,因此
体积约为π ( y / 2 ) 2 Δ y = π 4 y 2 Δ y \pi(y/2)^2\,\Delta y = \tfrac{\pi}{4}y^2\,\Delta y π ( y /2 ) 2 Δ y = 4 π y 2 Δ y m³,
质量约为1000 ⋅ π 4 y 2 Δ y = 250 π y 2 Δ y 1000 \cdot \tfrac{\pi}{4}y^2\,\Delta y = 250\pi y^2\,\Delta y 1000 ⋅ 4 π y 2 Δ y = 250 π y 2 Δ y kg,
重力约为9.8 × 250 π y 2 Δ y = 2450 π y 2 Δ y 9.8 \times 250\pi y^2\,\Delta y = 2450\pi y^2\,\Delta y 9.8 × 250 π y 2 Δ y = 2450 π y 2 Δ y N,
并被提升到顶部,即提升4 − y 4 - y 4 − y 米。因此
W = ∫ 0 4 2450 π y 2 ( 4 − y ) d y = 2450 π [ 4 y 3 3 − y 4 4 ] 0 4 = 2450 π ( 256 3 − 64 ) = 156 800 π 3 ≈ 1.64 × 10 5 J , \begin{aligned} W &= \int_0^4 2450\pi y^2(4 - y)\,dy \\ &= 2450\pi\Big[\frac{4y^3}{3} - \frac{y^4}{4}\Big]_0^4 \\ &= 2450\pi\Big(\frac{256}{3} - 64\Big) \\ &= \frac{156\,800\pi}{3} \approx 1.64 \times 10^5 \text{ J}, \end{aligned} W = ∫ 0 4 2450 π y 2 ( 4 − y ) d y = 2450 π [ 3 4 y 3 − 4 y 4 ] 0 4 = 2450 π ( 3 256 − 64 ) = 3 156 800 π ≈ 1.64 × 1 0 5 J ,
约需164 kJ。一台500瓦的泵,即每秒500焦耳,若无能量损耗,大约需要5.5分钟。
注意
使用重量,而不是质量:质量为 m m m 千克的一层需要 m g mg m g 牛顿的力才能将其提起,因此必须出现因子 g = 9.8 , g = 9.8\mathclose{\text{,}} g = 9.8 , 否则答案不会以焦耳为单位。并测量该层到液体顶部的距离:到顶部这里为 4 − y ; 4 - y\mathclose{\text{;}} 4 − y ; 到顶部上方 1 米的出水口为 5 − y 。 5 - y\mathclose{\text{。}} 5 − y 。
跷跷板平衡时满足杠杆定律,两侧的质量与到支点距离的乘积相同。在一条直线上,位于 x 1 , … , x n x_1, \dots, x_n x 1 , … , x n 的质量 m 1 , … , m n m_1, \dots, m_n m 1 , … , m n 在它们的质心 处平衡:
x ˉ = m 1 x 1 + ⋯ + m n x n m 1 + ⋯ + m n = ∑ m i x i ∑ m i , \bar x = \frac{m_1x_1 + \dots + m_nx_n}{m_1 + \dots + m_n} = \frac{\sum m_ix_i}{\sum m_i}, x ˉ = m 1 + ⋯ + m n m 1 x 1 + ⋯ + m n x n = ∑ m i ∑ m i x i ,
读作「x 加横线」。和 ∑ m i x i \sum m_ix_i ∑ m i x i 是这些质量相对于原点的矩 。改从 x ˉ \bar x x ˉ 计量时,各矩相互抵消,即 ∑ m i ( x i − x ˉ ) = ∑ m i x i − x ˉ ∑ m i = 0 。 \sum m_i(x_i - \bar x) = \sum m_ix_i - \bar x\sum m_i = 0\mathclose{\text{。}} ∑ m i ( x i − x ˉ ) = ∑ m i x i − x ˉ ∑ m i = 0 。 例如,质量分别为 30 千克和 20 千克的孩子坐在 x = 0 x = 0 x = 0 与 x = 3 x = 3 x = 3 米处,平衡点在 x ˉ = ( 30 ⋅ 0 + 20 ⋅ 3 ) / 50 = 1.2 \bar x = (30 \cdot 0 + 20 \cdot 3)/50 = 1.2 x ˉ = ( 30 ⋅ 0 + 20 ⋅ 3 ) /50 = 1.2 米处,靠近较重的孩子。
细杆。 将沿 [ a , b ] 、 [a, b]\mathclose{\text{、}} [ a , b ] 、 密度为 ρ ( x ) \rho(x) ρ ( x ) 的细杆切成许多小段。x x x 处小段的质量约为 ρ ( x ) Δ x , \rho(x)\,\Delta x\mathclose{\text{,}} ρ ( x ) Δ x , 对原点的矩约为 x ρ ( x ) Δ x 。 x\,\rho(x)\,\Delta x\mathclose{\text{。}} x ρ ( x ) Δ x 。 求和再取极限:
定义 12.5细杆的质心
沿 [ a , b ] [a, b] [ a , b ] 的细杆具有连续的密度 ρ ( x ) > 0 , \rho(x) > 0\mathclose{\text{,}} ρ ( x ) > 0 , 其质量为 M = ∫ a b ρ ( x ) d x , M = \int_a^b \rho(x)\,dx\mathclose{\text{,}} M = ∫ a b ρ ( x ) d x , 质心 为
x ˉ = 1 M ∫ a b x ρ ( x ) d x . \bar x = \frac{1}{M}\int_a^b x\,\rho(x)\,dx. x ˉ = M 1 ∫ a b x ρ ( x ) d x .
例 12.14第 12.1 节的细杆 ✓ 已检验
求第 12.1 节中细杆的质心。其密度为 ρ ( x ) = 1 + x 2 \rho(x) = 1 + x^2 ρ ( x ) = 1 + x 2 千克/米,其中 0 ≤ x ≤ 2 。 0 \le x \le 2\mathclose{\text{。}} 0 ≤ x ≤ 2 。
它的质量为 M = 14 3 M = \tfrac{14}{3} M = 3 14 千克。它对原点的矩为
∫ 0 2 x ( 1 + x 2 ) d x = [ x 2 2 + x 4 4 ] 0 2 = 2 + 4 = 6 kg m , \begin{aligned} \int_0^2 x\big(1 + x^2\big)\,dx &= \Big[\frac{x^2}{2} + \frac{x^4}{4}\Big]_0^2 \\ &= 2 + 4 = 6 \text{ kg m}, \end{aligned} ∫ 0 2 x ( 1 + x 2 ) d x = [ 2 x 2 + 4 x 4 ] 0 2 = 2 + 4 = 6 kg m ,
因此,质心距密度较小的一端 x ˉ = 6 / 14 3 = 9 7 ≈ 1.29 \bar x = 6 \big/ \tfrac{14}{3} = \tfrac{9}{7} \approx 1.29 x ˉ = 6 / 3 14 = 7 9 ≈ 1.29 米,越过中点而靠近密度较大的一端,符合预期。
薄板。 一块很薄的平板称为薄片 。这里假定各点的面密度(单位面积的质量)相同,模块 19 将讨论密度变化的情形。薄板的质心是所在平面内的点 ( x ˉ , y ˉ ) 。 (\bar x, \bar y)\mathclose{\text{。}} ( x ˉ , y ˉ ) 。 设薄板占据 y = g ( x ) y = g(x) y = g ( x ) 与 y = f ( x ) y = f(x) y = f ( x ) 之间的区域,其中 a ≤ x ≤ b 。 a \le x \le b\mathclose{\text{。}} a ≤ x ≤ b 。 沿竖直方向将它切成细条。x x x 处的细条近似为宽 Δ x 、 \Delta x\mathclose{\text{、}} Δ x 、 高 f ( x ) − g ( x ) f(x) - g(x) f ( x ) − g ( x ) 的矩形。由于对称,它在中心 ( x , 1 2 ( f ( x ) + g ( x ) ) ) \big(x, \tfrac12(f(x) + g(x))\big) ( x , 2 1 ( f ( x ) + g ( x )) ) 平衡,质量为面密度乘面积。用每条的质量对其坐标加权,再取极限,便得到下面的公式。密度约去,因此质心只由形状决定。计算 y ˉ \bar y y ˉ 时,每条中心的高度乘以面积等于 1 2 ( f + g ) ( f − g ) Δ x = 1 2 ( f 2 − g 2 ) Δ x 。 \tfrac12(f + g)(f - g)\,\Delta x = \tfrac12\big(f^2 - g^2\big)\,\Delta x\mathclose{\text{。}} 2 1 ( f + g ) ( f − g ) Δ x = 2 1 ( f 2 − g 2 ) Δ x 。
定义 12.6薄板的形心
设 f f f 和 g g g 在 [ a , b ] [a, b] [ a , b ] 上连续,且 g ≤ f 。 g \le f\mathclose{\text{。}} g ≤ f 。 假设两图像之间区域的面积为 A > 0 。 A > 0\mathclose{\text{。}} A > 0 。 该区域的形心 是点 ( x ˉ , y ˉ ) , (\bar x, \bar y)\mathclose{\text{,}} ( x ˉ , y ˉ ) , 其坐标满足
x ˉ = 1 A ∫ a b x ( f ( x ) − g ( x ) ) d x , y ˉ = 1 A ∫ a b 1 2 ( f ( x ) 2 − g ( x ) 2 ) d x . \begin{aligned} \bar x &= \frac1A\int_a^b x\big(f(x) - g(x)\big)\,dx, \\ \bar y &= \frac1A\int_a^b \frac12\big(f(x)^2 - g(x)^2\big)\,dx. \end{aligned} x ˉ y ˉ = A 1 ∫ a b x ( f ( x ) − g ( x ) ) d x , = A 1 ∫ a b 2 1 ( f ( x ) 2 − g ( x ) 2 ) d x .
占据该区域的均匀薄板在其形心处平衡。
对称性。 若一个区域关于某条直线对称,其形心便在这条直线上,因为两侧互为镜像的细条关于该直线的矩彼此抵消。
例 12.15半圆盘 ✓ 已检验
求半圆盘 x 2 + y 2 ≤ a 2 、 x^2 + y^2 \le a^2\mathclose{\text{、}} x 2 + y 2 ≤ a 2 、 y ≥ 0 y \ge 0 y ≥ 0 的形心,其中半径 a > 0 。 a > 0\mathclose{\text{。}} a > 0 。
半圆盘关于 y y y 轴对称,因此 x ˉ = 0 。 \bar x = 0\mathclose{\text{。}} x ˉ = 0 。 其面积为 A = 1 2 π a 2 , A = \tfrac12\pi a^2\mathclose{\text{,}} A = 2 1 π a 2 , 代入 f ( x ) = a 2 − x 2 f(x) = \sqrt{a^2 - x^2} f ( x ) = a 2 − x 2 与 g ( x ) = 0 g(x) = 0 g ( x ) = 0 得
y ˉ = 2 π a 2 ∫ − a a 1 2 ( a 2 − x 2 ) d x = 2 π a 2 ⋅ 1 2 ⋅ 4 a 3 3 = 4 a 3 π ≈ 0.424 a . \begin{aligned} \bar y &= \frac{2}{\pi a^2}\int_{-a}^{a} \frac12\big(a^2 - x^2\big)\,dx \\ &= \frac{2}{\pi a^2}\cdot\frac12\cdot\frac{4a^3}{3} = \frac{4a}{3\pi} \approx 0.424a. \end{aligned} y ˉ = π a 2 2 ∫ − a a 2 1 ( a 2 − x 2 ) d x = π a 2 2 ⋅ 2 1 ⋅ 3 4 a 3 = 3 π 4 a ≈ 0.424 a .
半圆薄板的平衡点在从直边向上约半径的 42% 处,低于一半高度,因为靠近直边的部分面积更大。
注意
计算 y ˉ \bar y y ˉ 时,分子中的式子是 1 2 ( f 2 − g 2 ) , \tfrac12\big(f^2 - g^2\big)\mathclose{\text{,}} 2 1 ( f 2 − g 2 ) , 容易误写成 1 2 ( f − g ) 2 。 \tfrac12(f - g)^2\mathclose{\text{。}} 2 1 ( f − g ) 2 。 两个坐标都要除以面积(细杆的质心则除以质量)。可快速检查结果:形心的横坐标应介于区域最左端与最右端之间,纵坐标应介于最低点与最高点之间。
到目前为止,每一个积分都有一个有限区间和一个有界的被积函数。概率,以及许多物理问题,需要更多:比如 y = 1 / x 2 y = 1/x^2 y = 1/ x 2 在所有 x ≥ 1 x \ge 1 x ≥ 1 下的面积,或者 y = 1 / x y = 1/\sqrt x y = 1/ x 在 0 < x ≤ 1 0 < x \le 1 0 < x ≤ 1 下的面积,其中曲线在 0 附近迅速上升。这样的积分称为 不正确定积分(improper integral) 。它们被定义为普通积分的极限。
无限区间
y = 1 / x 2 y = 1/x^2 y = 1/ x 2 从 1 到 t t t 下的面积是 ∫ 1 t x − 2 d x = [ − 1 x ] 1 t = 1 − 1 t , \int_1^t x^{-2}\,dx = \big[-\tfrac1x\big]_1^t = 1 - \tfrac1t\mathclose{\text{,}} ∫ 1 t x − 2 d x = [ − x 1 ] 1 t = 1 − t 1 , 而 y = 1 / x y = 1/x y = 1/ x 下的面积是 ∫ 1 t x − 1 d x = ln t : \int_1^t x^{-1}\,dx = \ln t\mathclose{\text{:}} ∫ 1 t x − 1 d x = ln t :
t t t ∫ 1 t d x / x 2 \int_1^t dx/x^2 ∫ 1 t d x / x 2 ∫ 1 t d x / x \int_1^t dx/x ∫ 1 t d x / x 10 10 10 0.9 0.9 0.9 2.30259 2.30259 2.30259 100 100 100 0.99 0.99 0.99 4.60517 4.60517 4.60517 10 4 10^{4} 1 0 4 0.9999 0.9999 0.9999 9.21034 9.21034 9.21034 10 6 10^{6} 1 0 6 0.999999 0.999999 0.999999 13.8155 13.8155 13.8155
当 t → ∞ t \to \infty t → ∞ 趋于无穷时,第一个积分趋近于 1,而第二个积分无限增长,但增长缓慢。曲线 1 / x 2 1/x^2 1/ x 2 下的区域,虽然无限长,但面积有限,为 1;而曲线 1 / x 1/x 1/ x 下的区域则没有有限面积。两条曲线看起来相似,但 1 / x 2 1/x^2 1/ x 2 趋于 0 的速度更快。
定义 12.7无限区间上的不正确定积分
设 f f f 在 [ a , ∞ ) [a, \infty) [ a , ∞ ) 上连续。则
∫ a ∞ f ( x ) d x = lim t → ∞ ∫ a t f ( x ) d x . \int_a^\infty f(x)\,dx = \lim_{t\to\infty}\int_a^t f(x)\,dx. ∫ a ∞ f ( x ) d x = t → ∞ lim ∫ a t f ( x ) d x .
不正积分 收敛 如果这个极限存在(作为一个有限数),并且发散 否则。同样地,对于 f f f 在 ( − ∞ , b ] (-\infty, b] ( − ∞ , b ] 上连续, ∫ − ∞ b f ( x ) d x = lim t → − ∞ ∫ t b f ( x ) d x 。 \int_{-\infty}^b f(x)\,dx = \lim_{t\to-\infty}\int_t^b f(x)\,dx\mathclose{\text{。}} ∫ − ∞ b f ( x ) d x = lim t → − ∞ ∫ t b f ( x ) d x 。 对于 f f f 在 R \R R 上连续,
∫ − ∞ ∞ f ( x ) d x = ∫ − ∞ c f ( x ) d x + ∫ c ∞ f ( x ) d x , \begin{aligned} \int_{-\infty}^{\infty} f(x)\,dx &= \int_{-\infty}^{c} f(x)\,dx \\ &\qquad + \int_{c}^{\infty} f(x)\,dx, \end{aligned} ∫ − ∞ ∞ f ( x ) d x = ∫ − ∞ c f ( x ) d x + ∫ c ∞ f ( x ) d x ,
对于任何数 c , c\mathclose{\text{,}} c , 只要右边的两个积分都收敛;如果其中任何一个发散,左边的积分也发散。
∫ − ∞ ∞ \int_{-\infty}^{\infty} ∫ − ∞ ∞ 读作“从负无穷到正无穷的积分”。选择 c c c 不影响结果:移动它只是将一个普通积分从一边移到另一边。 t → ± ∞ t \to \pm\infty t → ± ∞ 的极限是模块 3 中的无穷远极限。
例 12.16无限区间上的积分 ✓ 已检验
评价 (a) ∫ 0 ∞ e − x d x , \displaystyle\int_0^\infty e^{-x}\,dx\mathclose{\text{,}} ∫ 0 ∞ e − x d x , (b) ∫ 0 ∞ x e − x d x \displaystyle\int_0^\infty xe^{-x}\,dx ∫ 0 ∞ x e − x d x 和 (c) ∫ − ∞ ∞ d x 1 + x 2 。 \displaystyle\int_{-\infty}^{\infty} \frac{dx}{1 + x^2}\mathclose{\text{。}} ∫ − ∞ ∞ 1 + x 2 d x 。
(a) ∫ 0 t e − x d x = [ − e − x ] 0 t = 1 − e − t → 1 \int_0^t e^{-x}\,dx = \big[-e^{-x}\big]_0^t = 1 - e^{-t} \to 1 ∫ 0 t e − x d x = [ − e − x ] 0 t = 1 − e − t → 1 作为 t → ∞ 。 t \to \infty\mathclose{\text{。}} t → ∞ 。 积分收敛,结果为 1。
(b) 分部积分(模块 11),使用 u = x u = x u = x 和 d v = e − x d x , dv = e^{-x}\,dx\mathclose{\text{,}} d v = e − x d x , 得到原函数 − x e − x − e − x , -xe^{-x} - e^{-x}\mathclose{\text{,}} − x e − x − e − x , 因此 ∫ 0 t x e − x d x = 1 − ( t + 1 ) e − t 。 \int_0^t xe^{-x}\,dx = 1 - (t + 1)e^{-t}\mathclose{\text{。}} ∫ 0 t x e − x d x = 1 − ( t + 1 ) e − t 。 当 t → ∞ t \to \infty t → ∞ 时, t e − t = t / e t → 0 , te^{-t} = t/e^t \to 0\mathclose{\text{,}} t e − t = t / e t → 0 , 因为幂函数增长比指数函数慢(定理 7.7 ),且 e − t → 0 。 e^{-t} \to 0\mathclose{\text{。}} e − t → 0 。 积分收敛,结果为 1。
(c) 分割于 c = 0 。 c = 0\mathclose{\text{。}} c = 0 。 如同 t → ∞ , t \to \infty\mathclose{\text{,}} t → ∞ , ∫ 0 t d x 1 + x 2 = arctan t → π 2 \int_0^t \frac{dx}{1 + x^2} = \arctan t \to \frac{\pi}{2} ∫ 0 t 1 + x 2 d x = arctan t → 2 π (模块 6);如同 t → − ∞ , t \to -\infty\mathclose{\text{,}} t → − ∞ , ∫ t 0 d x 1 + x 2 = − arctan t → π 2 。 \int_t^0 \frac{dx}{1 + x^2} = -\arctan t \to \frac{\pi}{2}\mathclose{\text{。}} ∫ t 0 1 + x 2 d x = − arctan t → 2 π 。 两个部分都收敛,因此积分收敛,结果为 π 。 \pi\mathclose{\text{。}} π 。
注意
∫ − ∞ ∞ x d x \int_{-\infty}^{\infty} x\,dx ∫ − ∞ ∞ x d x 不等于 0。对于每一个 t , t\mathclose{\text{,}} t , 确实成立 ∫ − t t x d x = 0 , \int_{-t}^{t} x\,dx = 0\mathclose{\text{,}} ∫ − t t x d x = 0 , 但定义将两个部分分开考虑,而 ∫ 0 ∞ x d x = lim t → ∞ t 2 / 2 \int_0^\infty x\,dx = \lim_{t\to\infty} t^2/2 ∫ 0 ∞ x d x = lim t → ∞ t 2 /2 不存在:积分发散。对称极限在积分发散时可以有限,因此不能用于计算 ∫ − ∞ ∞ 。 \int_{-\infty}^{\infty}\mathclose{\text{。}} ∫ − ∞ ∞ 。
无界被积函数
定义 12.8无界函数的瑕积分
设 f f f 在 [ a , b ) [a, b) [ a , b ) 上连续,并且在 b b b 附近无界。则
∫ a b f ( x ) d x = lim t → b − ∫ a t f ( x ) d x , \int_a^b f(x)\,dx = \lim_{t\to b^-}\int_a^t f(x)\,dx, ∫ a b f ( x ) d x = t → b − lim ∫ a t f ( x ) d x ,
若定义积分的极限存在且有限,则积分收敛 ,否则积分发散 。类似地,若 f f f 在 ( a , b ] (a, b] ( a , b ] 上连续且在 a a a 附近无界,则 ∫ a b f ( x ) d x = lim t → a + ∫ t b f ( x ) d x 。 \int_a^b f(x)\,dx = \lim_{t\to a^+}\int_t^b f(x)\,dx\mathclose{\text{。}} ∫ a b f ( x ) d x = lim t → a + ∫ t b f ( x ) d x 。 若 f f f 在 [ a , b ] [a, b] [ a , b ] 上除内点 c c c 外连续,并在该点附近无界,则 ∫ a b f ( x ) d x = ∫ a c f ( x ) d x + ∫ c b f ( x ) d x , \int_a^b f(x)\,dx = \int_a^c f(x)\,dx + \int_c^b f(x)\,dx\mathclose{\text{,}} ∫ a b f ( x ) d x = ∫ a c f ( x ) d x + ∫ c b f ( x ) d x , 且只有右侧两个积分都收敛时,原积分才收敛。
例 12.17无界被积函数 ✓ 已检验
计算 (a) ∫ 0 1 d x x \displaystyle\int_0^1 \frac{dx}{\sqrt x} ∫ 0 1 x d x 和 (b) ∫ 0 1 ln x d x 。 \displaystyle\int_0^1 \ln x\,dx\mathclose{\text{。}} ∫ 0 1 ln x d x 。
(a) 被积函数在 0 附近无界。对于 0 < t < 1 , 0 < t < 1\mathclose{\text{,}} 0 < t < 1 , ∫ t 1 x − 1 / 2 d x = [ 2 x ] t 1 = 2 − 2 t , \int_t^1 x^{-1/2}\,dx = \big[2\sqrt x\big]_t^1 = 2 - 2\sqrt t\mathclose{\text{,}} ∫ t 1 x − 1/2 d x = [ 2 x ] t 1 = 2 − 2 t , 其趋于 2 当 t → 0 + 。 t \to 0^+\mathclose{\text{。}} t → 0 + 。 积分收敛,结果为 2。
(b) ln x → − ∞ \ln x \to -\infty ln x → − ∞ 作为 x → 0 + 。 x \to 0^+\mathclose{\text{。}} x → 0 + 。 ln x \ln x ln x 的一个原函数是 x ln x − x x\ln x - x x ln x − x (通过分部积分,模块 11),因此
∫ t 1 ln x d x = ( 0 − 1 ) − ( t ln t − t ) = − 1 − t ln t + t . \begin{aligned} \int_t^1 \ln x\,dx &= (0 - 1) - (t\ln t - t) \\ &= -1 - t\ln t + t. \end{aligned} ∫ t 1 ln x d x = ( 0 − 1 ) − ( t ln t − t ) = − 1 − t ln t + t .
当 t → 0 + , t \to 0^+\mathclose{\text{,}} t → 0 + , t ln t → 0 t\ln t \to 0 t ln t → 0 (例 7.15 ),因此积分收敛,结果为 − 1 。 -1\mathclose{\text{。}} − 1 。 图象与 x x x 轴之间的区域无限深,但其面积为 1;积分为负,因为该区域位于轴下方。
注意
无界被积函数可能隐藏在区间内。盲目应用微积分基本定理,
∫ − 1 1 d x x 2 = ? [ − 1 x ] − 1 1 = − 1 − 1 = − 2 , \int_{-1}^{1}\frac{dx}{x^2} \overset{?}{=} \Big[-\frac1x\Big]_{-1}^{1} = -1 - 1 = -2, ∫ − 1 1 x 2 d x = ? [ − x 1 ] − 1 1 = − 1 − 1 = − 2 ,
这显然不对:被积函数为正。微积分基本定理要求被积函数在 [ − 1 , 1 ] [-1, 1] [ − 1 , 1 ] 上连续,而 1 / x 2 1/x^2 1/ x 2 在 0 处未定义。积分在 0 处为瑕积分,其右半部分发散: ∫ t 1 x − 2 d x = 1 t − 1 → ∞ \int_t^1 x^{-2}\,dx = \tfrac1t - 1 \to \infty ∫ t 1 x − 2 d x = t 1 − 1 → ∞ 当 t → 0 + 。 t \to 0^+\mathclose{\text{。}} t → 0 + 。 因此积分发散。在积分前,应先寻找被积函数发散的点。
p p p -积分
这些例子表明了一种积分类型,可以用它来衡量其他积分。
设 p p p 为一个实数。
(a) 若 p > 1 , p > 1\mathclose{\text{,}} p > 1 , 则 ∫ 1 ∞ d x x p \displaystyle\int_1^\infty \frac{dx}{x^p} ∫ 1 ∞ x p d x 收敛于 1 p − 1 ; \dfrac{1}{p - 1}\mathclose{\text{;}} p − 1 1 ; 若 p ≤ 1 , p \le 1\mathclose{\text{,}} p ≤ 1 , 则发散。
(b) 若 p < 1 , p < 1\mathclose{\text{,}} p < 1 , 则 ∫ 0 1 d x x p \displaystyle\int_0^1 \frac{dx}{x^p} ∫ 0 1 x p d x 收敛于 1 1 − p ; \dfrac{1}{1 - p}\mathclose{\text{;}} 1 − p 1 ; 若 p ≥ 1 , p \ge 1\mathclose{\text{,}} p ≥ 1 , 则发散。
证明
对于 p ≠ 1 , p \ne 1\mathclose{\text{,}} p = 1 , 若 x − p x^{-p} x − p 的一个原函数为 x 1 − p 1 − p \dfrac{x^{1-p}}{1-p} 1 − p x 1 − p (幂法则,第 10 模块)。
(a) 对于 t > 1 , t > 1\mathclose{\text{,}} t > 1 , 若 ∫ 1 t x − p d x = t 1 − p − 1 1 − p 。 \int_1^t x^{-p}\,dx = \dfrac{t^{1-p} - 1}{1 - p}\mathclose{\text{。}} ∫ 1 t x − p d x = 1 − p t 1 − p − 1 。 若 p > 1 , p > 1\mathclose{\text{,}} p > 1 , 则 1 − p < 0 1 - p < 0 1 − p < 0 和 t 1 − p = 1 / t p − 1 → 0 t^{1-p} = 1/t^{p-1} \to 0 t 1 − p = 1/ t p − 1 → 0 当 t → ∞ , t \to \infty\mathclose{\text{,}} t → ∞ , 因此积分趋近于 − 1 1 − p = 1 p − 1 。 \dfrac{-1}{1 - p} = \dfrac{1}{p - 1}\mathclose{\text{。}} 1 − p − 1 = p − 1 1 。 若 p < 1 , p < 1\mathclose{\text{,}} p < 1 , 则 t 1 − p → ∞ , t^{1-p} \to \infty\mathclose{\text{,}} t 1 − p → ∞ , 积分发散。若 p = 1 , p = 1\mathclose{\text{,}} p = 1 , 则 ∫ 1 t d x / x = ln t → ∞ 。 \int_1^t dx/x = \ln t \to \infty\mathclose{\text{。}} ∫ 1 t d x / x = ln t → ∞ 。
(b) 对于 0 < t < 1 , 0 < t < 1\mathclose{\text{,}} 0 < t < 1 , 若 ∫ t 1 x − p d x = 1 − t 1 − p 1 − p 。 \int_t^1 x^{-p}\,dx = \dfrac{1 - t^{1-p}}{1 - p}\mathclose{\text{。}} ∫ t 1 x − p d x = 1 − p 1 − t 1 − p 。 若 p < 1 , p < 1\mathclose{\text{,}} p < 1 , 则 t 1 − p → 0 t^{1-p} \to 0 t 1 − p → 0 当 t → 0 + , t \to 0^+\mathclose{\text{,}} t → 0 + , 积分趋近于 1 1 − p 。 \dfrac{1}{1 - p}\mathclose{\text{。}} 1 − p 1 。 若 p > 1 , p > 1\mathclose{\text{,}} p > 1 , 则 t 1 − p = 1 / t p − 1 → ∞ , t^{1-p} = 1/t^{p-1} \to \infty\mathclose{\text{,}} t 1 − p = 1/ t p − 1 → ∞ , 积分发散。若 p = 1 , p = 1\mathclose{\text{,}} p = 1 , 则 ∫ t 1 d x / x = − ln t → ∞ 。 \int_t^1 dx/x = -\ln t \to \infty\mathclose{\text{。}} ∫ t 1 d x / x = − ln t → ∞ 。
∎
对于 p ≤ 0 , p \le 0\mathclose{\text{,}} p ≤ 0 , (b) 中的积分是一个普通积分,因为 x − p x^{-p} x − p 在 [ 0 , 1 ] [0, 1] [ 0 , 1 ] 上连续,且公式 1 / ( 1 − p ) 1/(1 - p) 1/ ( 1 − p ) 仍给出其值。
要点
在无穷远处, 1 / x p 1/x^p 1/ x p 必须比 1 / x 1/x 1/ x 下降得更快,才能使面积有限;在 0 附近,它必须比 1 / x 1/x 1/ x 增长得更慢。边界函数 1 / x 1/x 1/ x 在两端都失效,因此 ∫ 0 ∞ d x / x p \int_0^\infty dx/x^p ∫ 0 ∞ d x / x p 对于每个 p p p 都发散:其两个部分中的一个总是发散。
比较
大多数瑕积分无法精确计算,但你常常可以通过将其与已知收敛的积分进行比较,来判断它们是否收敛。
定理 12.3比较判别法
设 f f f 和 g g g 在 [ a , ∞ ) [a, \infty) [ a , ∞ ) 上连续,且 0 ≤ f ( x ) ≤ g ( x ) 0 \le f(x) \le g(x) 0 ≤ f ( x ) ≤ g ( x ) 对所有 x ≥ a x \ge a x ≥ a 成立。
(a) 如果 ∫ a ∞ g ( x ) d x \int_a^\infty g(x)\,dx ∫ a ∞ g ( x ) d x 收敛,则 ∫ a ∞ f ( x ) d x \int_a^\infty f(x)\,dx ∫ a ∞ f ( x ) d x 也收敛,且 ∫ a ∞ f ( x ) d x ≤ ∫ a ∞ g ( x ) d x \int_a^\infty f(x)\,dx \le \int_a^\infty g(x)\,dx ∫ a ∞ f ( x ) d x ≤ ∫ a ∞ g ( x ) d x 也收敛。
(b) 如果 ∫ a ∞ f ( x ) d x \int_a^\infty f(x)\,dx ∫ a ∞ f ( x ) d x 发散,则 ∫ a ∞ g ( x ) d x \int_a^\infty g(x)\,dx ∫ a ∞ g ( x ) d x 也发散。
对于积分在端点附近被积函数无界而导致瑕积分的情况,同样适用上述结论。
条件 f ≥ 0 f \ge 0 f ≥ 0 有影响: f ( x ) = − 1 f(x) = -1 f ( x ) = − 1 和 g ( x ) = 1 / x 2 g(x) = 1/x^2 g ( x ) = 1/ x 2 满足 f ≤ g f \le g f ≤ g 在 [ 1 , ∞ ) [1, \infty) [ 1 , ∞ ) 上,且 ∫ 1 ∞ g \int_1^\infty g ∫ 1 ∞ g 收敛,但 ∫ 1 ∞ f \int_1^\infty f ∫ 1 ∞ f 发散。
证明
(a) 设 F ( t ) = ∫ a t f ( x ) d x F(t) = \int_a^t f(x)\,dx F ( t ) = ∫ a t f ( x ) d x 对于 t ≥ a , t \ge a\mathclose{\text{,}} t ≥ a , 令 G = ∫ a ∞ g ( x ) d x 。 G = \int_a^\infty g(x)\,dx\mathclose{\text{。}} G = ∫ a ∞ g ( x ) d x 。 由于 f ≥ 0 , f \ge 0\mathclose{\text{,}} f ≥ 0 , F F F 是递增的:使 t t t 变大就加上了一个非负函数的积分。同样地,∫ a t g ( x ) d x \int_a^t g(x)\,dx ∫ a t g ( x ) d x 随着 t t t 增加,趋近于其极限 G , G\mathclose{\text{,}} G , 因此它最多为 G 。 G\mathclose{\text{。}} G 。 由于 f ≤ g , f \le g\mathclose{\text{,}} f ≤ g , 积分比较定理(模块 9)给出
F ( t ) ≤ ∫ a t g ( x ) d x ≤ G F(t) \le \int_a^t g(x)\,dx \le G F ( t ) ≤ ∫ a t g ( x ) d x ≤ G
对于每一个t ≥ a 。 t \ge a\mathclose{\text{。}} t ≥ a 。 因此,当t t t 增大时,F ( t ) F(t) F ( t ) 随之上升但从不越过G 。 G\mathclose{\text{。}} G 。 一个递增且有上界的函数在t → ∞ t \to \infty t → ∞ 处存在极限,且该极限不超过该上界。这是实数完备性的一种形式,即数轴上没有空隙的性质,模块 3 ; 模块 14 针对序列陈述了该性质,即单调收敛定理。因此,∫ a ∞ f ( x ) d x = lim t → ∞ F ( t ) \int_a^\infty f(x)\,dx = \lim_{t\to\infty} F(t) ∫ a ∞ f ( x ) d x = lim t → ∞ F ( t ) 存在且至多为G 。 G\mathclose{\text{。}} G 。
(b) 如果 ∫ a ∞ g \int_a^\infty g ∫ a ∞ g 收敛,则由 (a) 可知 ∫ a ∞ f \int_a^\infty f ∫ a ∞ f 也收敛。
∎
例 12.18两个比较 ✓ 已检验
判断 (a) ∫ 1 ∞ e − x 2 d x \displaystyle\int_1^\infty e^{-x^2}\,dx ∫ 1 ∞ e − x 2 d x 和 (b) ∫ 2 ∞ d x ln x \displaystyle\int_2^\infty \frac{dx}{\ln x} ∫ 2 ∞ ln x d x 是否收敛。
(a) 对于 x ≥ 1 , x \ge 1\mathclose{\text{,}} x ≥ 1 , x 2 ≥ x , x^2 \ge x\mathclose{\text{,}} x 2 ≥ x , 所以 − x 2 ≤ − x -x^2 \le -x − x 2 ≤ − x 和 0 < e − x 2 ≤ e − x 。 0 < e^{-x^2} \le e^{-x}\mathclose{\text{。}} 0 < e − x 2 ≤ e − x 。 如例 12.16(a) 所示, ∫ 1 ∞ e − x d x = lim t → ∞ ( e − 1 − e − t ) = e − 1 , \int_1^\infty e^{-x}\,dx = \lim_{t\to\infty}\big(e^{-1} - e^{-t}\big) = e^{-1}\mathclose{\text{,}} ∫ 1 ∞ e − x d x = lim t → ∞ ( e − 1 − e − t ) = e − 1 , 它收敛。由比较判别法可知, ∫ 1 ∞ e − x 2 d x \int_1^\infty e^{-x^2}\,dx ∫ 1 ∞ e − x 2 d x 收敛,且其值不超过 1 / e ≈ 0.368 。 1/e \approx 0.368\mathclose{\text{。}} 1/ e ≈ 0.368 。 (其值通过数值计算约为 0.1394。)
(b) 函数 x − ln x x - \ln x x − ln x 的导数为 1 − 1 / x > 0 , 1 - 1/x > 0\mathclose{\text{,}} 1 − 1/ x > 0 , 在 x > 1 x > 1 x > 1 处且在 x = 1 x = 1 x = 1 处的值为 1,因此它在 x ≥ 1 x \ge 1 x ≥ 1 处为正: ln x < x 。 \ln x < x\mathclose{\text{。}} ln x < x 。 因此,对于 x ≥ 2 , x \ge 2\mathclose{\text{,}} x ≥ 2 , 0 < ln x < x 0 < \ln x < x 0 < ln x < x 和 1 ln x > 1 x > 0 。 \frac{1}{\ln x} > \frac1x > 0\mathclose{\text{。}} l n x 1 > x 1 > 0 。 由于 ∫ 2 ∞ d x / x = lim t → ∞ ( ln t − ln 2 ) \int_2^\infty dx/x = \lim_{t\to\infty}(\ln t - \ln 2) ∫ 2 ∞ d x / x = lim t → ∞ ( ln t − ln 2 ) 发散,由比较判别法 (b) 可知 ∫ 2 ∞ d x / ln x \int_2^\infty dx/\ln x ∫ 2 ∞ d x / ln x 也发散。
部分 (a) 解决了一个下面重要的问题:∫ − ∞ ∞ e − x 2 d x \int_{-\infty}^{\infty} e^{-x^2}\,dx ∫ − ∞ ∞ e − x 2 d x 收敛。区间 [ 1 , ∞ ) [1, \infty) [ 1 , ∞ ) 是部分 (a),[ 0 , 1 ] [0, 1] [ 0 , 1 ] 给出一个普通积分,e − x 2 e^{-x^2} e − x 2 是偶函数,因此负半部分的行为类似于正半部分。
注意
比较必须朝正确方向进行。要证明 ∫ 1 ∞ d x x + 1 \int_1^\infty \frac{dx}{\sqrt x + 1} ∫ 1 ∞ x + 1 d x 发散,与 1 x \frac{1}{\sqrt x} x 1 比较并不能说明问题:1 x + 1 ≤ 1 x , \frac{1}{\sqrt x + 1} \le \frac{1}{\sqrt x}\mathclose{\text{,}} x + 1 1 ≤ x 1 , 并且一个低于一的函数,其积分发散,其积分可能收敛也可能发散。应从下方进行比较:对于 x ≥ 1 , x \ge 1\mathclose{\text{,}} x ≥ 1 , x + 1 ≤ 2 x , \sqrt x + 1 \le 2\sqrt x\mathclose{\text{,}} x + 1 ≤ 2 x , 因此 1 x + 1 ≥ 1 2 x , \frac{1}{\sqrt x + 1} \ge \frac{1}{2\sqrt x}\mathclose{\text{,}} x + 1 1 ≥ 2 x 1 , 其积分发散(p = 1 2 )。 p = \tfrac12\mathclose{\text{)。}} p = 2 1 )。
找到正确的不等式需要一些注意。通常,比较大 x x x 的行为更容易:
定理 12.4极限比较
设 f f f 和 g g g 在 [ a , ∞ ) [a, \infty) [ a , ∞ ) 上连续且非负,且 f ( x ) / g ( x ) → L f(x)/g(x) \to L f ( x ) / g ( x ) → L 为 x → ∞ , x \to \infty\mathclose{\text{,}} x → ∞ , 其中 0 < L < ∞ 。 0 < L < \infty\mathclose{\text{。}} 0 < L < ∞ 。 则 ∫ a ∞ f ( x ) d x \int_a^\infty f(x)\,dx ∫ a ∞ f ( x ) d x 和 ∫ a ∞ g ( x ) d x \int_a^\infty g(x)\,dx ∫ a ∞ g ( x ) d x 或者同时收敛,或者同时发散。
证明
由于f ( x ) / g ( x ) → L > 0 , f(x)/g(x) \to L > 0\mathclose{\text{,}} f ( x ) / g ( x ) → L > 0 , 对于所有足够大的x x x (例如x ≥ N , x \ge N\mathclose{\text{,}} x ≥ N , 其中N ≥ a ), N \ge a\mathclose{\text{),}} N ≥ a ), 比值介于L 2 \tfrac{L}{2} 2 L 和3 L 2 \tfrac{3L}{2} 2 3 L 之间;因此L 2 g ( x ) ≤ f ( x ) ≤ 3 L 2 g ( x ) \tfrac{L}{2}g(x) \le f(x) \le \tfrac{3L}{2}g(x) 2 L g ( x ) ≤ f ( x ) ≤ 2 3 L g ( x ) 成立。如果∫ a ∞ g \int_a^\infty g ∫ a ∞ g 收敛,则通过与3 L 2 g \tfrac{3L}{2}g 2 3 L g 比较可知∫ N ∞ f \int_N^\infty f ∫ N ∞ f 收敛。如果∫ a ∞ g \int_a^\infty g ∫ a ∞ g 发散,则∫ N ∞ g \int_N^\infty g ∫ N ∞ g 也发散,进而通过与L 2 g \tfrac{L}{2}g 2 L g 比较可知∫ N ∞ f \int_N^\infty f ∫ N ∞ f 发散。加上普通积分∫ a N f \int_a^N f ∫ a N f 不会改变积分的收敛性。
∎
对于上述陷阱 1 / ( x + 1 ) 1 / x = x x + 1 → 1 , \dfrac{1/(\sqrt x + 1)}{1/\sqrt x} = \dfrac{\sqrt x}{\sqrt x + 1} \to 1\mathclose{\text{,}} 1/ x 1/ ( x + 1 ) = x + 1 x → 1 , 因此 ∫ 1 ∞ d x x + 1 \int_1^\infty \frac{dx}{\sqrt x + 1} ∫ 1 ∞ x + 1 d x 与 ∫ 1 ∞ d x x \int_1^\infty \frac{dx}{\sqrt x} ∫ 1 ∞ x d x 发散,无法找到不等式。
加布里埃尔号角
例 12.19加布里埃尔号角 ✓ 已检验
旋转曲线 y = 1 / x y = 1/x y = 1/ x 和 x ≥ 1 x \ge 1 x ≥ 1 下方的区域,绕 x x x 轴旋转。所得立体,是一个不断变细而无限延伸的号角,称为 加布里埃尔号角 。求其体积。
用圆盘法,涉及一个不正确定积分,
V = π ∫ 1 ∞ ( 1 x ) 2 d x = π ∫ 1 ∞ d x x 2 = π ⋅ 1 = π , \begin{aligned} V &= \pi\int_1^\infty \Big(\frac1x\Big)^2\,dx = \pi\int_1^\infty \frac{dx}{x^2} \\ &= \pi \cdot 1 = \pi, \end{aligned} V = π ∫ 1 ∞ ( x 1 ) 2 d x = π ∫ 1 ∞ x 2 d x = π ⋅ 1 = π ,
根据定理 12.2 与 p = 2 。 p = 2\mathclose{\text{。}} p = 2 。 该号角具有有限体积,为 π \pi π 立方单位,尽管形成该立体的区域具有无限面积: ∫ 1 ∞ d x / x \int_1^\infty dx/x ∫ 1 ∞ d x / x 发散。
深入一步号角的表面积
当 f ≥ 0 f \ge 0 f ≥ 0 的图像,其中 f ′ f' f ′ 在 [ a , b ] [a, b] [ a , b ] 上连续,绕 x x x 轴旋转时,它扫出一个曲面,其面积为
S = 2 π ∫ a b f ( x ) 1 + f ′ ( x ) 2 d x . S = 2\pi\int_a^b f(x)\sqrt{1 + f'(x)^2}\,dx. S = 2 π ∫ a b f ( x ) 1 + f ′ ( x ) 2 d x .
证明思路:第 12.5 节中多边形的每一条弦都会扫出一个带状区域,该区域是被截去顶点的圆锥的曲面侧边。将带状区域剪开并展平后,其面积为 π ( r 1 + r 2 ) ℓ , \pi(r_1 + r_2)\ell\mathclose{\text{,}} π ( r 1 + r 2 ) ℓ , 其中 r 1 r_1 r 1 和 r 2 r_2 r 2 是该带状区域两端的半径,而 ℓ \ell ℓ 是其斜边长度,此处为弦的长度 1 + f ′ ( x i ∗ ) 2 Δ x 。 \sqrt{1 + f'(x_i^*)^2}\,\Delta x\mathclose{\text{。}} 1 + f ′ ( x i ∗ ) 2 Δ x 。 随着 r 1 + r 2 ≈ 2 f ( x i ∗ ) , r_1 + r_2 \approx 2f(x_i^*)\mathclose{\text{,}} r 1 + r 2 ≈ 2 f ( x i ∗ ) , 这些带状区域的总面积近似为 2 π f ( x ) 1 + f ′ ( x ) 2 2\pi f(x)\sqrt{1 + f'(x)^2} 2 π f ( x ) 1 + f ′ ( x ) 2 的一个黎曼和。(模块 20 讨论曲面的一般面积。)验证:对于半径为 a a a 的球体, f ( x ) = a 2 − x 2 f(x) = \sqrt{a^2 - x^2} f ( x ) = a 2 − x 2 给出 f ( x ) 1 + f ′ ( x ) 2 = a f(x)\sqrt{1 + f'(x)^2} = a f ( x ) 1 + f ′ ( x ) 2 = a 对于 − a < x < a 。 -a < x < a\mathclose{\text{。}} − a < x < a 。 公式需要 f ′ f' f ′ 连续,且 f ′ f' f ′ 在 ± a \pm a ± a 附近无界,因此取球体在 x = − b x = -b x = − b 和 x = b x = b x = b 之间的带状区域,对于 0 < b < a : 0 < b < a\mathclose{\text{:}} 0 < b < a : 其面积为 2 π ⋅ a ⋅ 2 b = 4 π a b , 2\pi \cdot a \cdot 2b = 4\pi ab\mathclose{\text{,}} 2 π ⋅ a ⋅ 2 b = 4 π ab , 当 b → a b \to a b → a 时,其面积趋近于 4 π a 2 , 4\pi a^2\mathclose{\text{,}} 4 π a 2 , 即球体的熟知面积。
对于螺号,f ( x ) = 1 / x f(x) = 1/x f ( x ) = 1/ x 和 f ′ ( x ) = − 1 / x 2 , f'(x) = -1/x^2\mathclose{\text{,}} f ′ ( x ) = − 1/ x 2 , 因此被积函数是
2 π x 1 + 1 x 4 ≥ 2 π x , \frac{2\pi}{x}\sqrt{1 + \frac{1}{x^4}} \ge \frac{2\pi}{x}, x 2 π 1 + x 4 1 ≥ x 2 π ,
并且 ∫ 1 ∞ 2 π d x / x \int_1^\infty 2\pi\,dx/x ∫ 1 ∞ 2 π d x / x 发散,因此根据比较判别法,海螺曲面的面积是无限的。这个海螺可以容纳 π \pi π 个立方单位的油漆,然而任何有限量的油漆都无法用固定厚度的一层覆盖其外侧 d , d\mathclose{\text{,}} d , 这层油漆需要大约 S d S\,d S d 的量。并没有矛盾:在海螺的远端,填满它的油漆形成一层比任何固定 d d d 更薄的层。
动手计算使用 SymPy 计算瑕积分
SymPy 的 integrate 接受 sp.oo,无穷大,作为极限,并在积分发散到无穷大时给出 oo:
Python 复制
import sympy as sp
x = sp.symbols ('x' )
print (sp.integrate (1 /x**2 , (x, 1 , sp.oo)))
print (sp.integrate (1 /x, (x, 1 , sp.oo)))
print (sp.integrate (sp.exp (-x**2 ), (x, -sp.oo, sp.oo)))
print (sp.integrate (1 /x**2 , (x, -1 , 1 )))
最后一行是第 12.8 节的陷阱:SymPy 注意到区间内部 0 处的困难。你自行使用原函数的做法则不会:
Python 复制
F = sp.integrate (1 /x**2 , x)
print (F, F.subs (x, 1 ) - F.subs (x, -1 ))
使用一个符号表示幂次,SymPy 会说明 p p p -积分何时收敛:
Python 复制
p = sp.symbols ('p' , positive=True )
print (sp.integrate (x**(-p), (x, 1 , sp.oo)))
输出
Piecewise((1/(p - 1), p > 1), (Integral(x**(-p), (x, 1, oo)), True))
一个 Piecewise 结果读起来像分段定义:1 / ( p − 1 ) 1/(p - 1) 1/ ( p − 1 ) 当 p > 1 p > 1 p > 1 时,否则积分未被计算:对于 p ≤ 1 , p \le 1\mathclose{\text{,}} p ≤ 1 , 它发散,因此没有值可给。
概率密度
一些量是随机的:从下一个请求到达网络服务器的时间,到一个元件的寿命,再到一个测量的误差。它们的值无法预测,但它们的概率是可以预测的。一个事件 probability 的概率 P ( event ) P(\text{event}) P ( event ) 是一个介于 0 到 1 之间的数,表示在长期重复中该事件发生的频率;1 表示必然发生。一个random variable X X X 是一个由随机决定的量。等待时间或寿命可以在一个区间内取任意值,因此它们的概率不能逐个列出;而是用一条曲线来描述。
测量这样一个 X X X 很多次,画一个直方图,其中每个条形的面积是其区间内测量值的比例。随着测量次数增多且区间变窄,条形的顶部会趋近于一条曲线 y = f ( x ) , y = f(x)\mathclose{\text{,}} y = f ( x ) , 并且值在 a a a 和 b b b 之间的比例会趋近于曲线从 a a a 到 b b b 下方的面积。
定义 12.9概率密度函数
一个 概率密度函数 是一个函数 f , f\mathclose{\text{,}} f , 对于每一个 x x x 都有 f ( x ) ≥ 0 。 f(x) \ge 0\mathclose{\text{。}} f ( x ) ≥ 0 。
∫ − ∞ ∞ f ( x ) d x = 1. \int_{-\infty}^{\infty} f(x)\,dx = 1. ∫ − ∞ ∞ f ( x ) d x = 1.
如果一个随机变量 X X X 有密度 f , f\mathclose{\text{,}} f , 则对于所有数 a ≤ b , a \le b\mathclose{\text{,}} a ≤ b , 都有
P ( a ≤ X ≤ b ) = ∫ a b f ( x ) d x . P(a \le X \le b) = \int_a^b f(x)\,dx. P ( a ≤ X ≤ b ) = ∫ a b f ( x ) d x .
一个具有密度的随机变量称为 连续型 变量。
总面积为 1 表示 X X X 必然取某个值。密度函数可能在某些点跳跃,如下面的指数分布密度在 0 处跳跃;在跳跃点处分割积分。两个结果:一个单独的值的概率为 P ( X = a ) = ∫ a a f ( x ) d x = 0 , P(X = a) = \int_a^a f(x)\,dx = 0\mathclose{\text{,}} P ( X = a ) = ∫ a a f ( x ) d x = 0 , 因此不等式是否严格(< ) <\mathclose{\text{)}} < ) 或非严格(≤ ) \le\mathclose{\text{)}} ≤ ) 都无关紧要;并且 f ( x ) f(x) f ( x ) 不是概率,而是单位长度上的概率,P ( x ≤ X ≤ x + Δ x ) ≈ f ( x ) Δ x P(x \le X \le x + \Delta x) \approx f(x)\,\Delta x P ( x ≤ X ≤ x + Δ x ) ≈ f ( x ) Δ x 对于一个小的 Δ x , \Delta x\mathclose{\text{,}} Δ x , 因此 f ( x ) f(x) f ( x ) 可以大于 1。
最简单的密度是 均匀 密度在 [ 0 , 1 ] [0, 1] [ 0 , 1 ] 上,等于 1 那里,其他地方为 0:对于 0 ≤ a ≤ b ≤ 1 , 0 \le a \le b \le 1\mathclose{\text{,}} 0 ≤ a ≤ b ≤ 1 , P ( a ≤ X ≤ b ) = b − a , P(a \le X \le b) = b - a\mathclose{\text{,}} P ( a ≤ X ≤ b ) = b − a , 区间的长度。计算机的随机数生成器,如 Python 的 random.random(),模拟它。
例 12.20区间上的密度 ✓ 已检验
求常数 c , c\mathclose{\text{,}} c , 使得 f ( x ) = c x ( 2 − x ) f(x) = cx(2 - x) f ( x ) = c x ( 2 − x ) 对于 0 ≤ x ≤ 2 0 \le x \le 2 0 ≤ x ≤ 2 成立,而 f ( x ) = 0 f(x) = 0 f ( x ) = 0 否则不成立,是一个概率密度函数。然后求随机变量 X X X 具有该密度时的 P ( X ≤ 1 2 ) 。 P\big(X \le \tfrac12\big)\mathclose{\text{。}} P ( X ≤ 2 1 ) 。
对于 c ≥ 0 , c \ge 0\mathclose{\text{,}} c ≥ 0 , f ≥ 0 , f \ge 0\mathclose{\text{,}} f ≥ 0 , 由于 x ( 2 − x ) ≥ 0 x(2 - x) \ge 0 x ( 2 − x ) ≥ 0 在 [ 0 , 2 ] [0, 2] [ 0 , 2 ] 上。总面积必须为 1:
∫ 0 2 c x ( 2 − x ) d x = c [ x 2 − x 3 3 ] 0 2 = c ( 4 − 8 3 ) = 4 c 3 = 1 , \begin{aligned} &\int_0^2 cx(2 - x)\,dx = c\Big[x^2 - \frac{x^3}{3}\Big]_0^2 \\ &\qquad= c\Big(4 - \frac83\Big) = \frac{4c}{3} = 1, \end{aligned} ∫ 0 2 c x ( 2 − x ) d x = c [ x 2 − 3 x 3 ] 0 2 = c ( 4 − 3 8 ) = 3 4 c = 1 ,
所以 c = 3 4 。 c = \tfrac34\mathclose{\text{。}} c = 4 3 。 然后,由于 f = 0 f = 0 f = 0 在 0 左边,
P ( X ≤ 1 2 ) = 3 4 ∫ 0 1 / 2 ( 2 x − x 2 ) d x = 3 4 ( 1 4 − 1 24 ) = 5 32 ≈ 0.156. \begin{aligned} P\Big(X \le \frac12\Big) &= \frac34\int_0^{1/2} \big(2x - x^2\big)\,dx \\ &= \frac34\Big(\frac14 - \frac{1}{24}\Big) \\ &= \frac{5}{32} \approx 0.156. \end{aligned} P ( X ≤ 2 1 ) = 4 3 ∫ 0 1/2 ( 2 x − x 2 ) d x = 4 3 ( 4 1 − 24 1 ) = 32 5 ≈ 0.156.
期望值
平均许多 X X X 的值。大约有 f ( x ) Δ x f(x)\,\Delta x f ( x ) Δ x 分数的值落在 x x x 附近的一个薄片中,它们对平均值的贡献大约为 x ⋅ f ( x ) Δ x 。 x \cdot f(x)\,\Delta x\mathclose{\text{。}} x ⋅ f ( x ) Δ x 。 将薄片相加并取极限得到期望值。
定义 12.10期望值
随机变量 X X X 的 期望值 ,或 均值 ,其密度为 f f f 是
μ = E ( X ) = ∫ − ∞ ∞ x f ( x ) d x , \mu = E(X) = \int_{-\infty}^{\infty} x\,f(x)\,dx, μ = E ( X ) = ∫ − ∞ ∞ x f ( x ) d x ,
当积分收敛时成立。 (μ \mu μ 是希腊字母 “mu”。)
这是密度为 f f f 且总质量为 1 的杆的质心(定义 12.5):均值是密度函数图像能够平衡的点。例 12.20 中的密度函数关于 x = 1 x = 1 x = 1 对称,因此其均值为 1,积分也一致:3 4 ∫ 0 2 x 2 ( 2 − x ) d x = 3 4 ⋅ 4 3 = 1 。 \tfrac34\int_0^2 x^2(2 - x)\,dx = \tfrac34 \cdot \tfrac43 = 1\mathclose{\text{。}} 4 3 ∫ 0 2 x 2 ( 2 − x ) d x = 4 3 ⋅ 3 4 = 1 。
注意
并非每个密度函数都有均值。函数 f ( x ) = 1 π ( 1 + x 2 ) f(x) = \dfrac{1}{\pi(1 + x^2)} f ( x ) = π ( 1 + x 2 ) 1 是一个密度函数(例 12.16(c) 表明其总面积为 1),其图像关于 0 对称。但使用替换 u = 1 + x 2 , u = 1 + x^2\mathclose{\text{,}} u = 1 + x 2 ,
∫ 0 t x π ( 1 + x 2 ) d x = ln ( 1 + t 2 ) 2 π → ∞ , \int_0^t \frac{x}{\pi(1 + x^2)}\,dx = \frac{\ln(1 + t^2)}{2\pi} \to \infty, ∫ 0 t π ( 1 + x 2 ) x d x = 2 π ln ( 1 + t 2 ) → ∞ ,
因此均值的积分发散,这个随机变量(它服从柯西分布)没有期望值。只有当积分收敛时,对称性才给出均值。
指数分布
某些事件以λ \lambda λ 每单位时间的稳定平均速率随机发生,彼此独立(λ \lambda λ 是希腊字母“lambda”):例如放射性样本中原子的衰变,或繁忙服务器接收到的请求。下一个此类事件的等待时间X X X 由指数密度 建模,其速率 为λ > 0 , \lambda > 0\mathclose{\text{,}} λ > 0 ,
f ( x ) = { λ e − λ x if x ≥ 0 , 0 if x < 0. f(x) = \begin{cases} \lambda e^{-\lambda x} & \text{if } x \ge 0, \\ 0 & \text{if } x < 0. \end{cases} f ( x ) = { λ e − λ x 0 if x ≥ 0 , if x < 0.
它是一个密度函数: f ≥ 0 , f \ge 0\mathclose{\text{,}} f ≥ 0 , 和 ∫ 0 ∞ λ e − λ x d x = lim t → ∞ ( 1 − e − λ t ) = 1 。 \int_0^\infty \lambda e^{-\lambda x}\,dx = \lim_{t\to\infty}\big(1 - e^{-\lambda t}\big) = 1\mathclose{\text{。}} ∫ 0 ∞ λ e − λ x d x = lim t → ∞ ( 1 − e − λ t ) = 1 。 同样地,对于 t ≥ 0 , t \ge 0\mathclose{\text{,}} t ≥ 0 ,
P ( X > t ) = ∫ t ∞ λ e − λ x d x = e − λ t : P(X > t) = \int_t^\infty \lambda e^{-\lambda x}\,dx = e^{-\lambda t}: P ( X > t ) = ∫ t ∞ λ e − λ x d x = e − λ t :
等待时间超过 t t t 的概率呈指数衰减(模块 6)。对于均值,替换 u = λ x u = \lambda x u = λ x 并使用例 12.16(b):
E ( X ) = ∫ 0 ∞ x λ e − λ x d x = 1 λ ∫ 0 ∞ u e − u d u = 1 λ . \begin{aligned} E(X) &= \int_0^\infty x\,\lambda e^{-\lambda x}\,dx \\ &= \frac{1}{\lambda}\int_0^\infty ue^{-u}\,du = \frac1\lambda. \end{aligned} E ( X ) = ∫ 0 ∞ x λ e − λ x d x = λ 1 ∫ 0 ∞ u e − u d u = λ 1 .
在平均每 λ \lambda λ 个事件/秒的情况下,平均等待时间为 1 / λ 1/\lambda 1/ λ 秒。
例 12.21等待一个请求 ✓ 已检验
假设请求以平均速率 2 次每秒随机到达服务器(一个假设的服务器),因此下一个请求的等待时间 X X X (秒)具有指数密度,参数为 λ = 2 \lambda = 2 λ = 2 (图 12.5,左图)。求 (a) P ( X > 1 ) , P(X > 1)\mathclose{\text{,}} P ( X > 1 ) , (b) P ( 0.5 ≤ X ≤ 1 ) , P(0.5 \le X \le 1)\mathclose{\text{,}} P ( 0.5 ≤ X ≤ 1 ) , (c) 平均等待时间,(d) 中位等待时间 m , m\mathclose{\text{,}} m , 满足 P ( X ≤ m ) = 1 2 。 P(X \le m) = \tfrac12\mathclose{\text{。}} P ( X ≤ m ) = 2 1 。
(a) P ( X > 1 ) = e − 2 ⋅ 1 = e − 2 ≈ 0.135 . P(X > 1) = e^{-2 \cdot 1} = e^{-2} \approx 0.135\mathclose{\text{.}} P ( X > 1 ) = e − 2 ⋅ 1 = e − 2 ≈ 0.135 .
(b) P ( 0.5 ≤ X ≤ 1 ) = P ( X ≥ 0.5 ) − P ( X > 1 ) = e − 1 − e − 2 ≈ 0.233 . P(0.5 \le X \le 1) = P(X \ge 0.5) - P(X > 1) = e^{-1} - e^{-2} \approx 0.233\mathclose{\text{.}} P ( 0.5 ≤ X ≤ 1 ) = P ( X ≥ 0.5 ) − P ( X > 1 ) = e − 1 − e − 2 ≈ 0.233 .
(c) E ( X ) = 1 / λ = 0.5 E(X) = 1/\lambda = 0.5 E ( X ) = 1/ λ = 0.5 s.
(d) P ( X ≤ m ) = 1 − e − 2 m = 1 2 P(X \le m) = 1 - e^{-2m} = \tfrac12 P ( X ≤ m ) = 1 − e − 2 m = 2 1 给出 e − 2 m = 1 2 , e^{-2m} = \tfrac12\mathclose{\text{,}} e − 2 m = 2 1 , 因此 − 2 m = ln 1 2 = − ln 2 , -2m = \ln\tfrac12 = -\ln 2\mathclose{\text{,}} − 2 m = ln 2 1 = − ln 2 , 且 m = 1 2 ln 2 ≈ 0.347 m = \tfrac12\ln 2 \approx 0.347 m = 2 1 ln 2 ≈ 0.347 秒。一半的等待时间短于 0.347 秒,尽管平均值为 0.5 秒:罕见的长等待时间拉高了平均值。对于放射性原子,中位寿命 ln 2 / λ \ln 2/\lambda ln 2/ λ 是指数衰变的半衰期(模块 6)。
图 12.5 概率是密度曲线下的面积。左图:例 12.21 中的指数密度 f ( x ) = 2 e − 2 x ; f(x) = 2e^{-2x}\mathclose{\text{;}} f ( x ) = 2 e − 2 x ; 阴影区域是 P ( 0.5 ≤ X ≤ 1 ) = e − 1 − e − 2 ≈ 0.233 。 P(0.5 \le X \le 1) = e^{-1} - e^{-2} \approx 0.233\mathclose{\text{。}} P ( 0.5 ≤ X ≤ 1 ) = e − 1 − e − 2 ≈ 0.233 。 填充的点表示 f ( 0 ) = 2 : f(0) = 2\mathclose{\text{:}} f ( 0 ) = 2 : 密度可以超过 1。右图:下面将介绍的标准正态密度 φ ; \varphi\mathclose{\text{;}} φ ; 阴影区域 P ( − 1 ≤ Z ≤ 1 ) ≈ 0.683 P(-1 \le Z \le 1) \approx 0.683 P ( − 1 ≤ Z ≤ 1 ) ≈ 0.683 是落在均值一个标准差范围内的概率。
指数分布具有一个显著的性质。条件概率 P ( A ∣ B ) , P(A \mid B)\mathclose{\text{,}} P ( A ∣ B ) , 读作“在 B 发生的情况下 A 发生的概率”,是 A A A 在 B B B 发生的场合中发生的概率:
P ( A ∣ B ) = P ( A and B ) P ( B ) , for P ( B ) > 0. P(A \mid B) = \frac{P(A \text{ and } B)}{P(B)}, \quad\text{for } P(B) > 0. P ( A ∣ B ) = P ( B ) P ( A and B ) , for P ( B ) > 0.
定理 12.5指数分布没有记忆性
如果 X X X 具有速率为 λ \lambda λ 的指数密度, 那么对于所有 s ≥ 0 s \ge 0 s ≥ 0 和 t ≥ 0 , t \ge 0\mathclose{\text{,}} t ≥ 0 ,
P ( X > s + t ∣ X > s ) = P ( X > t ) . P(X > s + t \mid X > s) = P(X > t). P ( X > s + t ∣ X > s ) = P ( X > t ) .
证明
如果 X > s + t X > s + t X > s + t 那么 X > s , X > s\mathclose{\text{,}} X > s , 所以事件 “X > s + t X > s + t X > s + t 和 X > s X > s X > s ” 就是事件 X > s + t 。 X > s + t\mathclose{\text{。}} X > s + t 。 因此
P ( X > s + t ∣ X > s ) = P ( X > s + t ) P ( X > s ) = e − λ ( s + t ) e − λ s = e − λ t = P ( X > t ) . \begin{aligned} &P(X > s + t \mid X > s) \\ &\quad= \frac{P(X > s + t)}{P(X > s)} = \frac{e^{-\lambda(s + t)}}{e^{-\lambda s}} \\ &\quad= e^{-\lambda t} = P(X > t). \end{aligned} P ( X > s + t ∣ X > s ) = P ( X > s ) P ( X > s + t ) = e − λ s e − λ ( s + t ) = e − λ t = P ( X > t ) .
∎
已经等待了 s s s 秒请求并未使下一个请求更接近: 剩余等待时间的分布与全新等待时间的分布相同。作为寿命模型, 指数分布描述的是不会磨损的事物, 例如尚未衰变的原子; 它不适合作为会老化的事物的模型, 例如轮胎或人。
注意
条件改变了答案。已知 λ = 2 , \lambda = 2\mathclose{\text{,}} λ = 2 , 在已经等待了 1 秒的情况下, 等待超过 1.5 秒的总概率是 P ( X > 0.5 ) = e − 1 ≈ 0.368 , P(X > 0.5) = e^{-1} \approx 0.368\mathclose{\text{,}} P ( X > 0.5 ) = e − 1 ≈ 0.368 , 而不是 P ( X > 1.5 ) = e − 3 ≈ 0.050 : P(X > 1.5) = e^{-3} \approx 0.050\mathclose{\text{:}} P ( X > 1.5 ) = e − 3 ≈ 0.050 : 第二个是开始等待前等待这么久的概率。
正态分布
统计学中最重要的密度函数是钟形的 标准正态密度函数
φ ( z ) = 1 2 π e − z 2 / 2 , \varphi(z) = \frac{1}{\sqrt{2\pi}}\,e^{-z^2/2}, φ ( z ) = 2 π 1 e − z 2 /2 ,
其中 φ \varphi φ 是希腊字母 “phi”(图12.5,右)。测量误差,以及许多由许多小的独立效应相加而成的量,都近似服从这种分布,经过平移和缩放;其原因,概率论中的中心极限定理,超出了本系列的范围。
为什么有这个因子 1 / 2 π ? 1/\sqrt{2\pi}\mathclose{\text{?}} 1/ 2 π ? 因为总面积必须为 1。第12.8节在例12.18之后表明, ∫ − ∞ ∞ e − x 2 d x \int_{-\infty}^{\infty} e^{-x^2}\,dx ∫ − ∞ ∞ e − x 2 d x 是收敛的。其值为 高斯积分
∫ − ∞ ∞ e − x 2 d x = π . \int_{-\infty}^{\infty} e^{-x^2}\,dx = \sqrt{\pi}. ∫ − ∞ ∞ e − x 2 d x = π .
这里没有原函数可用,因为 e − x 2 e^{-x^2} e − x 2 没有初等原函数(模块11)。本模块引用该值;模块19 通过将积分平方,将其转化为二重积分,并在极坐标下计算该积分来证明它, z = 2 x z = \sqrt2\,x z = 2 x 用 d z = 2 d x dz = \sqrt2\,dx d z = 2 d x (模块10;无穷限保持无穷),给出
∫ − ∞ ∞ e − z 2 / 2 d z = 2 ∫ − ∞ ∞ e − x 2 d x = 2 π , \int_{-\infty}^{\infty} e^{-z^2/2}\,dz = \sqrt2\int_{-\infty}^{\infty} e^{-x^2}\,dx = \sqrt{2\pi}, ∫ − ∞ ∞ e − z 2 /2 d z = 2 ∫ − ∞ ∞ e − x 2 d x = 2 π ,
所以 φ \varphi φ 的总面积为 1。其均值为 0:积分 ∫ 0 ∞ z e − z 2 / 2 d z \int_0^\infty z e^{-z^2/2}\,dz ∫ 0 ∞ z e − z 2 /2 d z 收敛,结果为 1(代入 u = z 2 / 2 ), u = z^2/2\mathclose{\text{),}} u = z 2 /2 ), 且 z φ ( z ) z\varphi(z) z φ ( z ) 为奇函数,因此积分用于均值的两个部分相互抵消。
更一般地,均值为 μ 、 \mu\mathclose{\text{、}} μ 、 标准差 为 σ > 0 \sigma > 0 σ > 0 (希腊字母「西格玛」)的正态分布 ,其概率密度为
f ( x ) = 1 σ 2 π e − ( x − μ ) 2 / ( 2 σ 2 ) , f(x) = \frac{1}{\sigma\sqrt{2\pi}}\,e^{-(x - \mu)^2/(2\sigma^2)}, f ( x ) = σ 2 π 1 e − ( x − μ ) 2 / ( 2 σ 2 ) ,
一个以 μ \mu μ 为中心、宽度与 σ \sigma σ 成比例的钟形曲线。练习 12.12 表明 σ 2 \sigma^2 σ 2 是均方差,且该钟形曲线的拐点位于 μ ± σ 。 \mu \pm \sigma\mathclose{\text{。}} μ ± σ 。 替换 z = ( x − μ ) / σ z = (x - \mu)/\sigma z = ( x − μ ) / σ 将 f f f 转换为 φ : \varphi\mathclose{\text{:}} φ : 如果 X X X 具有该密度,而 Z Z Z 具有标准正态密度,则
P ( a ≤ X ≤ b ) = P ( a − μ σ ≤ Z ≤ b − μ σ ) . P(a \le X \le b) = P\Big(\frac{a - \mu}{\sigma} \le Z \le \frac{b - \mu}{\sigma}\Big). P ( a ≤ X ≤ b ) = P ( σ a − μ ≤ Z ≤ σ b − μ ) .
同样的替换 x = μ + σ z x = \mu + \sigma z x = μ + σ z 与 d x = σ d z dx = \sigma\,dz d x = σ d z 表明 X X X 的均值为 μ , \mu\mathclose{\text{,}} μ , 正如其名称所示,因为 φ \varphi φ 的总面积为 1,均值为 0:
∫ − ∞ ∞ x f ( x ) d x = ∫ − ∞ ∞ ( μ + σ z ) φ ( z ) d z = μ ⋅ 1 + σ ⋅ 0 = μ . \begin{aligned} \int_{-\infty}^{\infty} x f(x)\,dx &= \int_{-\infty}^{\infty} (\mu + \sigma z)\varphi(z)\,dz \\ &= \mu \cdot 1 + \sigma \cdot 0 = \mu. \end{aligned} ∫ − ∞ ∞ x f ( x ) d x = ∫ − ∞ ∞ ( μ + σ z ) φ ( z ) d z = μ ⋅ 1 + σ ⋅ 0 = μ .
一个函数 φ \varphi φ 适用于所有正态分布。
计算正态概率。 由于 φ \varphi φ 没有初等原函数,正态概率通常通过数值方法计算,例如使用辛普森法则(模块 11),或者使用模块 11 中的误差函数 ,
erf ( x ) = 2 π ∫ 0 x e − t 2 d t , \operatorname{erf}(x) = \frac{2}{\sqrt\pi}\int_0^x e^{-t^2}\,dt, erf ( x ) = π 2 ∫ 0 x e − t 2 d t ,
这些函数由计算器和编程语言提供(在 Python 中, math.erf)。由于 φ \varphi φ 是偶函数, P ( − c ≤ Z ≤ c ) = 2 ∫ 0 c φ ( z ) d z P(-c \le Z \le c) = 2\int_0^c \varphi(z)\,dz P ( − c ≤ Z ≤ c ) = 2 ∫ 0 c φ ( z ) d z 对于 c > 0 , c > 0\mathclose{\text{,}} c > 0 , 并使用替换 z = 2 t z = \sqrt2\,t z = 2 t 将其转换为误差函数:
P ( − c ≤ Z ≤ c ) = 2 2 π ∫ 0 c e − z 2 / 2 d z = 2 π ∫ 0 c / 2 e − t 2 d t = erf ( c 2 ) . \begin{aligned} P(-c \le Z \le c) &= \frac{2}{\sqrt{2\pi}}\int_0^{c} e^{-z^2/2}\,dz \\ &= \frac{2}{\sqrt\pi}\int_0^{c/\sqrt2} e^{-t^2}\,dt \\ &= \operatorname{erf}\Big(\frac{c}{\sqrt2}\Big). \end{aligned} P ( − c ≤ Z ≤ c ) = 2 π 2 ∫ 0 c e − z 2 /2 d z = π 2 ∫ 0 c / 2 e − t 2 d t = erf ( 2 c ) .
c c c P ( − c ≤ Z ≤ c ) = erf ( c / 2 ) P(-c \le Z \le c) = \operatorname{erf}(c/\sqrt2) P ( − c ≤ Z ≤ c ) = erf ( c / 2 ) 1 1 1 0.6827 0.6827 0.6827 1.645 1.645 1.645 0.9000 0.9000 0.9000 1.96 1.96 1.96 0.9500 0.9500 0.9500 2 2 2 0.9545 0.9545 0.9545 2.576 2.576 2.576 0.9900 0.9900 0.9900 3 3 3 0.9973 0.9973 0.9973
第 1、2 和 3 行对应 68–95–99.7 规则 :一个正态随机变量大约 68% 的时间落在均值的一个标准差内,大约 95% 的时间落在两个标准差内,大约 99.7% 的时间落在三个标准差内。数值 1.645、1.96 和 2.576 分别对应 90%、95% 和 99% 的置信度;统计学家使用它们来说明估计的精确程度。
例 12.22传感器的误差 ✓ 已检验
假设一个温度计的误差(即读数减去真实温度)服从均值为 0 °C、标准差为 0.4 °C 的正态分布(一个假设的传感器)。求(a)读数与真实温度的差在 0.5 °C 以内的概率,以及(b)误差在 ±1 °C 以外的概率。
(a) 标准化为 z = x / 0.4 : z = x/0.4\mathclose{\text{:}} z = x /0.4 : 0.5 0.5 0.5 °C 转换为 z = 1.25 , z = 1.25\mathclose{\text{,}} z = 1.25 , 因此
P ( − 0.5 ≤ X ≤ 0.5 ) = P ( − 1.25 ≤ Z ≤ 1.25 ) = erf ( 1.25 2 ) ≈ 0.789. \begin{aligned} &P(-0.5 \le X \le 0.5) \\ &\qquad= P(-1.25 \le Z \le 1.25) \\ &\qquad= \operatorname{erf}\Big(\frac{1.25}{\sqrt2}\Big) \approx 0.789. \end{aligned} P ( − 0.5 ≤ X ≤ 0.5 ) = P ( − 1.25 ≤ Z ≤ 1.25 ) = erf ( 2 1.25 ) ≈ 0.789.
(b) 现在 1 °C 转换为 z = 2.5 , z = 2.5\mathclose{\text{,}} z = 2.5 , 误差在 ±1 °C 以外的概率等于误差不在 1 °C 以内的概率:
P ( ∣ X ∣ > 1 ) = 1 − P ( − 2.5 ≤ Z ≤ 2.5 ) = 1 − erf ( 2.5 2 ) ≈ 0.0124 , \begin{aligned} P(\abs{X} > 1) &= 1 - P(-2.5 \le Z \le 2.5) \\ &= 1 - \operatorname{erf}\Big(\frac{2.5}{\sqrt2}\Big) \approx 0.0124, \end{aligned} P ( ∣ X ∣ > 1 ) = 1 − P ( − 2.5 ≤ Z ≤ 2.5 ) = 1 − erf ( 2 2.5 ) ≈ 0.0124 ,
因此,大约 1.2% 的读数误差超过这个范围。
注意
在使用表格或误差函数前,请先进行标准化。在例 12.22 中,P ( − 0.5 ≤ X ≤ 0.5 ) P(-0.5 \le X \le 0.5) P ( − 0.5 ≤ X ≤ 0.5 ) 不等于 erf ( 0.5 / 2 ) ≈ 0.383 : \operatorname{erf}(0.5/\sqrt2) \approx 0.383\mathclose{\text{:}} erf ( 0.5/ 2 ) ≈ 0.383 : 那将是标准差为 1 °C 时的答案,而不是 0.4 °C。
动手计算用计算机计算概率
Python 的 math 模块包含 exp、log 和 erf,足以计算例题 12.21 和 12.22 的概率:
Python 复制
import math
lam = 2.0
print ("P(X > 1) =" , math.exp (-lam*1 ))
print ("P(0.5 <= X <= 1) =" , math.exp (-lam*0.5 ) - math.exp (-lam*1 ))
print ("median wait =" , math.log (2 )/lam)
print ("P(|Z| <= 1.25) =" , math.erf (1.25 /math.sqrt (2 )))
输出
P(X > 1) = 0.1353352832366127
P(0.5 <= X <= 1) = 0.23254415793482963
median wait = 0.34657359027997264
P(|Z| <= 1.25) = 0.7887004526662894
你也可以通过模拟数据观察概率的出现。如果 U U U 在 [ 0 , 1 ) [0, 1) [ 0 , 1 ) 上均匀分布,则 X = − ln ( 1 − U ) / λ X = -\ln(1 - U)/\lambda X = − ln ( 1 − U ) / λ 具有指数密度,因为 P ( X > t ) = P ( 1 − U < e − λ t ) = e − λ t 。 P(X > t) = P\big(1 - U < e^{-\lambda t}\big) = e^{-\lambda t}\mathclose{\text{。}} P ( X > t ) = P ( 1 − U < e − λ t ) = e − λ t 。 模拟 100,000 次等待时间(种子固定随机数,因此你将看到与此处相同的输出):
Python 复制
import random
random.seed (2026 )
waits = [-math.log (1 - random.random ())/lam for _ in range (100_000 )]
long_waits = [w for w in waits if w > 1 ]
longer = [w for w in long_waits if w > 1.5 ]
print ("mean of the waits: " , round (sum (waits)/len (waits), 4 ))
print ("fraction over 1 s: " , round (len (long_waits)/len (waits), 4 ))
print ("of those, over 1.5 s:" , round (len (longer)/len (long_waits), 4 ))
输出
mean of the waits: 0.498
fraction over 1 s: 0.1343
of those, over 1.5 s: 0.3658
模拟的均值接近 1 / λ = 0.5 , 1/\lambda = 0.5\mathclose{\text{,}} 1/ λ = 0.5 , 等待时间超过 1 秒的比例接近 e − 2 ≈ 0.135 , e^{-2} \approx 0.135\mathclose{\text{,}} e − 2 ≈ 0.135 , 而在这些中,持续时间至少再 0.5 秒的比例接近 e − 1 ≈ 0.368 : e^{-1} \approx 0.368\mathclose{\text{:}} e − 1 ≈ 0.368 : 这是数据中观察到的无记忆性性质。
分割,近似,相加,取极限。 一个分布在 [ a , b ] [a, b] [ a , b ] 上的量,其在 x x x 附近的小片近似为 q ( x ) Δ x , q(x)\,\Delta x\mathclose{\text{,}} q ( x ) Δ x , 则该量为 ∫ a b q ( x ) d x 。 \int_a^b q(x)\,dx\mathclose{\text{。}} ∫ a b q ( x ) d x 。 每个小片的真实值必须介于 Δ x \Delta x Δ x 乘以该小片内 q q q 的最小值与最大值之间;检查 q ( x ) d x q(x)\,dx q ( x ) d x 的单位。
面积 : ∫ a b ( top − bottom ) d x \int_a^b (\text{top} - \text{bottom})\,dx ∫ a b ( top − bottom ) d x 用垂直条形计算, ∫ c d ( right − left ) d y \int_c^d (\text{right} - \text{left})\,dy ∫ c d ( right − left ) d y 用水平条形计算。找出曲线的交点,并在它们相交处分割。
体积 : ∫ a b A ( x ) d x \int_a^b A(x)\,dx ∫ a b A ( x ) d x 对于已知截面(棱锥或圆锥的体积为 1 3 \tfrac13 3 1 底面积乘以高度)。对于旋转体:圆盘法 π ∫ f 2 , \pi\int f^2\mathclose{\text{,}} π ∫ f 2 , 圆环法 π ∫ ( R 2 − r 2 ) , \pi\int (R^2 - r^2)\mathclose{\text{,}} π ∫ ( R 2 − r 2 ) , 壳层法 2 π ∫ ( radius ) ( height ) , 2\pi\int (\text{radius})(\text{height})\mathclose{\text{,}} 2 π ∫ ( radius ) ( height ) , 半径从轴线测量。
弧长 : L = ∫ a b 1 + f ′ ( x ) 2 d x , L = \int_a^b \sqrt{1 + f'(x)^2}\,dx\mathclose{\text{,}} L = ∫ a b 1 + f ′ ( x ) 2 d x , 即内接多边形长度的极限(利用勾股定理和平均值定理)。大多数弧长积分需要数值计算。
功 : W = ∫ a b F ( x ) d x , W = \int_a^b F(x)\,dx\mathclose{\text{,}} W = ∫ a b F ( x ) d x , 当力的单位为牛顿时,距离的单位为米时,功的单位为焦耳。弹簧遵循 F = k x F = kx F = k x (胡克定律);对于绳子和油罐,将物体切片,将每一片的重量乘以其自身的距离。
质心 : x ˉ = ∫ x ρ d x / ∫ ρ d x \bar x = \int x\rho\,dx \big/ \int \rho\,dx x ˉ = ∫ x ρ d x / ∫ ρ d x 对于一根杆;对于一个平板,其重心 x ˉ = 1 A ∫ x ( f − g ) d x , \bar x = \frac1A\int x(f - g)\,dx\mathclose{\text{,}} x ˉ = A 1 ∫ x ( f − g ) d x , y ˉ = 1 A ∫ 1 2 ( f 2 − g 2 ) d x \bar y = \frac1A\int \tfrac12\big(f^2 - g^2\big)\,dx y ˉ = A 1 ∫ 2 1 ( f 2 − g 2 ) d x 在任何对称轴上。
瑕积分 是普通积分在无限区间或非有界被积函数上的极限;它们收敛或发散。 ∫ 1 ∞ d x / x p \int_1^\infty dx/x^p ∫ 1 ∞ d x / x p 收敛当且仅当 p > 1 , p > 1\mathclose{\text{,}} p > 1 , ∫ 0 1 d x / x p \int_0^1 dx/x^p ∫ 0 1 d x / x p 收敛当且仅当 p < 1 。 p < 1\mathclose{\text{。}} p < 1 。 比较法和极限比较法可在不计算积分的情况下判断收敛性。在使用基本定理前,应先寻找隐藏的无穷大。Gabriel 的号角有体积 π \pi π 但表面积无限。
概率 :密度 f ≥ 0 f \ge 0 f ≥ 0 的总面积为 1 时,得到 P ( a ≤ X ≤ b ) = ∫ a b f ( x ) d x P(a \le X \le b) = \int_a^b f(x)\,dx P ( a ≤ X ≤ b ) = ∫ a b f ( x ) d x 和均值 μ = ∫ x f ( x ) d x \mu = \int x f(x)\,dx μ = ∫ x f ( x ) d x (当它收敛时)。指数密度 λ e − λ x \lambda e^{-\lambda x} λ e − λ x 有 P ( X > t ) = e − λ t , P(X > t) = e^{-\lambda t}\mathclose{\text{,}} P ( X > t ) = e − λ t , 均值 1 / λ 1/\lambda 1/ λ 且无记忆性。正态密度依赖于高斯积分 ∫ − ∞ ∞ e − x 2 d x = π \int_{-\infty}^{\infty} e^{-x^2}\,dx = \sqrt\pi ∫ − ∞ ∞ e − x 2 d x = π (在模块 19 中证明);其概率由误差函数或数值积分得出: P ( ∣ Z ∣ ≤ c ) = erf ( c / 2 ) , P(\abs{Z} \le c) = \operatorname{erf}(c/\sqrt2)\mathclose{\text{,}} P ( ∣ Z ∣ ≤ c ) = erf ( c / 2 ) , 即 68–95–99.7 规则。
练习 12.1 ★ 相交曲线
求由曲线 y = x 3 y = x^3 y = x 3 和 y = x y = x y = x 所围成的区域的面积。解释为何 ∫ − 1 1 ( x − x 3 ) d x \int_{-1}^{1} (x - x^3)\,dx ∫ − 1 1 ( x − x 3 ) d x 不是答案。
查看解答✓ 已检验
曲线相交于 x 3 = x , x^3 = x\mathclose{\text{,}} x 3 = x , 即 x ( x − 1 ) ( x + 1 ) = 0 : x(x - 1)(x + 1) = 0\mathclose{\text{:}} x ( x − 1 ) ( x + 1 ) = 0 : 在 x = − 1 , x = -1\mathclose{\text{,}} x = − 1 , 0 和 1 处。在 [ 0 , 1 ] , [0, 1]\mathclose{\text{,}} [ 0 , 1 ] , 在 x = 1 2 x = \tfrac12 x = 2 1 处,直线给出 1 2 , \tfrac12\mathclose{\text{,}} 2 1 , 而三次曲线给出 1 8 , \tfrac18\mathclose{\text{,}} 8 1 , 因此直线在上。在 [ − 1 , 0 ] , [-1, 0]\mathclose{\text{,}} [ − 1 , 0 ] , 在 x = − 1 2 x = -\tfrac12 x = − 2 1 处,三次曲线给出 − 1 8 , -\tfrac18\mathclose{\text{,}} − 8 1 , 而直线给出 − 1 2 , -\tfrac12\mathclose{\text{,}} − 2 1 , 因此三次曲线在上。交叉点分割区域:
A = ∫ − 1 0 ( x 3 − x ) d x + ∫ 0 1 ( x − x 3 ) d x = [ x 4 4 − x 2 2 ] − 1 0 + [ x 2 2 − x 4 4 ] 0 1 = 1 4 + 1 4 = 1 2 . \begin{aligned} A &= \int_{-1}^{0} \big(x^3 - x\big)\,dx \\ &\qquad + \int_0^1 \big(x - x^3\big)\,dx \\ &= \Big[\frac{x^4}{4} - \frac{x^2}{2}\Big]_{-1}^{0} \\ &\qquad + \Big[\frac{x^2}{2} - \frac{x^4}{4}\Big]_0^1 \\ &= \frac14 + \frac14 = \frac12. \end{aligned} A = ∫ − 1 0 ( x 3 − x ) d x + ∫ 0 1 ( x − x 3 ) d x = [ 4 x 4 − 2 x 2 ] − 1 0 + [ 2 x 2 − 4 x 4 ] 0 1 = 4 1 + 4 1 = 2 1 .
∫ − 1 1 ( x − x 3 ) d x = 0 , \int_{-1}^{1}(x - x^3)\,dx = 0\mathclose{\text{,}} ∫ − 1 1 ( x − x 3 ) d x = 0 , 因为在 [ − 1 , 0 ] [-1, 0] [ − 1 , 0 ] 处直线在三次曲线下方,该部分计入 − 1 4 : -\tfrac14\mathclose{\text{:}} − 4 1 : 积分是一个净(有符号)面积,不是面积。该区域由两个部分组成,彼此通过原点对称,每个部分的面积为 1 4 。 \tfrac14\mathclose{\text{。}} 4 1 。
练习 12.2 ★ 圆盘与壳法
区域在 y = x y = \sqrt x y = x 和 0 ≤ x ≤ 4 0 \le x \le 4 0 ≤ x ≤ 4 下方,绕(a) x x x 轴旋转,(b) y y y 轴旋转。求两个体积,使用壳法求解(b)。
查看解答✓ 已检验
(a) 圆盘半径为 x : \sqrt x\mathclose{\text{:}} x :
V = π ∫ 0 4 ( x ) 2 d x = π ∫ 0 4 x d x = π ⋅ 16 2 = 8 π ≈ 25.13. \begin{aligned} V &= \pi\int_0^4 \big(\sqrt x\big)^2\,dx \\ &= \pi\int_0^4 x\,dx \\ &= \pi\cdot\frac{16}{2} = 8\pi \approx 25.13. \end{aligned} V = π ∫ 0 4 ( x ) 2 d x = π ∫ 0 4 x d x = π ⋅ 2 16 = 8 π ≈ 25.13.
(b) 在 x x x 处的条带,半径为 x , x\mathclose{\text{,}} x , 高度为 x : \sqrt x\mathclose{\text{:}} x :
V = 2 π ∫ 0 4 x x d x = 2 π ∫ 0 4 x 3 / 2 d x = 2 π ⋅ 2 5 ⋅ 4 5 / 2 = 2 π ⋅ 2 5 ⋅ 32 = 128 π 5 ≈ 80.42. \begin{aligned} V &= 2\pi\int_0^4 x\sqrt x\,dx \\ &= 2\pi\int_0^4 x^{3/2}\,dx \\ &= 2\pi\cdot\frac25\cdot 4^{5/2} = 2\pi\cdot\frac25\cdot 32 \\ &= \frac{128\pi}{5} \approx 80.42. \end{aligned} V = 2 π ∫ 0 4 x x d x = 2 π ∫ 0 4 x 3/2 d x = 2 π ⋅ 5 2 ⋅ 4 5/2 = 2 π ⋅ 5 2 ⋅ 32 = 5 128 π ≈ 80.42.
洗碗法检查:在高度 y , y\mathclose{\text{,}} y , 对于 0 ≤ y ≤ 2 , 0 \le y \le 2\mathclose{\text{,}} 0 ≤ y ≤ 2 , 区域从 x = y 2 x = y^2 x = y 2 到 x = 4 , x = 4\mathclose{\text{,}} x = 4 , 因此 R = 4 , R = 4\mathclose{\text{,}} R = 4 , r = y 2 , r = y^2\mathclose{\text{,}} r = y 2 , 和 π ∫ 0 2 ( 16 − y 4 ) d y = π ( 32 − 32 5 ) = 128 π 5 。 \pi\int_0^2 \big(16 - y^4\big)\,dy = \pi\big(32 - \tfrac{32}{5}\big) = \tfrac{128\pi}{5}\mathclose{\text{。}} π ∫ 0 2 ( 16 − y 4 ) d y = π ( 32 − 5 32 ) = 5 128 π 。
练习 12.3 ★ 弹簧
一个弹簧的自然长度为 20 cm。一个 12 N 的力将其拉伸至 25 cm。将其从 25 cm 拉伸至 35 cm 需要做多少功?
查看解答✓ 已检验
功以米为单位。在 25 cm 处,弹簧被拉伸了 0.05 0.05 0.05 m,因此胡克定律给出 12 = k × 0.05 12 = k \times 0.05 12 = k × 0.05 和 k = 240 k = 240 k = 240 N/m。从 25 cm 拉伸至 35 cm 的过程中,拉伸量从 0.05 m 变到 0.15 m:
W = ∫ 0.05 0.15 240 x d x = [ 120 x 2 ] 0.05 0.15 = 120 ( 0.0225 − 0.0025 ) = 2.4 J . \begin{aligned} W &= \int_{0.05}^{0.15} 240x\,dx \\ &= \big[120x^2\big]_{0.05}^{0.15} \\ &= 120\,(0.0225 - 0.0025) \\ &= 2.4 \text{ J}. \end{aligned} W = ∫ 0.05 0.15 240 x d x = [ 120 x 2 ] 0.05 0.15 = 120 ( 0.0225 − 0.0025 ) = 2.4 J .
常见的错误答案是在长度 0.25 到 0.35 之间积分,得到 120 ( 0.1225 − 0.0625 ) = 7.2 120(0.1225 - 0.0625) = 7.2 120 ( 0.1225 − 0.0625 ) = 7.2 J;但胡克定律是关于超出自然长度的拉伸量,而不是长度本身。
练习 12.4 ★ 收敛还是发散?
判断每个积分是否收敛。在 (a) 到 (d) 中,若收敛则求其值;在 (e) 和 (f) 中,使用比较法。
(a) ∫ 1 ∞ d x x 3 / 2 \displaystyle\int_1^\infty \frac{dx}{x^{3/2}} ∫ 1 ∞ x 3/2 d x
(b) ∫ 0 1 d x x 3 / 2 \displaystyle\int_0^1 \frac{dx}{x^{3/2}} ∫ 0 1 x 3/2 d x
(c) ∫ 0 ∞ e − 3 x d x \displaystyle\int_0^\infty e^{-3x}\,dx ∫ 0 ∞ e − 3 x d x
(d) ∫ 0 4 d x 4 − x \displaystyle\int_0^4 \frac{dx}{\sqrt{4 - x}} ∫ 0 4 4 − x d x
(e) ∫ 1 ∞ cos 2 x x 2 d x \displaystyle\int_1^\infty \frac{\cos^2 x}{x^2}\,dx ∫ 1 ∞ x 2 cos 2 x d x
(f) ∫ 1 ∞ x x 3 + 1 d x \displaystyle\int_1^\infty \frac{x}{\sqrt{x^3 + 1}}\,dx ∫ 1 ∞ x 3 + 1 x d x
查看解答✓ 已检验
(a) A p p p -积分在 p = 3 2 > 1 : p = \tfrac32 > 1\mathclose{\text{:}} p = 2 3 > 1 : 它收敛,值为 1 3 / 2 − 1 = 2 。 \dfrac{1}{3/2 - 1} = 2\mathclose{\text{。}} 3/2 − 1 1 = 2 。 直接计算: ∫ 1 t x − 3 / 2 d x = 2 − 2 t → 2 。 \int_1^t x^{-3/2}\,dx = 2 - \dfrac{2}{\sqrt t} \to 2\mathclose{\text{。}} ∫ 1 t x − 3/2 d x = 2 − t 2 → 2 。
(b) 在 0 附近, p p p -积分需要 p < 1 , p < 1\mathclose{\text{,}} p < 1 , 且 p = 3 2 : p = \tfrac32\mathclose{\text{:}} p = 2 3 : 它发散。直接计算: ∫ t 1 x − 3 / 2 d x = 2 t − 2 → ∞ \int_t^1 x^{-3/2}\,dx = \dfrac{2}{\sqrt t} - 2 \to \infty ∫ t 1 x − 3/2 d x = t 2 − 2 → ∞ 作为 t → 0 + 。 t \to 0^+\mathclose{\text{。}} t → 0 + 。
(c) ∫ 0 t e − 3 x d x = [ − e − 3 x 3 ] 0 t = 1 − e − 3 t 3 → 1 3 : \int_0^t e^{-3x}\,dx = \Big[-\dfrac{e^{-3x}}{3}\Big]_0^t = \dfrac{1 - e^{-3t}}{3} \to \dfrac13\mathclose{\text{:}} ∫ 0 t e − 3 x d x = [ − 3 e − 3 x ] 0 t = 3 1 − e − 3 t → 3 1 : 它收敛,值为 1 3 。 \tfrac13\mathclose{\text{。}} 3 1 。
(d) 被积函数在 x = 4 x = 4 x = 4 附近无界。 ( 4 − x ) − 1 / 2 (4 - x)^{-1/2} ( 4 − x ) − 1/2 的一个原函数是 − 2 4 − x -2\sqrt{4 - x} − 2 4 − x (代入 u = 4 − x ), u = 4 - x\mathclose{\text{),}} u = 4 − x ), 因此对于 0 < t < 4 0 < t < 4 0 < t < 4
∫ 0 t d x 4 − x = 4 − 2 4 − t , \int_0^t \frac{dx}{\sqrt{4 - x}} = 4 - 2\sqrt{4 - t}, ∫ 0 t 4 − x d x = 4 − 2 4 − t ,
当 t → 4 − t \to 4^- t → 4 − 趋近于 4 时,它收敛,值为 4。
(e) 对于任意 x , x\mathclose{\text{,}} x , 0 ≤ cos 2 x ≤ 1 , 0 \le \cos^2 x \le 1\mathclose{\text{,}} 0 ≤ cos 2 x ≤ 1 , 因此对于 x ≥ 1 x \ge 1 x ≥ 1
0 ≤ cos 2 x x 2 ≤ 1 x 2 . 0 \le \frac{\cos^2 x}{x^2} \le \frac{1}{x^2}. 0 ≤ x 2 cos 2 x ≤ x 2 1 .
p p p -积分 ∫ 1 ∞ d x / x 2 \int_1^\infty dx/x^2 ∫ 1 ∞ d x / x 2 收敛 (p = 2 ), p = 2\mathclose{\text{),}} p = 2 ), 所以根据比较判别法,积分收敛,其值不超过 1。 (其数值解约为 0.327。)
(f) 对于大的 x , x\mathclose{\text{,}} x , 被积函数的行为类似于 x / x 3 / 2 = 1 / x , x/x^{3/2} = 1/\sqrt x\mathclose{\text{,}} x / x 3/2 = 1/ x , 其积分发散,因此需要寻找一个下界。对于 x ≥ 1 , x \ge 1\mathclose{\text{,}} x ≥ 1 , x 3 ≥ 1 , x^3 \ge 1\mathclose{\text{,}} x 3 ≥ 1 , 所以 x 3 + 1 ≤ 2 x 3 x^3 + 1 \le 2x^3 x 3 + 1 ≤ 2 x 3 和 x 3 + 1 ≤ 2 x 3 / 2 。 \sqrt{x^3 + 1} \le \sqrt2\,x^{3/2}\mathclose{\text{。}} x 3 + 1 ≤ 2 x 3/2 。 因此
x x 3 + 1 ≥ x 2 x 3 / 2 = 1 2 x > 0. \begin{aligned} \frac{x}{\sqrt{x^3 + 1}} &\ge \frac{x}{\sqrt2\,x^{3/2}} \\ &= \frac{1}{\sqrt2\,\sqrt x} > 0. \end{aligned} x 3 + 1 x ≥ 2 x 3/2 x = 2 x 1 > 0.
∫ 1 t d x 2 x = 2 ( t − 1 ) → ∞ , \int_1^t \frac{dx}{\sqrt2\,\sqrt x} = \sqrt2\big(\sqrt t - 1\big) \to \infty\mathclose{\text{,}} ∫ 1 t 2 x d x = 2 ( t − 1 ) → ∞ , 因此根据比较判别法 (b) 积分发散。极限比较判别法在一行中给出相同结论,如 x → ∞ : x \to \infty\mathclose{\text{:}} x → ∞ :
x / x 3 + 1 1 / x = x 3 / 2 x 3 + 1 → 1. \frac{x/\sqrt{x^3 + 1}}{1/\sqrt x} = \frac{x^{3/2}}{\sqrt{x^3 + 1}} \to 1. 1/ x x / x 3 + 1 = x 3 + 1 x 3/2 → 1.
该界 x / x 3 + 1 ≤ 1 / x x/\sqrt{x^3 + 1} \le 1/\sqrt x x / x 3 + 1 ≤ 1/ x 是正确的,但它证明不了任何东西:它将被积函数置于一个积分发散的函数之下。
练习 12.5 ★★ 水平条带
求由抛物线 x = y 2 − 4 x = y^2 - 4 x = y 2 − 4 和直线 x + y = 2 x + y = 2 x + y = 2 所围成的区域的面积。为什么用垂直条形图会使这个问题变得更难?
查看解答✓ 已检验
画出直线 x = 2 − y 。 x = 2 - y\mathclose{\text{。}} x = 2 − y 。 曲线相交于 y 2 − 4 = 2 − y , y^2 - 4 = 2 - y\mathclose{\text{,}} y 2 − 4 = 2 − y , 即 y 2 + y − 6 = 0 , y^2 + y - 6 = 0\mathclose{\text{,}} y 2 + y − 6 = 0 , 或 ( y + 3 ) ( y − 2 ) = 0 : (y + 3)(y - 2) = 0\mathclose{\text{:}} ( y + 3 ) ( y − 2 ) = 0 : 在 y = − 3 y = -3 y = − 3 和 y = 2 y = 2 y = 2 处,点 ( 5 , − 3 ) (5, -3) ( 5 , − 3 ) 和 ( 0 , 2 ) 。 (0, 2)\mathclose{\text{。}} ( 0 , 2 ) 。 在 y = 0 y = 0 y = 0 处,直线位于 x = 2 , x = 2\mathclose{\text{,}} x = 2 , 抛物线位于 x = − 4 , x = -4\mathclose{\text{,}} x = − 4 , 因此直线在右侧。右减左为 ( 2 − y ) − ( y 2 − 4 ) = 6 − y − y 2 , (2 - y) - (y^2 - 4) = 6 - y - y^2\mathclose{\text{,}} ( 2 − y ) − ( y 2 − 4 ) = 6 − y − y 2 , 且
A = ∫ − 3 2 ( 6 − y − y 2 ) d y = [ 6 y − y 2 2 − y 3 3 ] − 3 2 = 22 3 − ( − 27 2 ) = 125 6 ≈ 20.83. \begin{aligned} A &= \int_{-3}^{2} \big(6 - y - y^2\big)\,dy \\ &= \Big[6y - \frac{y^2}{2} - \frac{y^3}{3}\Big]_{-3}^{2} \\ &= \frac{22}{3} - \Big(-\frac{27}{2}\Big) \\ &= \frac{125}{6} \approx 20.83. \end{aligned} A = ∫ − 3 2 ( 6 − y − y 2 ) d y = [ 6 y − 2 y 2 − 3 y 3 ] − 3 2 = 3 22 − ( − 2 27 ) = 6 125 ≈ 20.83.
用垂直条带,下边界是抛物线的下半部分 y = − x + 4 , y = -\sqrt{x + 4}\mathclose{\text{,}} y = − x + 4 , 一直到底。但上边界在 x = 0 x = 0 x = 0 处发生变化:对于 − 4 ≤ x ≤ 0 , -4 \le x \le 0\mathclose{\text{,}} − 4 ≤ x ≤ 0 , 上边界是抛物线的上半部分 y = x + 4 , y = \sqrt{x + 4}\mathclose{\text{,}} y = x + 4 , 对于 0 ≤ x ≤ 5 , 0 \le x \le 5\mathclose{\text{,}} 0 ≤ x ≤ 5 , 上边界是直线 y = 2 − x 。 y = 2 - x\mathclose{\text{。}} y = 2 − x 。 这意味着需要两个积分,都涉及平方根。
练习 12.6 ★★ 两段弧长
(a) 求 y = x 2 4 − ln x 2 y = \dfrac{x^2}{4} - \dfrac{\ln x}{2} y = 4 x 2 − 2 ln x 在 1 ≤ x ≤ e 1 \le x \le e 1 ≤ x ≤ e 处的精确长度。(提示: 1 + f ′ ( x ) 2 1 + f'(x)^2 1 + f ′ ( x ) 2 是一个完全平方。)
(b) 写出 y = x 3 y = x^3 y = x 3 在 0 ≤ x ≤ 1 0 \le x \le 1 0 ≤ x ≤ 1 处的长度积分表达式,并用 n = 4 n = 4 n = 4 个 Simpson 规则进行估算。
查看解答✓ 已检验
(a) f ′ ( x ) = x 2 − 1 2 x , f'(x) = \dfrac{x}{2} - \dfrac{1}{2x}\mathclose{\text{,}} f ′ ( x ) = 2 x − 2 x 1 , 所以
1 + f ′ ( x ) 2 = 1 + x 2 4 − 1 2 + 1 4 x 2 = x 2 4 + 1 2 + 1 4 x 2 = ( x 2 + 1 2 x ) 2 . \begin{aligned} 1 + f'(x)^2 &= 1 + \frac{x^2}{4} - \frac12 + \frac{1}{4x^2} \\ &= \frac{x^2}{4} + \frac12 + \frac{1}{4x^2} \\ &= \Big(\frac{x}{2} + \frac{1}{2x}\Big)^2. \end{aligned} 1 + f ′ ( x ) 2 = 1 + 4 x 2 − 2 1 + 4 x 2 1 = 4 x 2 + 2 1 + 4 x 2 1 = ( 2 x + 2 x 1 ) 2 .
对于 x > 0 , x > 0\mathclose{\text{,}} x > 0 , 括号内为正数,因此平方根为 x 2 + 1 2 x , \dfrac{x}{2} + \dfrac{1}{2x}\mathclose{\text{,}} 2 x + 2 x 1 , 并且
L = ∫ 1 e ( x 2 + 1 2 x ) d x = [ x 2 4 + ln x 2 ] 1 e = e 2 4 + 1 2 − 1 4 = e 2 + 1 4 ≈ 2.097. \begin{aligned} L &= \int_1^e \Big(\frac{x}{2} + \frac{1}{2x}\Big)\,dx \\ &= \Big[\frac{x^2}{4} + \frac{\ln x}{2}\Big]_1^e \\ &= \frac{e^2}{4} + \frac12 - \frac14 \\ &= \frac{e^2 + 1}{4} \approx 2.097. \end{aligned} L = ∫ 1 e ( 2 x + 2 x 1 ) d x = [ 4 x 2 + 2 ln x ] 1 e = 4 e 2 + 2 1 − 4 1 = 4 e 2 + 1 ≈ 2.097.
(b) f ′ ( x ) = 3 x 2 , f'(x) = 3x^2\mathclose{\text{,}} f ′ ( x ) = 3 x 2 , 所以 L = ∫ 0 1 1 + 9 x 4 d x 。 L = \int_0^1 \sqrt{1 + 9x^4}\,dx\mathclose{\text{。}} L = ∫ 0 1 1 + 9 x 4 d x 。 使用辛普森法则,步长为 n = 4 n = 4 n = 4 和 Δ x = 0.25 。 \Delta x = 0.25\mathclose{\text{。}} Δ x = 0.25 。 对于 g ( x ) = 1 + 9 x 4 , g(x) = \sqrt{1 + 9x^4}\mathclose{\text{,}} g ( x ) = 1 + 9 x 4 , 数值分别为 g ( 0 ) = 1 , g(0) = 1\mathclose{\text{,}} g ( 0 ) = 1 , g ( 0.25 ) ≈ 1.01743 , g(0.25) \approx 1.01743\mathclose{\text{,}} g ( 0.25 ) ≈ 1.01743 , g ( 0.5 ) = 1.25 , g(0.5) = 1.25\mathclose{\text{,}} g ( 0.5 ) = 1.25 , g ( 0.75 ) ≈ 1.96154 g(0.75) \approx 1.96154 g ( 0.75 ) ≈ 1.96154 和 g ( 1 ) = 10 ≈ 3.16228 。 g(1) = \sqrt{10} \approx 3.16228\mathclose{\text{。}} g ( 1 ) = 10 ≈ 3.16228 。 辛普森法则给出
S 4 = 0.25 3 [ 1 + 4 ( 1.01743 ) + 2 ( 1.25 ) + 4 ( 1.96154 ) + 3.16228 ] ≈ 1.5482. \begin{aligned} S_4 &= \frac{0.25}{3}\big[1 + 4(1.01743) \\ &\qquad + 2(1.25) + 4(1.96154) \\ &\qquad + 3.16228\big] \approx 1.5482. \end{aligned} S 4 = 3 0.25 [ 1 + 4 ( 1.01743 ) + 2 ( 1.25 ) + 4 ( 1.96154 ) + 3.16228 ] ≈ 1.5482.
更精确的值为 L ≈ 1.5479 。 L \approx 1.5479\mathclose{\text{。}} L ≈ 1.5479 。
练习 12.7 ★★ 抽水
一个圆柱形水箱,轴线垂直,半径为 1 米,高度为 3 米。水箱中水深 2 米。将水全部抽到水箱顶部需要做多少功?(水的密度为 1000 kg/m³;取 g = 9.8 g = 9.8 g = 9.8 m/s²。)
查看解答✓ 已检验
设 y y y 为距离底部的高度。高度在 y y y 到 y + Δ y y + \Delta y y + Δ y 之间的水层,对于 0 ≤ y ≤ 2 , 0 \le y \le 2\mathclose{\text{,}} 0 ≤ y ≤ 2 , 是一个半径为 1 米、厚度为 Δ y \Delta y Δ y 的圆盘:体积为 π Δ y \pi\,\Delta y π Δ y m³,质量为 1000 π Δ y 1000\pi\,\Delta y 1000 π Δ y kg,重量为 9800 π Δ y 9800\pi\,\Delta y 9800 π Δ y N。它被提升 3 − y 3 - y 3 − y 米到水箱顶部。因此
W = ∫ 0 2 9800 π ( 3 − y ) d y = 9800 π [ 3 y − y 2 2 ] 0 2 = 9800 π ( 6 − 2 ) = 39 200 π ≈ 1.23 × 10 5 J . \begin{aligned} W &= \int_0^2 9800\pi(3 - y)\,dy \\ &= 9800\pi\Big[3y - \frac{y^2}{2}\Big]_0^2 \\ &= 9800\pi(6 - 2) = 39\,200\pi \\ &\approx 1.23 \times 10^5 \text{ J}. \end{aligned} W = ∫ 0 2 9800 π ( 3 − y ) d y = 9800 π [ 3 y − 2 y 2 ] 0 2 = 9800 π ( 6 − 2 ) = 39 200 π ≈ 1.23 × 1 0 5 J .
用质心检查:水的质量是 2000 π 2000\pi 2000 π kg,其质心距离底部 1 m。每一层最终都到达顶部,距离底部 3 m,因此平均而言,水上升 2 m,得到 2000 π × 9.8 × 2 = 39 200 π 2000\pi \times 9.8 \times 2 = 39\,200\pi 2000 π × 9.8 × 2 = 39 200 π J。需避免两个错误:距离是到水箱顶部 3 − y , 3 - y\mathclose{\text{,}} 3 − y , 而不是到水面 2 − y ; 2 - y\mathclose{\text{;}} 2 − y ; 积分限是 0 和 2,即水所在区域,而不是 0 和 3。
练习 12.8 ★★ 求形心
求 y = x y = x y = x 与 y = x 2 y = x^2 y = x 2 之间区域的形心,其中 0 ≤ x ≤ 1 , 0 \le x \le 1\mathclose{\text{,}} 0 ≤ x ≤ 1 , 并检验形心确实位于区域内。
查看解答✓ 已检验
当 0 ≤ x ≤ 1 0 \le x \le 1 0 ≤ x ≤ 1 时,x ≥ x 2 , x \ge x^2\mathclose{\text{,}} x ≥ x 2 , 所以 f ( x ) = x 、 f(x) = x\mathclose{\text{、}} f ( x ) = x 、 g ( x ) = x 2 。 g(x) = x^2\mathclose{\text{。}} g ( x ) = x 2 。 面积为 A = ∫ 0 1 ( x − x 2 ) d x = 1 2 − 1 3 = 1 6 。 A = \int_0^1 (x - x^2)\,dx = \tfrac12 - \tfrac13 = \tfrac16\mathclose{\text{。}} A = ∫ 0 1 ( x − x 2 ) d x = 2 1 − 3 1 = 6 1 。 于是
x ˉ = 6 ∫ 0 1 x ( x − x 2 ) d x = 6 ( 1 3 − 1 4 ) = 1 2 , y ˉ = 6 ∫ 0 1 1 2 ( x 2 − x 4 ) d x = 3 ( 1 3 − 1 5 ) = 2 5 . \begin{aligned} \bar x &= 6\int_0^1 x\big(x - x^2\big)\,dx \\ &= 6\Big(\frac13 - \frac14\Big) = \frac12, \\ \bar y &= 6\int_0^1 \frac12\big(x^2 - x^4\big)\,dx \\ &= 3\Big(\frac13 - \frac15\Big) = \frac25. \end{aligned} x ˉ y ˉ = 6 ∫ 0 1 x ( x − x 2 ) d x = 6 ( 3 1 − 4 1 ) = 2 1 , = 6 ∫ 0 1 2 1 ( x 2 − x 4 ) d x = 3 ( 3 1 − 5 1 ) = 5 2 .
形心为 ( 1 2 , 2 5 ) 。 \big(\tfrac12, \tfrac25\big)\mathclose{\text{。}} ( 2 1 , 5 2 ) 。 在 x = 1 2 x = \tfrac12 x = 2 1 处,区域从 y = 1 4 y = \tfrac14 y = 4 1 延伸到 y = 1 2 , y = \tfrac12\mathclose{\text{,}} y = 2 1 , 而 2 5 = 0.4 \tfrac25 = 0.4 5 2 = 0.4 介于两者之间,所以该形心位于区域内部。
练习 12.9 ★★ 一个部件能使用多长时间?
一种电子元件的寿命(单位:小时)服从指数分布,其均值为 2000 小时(假设数据)。
(a) 求 λ , \lambda\mathclose{\text{,}} λ , 以及元件寿命超过 3000 小时的概率。
(b) 一个元件已经工作了 1000 小时。求它再工作至少 3000 小时的概率。
(c) 求中位寿命。
查看解答✓ 已检验
(a) 均值为 1 / λ = 2000 , 1/\lambda = 2000\mathclose{\text{,}} 1/ λ = 2000 , 因此 λ = 1 2000 \lambda = \tfrac{1}{2000} λ = 2000 1 每小时,且 P ( X > 3000 ) = e − 3000 / 2000 = e − 1.5 ≈ 0.223 。 P(X > 3000) = e^{-3000/2000} = e^{-1.5} \approx 0.223\mathclose{\text{。}} P ( X > 3000 ) = e − 3000/2000 = e − 1.5 ≈ 0.223 。
(b) 根据无记忆性(定理 12.5)且 s = 1000 s = 1000 s = 1000 和 t = 3000 , t = 3000\mathclose{\text{,}} t = 3000 ,
P ( X > 4000 ∣ X > 1000 ) = P ( X > 3000 ) ≈ 0.223. \begin{aligned} &P(X > 4000 \mid X > 1000) \\ &\qquad= P(X > 3000) \approx 0.223. \end{aligned} P ( X > 4000 ∣ X > 1000 ) = P ( X > 3000 ) ≈ 0.223.
直接计算:P ( X > 4000 ) P ( X > 1000 ) = e − 2 e − 0.5 = e − 1.5 。 \dfrac{P(X > 4000)}{P(X > 1000)} = \dfrac{e^{-2}}{e^{-0.5}} = e^{-1.5}\mathclose{\text{。}} P ( X > 1000 ) P ( X > 4000 ) = e − 0.5 e − 2 = e − 1.5 。 元件过去的 1000 小时不影响结果。
(c) 1 − e − m / 2000 = 1 2 1 - e^{-m/2000} = \tfrac12 1 − e − m /2000 = 2 1 给出 e − m / 2000 = 1 2 , e^{-m/2000} = \tfrac12\mathclose{\text{,}} e − m /2000 = 2 1 , 因此 m = 2000 ln 2 ≈ 1386 m = 2000\ln 2 \approx 1386 m = 2000 ln 2 ≈ 1386 小时,远低于均值。
练习 12.10 ★★★ 通过质心求体积
(a) y = g ( x ) y = g(x) y = g ( x ) 与y = f ( x ) 、 y = f(x)\mathclose{\text{、}} y = f ( x ) 、 a ≤ x ≤ b a \le x \le b a ≤ x ≤ b 之间由0 ≤ g ( x ) ≤ f ( x ) 0 \le g(x) \le f(x) 0 ≤ g ( x ) ≤ f ( x ) 围成的区域绕x x x 轴旋转,证明该立体的体积为V = 2 π y ˉ A , V = 2\pi\bar yA\mathclose{\text{,}} V = 2 π y ˉ A , 其中A A A 为区域面积,y ˉ \bar y y ˉ 为其形心高度,即面积乘以形心移动的距离。
(b) 检查 (a) 中的区域,对应练习 12.8 的区域。
(c) 一个 torus (环形面包圈),是当一个半径为 a a a 的圆盘绕其平面内一条距离其圆心 R > a R > a R > a 的直线旋转时所形成的形状。用 (a) 的方法求其体积,并用 washer 法验证结果。
查看解答✓ 已检验
(a) 用 washer 法,外半径为 f ( x ) , f(x)\mathclose{\text{,}} f ( x ) , 内半径为 g ( x ) , g(x)\mathclose{\text{,}} g ( x ) , 绕 V = π ∫ a b ( f ( x ) 2 − g ( x ) 2 ) d x V = \pi\int_a^b \big(f(x)^2 - g(x)^2\big)\,dx V = π ∫ a b ( f ( x ) 2 − g ( x ) 2 ) d x 轴。根据质心的定义(定义 12.6),
y ˉ A = ∫ a b 1 2 ( f ( x ) 2 − g ( x ) 2 ) d x = V 2 π , \begin{aligned} \bar yA &= \int_a^b \frac12\big(f(x)^2 - g(x)^2\big)\,dx \\ &= \frac{V}{2\pi}, \end{aligned} y ˉ A = ∫ a b 2 1 ( f ( x ) 2 − g ( x ) 2 ) d x = 2 π V ,
所以 V = 2 π y ˉ A 。 V = 2\pi\bar yA\mathclose{\text{。}} V = 2 π y ˉ A 。 质心绕半径为 y ˉ \bar y y ˉ 的圆周运动,路径长度为 2 π y ˉ 。 2\pi\bar y\mathclose{\text{。}} 2 π y ˉ 。
(b) A = 1 6 A = \tfrac16 A = 6 1 和 y ˉ = 2 5 , \bar y = \tfrac25\mathclose{\text{,}} y ˉ = 5 2 , 因此 2 π y ˉ A = 2 π ⋅ 2 5 ⋅ 1 6 = 2 π 15 。 2\pi\bar yA = 2\pi \cdot \tfrac25 \cdot \tfrac16 = \tfrac{2\pi}{15}\mathclose{\text{。}} 2 π y ˉ A = 2 π ⋅ 5 2 ⋅ 6 1 = 15 2 π 。 用 washer 法,得到 π ∫ 0 1 ( x 2 − x 4 ) d x = π ( 1 3 − 1 5 ) = 2 π 15 。 \pi\int_0^1 \big(x^2 - x^4\big)\,dx = \pi\big(\tfrac13 - \tfrac15\big) = \tfrac{2\pi}{15}\mathclose{\text{。}} π ∫ 0 1 ( x 2 − x 4 ) d x = π ( 3 1 − 5 1 ) = 15 2 π 。
(c) 将轴沿 x x x -轴,圆盘中心位于 ( 0 , R ) 。 (0, R)\mathclose{\text{。}} ( 0 , R ) 。 圆盘关于其中心对称,因此其质心为 y ˉ = R , \bar y = R\mathclose{\text{,}} y ˉ = R , 即 A = π a 2 。 A = \pi a^2\mathclose{\text{。}} A = π a 2 。 所以
V = 2 π R ⋅ π a 2 = 2 π 2 R a 2 . V = 2\pi R \cdot \pi a^2 = 2\pi^2Ra^2. V = 2 π R ⋅ π a 2 = 2 π 2 R a 2 .
用 washer 法:圆盘是 x 2 + ( y − R ) 2 ≤ a 2 , x^2 + (y - R)^2 \le a^2\mathclose{\text{,}} x 2 + ( y − R ) 2 ≤ a 2 , 所以在 x x x 处从 y = R − a 2 − x 2 y = R - \sqrt{a^2 - x^2} y = R − a 2 − x 2 到 y = R + a 2 − x 2 , y = R + \sqrt{a^2 - x^2}\mathclose{\text{,}} y = R + a 2 − x 2 , 且两者至少为 R − a > 0 。 R - a > 0\mathclose{\text{。}} R − a > 0 。 平方半径之差为 ( R + a 2 − x 2 ) 2 − ( R − a 2 − x 2 ) 2 = 4 R a 2 − x 2 , \big(R + \sqrt{a^2 - x^2}\big)^2 - \big(R - \sqrt{a^2 - x^2}\big)^2 = 4R\sqrt{a^2 - x^2}\mathclose{\text{,}} ( R + a 2 − x 2 ) 2 − ( R − a 2 − x 2 ) 2 = 4 R a 2 − x 2 , 所以
V = π ∫ − a a 4 R a 2 − x 2 d x = 4 π R ⋅ π a 2 2 = 2 π 2 R a 2 , \begin{aligned} V &= \pi\int_{-a}^{a} 4R\sqrt{a^2 - x^2}\,dx \\ &= 4\pi R \cdot \frac{\pi a^2}{2} = 2\pi^2Ra^2, \end{aligned} V = π ∫ − a a 4 R a 2 − x 2 d x = 4 π R ⋅ 2 π a 2 = 2 π 2 R a 2 ,
因为 ∫ − a a a 2 − x 2 d x \int_{-a}^{a} \sqrt{a^2 - x^2}\,dx ∫ − a a a 2 − x 2 d x 是半径为 a a a 的半圆的面积。
练习 12.11 ★★★ 壳法与 washer 法一致
设 f f f 在 [ 0 , b ] [0, b] [ 0 , b ] 上严格递减,且 f ′ f' f ′ 连续, f ( 0 ) = h f(0) = h f ( 0 ) = h 和 f ( b ) = 0 , f(b) = 0\mathclose{\text{,}} f ( b ) = 0 , 令 g g g 是其反函数(模块 1)。区域在 y = f ( x ) , y = f(x)\mathclose{\text{,}} y = f ( x ) , 0 ≤ x ≤ b 0 \le x \le b 0 ≤ x ≤ b 下,绕 y y y -轴旋转。
(a) 解释为何垂直于轴的切片给出 V = π ∫ 0 h g ( y ) 2 d y 。 V = \pi\int_0^h g(y)^2\,dy\mathclose{\text{。}} V = π ∫ 0 h g ( y ) 2 d y 。
(b) 代入 y = f ( x ) , y = f(x)\mathclose{\text{,}} y = f ( x ) , 然后进行分部积分,以证明这等于 2 π ∫ 0 b x f ( x ) d x , 2\pi\int_0^b x\,f(x)\,dx\mathclose{\text{,}} 2 π ∫ 0 b x f ( x ) d x , 即壳公式。
(c) 用 f ( x ) = 1 − x 2 f(x) = 1 - x^2 f ( x ) = 1 − x 2 在 [ 0 , 1 ] [0, 1] [ 0 , 1 ] 上验证两个公式。
查看解答✓ 已检验
(a) 截面在高度 y , y\mathclose{\text{,}} y , 0 ≤ y ≤ h 0 \le y \le h 0 ≤ y ≤ h 处。由于 f f f 是严格递减的,所以 f ( x ) ≥ y f(x) \ge y f ( x ) ≥ y 恰好当 x ≤ g ( y ) , x \le g(y)\mathclose{\text{,}} x ≤ g ( y ) , 因此在高度 y y y 处的区域是线段 0 ≤ x ≤ g ( y ) 。 0 \le x \le g(y)\mathclose{\text{。}} 0 ≤ x ≤ g ( y ) 。 绕 y y y 轴旋转,扫出一个半径为 g ( y ) g(y) g ( y ) 的圆盘,面积为 π g ( y ) 2 , \pi g(y)^2\mathclose{\text{,}} π g ( y ) 2 , 所以 V = π ∫ 0 h g ( y ) 2 d y 。 V = \pi\int_0^h g(y)^2\,dy\mathclose{\text{。}} V = π ∫ 0 h g ( y ) 2 d y 。
(b) 代入 y = f ( x ) , y = f(x)\mathclose{\text{,}} y = f ( x ) , d y = f ′ ( x ) d x dy = f'(x)\,dx d y = f ′ ( x ) d x (模块 10)。当 x = 0 x = 0 x = 0 时, y = h ; y = h\mathclose{\text{;}} y = h ; 当 x = b x = b x = b 时, y = 0 ; y = 0\mathclose{\text{;}} y = 0 ; 且 g ( y ) = g ( f ( x ) ) = x 。 g(y) = g\big(f(x)\big) = x\mathclose{\text{。}} g ( y ) = g ( f ( x ) ) = x 。 因此
π ∫ 0 h g ( y ) 2 d y = − π ∫ h 0 g ( y ) 2 d y = − π ∫ 0 b x 2 f ′ ( x ) d x . \begin{aligned} &\pi\int_0^h g(y)^2\,dy \\ &\quad= -\pi\int_h^0 g(y)^2\,dy \\ &\quad= -\pi\int_0^b x^2f'(x)\,dx. \end{aligned} π ∫ 0 h g ( y ) 2 d y = − π ∫ h 0 g ( y ) 2 d y = − π ∫ 0 b x 2 f ′ ( x ) d x .
分部积分(模块 11)令 u = x 2 u = x^2 u = x 2 和 d v = f ′ ( x ) d x , dv = f'(x)\,dx\mathclose{\text{,}} d v = f ′ ( x ) d x , 所以 d u = 2 x d x du = 2x\,dx d u = 2 x d x 和 v = f ( x ) : v = f(x)\mathclose{\text{:}} v = f ( x ) :
∫ 0 b x 2 f ′ ( x ) d x = [ x 2 f ( x ) ] 0 b − ∫ 0 b 2 x f ( x ) d x = − 2 ∫ 0 b x f ( x ) d x , \begin{aligned} &\int_0^b x^2f'(x)\,dx \\ &\quad= \big[x^2f(x)\big]_0^b - \int_0^b 2x\,f(x)\,dx \\ &\quad= -2\int_0^b x\,f(x)\,dx, \end{aligned} ∫ 0 b x 2 f ′ ( x ) d x = [ x 2 f ( x ) ] 0 b − ∫ 0 b 2 x f ( x ) d x = − 2 ∫ 0 b x f ( x ) d x ,
因为 b 2 f ( b ) = 0 b^2f(b) = 0 b 2 f ( b ) = 0 和 0 2 f ( 0 ) = 0 。 0^2f(0) = 0\mathclose{\text{。}} 0 2 f ( 0 ) = 0 。 因此 π ∫ 0 h g ( y ) 2 d y = 2 π ∫ 0 b x f ( x ) d x 。 \pi\int_0^h g(y)^2\,dy = 2\pi\int_0^b x\,f(x)\,dx\mathclose{\text{。}} π ∫ 0 h g ( y ) 2 d y = 2 π ∫ 0 b x f ( x ) d x 。
(c) 此处 h = 1 h = 1 h = 1 和 g ( y ) = 1 − y 。 g(y) = \sqrt{1 - y}\mathclose{\text{。}} g ( y ) = 1 − y 。 切片法: π ∫ 0 1 ( 1 − y ) d y = π 2 。 \pi\int_0^1 (1 - y)\,dy = \tfrac{\pi}{2}\mathclose{\text{。}} π ∫ 0 1 ( 1 − y ) d y = 2 π 。 壳层法: 2 π ∫ 0 1 x ( 1 − x 2 ) d x = 2 π ( 1 2 − 1 4 ) = π 2 。 2\pi\int_0^1 x\big(1 - x^2\big)\,dx = 2\pi\big(\tfrac12 - \tfrac14\big) = \tfrac{\pi}{2}\mathclose{\text{。}} 2 π ∫ 0 1 x ( 1 − x 2 ) d x = 2 π ( 2 1 − 4 1 ) = 2 π 。
练习 12.12 ★★★ 正态分布的展开
设 φ ( z ) = 1 2 π e − z 2 / 2 。 \varphi(z) = \dfrac{1}{\sqrt{2\pi}}e^{-z^2/2}\mathclose{\text{。}} φ ( z ) = 2 π 1 e − z 2 /2 。
(a) 证明 φ ′ ′ ( z ) = ( z 2 − 1 ) φ ( z ) , \varphi''(z) = (z^2 - 1)\varphi(z)\mathclose{\text{,}} φ ′′ ( z ) = ( z 2 − 1 ) φ ( z ) , 并推导出 φ \varphi φ 的图像在 z = ± 1 z = \pm1 z = ± 1 处发生凹凸性变化(模块 8)。正态密度函数均值为 μ 、 \mu\mathclose{\text{、}} μ 、 标准差为 σ \sigma σ 的拐点在哪里?
(b) 用 u = z u = z u = z 和 d v = z φ ( z ) d z dv = z\varphi(z)\,dz d v = z φ ( z ) d z 分部积分,以证明 ∫ − ∞ ∞ z 2 φ ( z ) d z = 1 。 \int_{-\infty}^{\infty} z^2\varphi(z)\,dz = 1\mathclose{\text{。}} ∫ − ∞ ∞ z 2 φ ( z ) d z = 1 。 你可以使用高斯积分。
(c) 推导出,对于均值为 μ 、 \mu\mathclose{\text{、}} μ 、 标准差为 σ \sigma σ 的正态密度 f , f\mathclose{\text{,}} f , 有 ∫ − ∞ ∞ ( x − μ ) 2 f ( x ) d x = σ 2 。 \int_{-\infty}^{\infty} (x - \mu)^2f(x)\,dx = \sigma^2\mathclose{\text{。}} ∫ − ∞ ∞ ( x − μ ) 2 f ( x ) d x = σ 2 。 (这个均值与均值的平方距离称为 方差 。)
查看解答✓ 已检验
(a) 根据链式法则, φ ′ ( z ) = − z φ ( z ) 。 \varphi'(z) = -z\varphi(z)\mathclose{\text{。}} φ ′ ( z ) = − z φ ( z ) 。 根据乘积法则,
φ ′ ′ ( z ) = − φ ( z ) − z φ ′ ( z ) = − φ ( z ) + z 2 φ ( z ) = ( z 2 − 1 ) φ ( z ) . \begin{aligned} \varphi''(z) &= -\varphi(z) - z\varphi'(z) \\ &= -\varphi(z) + z^2\varphi(z) \\ &= \big(z^2 - 1\big)\varphi(z). \end{aligned} φ ′′ ( z ) = − φ ( z ) − z φ ′ ( z ) = − φ ( z ) + z 2 φ ( z ) = ( z 2 − 1 ) φ ( z ) .
由于 φ ( z ) > 0 , \varphi(z) > 0\mathclose{\text{,}} φ ( z ) > 0 , φ ′ ′ \varphi'' φ ′′ 的符号由 z 2 − 1 z^2 - 1 z 2 − 1 决定:在 ∣ z ∣ < 1 \abs{z} < 1 ∣ z ∣ < 1 时为负(向下凹),在 ∣ z ∣ > 1 \abs{z} > 1 ∣ z ∣ > 1 时为正(向上凹)。因此在 z = ± 1 z = \pm1 z = ± 1 处凹凸性发生变化,即拐点。正态密度为 f ( x ) = 1 σ φ ( x − μ σ ) , f(x) = \tfrac1\sigma\varphi\big(\tfrac{x - \mu}{\sigma}\big)\mathclose{\text{,}} f ( x ) = σ 1 φ ( σ x − μ ) , 因此根据链式法则 f ′ ′ ( x ) = 1 σ 3 φ ′ ′ ( x − μ σ ) , f''(x) = \tfrac{1}{\sigma^3}\varphi''\big(\tfrac{x - \mu}{\sigma}\big)\mathclose{\text{,}} f ′′ ( x ) = σ 3 1 φ ′′ ( σ x − μ ) , 其符号在 x − μ σ = ± 1 \tfrac{x - \mu}{\sigma} = \pm1 σ x − μ = ± 1 处发生变化:即在 x = μ ± σ x = \mu \pm \sigma x = μ ± σ 处。
(b) 用 u = z u = z u = z 和 d v = z φ ( z ) d z , dv = z\varphi(z)\,dz\mathclose{\text{,}} d v = z φ ( z ) d z , 以及 d u = d z du = dz d u = d z 和 v = − φ ( z ) v = -\varphi(z) v = − φ ( z ) (由 (a) 中的 φ ′ = − z φ )。 \varphi' = -z\varphi\mathclose{\text{)。}} φ ′ = − z φ )。 对于 t > 0 , t > 0\mathclose{\text{,}} t > 0 ,
∫ 0 t z 2 φ ( z ) d z = [ − z φ ( z ) ] 0 t + ∫ 0 t φ ( z ) d z = − t φ ( t ) + ∫ 0 t φ ( z ) d z . \begin{aligned} &\int_0^t z^2\varphi(z)\,dz \\ &\quad= \big[-z\varphi(z)\big]_0^t + \int_0^t \varphi(z)\,dz \\ &\quad= -t\varphi(t) + \int_0^t \varphi(z)\,dz. \end{aligned} ∫ 0 t z 2 φ ( z ) d z = [ − z φ ( z ) ] 0 t + ∫ 0 t φ ( z ) d z = − tφ ( t ) + ∫ 0 t φ ( z ) d z .
当 t → ∞ t \to \infty t → ∞ 时,t φ ( t ) → 0 。 t\varphi(t) \to 0\mathclose{\text{。}} tφ ( t ) → 0 。 事实上,对于 t ≥ 2 , t \ge 2\mathclose{\text{,}} t ≥ 2 , 有 t 2 / 2 ≥ t , t^2/2 \ge t\mathclose{\text{,}} t 2 /2 ≥ t , 所以 0 < t e − t 2 / 2 ≤ t e − t , 0 < te^{-t^2/2} \le te^{-t}\mathclose{\text{,}} 0 < t e − t 2 /2 ≤ t e − t , 后者趋近于零(定理 7.7)。又因为 φ \varphi φ 是偶函数,∫ 0 t φ → 1 2 \int_0^t \varphi \to \tfrac12 ∫ 0 t φ → 2 1 等于总面积 1 的一半。因此 ∫ 0 ∞ z 2 φ ( z ) d z = 1 2 ; \int_0^\infty z^2\varphi(z)\,dz = \tfrac12\mathclose{\text{;}} ∫ 0 ∞ z 2 φ ( z ) d z = 2 1 ; 再由 z 2 φ ( z ) z^2\varphi(z) z 2 φ ( z ) 是偶函数,得到 ∫ − ∞ ∞ z 2 φ ( z ) d z = 1 。 \int_{-\infty}^{\infty} z^2\varphi(z)\,dz = 1\mathclose{\text{。}} ∫ − ∞ ∞ z 2 φ ( z ) d z = 1 。
(c) 代入 z = ( x − μ ) / σ , z = (x - \mu)/\sigma\mathclose{\text{,}} z = ( x − μ ) / σ , 因此 x − μ = σ z x - \mu = \sigma z x − μ = σ z 和 d x = σ d z : dx = \sigma\,dz\mathclose{\text{:}} d x = σ d z :
∫ − ∞ ∞ ( x − μ ) 2 1 σ φ ( x − μ σ ) d x = ∫ − ∞ ∞ σ 2 z 2 φ ( z ) d z = σ 2 . \begin{aligned} &\int_{-\infty}^{\infty} (x - \mu)^2\,\frac1\sigma\varphi\Big(\frac{x - \mu}{\sigma}\Big)\,dx \\ &\qquad= \int_{-\infty}^{\infty} \sigma^2z^2\varphi(z)\,dz = \sigma^2. \end{aligned} ∫ − ∞ ∞ ( x − μ ) 2 σ 1 φ ( σ x − μ ) d x = ∫ − ∞ ∞ σ 2 z 2 φ ( z ) d z = σ 2 .
1 区域在
y = x y = x y = x 和
y = x 2 y = x^2 y = x 2 之间,对于
0 ≤ x ≤ 1 0 \le x \le 1 0 ≤ x ≤ 1 的面积是
1 2 \tfrac12 2 1 1 6 \tfrac16 6 1 − 1 6 -\tfrac16 − 6 1 1 3 \tfrac13 3 1 上减下:
∫ 0 1 ( x − x 2 ) d x = 1 2 − 1 3 = 1 6 。 \int_0^1 (x - x^2)\,dx = \tfrac12 - \tfrac13 = \tfrac16\mathclose{\text{。}} ∫ 0 1 ( x − x 2 ) d x = 2 1 − 3 1 = 6 1 。 1 2 \tfrac12 2 1 是直线下方的面积,
1 3 \tfrac13 3 1 是抛物线下方的面积;
− 1 6 -\tfrac16 − 6 1 是反向相减,即下减上,而面积永远不会为负。
2 y = x 2 y = x^2 y = x 2 和
y = 2 y = 2 y = 2 之间的区域,对于
0 ≤ x ≤ 2 , 0 \le x \le \sqrt2\mathclose{\text{,}} 0 ≤ x ≤ 2 , 绕
x x x 轴旋转。其体积是
π ∫ 0 2 ( 2 − x 2 ) 2 d x \pi\displaystyle\int_0^{\sqrt2} \big(2 - x^2\big)^2\,dx π ∫ 0 2 ( 2 − x 2 ) 2 d x π ∫ 0 2 ( 2 − x 2 ) d x \pi\displaystyle\int_0^{\sqrt2} \big(2 - x^2\big)\,dx π ∫ 0 2 ( 2 − x 2 ) d x π ∫ 0 2 ( 4 − x 4 ) d x \pi\displaystyle\int_0^{\sqrt2} \big(4 - x^4\big)\,dx π ∫ 0 2 ( 4 − x 4 ) d x 2 π ∫ 0 2 x ( 2 − x 2 ) d x 2\pi\displaystyle\int_0^{\sqrt2} x\big(2 - x^2\big)\,dx 2 π ∫ 0 2 x ( 2 − x 2 ) d x 每一片都是一个 washer,外半径为 2,内半径为
x 2 , x^2\mathclose{\text{,}} x 2 , 面积为
π ( 2 2 − ( x 2 ) 2 ) = π ( 4 − x 4 ) 。 \pi\big(2^2 - (x^2)^2\big) = \pi\big(4 - x^4\big)\mathclose{\text{。}} π ( 2 2 − ( x 2 ) 2 ) = π ( 4 − x 4 ) 。 π ( 2 − x 2 ) 2 \pi(2 - x^2)^2 π ( 2 − x 2 ) 2 是
π ( R − r ) 2 , \pi(R - r)^2\mathclose{\text{,}} π ( R − r ) 2 , 错误的面积;
π ( 2 − x 2 ) \pi(2 - x^2) π ( 2 − x 2 ) 忘记了平方半径;最后一个积分是绕
y y y 轴旋转的壳公式,对应不同的立体。
3 在
y = x y = x y = x 和
y = x 2 y = x^2 y = x 2 之间的区域
0 ≤ x ≤ 1 0 \le x \le 1 0 ≤ x ≤ 1 绕直线
x = 2 x = 2 x = 2 旋转。用壳公式,其体积为
2 π ∫ 0 1 ( 2 − x ) ( x − x 2 ) d x 2\pi\displaystyle\int_0^1 (2 - x)\big(x - x^2\big)\,dx 2 π ∫ 0 1 ( 2 − x ) ( x − x 2 ) d x 2 π ∫ 0 1 x ( x − x 2 ) d x 2\pi\displaystyle\int_0^1 x\big(x - x^2\big)\,dx 2 π ∫ 0 1 x ( x − x 2 ) d x 2 π ∫ 0 1 ( x − 2 ) ( x − x 2 ) d x 2\pi\displaystyle\int_0^1 (x - 2)\big(x - x^2\big)\,dx 2 π ∫ 0 1 ( x − 2 ) ( x − x 2 ) d x π ∫ 0 1 ( x 2 − x 4 ) d x \pi\displaystyle\int_0^1 \big(x^2 - x^4\big)\,dx π ∫ 0 1 ( x 2 − x 4 ) d x 在
x x x 处的条带距离轴
x = 2 x = 2 x = 2 为
2 − x , 2 - x\mathclose{\text{,}} 2 − x , 高度为
x − x 2 。 x - x^2\mathclose{\text{。}} x − x 2 。 半径
x x x 属于绕
y y y 轴旋转;
x − 2 x - 2 x − 2 在
[ 0 , 1 ] [0, 1] [ 0 , 1 ] 上为负,因此给出负的“体积”;最后一个积分是绕
x x x 轴旋转的 washer 公式。
4 哪个积分是曲线
y = x 3 y = x^3 y = x 3 从
x = 0 x = 0 x = 0 到
x = 1 x = 1 x = 1 的长度?
∫ 0 1 1 + x 6 d x \displaystyle\int_0^1 \sqrt{1 + x^6}\,dx ∫ 0 1 1 + x 6 d x ∫ 0 1 ( 1 + 3 x 2 ) d x \displaystyle\int_0^1 \big(1 + 3x^2\big)\,dx ∫ 0 1 ( 1 + 3 x 2 ) d x ∫ 0 1 1 + 3 x 2 d x \displaystyle\int_0^1 \sqrt{1 + 3x^2}\,dx ∫ 0 1 1 + 3 x 2 d x ∫ 0 1 1 + 9 x 4 d x \displaystyle\int_0^1 \sqrt{1 + 9x^4}\,dx ∫ 0 1 1 + 9 x 4 d x 公式使用了导数
f ′ ( x ) = 3 x 2 f'(x) = 3x^2 f ′ ( x ) = 3 x 2 的平方:
1 + ( 3 x 2 ) 2 = 1 + 9 x 4 。 1 + (3x^2)^2 = 1 + 9x^4\mathclose{\text{。}} 1 + ( 3 x 2 ) 2 = 1 + 9 x 4 。 1 + x 6 \sqrt{1 + x^6} 1 + x 6 用
f f f 的平方代替了
f ′ ; f'\mathclose{\text{;}} f ′ ; 1 + 3 x 2 1 + 3x^2 1 + 3 x 2 将阶梯的步长相加,这些步长并不沿曲线;而
1 + 3 x 2 \sqrt{1 + 3x^2} 1 + 3 x 2 忘记了平方
f ′ 。 f'\mathclose{\text{。}} f ′ 。
5 一条 10 米长的链条,每米质量为 2 千克,悬挂在绞盘上。将它全部卷起需要做多少功?(取
g = 9.8 g = 9.8 g = 9.8 m/s²。)
1960 J 980 J 100 J 196 J 深度为
y y y 的部分重
2 × 9.8 Δ y 2 \times 9.8\,\Delta y 2 × 9.8 Δ y 牛顿,上升
y y y 米:
W = ∫ 0 10 19.6 y d y = 19.6 × 50 = 980 W = \int_0^{10} 19.6\,y\,dy = 19.6 \times 50 = 980 W = ∫ 0 10 19.6 y d y = 19.6 × 50 = 980 焦耳。1960 焦耳将整个重量 196 牛顿提升 10 米,但只有底部末端上升那么远;100 焦耳忽略了
g g g (单位是千克·米,不是焦耳);196 牛顿是链条的重量,是一个力,不是功。
∫ 1 ∞ d x x 0.9 \displaystyle\int_1^\infty \frac{dx}{x^{0.9}} ∫ 1 ∞ x 0.9 d x ∫ − 1 1 d x x 2 \displaystyle\int_{-1}^{1} \frac{dx}{x^2} ∫ − 1 1 x 2 d x ∫ 1 ∞ d x x 1.1 \displaystyle\int_1^\infty \frac{dx}{x^{1.1}} ∫ 1 ∞ x 1.1 d x ∫ 0 1 d x x \displaystyle\int_0^1 \frac{dx}{x} ∫ 0 1 x d x 在无穷远处,一个
p p p -积分 收敛 当且仅当
p > 1 , p > 1\mathclose{\text{,}} p > 1 , 因此
p = 1.1 p = 1.1 p = 1.1 收敛(到 10)且
p = 0.9 p = 0.9 p = 0.9 发散。
∫ − 1 1 d x / x 2 \int_{-1}^{1} dx/x^2 ∫ − 1 1 d x / x 2 在 0 处是瑕积分,其中其右半部分发散;从原函数得到的值
− 2 -2 − 2 是错误的。
∫ 0 1 d x / x \int_0^1 dx/x ∫ 0 1 d x / x 发散:在 0 附近,积分需要
p < 1 。 p < 1\mathclose{\text{。}} p < 1 。
7 帮助台的来电是随机到达的,下一个来电的等待时间(以分钟为单位)服从指数分布,其
λ = 0.1 \lambda = 0.1 λ = 0.1 (均值为 10 分钟)。你已经等待了 5 分钟。你再等待超过 10 分钟的概率是
e − 1 ≈ 0.368 e^{-1} \approx 0.368 e − 1 ≈ 0.368 e − 1.5 ≈ 0.223 e^{-1.5} \approx 0.223 e − 1.5 ≈ 0.223 e − 0.5 ≈ 0.607 e^{-0.5} \approx 0.607 e − 0.5 ≈ 0.607 0.5 0.5 0.5 指数分布没有记忆性:
P ( X > 15 ∣ X > 5 ) = P ( X > 10 ) = e − 0.1 × 10 = e − 1 。 P(X > 15 \mid X > 5) = P(X > 10) = e^{-0.1 \times 10} = e^{-1}\mathclose{\text{。}} P ( X > 15 ∣ X > 5 ) = P ( X > 10 ) = e − 0.1 × 10 = e − 1 。 e − 1.5 e^{-1.5} e − 1.5 是
P ( X > 15 ) , P(X > 15)\mathclose{\text{,}} P ( X > 15 ) , 即你在开始等待前的概率;
e − 0.5 e^{-0.5} e − 0.5 是
P ( X > 5 ) ; P(X > 5)\mathclose{\text{;}} P ( X > 5 ) ; 而 0.5 混淆了均值与中位数。
8 一个量
X X X 服从均值为 50、标准差为 10 的正态分布。
P ( X ≤ 70 ) P(X \le 70) P ( X ≤ 70 ) 约为
0.954 0.683 1.000 0.977 标准化:
z = ( 70 − 50 ) / 10 = 2 . z = (70 - 50)/10 = 2\mathclose{\text{.}} z = ( 70 − 50 ) /10 = 2 . P ( Z ≤ 2 ) = 1 2 + 1 2 P ( − 2 ≤ Z ≤ 2 ) ≈ 0.5 + 0.477 = 0.977 . P(Z \le 2) = \tfrac12 + \tfrac12P(-2 \le Z \le 2) \approx 0.5 + 0.477 = 0.977\mathclose{\text{.}} P ( Z ≤ 2 ) = 2 1 + 2 1 P ( − 2 ≤ Z ≤ 2 ) ≈ 0.5 + 0.477 = 0.977 . 0.954 是
P ( − 2 ≤ Z ≤ 2 ) , P(-2 \le Z \le 2)\mathclose{\text{,}} P ( − 2 ≤ Z ≤ 2 ) , 这省略了下尾部分;0.683 是一个标准差内的概率;而 1.000 则是忘记标准化,将 70 当作
Z Z Z 的值。
重新作答