Files
MathematicalAnalysis/04微分与Taylor定理.tex
2022-11-07 11:08:25 +08:00

218 lines
9.3 KiB
TeX
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
\chapter{微分与Taylor定理}
\section{微分的概念与应用}
考虑函数的逼近问题:设$f:I \to \realnum$$x_0 \in I$$I$为区间)。考虑用一个多项式在$x_0$附近逼近$f(x)$比如用0次多项式$P_0(x)$逼近:
\[f(x_0 + \Delta x) \approx P_0(\delx) = a \quad \text{$\delx$比较小时)}\]
即我们希望
\[\tolim{\Delta x}{0} [f(x_0 + \Delta x) - P_0(\Delta x)] = 0\]
如果$f$$x_0$处连续,那么上式导出$a = f(x_0)$,即$P_0(\Delta x) = f(x_0)$
进一步,考虑用一次多项式$P_1(\Delta x) = a + bx$逼近$f(x)$
\[f(x + \Delta x) \approx P_1(\Delta x) \quad \text{$\delx$比较小时)}\]
即我们希望
\[\tolim{\Delta x}{0} [f(x_0 + \Delta x) - P_1(\Delta x)] = 0\]
和刚才一样,我们还能得到$a = f(x_0)$。那么$b$应满足什么要求?
\begin{definition}[微分]
$f$$x_0$点附近有定义,如果存在实数$\lambda$使得
\begin{equation*}\label{微分定义}\tag{$\ast$}
f(x_0 + \Delta x) = f(x_0) + \lambda \Delta x + o(\Delta x) \quad (\Delta x \to 0)
\end{equation*}
则称$f$$x_0$点可微,记$f$$x_0$点的微分为$\dif f(x_0) = \lambda \Delta x$$\lambda$称为$f$$x_0$点的微分系数。
\end{definition}
\begin{remark}
\eqref{微分定义}说明$f$$x_0$点附近有一次多项式近似
\[f(x_0 + \Delta x) \approx f(x_0) + \lambda \Delta x \quad \text{$\Delta x$很小)}\eqper\]
\end{remark}
回忆记号$o(\Delta x)$的含义,\eqref{微分定义}实际上表示的是
\[\frac{f(x_0 + \Delta x) - f(x_0) - \lambda \Delta x}{\Delta x} = \frac{o(\Delta x)}{\Delta x} \to 0\]
\[\tolim{\Delta x}{0} \left[\frac{f(x_0 + \Delta x) - f(x_0)}{\Delta x} - \lambda\right] = 0\]
从此我们可以看到$\lambda = \deriv{f}(x_0)$,这也就是刚才的$b$
\begin{corollary}[可微与可导的关系]
函数$f$$x_0$点可微的充分必要条件是$f$$x_0$点可导。这时微分系数$\lambda = \deriv{f}(x_0)$,即$\dif f(x_0) = \deriv{f}(x_0) \Delta x$
\end{corollary}
\begin{remark}
注意到$\dif x = \deriv{(x)}\Delta x = \Delta x$,因此我们可以将$\dif f(x) = \deriv{f}(x) \Delta x$改写成$\dif f(x) = \deriv{f}(x) \dif x$
\end{remark}
\begin{remark}
回忆Leibniz记号对于函数$y = f(x)$
\[\frac{\dif y}{\dif x} = \deriv{f}(x)\]
\[\dif y = \frac{\dif y}{\dif x} \dif x\eqper\]
\end{remark}
\begin{theorem}[微分的四则运算]
关于函数四则运算运算的微分,有下列法则:
\begin{enumerate}
\item $\dif (f \pm g) = \dif f \pm \dif g$
\item $\dif (fg) = g \dif f + f \dif g$
\item $\dif \left(\dfrac{f}{g}\right) = \dfrac{g \dif f - f \dif g}{g^2}$,其中$g \neq 0$
\end{enumerate}
\end{theorem}
\begin{theorem}[复合函数的微分]
设函数$x = \varphi(t)$$t$点可微,函数$y = f(x)$$x = \varphi(t)$点可微,则复合函数$y = (f \circ \varphi)(t) = f(\varphi(t))$$t$点可微,且
\[\dif y = \deriv{(f \circ \varphi)}(t) \dif t = \deriv{f}(\varphi(t))\deriv{\varphi}(t) \dif t \eqper\]
\end{theorem}
\begin{proof}
利用微分与导数的关系及复合函数求导法则即得。
\end{proof}
\begin{remark}
回忆Leibniz记号对于函数$y = f(x), x = \varphi(t)$
\[\frac{\dif y}{\dif t} = \frac{\dif y}{\dif x} \cdot \frac{\dif x}{\dif t}\]
因此有
\[\dif y = \frac{\dif y}{\dif x} \cdot \frac{\dif x}{\dif t} \dif t\eqper\]
\end{remark}
\section{带Peano余项的Taylor公式}
受引入微分概念的启发,如果我们想更精确低用$n$次多项式逼近$f(x)$,即我们希望用
\[P_n(\Delta x) = a_0 + a_1 \Delta x + \cdots + a_n \Delta x^n\]
逼近$f(x)$,那么它应该满足
\[f(x_0 + \Delta x) = P_n(\Delta x) + o(\Delta x^n)\eqper\]
以二次多项式的逼近为例,令
\[P_2(\Delta x) = a + b \Delta x + c \Delta x^2\]
满足
\[f(x_0 + \Delta x) = P_2(\Delta x) + o(\Delta x^2)\]
\[f(x_0 + \Delta x) - a - b \Delta x - c \Delta x^2 = o(\Delta x^2)\]
考虑$\Delta x \to 0$,则有
\begin{equation*}
\begin{aligned}
f(x_0 + \Delta x) - a \to 0 & \Rightarrow a = f(x_0)\\
\frac{f(x_0 + \Delta x) - a}{\Delta x} - b \to 0 & \Rightarrow b = \deriv{f}(x_0)\\
\frac{f(x_0 + \Delta x) - a - b \Delta x}{\Delta x^2} - c \to 0 & \Rightarrow c = \frac{f^{\prime \prime}(x_0)}{2}
\end{aligned}
\end{equation*}
这说明只要$f^{\prime \prime}(x_0)$存在就有
\[f(x_0 + \Delta x) = f(x_0) + \deriv{f}(x_0)\Delta x + \frac{f^{\prime \prime}(x_0)}{2}\Delta x^2 + o(\Delta x^2)\eqper\]
将其推广,我们有
\begin{definition}[Taylor多项式与Maclaurin多项式]
$f(x)$$x_0$附近有定义,且$f^{(n)}(x_0)$存在,引入多项式
\[P_n(\Delta x) = f(x_0) + \frac{\deriv{f}(x_0)}{1!}\Delta x + \frac{f^{\prime \prime}(x_0)}{2!}\Delta x^2 + \cdots + \frac{f^{(n)}(x_0)}{n!}\Delta x^n\]
称为$f(x)$$x_0$点的$n$次Taylor多项式。
特别地,在$x_0 = 0$Taylor多项式称为Maclaurin多项式
\[P_n = f(0) + \frac{\deriv{f}(0)}{1!}(x) + \frac{f^{\prime \prime}(0)}{2!}x^2 + \cdots + \frac{f^{(n)}(x)}{n!}x^n\eqper\]
\end{definition}
\begin{theorem}[Taylor公式]
$f(x)$$x_0$附近有定义,且$f^{(n)}(x_0)$存在,则
\[f(x_0 + \Delta x) = P_n(\Delta x) + o(\Delta x^n)\]
等价地
\[f(x) = P_n(x - x_0) + o((x-x_0)^n)\]
称为$f(x)$$x_0$带Peano型余项$n$阶/$n$次Taylor多项式展开。其中$o(\Delta x^n)$项称为Peano型余项。
\end{theorem}
\begin{proof}
注意到对$k = 1, 2, \cdots n$
\[P_n^{(k)}(\Delta x) = f^{(k)}(x_0) + \frac{f^{(k+1)}(x_0)}{1!} \Delta x + \cdots + \frac{f^{(n)}(x_0)}{(n-k)!}\Delta x^{n-k}\]
因此有$P_n^{(n-1)}(\Delta x) = f^{(n-1)}(x_0) + f^{(n)}(x_0)\Delta x$
已知条件中已经隐含了$f$$n$阶一下导数在$x_0$附近都存在,因此下面反复对``$\dfrac{0}{0}$型''极限运用L'Hospital法则
\begin{align*}
\tolim{\Delta x}{0}\frac{f(x_0+\Delta x) - P_n(\Delta x)}{\Delta x^n} & = \tolim{\Delta x}{0} \frac{\deriv{f}(x_0 + \Delta x) - \deriv{P}_n(\Delta x)}{n\Delta x^{n-1}}\\
& = \cdots = \tolim{\Delta x}{0} \frac{f^{(n-1)}(x_0 + \Delta x) - P_n^{(n-1)}(\Delta x)}{n(n-1)\cdots 2\cdot \Delta x}\\
& = \tolim{\Delta x}{0} \frac{f^{(n-1)}(x_0 + \Delta x) - f^{(n-1)}(x_0) - f^{(n)}(x_0)\Delta x}{n!\Delta x}\\
& = \frac{1}{n!} \tolim{\Delta x}{0} \left[\frac{f^{(n-1)}(x_0 + \Delta x) - f^{(n-1)}(x_0)}{\Delta x} - f^{(n)}(x_0) \right]\\
& = 0 \eqper \qedhere
\end{align*}
\end{proof}
\begin{example}
计算Maclaurin展开$f(x) = e^x$
\end{example}
\begin{proof}[解]
$f^{(k)}(x) = e^x$$f^{(k)}(0) = 1$$k = 1, 2, 3 \cdots$。因此
\[e^x = 1 + \frac{x}{1!} + \frac{x^2}{2!} + \cdots + \frac{x^n}{n!} + o(x^n)\eqper \qedhere\]
\end{proof}
\begin{example}
计算Maclaurin展开$f(x) = \sin x$
\end{example}
\begin{proof}[解]
$f^{(k)}(x) = \sin \left(x + \dfrac{k\pi}{2}\right)$$f^{(k)}(0) = \sin \dfrac{k\pi}{2}$$k = 0, 1, 2, \cdots$。因此
\begin{equation*}
f^{(k)} =
\begin{cases}
0, \quad k = 2m\\
(-1)^m, \quad k = 2m + 1
\end{cases}
,\quad m = 0, 1, 2\cdots
\end{equation*}
所以
\[\sin x = x - \frac{x^3}{3!} + \frac{x^5}{5!} - \cdots + (-1)^m \frac{x^{2m+1}}{(2m+1)!} + o(x^{2m+1})\eqper \qedhere\]
\end{proof}
\begin{example}
计算Maclaurin展开$f(x) = \cos x$
\end{example}
\begin{proof}[解]
类似上面,
\begin{equation*}
f^{(k)} =
\begin{cases}
(-1)^m, \quad k = 2m\\
0, \quad k = 2m + 1
\end{cases}
,\quad m = 0, 1, 2\cdots
\end{equation*}
所以
\[\cos x = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \cdots + (-1)^m\frac{x^{2m}}{(2m)!} + o(x^{2m})\eqper \qedhere\]
\end{proof}
\begin{example}
计算Maclaurin展开$f(x) = \ln (1 + x)$
\end{example}
\begin{proof}[解]
$f^{(k)}(x) = (-1)^{k-1}(k-1)!(1+x)^{k-1}$,因此$f^{(k)}(0) = (-1)^{k-1}(k-1)!$$k = 1, 2, \cdots$
所以
\[\ln (1 + x) = x - \frac{x^2}{2} + \frac{x^3}{3} - \cdots + (-1)^{n-1}\frac{x^n}{n} + o(x^n)\eqper\]
\end{proof}
\begin{example}
计算Maclaurin展开$f(x) = \arctan x$
\end{example}
\begin{proof}
\begin{equation*}
f^{(k)}(0)
\begin{cases}
0, \quad k = 2m\\
(-1)^m(2m)!, \quad k = 2m + 1
\end{cases}
m = 0, 1, 2, \cdots
\end{equation*}
因此
\[\arctan x = x - \frac{x^3}{3} + \frac{x^5}{5} - \cdots + (-1)^m \frac{x^{2m+1}}{2m + 1} + o(x^{2m+1})\eqper \qedhere\]
\end{proof}
\begin{example}
计算Maclaurin展开$f(x) = (1 + x)^\alpha$$\alpha \in \realnum$
\end{example}
\begin{proof}
$f^{(k)}(0) = \alpha (\alpha - 1)\cdots(\alpha - k + 1),\quad k = 1, 2, \cdots$,因此
\[(1 + x)^\alpha = 1 + \alpha x + \frac{\alpha (\alpha - 1)}{2!}x^2 + \cdots + \frac{\alpha (\alpha - 1) \cdots (\alpha - n + 1)}{n!}x^n + o(x^n)\eqper \qedhere\]
\end{proof}
\begin{remark}
上式的几个例子:
\begin{align*}
\frac{1}{1+x} = 1 - x + x^2 - x^3 + x^4 - \cdots + (-1)^n x^n + o(x^n) & \quad (\alpha = -1)\\
\sqrt{1 + x} 1 + \frac{1}{2}x - \frac{1}{8}x^2 + o(x^2) & \quad (\alpha = \frac{1}{2})\\
\frac{1}{\sqrt{1 + x}} = 1 - \frac{1}{2}x + \frac{3}{8}x^2 + o(x^2) & \quad (\alpha = -\frac{1}{2})
\end{align*}
\end{remark}