Unit A7: Curve Sketching and Optimization单元 A7:曲线描绘与最优化
From critical points and the Mean Value Theorem to the sign of the first and second derivatives, this unit turns differentiation into a toolkit for reading and optimizing the shape of a graph.从临界点(critical point)、中值定理(Mean Value Theorem),到一阶、二阶导数的正负号,本单元把求导变成一套读懂并优化图像形状的工具。
derivative)理解函数的行为,而不只是算斜率。请按顺序学习七节:每一节先建立候选名单(临界点 critical point),再为正负号分析提供依据(中值定理 Mean Value Theorem),然后应用到单调性、凹凸性、完整的曲线描绘,以及纯粹与应用两类最优化(optimization)。每个例题都先自己动手再看解答,最后用单元测验检验自己。
Extreme Values and Critical Points极值与临界点
critical point)或定义域端点处取得全局最大值或最小值。临界点是一阶导数(derivative)为零或不存在之处,因此它们构成一份简短的候选名单,统领所有最优化与曲线描绘的论证。Definition. Let $f$ be defined on a set $D$ and let $c \in D$. We say $f$ has an absolute (global) maximum at $c$ if $f(c) \ge f(x)$ for all $x \in D$, and an absolute minimum at $c$ if $f(c) \le f(x)$ for all $x \in D$. We say $f$ has a local (relative) maximum at $c$ if $f(c) \ge f(x)$ for all $x$ in some open interval containing $c$, with the analogous definition for a local minimum.
定义。设 $f$ 定义在集合 $D$ 上,$c \in D$。若对一切 $x \in D$ 都有 $f(c) \ge f(x)$,则称 $f$ 在 $c$ 处取得绝对(全局)最大值(absolute maximum);若对一切 $x \in D$ 都有 $f(c) \le f(x)$,则取得绝对最小值。若仅对某个含 $c$ 的开区间内的所有 $x$ 有 $f(c) \ge f(x)$,则称 $f$ 在 $c$ 处取得局部(相对)最大值(local maximum),局部最小值类似定义。
Definition. A number $c$ in the domain of $f$ is a critical point of $f$ if either $f'(c) = 0$ or $f'(c)$ does not exist.
定义。若 $f$ 定义域中的数 $c$ 满足 $f'(c) = 0$ 或 $f'(c)$ 不存在,则称 $c$ 为 $f$ 的临界点(critical point)。
Theorem (Extreme Value Theorem). If $f$ is continuous on a closed bounded interval $[a,b]$, then $f$ attains an absolute maximum value and an absolute minimum value on $[a,b]$. Continuity and the closed interval are both essential: $f(x) = 1/x$ on $(0,1]$ is continuous but unbounded, and so attains no maximum.
定理(极值定理,Extreme Value Theorem / EVT)。若 $f$ 在有界闭区间 $[a,b]$ 上连续(continuous),则 $f$ 在 $[a,b]$ 上必取得绝对最大值与绝对最小值。连续性与闭区间二者缺一不可:$f(x) = 1/x$ 在 $(0,1]$ 上连续却无界,因而取不到最大值。
Remark. The converse of Fermat's Theorem is false. For $f(x) = x^3$ we have $f'(0) = 0$, yet $0$ is neither a local maximum nor a local minimum. A critical point is a candidate, not a guarantee.
注。费马定理的逆命题不成立。对 $f(x) = x^3$ 有 $f'(0) = 0$,但 $0$ 既非局部最大值也非局部最小值。临界点只是候选,并不保证是极值。
Worked Example 1.1: locating critical points例题 1.1:求临界点
Find the critical points of $f(x) = x^{3} - 3x^{2} - 9x + 5$.
Differentiate and factor.
$$ f'(x) = 3x^{2} - 6x - 9 = 3(x^{2} - 2x - 3) = 3(x-3)(x+1). $$Since $f'$ is a polynomial it exists everywhere, so the only critical points come from $f'(x) = 0$, giving $x = 3$ and $x = -1$. These two numbers are the complete candidate list for the local extrema of $f$.
求 $f(x) = x^{3} - 3x^{2} - 9x + 5$ 的临界点。
求导并因式分解。
$$ f'(x) = 3x^{2} - 6x - 9 = 3(x^{2} - 2x - 3) = 3(x-3)(x+1). $$由于 $f'$ 是多项式,处处存在,所以临界点只能来自 $f'(x) = 0$,即 $x = 3$ 与 $x = -1$。这两个数就是 $f$ 局部极值的完整候选名单。
Worked Example 1.2: a critical point where the derivative is undefined例题 1.2:导数不存在处的临界点
Find the critical points of $f(x) = x^{2/3}$.
$$ f'(x) = \tfrac{2}{3} x^{-1/3} = \frac{2}{3\,x^{1/3}}. $$This is never zero, but it fails to exist at $x = 0$, where $f$ is still defined. Hence $x = 0$ is a critical point. Inspecting $f$ shows it has an absolute minimum there: this candidate would be invisible to anyone who only solved $f'(x) = 0$.
求 $f(x) = x^{2/3}$ 的临界点。
$$ f'(x) = \tfrac{2}{3} x^{-1/3} = \frac{2}{3\,x^{1/3}}. $$它永不为零,但在 $x = 0$ 处不存在,而 $f$ 在该点仍有定义。因此 $x = 0$ 是临界点。考察 $f$ 可知它在此取得绝对最小值:只解 $f'(x) = 0$ 的人会完全漏掉这个候选。
Worked Example 1.3: a transcendental candidate list例题 1.3:超越函数的候选名单
Find the critical points of $f(x) = x - 2\sin x$ on the interval $[0, 2\pi]$.
The function is differentiable everywhere, so every critical point comes from $f'(x) = 0$.
$$ f'(x) = 1 - 2\cos x = 0 \implies \cos x = \tfrac{1}{2}. $$On $[0,2\pi]$ the equation $\cos x = \tfrac12$ has the two solutions $x = \tfrac{\pi}{3}$ and $x = \tfrac{5\pi}{3}$. These are the only interior critical points. When the problem is later treated as an extremum question on the closed interval, the full candidate list will be $\{0,\ \tfrac{\pi}{3},\ \tfrac{5\pi}{3},\ 2\pi\}$: the two critical points plus the two endpoints. The lesson is that solving the trigonometric equation must respect the stated domain, since $\cos x = \tfrac12$ has infinitely many solutions on the whole line.
在区间 $[0, 2\pi]$ 上求 $f(x) = x - 2\sin x$ 的临界点。
该函数处处可微(differentiable),所以每个临界点都来自 $f'(x) = 0$。
在 $[0,2\pi]$ 上,方程 $\cos x = \tfrac12$ 有两个解 $x = \tfrac{\pi}{3}$ 与 $x = \tfrac{5\pi}{3}$,这是仅有的内部临界点。当此题后续作为闭区间上的极值问题处理时,完整的候选名单为 $\{0,\ \tfrac{\pi}{3},\ \tfrac{5\pi}{3},\ 2\pi\}$:两个临界点加两个端点。要点在于解三角方程必须尊重题目给定的定义域,因为 $\cos x = \tfrac12$ 在整条数轴上有无穷多个解。
Worked Example 1.4: the Extreme Value Theorem can fail on an open interval例题 1.4:极值定理在开区间上可能失效
Show that $f(x) = x$ on the open interval $(0,1)$ has neither an absolute maximum nor an absolute minimum, even though $f$ is continuous and bounded.
Suppose, for contradiction, that $f$ attained a maximum at some $c \in (0,1)$. Then $f(c) = c$, yet the number $\tfrac{c+1}{2}$ also lies in $(0,1)$ and satisfies $\tfrac{c+1}{2} > c$, so $f\big(\tfrac{c+1}{2}\big) > f(c)$, contradicting maximality. The symmetric argument with $\tfrac{c}{2}$ rules out a minimum. The values approach $1$ and $0$ but are never reached. This is exactly why the Extreme Value Theorem insists on a closed interval: the supremum and infimum exist as numbers, but without the endpoints there is no point at which they are attained.
证明 $f(x) = x$ 在开区间 $(0,1)$ 上既无绝对最大值也无绝对最小值,尽管 $f$ 连续且有界。
反证:设 $f$ 在某点 $c \in (0,1)$ 取得最大值。则 $f(c) = c$,但数 $\tfrac{c+1}{2}$ 也属于 $(0,1)$ 且满足 $\tfrac{c+1}{2} > c$,于是 $f\big(\tfrac{c+1}{2}\big) > f(c)$,与最大性矛盾。用 $\tfrac{c}{2}$ 作对称论证可排除最小值。函数值趋于 $1$ 和 $0$,却永远取不到。这正是极值定理坚持要求闭区间的原因:上确界与下确界作为数是存在的,但缺了端点就没有任何一点真正取到它们。
The Mean Value Theorem中值定理
Mean Value Theorem / MVT)把关于平均变化率的整体性结论,转化为关于某一点瞬时变化率的逐点结论。它是本单元后续所有正负号分析的引擎:正是它解释了为什么导数在某区间上为正就迫使函数在该区间上递增。Theorem (Rolle's Theorem). Suppose $f$ is continuous on $[a,b]$, differentiable on $(a,b)$, and $f(a) = f(b)$. Then there exists $c \in (a,b)$ with $f'(c) = 0$.
定理(罗尔定理,Rolle's Theorem)。设 $f$ 在 $[a,b]$ 上连续,在 $(a,b)$ 上可微,且 $f(a) = f(b)$。则存在 $c \in (a,b)$ 使 $f'(c) = 0$。
Theorem (Mean Value Theorem). Suppose $f$ is continuous on $[a,b]$ and differentiable on $(a,b)$. Then there exists $c \in (a,b)$ such that the instantaneous rate at $c$ equals the average rate over $[a,b]$.
定理(中值定理,Mean Value Theorem)。设 $f$ 在 $[a,b]$ 上连续,在 $(a,b)$ 上可微。则存在 $c \in (a,b)$,使 $c$ 处的瞬时变化率等于 $[a,b]$ 上的平均变化率。
Corollary. If $f'(x) = 0$ for all $x$ in an interval $I$, then $f$ is constant on $I$. Consequently, if $f'(x) = g'(x)$ throughout $I$, then $f - g$ is constant on $I$. This is the uniqueness statement that makes antiderivatives well defined up to a constant.
推论。若在区间 $I$ 上处处 $f'(x) = 0$,则 $f$ 在 $I$ 上为常数。于是若在 $I$ 上处处 $f'(x) = g'(x)$,则 $f - g$ 在 $I$ 上为常数。正是这条唯一性结论,使原函数(antiderivative)在相差一个常数的意义下被良好定义。
Worked Example 2.1: verifying the conclusion例题 2.1:验证结论
Find every $c$ guaranteed by the Mean Value Theorem for $f(x) = x^{3}$ on $[0,2]$.
The average rate of change is
$$ \frac{f(2) - f(0)}{2 - 0} = \frac{8 - 0}{2} = 4. $$Set $f'(c) = 3c^{2}$ equal to $4$: $3c^{2} = 4$, so $c^{2} = 4/3$ and $c = 2/\sqrt{3} \approx 1.155$. The negative root is rejected because it lies outside $(0,2)$.
对 $f(x) = x^{3}$ 在 $[0,2]$ 上,求出中值定理所保证的所有 $c$。
平均变化率为
$$ \frac{f(2) - f(0)}{2 - 0} = \frac{8 - 0}{2} = 4. $$令 $f'(c) = 3c^{2}$ 等于 $4$:$3c^{2} = 4$,故 $c^{2} = 4/3$,$c = 2/\sqrt{3} \approx 1.155$。负根因落在 $(0,2)$ 之外而舍去。
Going deeper: deriving the Mean Value Theorem from Rolle's Theorem深入一步:由罗尔定理推出中值定理
Given $f$ continuous on $[a,b]$ and differentiable on $(a,b)$, define the auxiliary function that subtracts the secant line.
$$ g(x) = f(x) - \left[ f(a) + \frac{f(b)-f(a)}{b-a}(x-a) \right]. $$Then $g$ is continuous on $[a,b]$ and differentiable on $(a,b)$ as a difference of such functions. Direct substitution gives $g(a) = 0$ and $g(b) = 0$. By Rolle's Theorem there is a $c \in (a,b)$ with $g'(c) = 0$. Differentiating,
$$ g'(x) = f'(x) - \frac{f(b)-f(a)}{b-a}, \qquad g'(c) = 0 \implies f'(c) = \frac{f(b)-f(a)}{b-a}. $$This is precisely the Mean Value Theorem, so the general theorem reduces to the special case $f(a)=f(b)$.
设 $f$ 在 $[a,b]$ 上连续、在 $(a,b)$ 上可微,定义减去割线的辅助函数。
$$ g(x) = f(x) - \left[ f(a) + \frac{f(b)-f(a)}{b-a}(x-a) \right]. $$作为这类函数之差,$g$ 在 $[a,b]$ 上连续、在 $(a,b)$ 上可微。直接代入得 $g(a) = 0$ 与 $g(b) = 0$。由罗尔定理,存在 $c \in (a,b)$ 使 $g'(c) = 0$。求导得
$$ g'(x) = f'(x) - \frac{f(b)-f(a)}{b-a}, \qquad g'(c) = 0 \implies f'(c) = \frac{f(b)-f(a)}{b-a}. $$这正是中值定理,于是一般情形归结为特例 $f(a)=f(b)$。
Worked Example 2.2: a bound from the Mean Value Theorem例题 2.2:用中值定理得到估界
Suppose $f$ is differentiable on $\mathbb{R}$ with $f(0) = 3$ and $|f'(x)| \le 2$ for every $x$. How large can $f(5)$ possibly be?
Apply the Mean Value Theorem on $[0,5]$: there is a $c \in (0,5)$ with
$$ f(5) - f(0) = f'(c)\,(5 - 0) = 5\,f'(c). $$Therefore $|f(5) - 3| = 5\,|f'(c)| \le 5 \cdot 2 = 10$, which gives $-7 \le f(5) \le 13$. The largest possible value is $f(5) = 13$, attained when $f'(c) = 2$ throughout, that is when $f(x) = 2x + 3$. This is the model argument for turning a derivative bound into a bound on the function itself, and it underlies error estimates throughout calculus.
设 $f$ 在 $\mathbb{R}$ 上可微,$f(0) = 3$,且对每个 $x$ 有 $|f'(x)| \le 2$。$f(5)$ 最大可能是多少?
在 $[0,5]$ 上用中值定理:存在 $c \in (0,5)$ 使
$$ f(5) - f(0) = f'(c)\,(5 - 0) = 5\,f'(c). $$因此 $|f(5) - 3| = 5\,|f'(c)| \le 5 \cdot 2 = 10$,即 $-7 \le f(5) \le 13$。最大可能值为 $f(5) = 13$,当 $f'(c)$ 全程等于 $2$(即 $f(x) = 2x + 3$)时取得。这是把导数估界转化为函数本身估界的范本论证,也是整个微积分中误差估计的基础。
Worked Example 2.3: proving an inequality with the Mean Value Theorem例题 2.3:用中值定理证明不等式
Prove that $\sin b - \sin a \le b - a$ for all $a \le b$.
If $a = b$ both sides are zero. For $a < b$, apply the Mean Value Theorem to $f(x) = \sin x$ on $[a,b]$: there is a $c \in (a,b)$ with
$$ \frac{\sin b - \sin a}{b - a} = \cos c. $$Since $\cos c \le 1$ and $b - a > 0$, multiplying gives $\sin b - \sin a \le b - a$. The same argument with $|\cos c| \le 1$ yields the sharper statement $|\sin b - \sin a| \le |b - a|$, which says that sine is a nonexpansive (Lipschitz) function with constant $1$.
证明:对一切 $a \le b$ 有 $\sin b - \sin a \le b - a$。
若 $a = b$,两边均为零。若 $a < b$,对 $f(x) = \sin x$ 在 $[a,b]$ 上用中值定理:存在 $c \in (a,b)$ 使
$$ \frac{\sin b - \sin a}{b - a} = \cos c. $$由 $\cos c \le 1$ 且 $b - a > 0$,两边相乘得 $\sin b - \sin a \le b - a$。用 $|\cos c| \le 1$ 作同样论证可得更强的 $|\sin b - \sin a| \le |b - a|$,即正弦是常数为 $1$ 的非扩张(利普希茨,Lipschitz)函数。
Increasing, Decreasing, and the First Derivative Test单调递增、递减与一阶导数判别法
First Derivative Test)仅凭一阶信息就能把每个临界点判为局部最大值、局部最小值或两者皆非。Theorem (Increasing/Decreasing Test). Let $f$ be continuous on $[a,b]$ and differentiable on $(a,b)$. If $f'(x) > 0$ for all $x$ in $(a,b)$, then $f$ is increasing on $[a,b]$. If $f'(x) < 0$ throughout, then $f$ is decreasing on $[a,b]$. Each direction follows directly from the Mean Value Theorem applied to any two points of the interval.
定理(单调性判别法,Increasing/Decreasing Test)。设 $f$ 在 $[a,b]$ 上连续、在 $(a,b)$ 上可微。若对 $(a,b)$ 内一切 $x$ 有 $f'(x) > 0$,则 $f$ 在 $[a,b]$ 上递增;若处处 $f'(x) < 0$,则在 $[a,b]$ 上递减。两个方向都可由对区间内任意两点应用中值定理直接得到。
Procedure. List all critical points, mark them on a number line, and test the sign of $f'$ on each resulting open interval by evaluating $f'$ at a convenient point. The sign pattern then determines both the monotonicity intervals and the classification of each critical point.
步骤。列出所有临界点,在数轴上标出它们,然后在每个由此分出的开区间内取一个方便的点代入 $f'$ 以判断符号。所得的符号分布既决定单调区间,也决定每个临界点的分类。
Worked Example 3.1: a full sign analysis例题 3.1:完整的符号分析
Classify the critical points of $f(x) = x^{3} - 3x^{2} - 9x + 5$ from Example 1.1, where $f'(x) = 3(x-3)(x+1)$.
The critical points $x = -1$ and $x = 3$ split the line into three intervals. Test one point in each.
$$ f'(-2) = 3(-5)(-1) > 0, \quad f'(0) = 3(-3)(1) < 0, \quad f'(4) = 3(1)(5) > 0. $$So $f$ increases on $(-\infty,-1)$, decreases on $(-1,3)$, and increases on $(3,\infty)$. The sign goes $(+)\to(-)$ at $x=-1$, giving a local maximum, and $(-)\to(+)$ at $x=3$, giving a local minimum.
对例题 1.1 中的 $f(x) = x^{3} - 3x^{2} - 9x + 5$(其中 $f'(x) = 3(x-3)(x+1)$)的临界点进行分类。
临界点 $x = -1$ 与 $x = 3$ 把数轴分成三个区间。每个区间各取一点检验。
$$ f'(-2) = 3(-5)(-1) > 0, \quad f'(0) = 3(-3)(1) < 0, \quad f'(4) = 3(1)(5) > 0. $$于是 $f$ 在 $(-\infty,-1)$ 上递增,在 $(-1,3)$ 上递减,在 $(3,\infty)$ 上递增。$x=-1$ 处符号 $(+)\to(-)$,给出局部最大值;$x=3$ 处 $(-)\to(+)$,给出局部最小值。
Worked Example 3.2: a critical point where $f'$ is undefined例题 3.2:$f'$ 不存在处的临界点
Classify the critical points of $f(x) = x^{2/3}(x - 5)$ and find the intervals of increase and decrease.
Write $f(x) = x^{5/3} - 5x^{2/3}$ and differentiate.
$$ f'(x) = \tfrac{5}{3}x^{2/3} - \tfrac{10}{3}x^{-1/3} = \frac{5}{3}\,\frac{x - 2}{x^{1/3}}. $$The derivative is zero at $x = 2$ and undefined at $x = 0$ (which is in the domain), so the critical points are $x = 0$ and $x = 2$. Test the sign of $f'$ on the three intervals, watching the sign of both the numerator $x-2$ and the denominator $x^{1/3}$:
$$ f'(-1) = \tfrac{5}{3}\cdot\tfrac{-3}{-1} > 0, \quad f'(1) = \tfrac{5}{3}\cdot\tfrac{-1}{1} < 0, \quad f'(8) = \tfrac{5}{3}\cdot\tfrac{6}{2} > 0. $$So $f$ increases on $(-\infty,0)$, decreases on $(0,2)$, and increases on $(2,\infty)$. The sign change $(+)\to(-)$ at $x=0$ gives a local maximum (a cusp, since $f'$ is undefined there), and $(-)\to(+)$ at $x=2$ gives a local minimum. This shows why the sign chart must include points where $f'$ is undefined, not only its roots.
对 $f(x) = x^{2/3}(x - 5)$ 的临界点分类,并求出递增、递减区间。
写成 $f(x) = x^{5/3} - 5x^{2/3}$ 再求导。
$$ f'(x) = \tfrac{5}{3}x^{2/3} - \tfrac{10}{3}x^{-1/3} = \frac{5}{3}\,\frac{x - 2}{x^{1/3}}. $$导数在 $x = 2$ 处为零,在 $x = 0$ 处不存在(而 $0$ 在定义域内),故临界点为 $x = 0$ 与 $x = 2$。在三个区间上检验 $f'$ 的符号,同时关注分子 $x-2$ 与分母 $x^{1/3}$ 的符号:
$$ f'(-1) = \tfrac{5}{3}\cdot\tfrac{-3}{-1} > 0, \quad f'(1) = \tfrac{5}{3}\cdot\tfrac{-1}{1} < 0, \quad f'(8) = \tfrac{5}{3}\cdot\tfrac{6}{2} > 0. $$故 $f$ 在 $(-\infty,0)$ 上递增,在 $(0,2)$ 上递减,在 $(2,\infty)$ 上递增。$x=0$ 处符号变化 $(+)\to(-)$ 给出局部最大值(一个尖点,因为 $f'$ 在此不存在),$x=2$ 处 $(-)\to(+)$ 给出局部最小值。这说明符号表必须包含 $f'$ 不存在的点,而不只是它的根。
Worked Example 3.3: increase and decrease for a product with an exponential例题 3.3:含指数因子之积的单调性
Find where $f(x) = x e^{-x}$ is increasing or decreasing, and classify any local extremum.
By the product rule,
$$ f'(x) = e^{-x} - x e^{-x} = (1 - x)e^{-x}. $$Because $e^{-x} > 0$ for every $x$, the sign of $f'$ matches the sign of $1 - x$. Hence $f' > 0$ on $(-\infty,1)$ and $f' < 0$ on $(1,\infty)$: the function increases then decreases. The sign change $(+)\to(-)$ at $x = 1$ gives a local maximum, with value $f(1) = e^{-1} \approx 0.368$. Since this is the only critical point and the function rises to it then falls forever after, it is in fact the absolute maximum on the whole line.
求 $f(x) = x e^{-x}$ 的递增、递减区间,并对任何局部极值进行分类。
由乘积法则(Product Rule),
由于对每个 $x$ 都有 $e^{-x} > 0$,$f'$ 的符号与 $1 - x$ 一致。故 $f'$ 在 $(-\infty,1)$ 上为正、在 $(1,\infty)$ 上为负:函数先增后减。$x = 1$ 处符号变化 $(+)\to(-)$ 给出局部最大值,其值 $f(1) = e^{-1} \approx 0.368$。由于这是唯一的临界点,且函数先升到它、此后永远下降,它实际上是整条数轴上的绝对最大值。
Concavity and the Second Derivative Test凹凸性与二阶导数判别法
concave up);$f'' < 0$ 处向下弯(凹向下,concave down)。凹凸性反转之处就是拐点(inflection point),而二阶导数为许多临界点提供了一种快速判别法。Definition. $f$ is concave up on an interval if $f'$ is increasing there, and concave down if $f'$ is decreasing there. A point on the graph where the concavity changes is an inflection point.
定义。若 $f'$ 在某区间上递增,则称 $f$ 在该区间上凹向上(concave up);若 $f'$ 在该区间上递减,则凹向下(concave down)。图像上凹凸性发生改变的点称为拐点(inflection point)。
Theorem (Concavity Test). If $f''(x) > 0$ for all $x$ in an interval, then $f$ is concave up there; if $f''(x) < 0$ throughout, then $f$ is concave down there.
定理(凹凸性判别法,Concavity Test)。若在某区间内对一切 $x$ 有 $f''(x) > 0$,则 $f$ 在该区间凹向上;若处处 $f''(x) < 0$,则凹向下。
Remark. If $f''(c) = 0$ the Second Derivative Test is inconclusive and gives no information. The functions $x^{4}$ (minimum), $-x^{4}$ (maximum), and $x^{3}$ (neither) all have $f' = f'' = 0$ at the origin, so one must fall back on the First Derivative Test. A candidate inflection point likewise requires $f''$ to actually change sign, not merely to vanish.
注。若 $f''(c) = 0$,二阶导数判别法失效,不给出任何信息。函数 $x^{4}$(最小)、$-x^{4}$(最大)、$x^{3}$(皆非)在原点都有 $f' = f'' = 0$,所以只能退回到一阶导数判别法。同理,候选拐点也要求 $f''$ 真正改变符号,而不只是取零。
Worked Example 4.1: concavity and inflection例题 4.1:凹凸性与拐点
For $f(x) = x^{3} - 3x^{2} - 9x + 5$, analyze concavity. From $f'(x) = 3x^{2}-6x-9$,
$$ f''(x) = 6x - 6 = 6(x-1). $$Thus $f'' < 0$ for $x < 1$ (concave down) and $f'' > 0$ for $x > 1$ (concave up). The concavity reverses at $x = 1$, where $f(1) = 1 - 3 - 9 + 5 = -6$, so $(1,-6)$ is an inflection point.
Checking the earlier critical points with the Second Derivative Test: $f''(-1) = -12 < 0$ confirms the local maximum, and $f''(3) = 12 > 0$ confirms the local minimum.
对 $f(x) = x^{3} - 3x^{2} - 9x + 5$ 分析凹凸性。由 $f'(x) = 3x^{2}-6x-9$,
$$ f''(x) = 6x - 6 = 6(x-1). $$故 $x < 1$ 时 $f'' < 0$(凹向下),$x > 1$ 时 $f'' > 0$(凹向上)。凹凸性在 $x = 1$ 处反转,此处 $f(1) = 1 - 3 - 9 + 5 = -6$,所以 $(1,-6)$ 是拐点。
用二阶导数判别法核验先前的临界点:$f''(-1) = -12 < 0$ 证实局部最大值,$f''(3) = 12 > 0$ 证实局部最小值。
Going deeper: why $f'' > 0$ means concave up深入一步:为何 $f'' > 0$ 意味着凹向上
Suppose $f'' > 0$ on an interval $I$. By the Increasing/Decreasing Test applied to the function $f'$, the fact that $(f')' = f'' > 0$ forces $f'$ to be increasing on $I$. By definition, an increasing first derivative is exactly what concave up means: as $x$ grows, the tangent slope grows, so the curve turns upward and lies above each of its tangent lines on $I$. The concave down case is identical with inequalities reversed.
设在区间 $I$ 上 $f'' > 0$。对函数 $f'$ 应用单调性判别法,$(f')' = f'' > 0$ 迫使 $f'$ 在 $I$ 上递增。按定义,一阶导数递增正是凹向上的含义:随着 $x$ 增大,切线斜率增大,于是曲线向上弯,并在 $I$ 上位于其每条切线之上。凹向下的情形完全相同,只需把不等号反向。
Worked Example 4.2: a vanishing second derivative that is not an inflection例题 4.2:二阶导数为零却不是拐点
Examine $f(x) = x^4$ at the origin. Compute $f'(x) = 4x^3$ and $f''(x) = 12x^2$. Then $f''(0) = 0$, so one might suspect an inflection point. But $f''(x) = 12x^2 \ge 0$ for all $x$, so the concavity is up on both sides of $0$ and never reverses. There is no inflection point; the origin is in fact the absolute minimum. The lesson is that $f''(c) = 0$ is necessary but not sufficient for an inflection: the second derivative must actually change sign as $x$ crosses $c$.
考察 $f(x) = x^4$ 在原点。算得 $f'(x) = 4x^3$,$f''(x) = 12x^2$。则 $f''(0) = 0$,乍看像是拐点。但对一切 $x$ 都有 $f''(x) = 12x^2 \ge 0$,所以 $0$ 两侧都凹向上,从不反转。这里没有拐点;原点其实是绝对最小值。要点是 $f''(c) = 0$ 对拐点是必要而非充分条件:当 $x$ 跨过 $c$ 时,二阶导数必须真正改变符号。
Worked Example 4.3: the Second Derivative Test on a transcendental function例题 4.3:超越函数上的二阶导数判别法
Classify the critical points of $f(x) = 2\cos x + \cos 2x$ on $(0, 2\pi)$ using the Second Derivative Test, and locate the inflection points.
Differentiate twice.
$$ f'(x) = -2\sin x - 2\sin 2x = -2\sin x(1 + 2\cos x), \qquad f''(x) = -2\cos x - 4\cos 2x. $$Setting $f'(x) = 0$ gives $\sin x = 0$ or $\cos x = -\tfrac12$. On $(0,2\pi)$ this yields $x = \pi$ (from $\sin x = 0$) and $x = \tfrac{2\pi}{3},\ \tfrac{4\pi}{3}$ (from $\cos x = -\tfrac12$). Evaluate $f''$:
$$ f''\!\left(\tfrac{2\pi}{3}\right) = -2(-\tfrac12) - 4(-\tfrac12) = 1 + 2 = 3 > 0 \ \text{(local min)}, $$ $$ f''(\pi) = -2(-1) - 4(1) = 2 - 4 = -2 < 0 \ \text{(local max)}, $$ $$ f''\!\left(\tfrac{4\pi}{3}\right) = 3 > 0 \ \text{(local min, by symmetry)}. $$So the test cleanly classifies all three critical points, illustrating how much faster the Second Derivative Test can be than a full sign chart when $f''$ is easy to evaluate.
用二阶导数判别法对 $f(x) = 2\cos x + \cos 2x$ 在 $(0, 2\pi)$ 上的临界点分类,并找出拐点。
求两次导。
$$ f'(x) = -2\sin x - 2\sin 2x = -2\sin x(1 + 2\cos x), \qquad f''(x) = -2\cos x - 4\cos 2x. $$令 $f'(x) = 0$ 得 $\sin x = 0$ 或 $\cos x = -\tfrac12$。在 $(0,2\pi)$ 上由 $\sin x = 0$ 得 $x = \pi$,由 $\cos x = -\tfrac12$ 得 $x = \tfrac{2\pi}{3},\ \tfrac{4\pi}{3}$。代入 $f''$:
$$ f''\!\left(\tfrac{2\pi}{3}\right) = -2(-\tfrac12) - 4(-\tfrac12) = 1 + 2 = 3 > 0 \ \text{(local min)}, $$ $$ f''(\pi) = -2(-1) - 4(1) = 2 - 4 = -2 < 0 \ \text{(local max)}, $$ $$ f''\!\left(\tfrac{4\pi}{3}\right) = 3 > 0 \ \text{(local min, by symmetry)}. $$于是该判别法干净利落地分类了全部三个临界点,说明当 $f''$ 容易求值时,二阶导数判别法比画完整符号表快得多。
Curve Sketching曲线描绘
asymptote)、单调性、凹凸性——收集起来,叠加在同一坐标系上拼出来的。没有哪一个导数能道尽全貌;形状是在它们的交汇处浮现的。Procedure (a checklist for sketching $y = f(x)$).
1. Determine the domain and any symmetry (even, odd, periodic). 2. Find the $x$- and $y$-intercepts when feasible. 3. Find vertical asymptotes (where $f \to \pm\infty$) and horizontal asymptotes from the limits at infinity. 4. Use $f'$ for intervals of increase and decrease and for local extrema. 5. Use $f''$ for concavity and inflection points. 6. Plot the key points and connect them respecting the established slope and bending.
步骤(描绘 $y = f(x)$ 的清单)。
1. 确定定义域与对称性(偶、奇、周期)。2. 在可行时求 $x$ 截距与 $y$ 截距。3. 求竖直渐近线($f \to \pm\infty$ 处)以及由无穷远处极限(limit)得到的水平渐近线(horizontal asymptote)。4. 用 $f'$ 求递增、递减区间与局部极值。5. 用 $f''$ 求凹凸性与拐点。6. 描出关键点,并按已确定的斜率与弯曲方向把它们连接起来。
Worked Example 5.1: sketching a rational function例题 5.1:描绘有理函数
Sketch $f(x) = \dfrac{x^{2}}{x^{2} - 1}$.
Domain and symmetry. Defined for $x \ne \pm 1$. Since $f(-x) = f(x)$, the graph is even and symmetric about the $y$-axis.
Intercepts. $f(0) = 0$, so the only intercept is the origin.
Asymptotes. The denominator vanishes at $x = \pm 1$, giving vertical asymptotes there. For the end behavior,
$$ \lim_{x \to \pm\infty} \frac{x^{2}}{x^{2}-1} = 1, $$so $y = 1$ is a horizontal asymptote.
Monotonicity. By the quotient rule,
$$ f'(x) = \frac{2x(x^{2}-1) - x^{2}(2x)}{(x^{2}-1)^{2}} = \frac{-2x}{(x^{2}-1)^{2}}. $$The denominator is positive, so $f' > 0$ for $x < 0$ and $f' < 0$ for $x > 0$ (excluding the asymptotes). Thus $f$ increases on $(-\infty,-1)$ and $(-1,0)$ and decreases on $(0,1)$ and $(1,\infty)$, with a local maximum at the origin where $f(0)=0$. Combining these facts produces the characteristic three-branch graph hugging $y = 1$.
描绘 $f(x) = \dfrac{x^{2}}{x^{2} - 1}$。
定义域与对称性。在 $x \ne \pm 1$ 时有定义。由 $f(-x) = f(x)$ 知图像为偶函数,关于 $y$ 轴对称。
截距。$f(0) = 0$,故唯一的截距是原点。
渐近线。分母在 $x = \pm 1$ 处为零,给出该处的竖直渐近线。对于端点行为,
$$ \lim_{x \to \pm\infty} \frac{x^{2}}{x^{2}-1} = 1, $$所以 $y = 1$ 是水平渐近线。
单调性。由商的法则(Quotient Rule),
分母为正,故 $x < 0$ 时 $f' > 0$,$x > 0$ 时 $f' < 0$(不含渐近线处)。于是 $f$ 在 $(-\infty,-1)$ 与 $(-1,0)$ 上递增,在 $(0,1)$ 与 $(1,\infty)$ 上递减,在原点处 $f(0)=0$ 取局部最大值。综合这些事实即得贴着 $y = 1$ 的特征性三支图像。
Worked Example 5.2: a slant asymptote例题 5.2:斜渐近线
Sketch $f(x) = \dfrac{x^{2} + 1}{x}$ and identify all asymptotes.
Domain and symmetry. Defined for $x \ne 0$. Since $f(-x) = -f(x)$, the graph is odd and symmetric about the origin.
Asymptotes. Long division gives $f(x) = x + \dfrac{1}{x}$. As $x \to 0$ the term $1/x$ dominates, so $x = 0$ is a vertical asymptote. As $x \to \pm\infty$ the term $1/x \to 0$, so the graph approaches the line $y = x$. This line is a slant (oblique) asymptote, which appears whenever the degree of the numerator is exactly one more than that of the denominator.
Monotonicity and shape. From $f'(x) = 1 - \dfrac{1}{x^{2}} = \dfrac{x^{2}-1}{x^{2}}$, the critical points are $x = \pm 1$. The derivative is positive for $|x| > 1$ and negative for $0 < |x| < 1$, so $x = -1$ is a local maximum with $f(-1) = -2$ and $x = 1$ is a local minimum with $f(1) = 2$. Notice the local minimum value $2$ exceeds the local maximum value $-2$; this is possible only because a vertical asymptote separates the two branches.
描绘 $f(x) = \dfrac{x^{2} + 1}{x}$ 并找出所有渐近线。
定义域与对称性。在 $x \ne 0$ 时有定义。由 $f(-x) = -f(x)$ 知图像为奇函数,关于原点对称。
渐近线。多项式除法给出 $f(x) = x + \dfrac{1}{x}$。当 $x \to 0$ 时 $1/x$ 项占主导,所以 $x = 0$ 是竖直渐近线。当 $x \to \pm\infty$ 时 $1/x \to 0$,所以图像趋近直线 $y = x$。这条直线是斜渐近线(slant asymptote),只要分子次数恰好比分母次数高一次就会出现。
单调性与形状。由 $f'(x) = 1 - \dfrac{1}{x^{2}} = \dfrac{x^{2}-1}{x^{2}}$,临界点为 $x = \pm 1$。导数在 $|x| > 1$ 时为正、在 $0 < |x| < 1$ 时为负,故 $x = -1$ 是局部最大值 $f(-1) = -2$,$x = 1$ 是局部最小值 $f(1) = 2$。注意局部最小值 $2$ 竟大于局部最大值 $-2$;这只有在竖直渐近线把两支分开时才可能发生。
Worked Example 5.3: a full sketch combining $f'$ and $f''$例题 5.3:综合 $f'$ 与 $f''$ 的完整草图
Assemble the graph of $f(x) = x^{3} - 3x^{2} - 9x + 5$, the function studied throughout this unit.
Collecting the earlier results: $f$ increases on $(-\infty,-1)$, decreases on $(-1,3)$, and increases on $(3,\infty)$, with a local maximum at $(-1, 10)$ and a local minimum at $(3, -22)$. The concavity is down on $(-\infty,1)$ and up on $(1,\infty)$, with an inflection point at $(1,-6)$. The end behavior is $f \to -\infty$ as $x \to -\infty$ and $f \to +\infty$ as $x \to +\infty$, with no asymptotes since $f$ is a polynomial.
Plotting these features in order, rising to the crest at $(-1,10)$ while concave down, bending through the inflection at $(1,-6)$, sinking to the trough at $(3,-22)$ while concave up, then rising again, reproduces the standard cubic with one hump and one valley. The independent pieces, monotonicity from $f'$ and bending from $f''$, lock together into a single unambiguous shape.
拼出本单元始终研究的函数 $f(x) = x^{3} - 3x^{2} - 9x + 5$ 的图像。
汇总前面的结果:$f$ 在 $(-\infty,-1)$ 上递增,在 $(-1,3)$ 上递减,在 $(3,\infty)$ 上递增,在 $(-1, 10)$ 取局部最大值、在 $(3, -22)$ 取局部最小值。凹凸性在 $(-\infty,1)$ 上为凹向下、在 $(1,\infty)$ 上为凹向上,拐点在 $(1,-6)$。端点行为是 $x \to -\infty$ 时 $f \to -\infty$、$x \to +\infty$ 时 $f \to +\infty$,因 $f$ 是多项式而无渐近线。
按顺序画出这些特征:凹向下地升到 $(-1,10)$ 的峰顶,经 $(1,-6)$ 处拐点弯转,凹向上地降到 $(3,-22)$ 的谷底,再次上升,就重现了一峰一谷的标准三次曲线。两块独立的信息——来自 $f'$ 的单调性与来自 $f''$ 的弯曲——咬合成唯一确定的形状。
Optimization: The Closed Interval Method最优化:闭区间法
Extreme Value Theorem)保证绝对极值存在,而费马定理告诉我们它们就藏在临界点与两个端点之中。闭区间法(Closed Interval Method)正是利用这一点:只需把 $f$ 在每个候选处求值,再读出最大与最小值即可。Procedure. 1. Confirm $f$ is continuous on $[a,b]$. 2. Find the critical points of $f$ in the open interval $(a,b)$. 3. Evaluate $f$ at those critical points and at both endpoints. 4. The largest of these values is the absolute maximum and the smallest is the absolute minimum. Sign analysis is unnecessary: only the list of function values matters.
步骤。1. 确认 $f$ 在 $[a,b]$ 上连续。2. 求 $f$ 在开区间 $(a,b)$ 内的临界点。3. 在这些临界点与两个端点处求 $f$ 的值。4. 其中最大的值是绝对最大值,最小的值是绝对最小值。无需做符号分析:只看这份函数值清单即可。
Worked Example 6.1: absolute extrema on a closed interval例题 6.1:闭区间上的绝对极值
Find the absolute maximum and minimum of $f(x) = x^{3} - 3x + 1$ on $[0, 3]$.
Differentiate: $f'(x) = 3x^{2} - 3 = 3(x-1)(x+1)$. The critical points are $x = \pm 1$, but only $x = 1$ lies in $(0,3)$, so the candidate list is $\{0, 1, 3\}$.
$$ f(0) = 1, \qquad f(1) = 1 - 3 + 1 = -1, \qquad f(3) = 27 - 9 + 1 = 19. $$The absolute maximum is $19$, attained at $x = 3$ (an endpoint), and the absolute minimum is $-1$, attained at the interior critical point $x = 1$.
求 $f(x) = x^{3} - 3x + 1$ 在 $[0, 3]$ 上的绝对最大值与最小值。
求导:$f'(x) = 3x^{2} - 3 = 3(x-1)(x+1)$。临界点为 $x = \pm 1$,但只有 $x = 1$ 落在 $(0,3)$ 内,故候选名单为 $\{0, 1, 3\}$。
$$ f(0) = 1, \qquad f(1) = 1 - 3 + 1 = -1, \qquad f(3) = 27 - 9 + 1 = 19. $$绝对最大值为 $19$,在端点 $x = 3$ 处取得;绝对最小值为 $-1$,在内部临界点 $x = 1$ 处取得。
Worked Example 6.2: a critical point with an undefined derivative例题 6.2:导数不存在的临界点
Find the absolute extrema of $f(x) = x^{2/3}(5 - x)$ on $[-1, 4]$.
Write $f(x) = 5x^{2/3} - x^{5/3}$, so $f'(x) = \tfrac{10}{3}x^{-1/3} - \tfrac{5}{3}x^{2/3} = \dfrac{5}{3}\cdot\dfrac{2 - x}{x^{1/3}}$, which is zero at $x = 2$ and undefined at $x = 0$. Both lie in $(-1,4)$, so the candidate list is $\{-1,\ 0,\ 2,\ 4\}$: two endpoints and two critical points.
$$ f(-1) = 1\cdot 6 = 6, \quad f(0) = 0, \quad f(2) = 2^{2/3}(3) \approx 4.76, \quad f(4) = 4^{2/3}(1) \approx 2.52. $$The absolute maximum is $6$ at the endpoint $x = -1$, and the absolute minimum is $0$ at the interior critical point $x = 0$ where the derivative is undefined. Had we tested only the zeros of $f'$, the true minimum would have been missed.
求 $f(x) = x^{2/3}(5 - x)$ 在 $[-1, 4]$ 上的绝对极值。
写成 $f(x) = 5x^{2/3} - x^{5/3}$,则 $f'(x) = \tfrac{10}{3}x^{-1/3} - \tfrac{5}{3}x^{2/3} = \dfrac{5}{3}\cdot\dfrac{2 - x}{x^{1/3}}$,它在 $x = 2$ 处为零、在 $x = 0$ 处不存在。两者都落在 $(-1,4)$ 内,故候选名单为 $\{-1,\ 0,\ 2,\ 4\}$:两个端点加两个临界点。
$$ f(-1) = 1\cdot 6 = 6, \quad f(0) = 0, \quad f(2) = 2^{2/3}(3) \approx 4.76, \quad f(4) = 4^{2/3}(1) \approx 2.52. $$绝对最大值为 $6$,在端点 $x = -1$ 处;绝对最小值为 $0$,在导数不存在的内部临界点 $x = 0$ 处。若只检验 $f'$ 的零点,就会漏掉真正的最小值。
Worked Example 6.3: a trigonometric extremum on a closed interval例题 6.3:闭区间上的三角函数极值
Find the absolute extrema of $f(x) = x - 2\sin x$ on $[0, 2\pi]$, continuing Example 1.3.
The interior critical points are $x = \tfrac{\pi}{3}$ and $x = \tfrac{5\pi}{3}$, so the candidate list is $\{0,\ \tfrac{\pi}{3},\ \tfrac{5\pi}{3},\ 2\pi\}$. Evaluate, using $\sin\tfrac{\pi}{3} = \tfrac{\sqrt3}{2}$ and $\sin\tfrac{5\pi}{3} = -\tfrac{\sqrt3}{2}$:
$$ f(0) = 0, \quad f\!\left(\tfrac{\pi}{3}\right) = \tfrac{\pi}{3} - \sqrt3 \approx -0.68, \quad f\!\left(\tfrac{5\pi}{3}\right) = \tfrac{5\pi}{3} + \sqrt3 \approx 6.97, \quad f(2\pi) = 2\pi \approx 6.28. $$The absolute maximum is $\tfrac{5\pi}{3} + \sqrt3$ at the interior critical point $x = \tfrac{5\pi}{3}$, and the absolute minimum is $\tfrac{\pi}{3} - \sqrt3$ at $x = \tfrac{\pi}{3}$. Note the maximum is interior and exceeds both endpoint values, which is why endpoints alone never suffice.
承接例题 1.3,求 $f(x) = x - 2\sin x$ 在 $[0, 2\pi]$ 上的绝对极值。
内部临界点为 $x = \tfrac{\pi}{3}$ 与 $x = \tfrac{5\pi}{3}$,故候选名单为 $\{0,\ \tfrac{\pi}{3},\ \tfrac{5\pi}{3},\ 2\pi\}$。利用 $\sin\tfrac{\pi}{3} = \tfrac{\sqrt3}{2}$ 与 $\sin\tfrac{5\pi}{3} = -\tfrac{\sqrt3}{2}$ 求值:
$$ f(0) = 0, \quad f\!\left(\tfrac{\pi}{3}\right) = \tfrac{\pi}{3} - \sqrt3 \approx -0.68, \quad f\!\left(\tfrac{5\pi}{3}\right) = \tfrac{5\pi}{3} + \sqrt3 \approx 6.97, \quad f(2\pi) = 2\pi \approx 6.28. $$绝对最大值为 $\tfrac{5\pi}{3} + \sqrt3$,在内部临界点 $x = \tfrac{5\pi}{3}$ 处;绝对最小值为 $\tfrac{\pi}{3} - \sqrt3$,在 $x = \tfrac{\pi}{3}$ 处。注意最大值在内部,且超过两个端点的值,这正是为何仅靠端点永远不够。
Applied Optimization应用最优化
optimization)是把一道应用题在某个可行定义域上化为单变量函数,再施以求极值的微积分。功夫在建模这一步:给要优化的量命名,借助约束把它表示成单一变量的函数,并辨认出由实际情形决定的定义域。Procedure. 1. Identify the quantity $Q$ to be maximized or minimized and the variables involved. 2. Write a constraint relating the variables and use it to express $Q$ as a function of a single variable. 3. Determine the feasible domain. 4. Find the critical points and compare with the relevant endpoints or boundary behavior to locate the optimum.
步骤。1. 辨认要最大化或最小化的量 $Q$ 以及涉及的变量。2. 写出联系各变量的约束,并用它把 $Q$ 表示成单一变量的函数。3. 确定可行定义域。4. 求临界点,并与相关端点或边界行为比较,从而定位最优值。
Worked Example 7.1: largest rectangle under a constraint例题 7.1:约束下面积最大的矩形
A farmer has $100$ meters of fencing to enclose a rectangular field. What dimensions maximize the area?
Let the rectangle have width $x$ and height $y$. The perimeter constraint is $2x + 2y = 100$, so $y = 50 - x$. The area to maximize is
$$ A(x) = x(50 - x) = 50x - x^{2}, \qquad x \in [0, 50]. $$Then $A'(x) = 50 - 2x$, which vanishes at $x = 25$. Comparing candidates, $A(0) = 0$, $A(50) = 0$, and $A(25) = 25 \cdot 25 = 625$. The maximum area is $625$ square meters, achieved by the square with $x = y = 25$.
一位农夫有 $100$ 米篱笆,要围出一块矩形田地。什么尺寸能使面积最大?
设矩形宽 $x$、高 $y$。周长约束为 $2x + 2y = 100$,故 $y = 50 - x$。要最大化的面积为
$$ A(x) = x(50 - x) = 50x - x^{2}, \qquad x \in [0, 50]. $$则 $A'(x) = 50 - 2x$,在 $x = 25$ 处为零。比较各候选:$A(0) = 0$、$A(50) = 0$、$A(25) = 25 \cdot 25 = 625$。最大面积为 $625$ 平方米,由 $x = y = 25$ 的正方形实现。
Going deeper: the cheapest cylindrical can深入一步:最省料的圆柱形罐头
Minimize the surface area of a closed cylindrical can of fixed volume $V$. With radius $r$ and height $h$, the volume constraint is $V = \pi r^{2} h$, so $h = V/(\pi r^{2})$. The surface area is
$$ S(r) = 2\pi r^{2} + 2\pi r h = 2\pi r^{2} + \frac{2V}{r}, \qquad r > 0. $$Differentiate and set to zero.
$$ S'(r) = 4\pi r - \frac{2V}{r^{2}} = 0 \implies 4\pi r^{3} = 2V \implies r^{3} = \frac{V}{2\pi}. $$Since $S''(r) = 4\pi + 4V/r^{3} > 0$ for all $r > 0$, this critical point is the absolute minimum. Substituting back, $h = V/(\pi r^{2}) = 2r$: the most economical can has height equal to its diameter.
使固定体积 $V$ 的密闭圆柱形罐头表面积最小。设半径 $r$、高 $h$,体积约束为 $V = \pi r^{2} h$,故 $h = V/(\pi r^{2})$。表面积为
$$ S(r) = 2\pi r^{2} + 2\pi r h = 2\pi r^{2} + \frac{2V}{r}, \qquad r > 0. $$求导并令其为零。
$$ S'(r) = 4\pi r - \frac{2V}{r^{2}} = 0 \implies 4\pi r^{3} = 2V \implies r^{3} = \frac{V}{2\pi}. $$由于对一切 $r > 0$ 有 $S''(r) = 4\pi + 4V/r^{3} > 0$,这个临界点是绝对最小值。回代得 $h = V/(\pi r^{2}) = 2r$:最省料的罐头其高等于其直径。
Worked Example 7.2: shortest distance from a point to a parabola例题 7.2:点到抛物线的最短距离
Find the point on the parabola $y = x^{2}$ closest to the point $(0, \tfrac{3}{2})$.
A point on the curve is $(x, x^{2})$. Rather than minimize the distance, minimize the squared distance, which has the same minimizer and avoids the square root.
$$ D(x) = x^{2} + \left(x^{2} - \tfrac{3}{2}\right)^{2}, \qquad x \in \mathbb{R}. $$Differentiate and simplify.
$$ D'(x) = 2x + 2\left(x^{2} - \tfrac{3}{2}\right)(2x) = 2x\left(1 + 2x^{2} - 3\right) = 2x\,(2x^{2} - 2) = 4x(x^{2} - 1). $$The critical points are $x = 0$ and $x = \pm 1$. Since $D''(x) = 12x^2 - 4$, we have $D''(0) = -4 < 0$ (a local max of squared distance) and $D''(\pm 1) = 8 > 0$ (local minima). Comparing $D(0) = \tfrac{9}{4}$ with $D(\pm 1) = 1 + \tfrac14 = \tfrac54$, the minimum distance occurs at $x = \pm 1$. The two closest points are $(1,1)$ and $(-1,1)$, each at distance $\sqrt{5}/2$. Minimizing the square is a standard device worth remembering.
求抛物线 $y = x^{2}$ 上离点 $(0, \tfrac{3}{2})$ 最近的点。
曲线上的点为 $(x, x^{2})$。与其最小化距离,不如最小化距离的平方,二者最小值点相同,且可避开平方根。
$$ D(x) = x^{2} + \left(x^{2} - \tfrac{3}{2}\right)^{2}, \qquad x \in \mathbb{R}. $$求导并化简。
$$ D'(x) = 2x + 2\left(x^{2} - \tfrac{3}{2}\right)(2x) = 2x\left(1 + 2x^{2} - 3\right) = 2x\,(2x^{2} - 2) = 4x(x^{2} - 1). $$临界点为 $x = 0$ 与 $x = \pm 1$。由 $D''(x) = 12x^2 - 4$,有 $D''(0) = -4 < 0$(平方距离的局部最大值)与 $D''(\pm 1) = 8 > 0$(局部最小值)。比较 $D(0) = \tfrac{9}{4}$ 与 $D(\pm 1) = 1 + \tfrac14 = \tfrac54$,最短距离在 $x = \pm 1$ 处。两个最近点是 $(1,1)$ 与 $(-1,1)$,各距 $\sqrt{5}/2$。最小化平方是值得记住的标准手法。
Worked Example 7.3: maximizing the volume of an open box例题 7.3:无盖盒子体积最大化
An open-top box is made from a $12 \times 12$ square sheet by cutting a square of side $x$ from each corner and folding up the sides. Find $x$ that maximizes the volume.
After folding, the base measures $(12 - 2x)$ by $(12 - 2x)$ and the height is $x$, so
$$ V(x) = x(12 - 2x)^{2}, \qquad x \in [0, 6]. $$The physical domain is $[0,6]$ because the cut cannot exceed half the side. Differentiate using the product rule.
$$ V'(x) = (12 - 2x)^{2} + x\cdot 2(12 - 2x)(-2) = (12 - 2x)\big[(12 - 2x) - 4x\big] = (12 - 2x)(12 - 6x). $$Setting $V'(x) = 0$ gives $x = 6$ or $x = 2$. The endpoints $x = 0$ and $x = 6$ both yield $V = 0$ (a flat sheet or a sealed-up box of zero base), so compare the interior candidate: $V(2) = 2(8)^{2} = 128$. The maximum volume is $128$ cubic units at $x = 2$. The boundary check is essential, since the algebra alone offers $x = 6$ as a spurious critical value sitting at the useless endpoint.
用一张 $12 \times 12$ 的方形纸板,在四角各剪去边长为 $x$ 的小方块再折起四边,做成一个无盖盒子。求使体积最大的 $x$。
折起后,底面为 $(12 - 2x)$ 乘 $(12 - 2x)$,高为 $x$,故
$$ V(x) = x(12 - 2x)^{2}, \qquad x \in [0, 6]. $$实际定义域是 $[0,6]$,因为剪口不能超过边长的一半。用乘积法则求导。
$$ V'(x) = (12 - 2x)^{2} + x\cdot 2(12 - 2x)(-2) = (12 - 2x)\big[(12 - 2x) - 4x\big] = (12 - 2x)(12 - 6x). $$令 $V'(x) = 0$ 得 $x = 6$ 或 $x = 2$。端点 $x = 0$ 与 $x = 6$ 都给出 $V = 0$(一张平板,或底面为零的封死盒子),故比较内部候选:$V(2) = 2(8)^{2} = 128$。最大体积为 $128$ 立方单位,在 $x = 2$ 处取得。边界检查至关重要,因为单凭代数会给出 $x = 6$ 这个落在无用端点上的虚假临界值。
Going deeper: the optimal angle in Snell's law of refraction深入一步:折射的斯涅尔定律中的最优角度
A classic application of optimization is to derive the law that governs how light bends. Suppose light travels from a point $A$ in one medium to a point $B$ in another, crossing a flat boundary, and that its speed is $v_1$ above the boundary and $v_2$ below. Fermat's principle of least time says the actual path is the one that minimizes travel time.
Place the boundary on the $x$-axis. Let the horizontal distance between $A$ and $B$ be $d$, with the crossing point at horizontal position $x$ measured from the foot of $A$. If $A$ is at height $a$ and $B$ at depth $b$, the total time is
$$ T(x) = \frac{\sqrt{a^{2} + x^{2}}}{v_1} + \frac{\sqrt{b^{2} + (d - x)^{2}}}{v_2}. $$Differentiate and set $T'(x) = 0$:
$$ T'(x) = \frac{x}{v_1\sqrt{a^{2}+x^{2}}} - \frac{d - x}{v_2\sqrt{b^{2}+(d-x)^{2}}} = 0. $$Now recognize the two fractions as sines of the angles each ray makes with the vertical (the normal to the boundary): if $\theta_1$ and $\theta_2$ are those angles of incidence and refraction, then $\sin\theta_1 = \dfrac{x}{\sqrt{a^{2}+x^{2}}}$ and $\sin\theta_2 = \dfrac{d-x}{\sqrt{b^{2}+(d-x)^{2}}}$. The stationarity condition becomes
$$ \frac{\sin\theta_1}{v_1} = \frac{\sin\theta_2}{v_2}, $$which is exactly Snell's law. Because $T(x) \to \infty$ as $x \to \pm\infty$ and $T$ is smooth with a single critical point, that critical point is the global minimum. A purely geometric law of physics falls out of a one-variable minimization, a striking illustration of why optimization is a centerpiece of first-year calculus.
最优化的一个经典应用是推导支配光线弯折的定律。设光线从一种介质中的点 $A$ 出发,穿过一条平直界面,到达另一种介质中的点 $B$,且其速率在界面上方为 $v_1$、下方为 $v_2$。费马的最短时间原理指出,真实路径是使传播时间最短的那条。
把界面放在 $x$ 轴上。设 $A$ 与 $B$ 的水平距离为 $d$,过界点的水平位置为 $x$(从 $A$ 的垂足起算)。若 $A$ 在高度 $a$、$B$ 在深度 $b$,则总时间为
$$ T(x) = \frac{\sqrt{a^{2} + x^{2}}}{v_1} + \frac{\sqrt{b^{2} + (d - x)^{2}}}{v_2}. $$求导并令 $T'(x) = 0$:
$$ T'(x) = \frac{x}{v_1\sqrt{a^{2}+x^{2}}} - \frac{d - x}{v_2\sqrt{b^{2}+(d-x)^{2}}} = 0. $$现把这两个分式认作每条光线与竖直方向(界面法线)夹角的正弦:若入射角与折射角分别为 $\theta_1$ 与 $\theta_2$,则 $\sin\theta_1 = \dfrac{x}{\sqrt{a^{2}+x^{2}}}$,$\sin\theta_2 = \dfrac{d-x}{\sqrt{b^{2}+(d-x)^{2}}}$。驻点条件化为
$$ \frac{\sin\theta_1}{v_1} = \frac{\sin\theta_2}{v_2}, $$这正是斯涅尔定律(Snell's law)。由于 $x \to \pm\infty$ 时 $T(x) \to \infty$,且 $T$ 光滑、只有一个临界点,该临界点就是全局最小值。一条纯几何的物理定律竟从一元最小化中落出,鲜明地说明了为何最优化是大学一年级微积分的核心。
Flashcards速记卡
Unit Quiz单元测验
Readiness Checklist掌握度清单
Tap each item you can do without notes.点选每一项你能不看笔记就完成的内容。 0 / 8 mastered已掌握 0 / 8
- Find every critical point of a function, including those where the derivative is undefined.求出函数的每一个临界点,包括导数不存在之处。
- State the hypotheses and conclusion of the Mean Value Theorem and find the guaranteed point $c$.陈述中值定理的前提与结论,并求出它所保证的点 $c$。
- Use the sign of $f'$ to determine intervals of increase and decrease and apply the First Derivative Test.用 $f'$ 的符号确定递增、递减区间,并应用一阶导数判别法。
- Use $f''$ to determine concavity and locate inflection points, knowing when the Second Derivative Test is inconclusive.用 $f''$ 确定凹凸性并定位拐点,知道二阶导数判别法何时无法判定。
- Find vertical and horizontal asymptotes from the appropriate limits.由相应的极限求出竖直与水平渐近线。
- Assemble a complete curve sketch by combining domain, symmetry, intercepts, asymptotes, monotonicity, and concavity.综合定义域、对称性、截距、渐近线、单调性与凹凸性,拼出一张完整的曲线草图。
- Apply the Closed Interval Method to find absolute extrema on a closed bounded interval.应用闭区间法在有界闭区间上求绝对极值。
- Set up and solve an applied optimization problem by reducing it to a single-variable function on a feasible domain.通过把应用最优化问题化为可行定义域上的单变量函数来建立并求解它。