泰勒公式(Taylor‘s Formula)

泰勒定理

对于一般的函数,泰勒公式的系数的选择依赖于函数在一点的各阶导数值。这个想法的原由可以由微分的定义开始。微分是函数在一点附近的最佳线性近似:

f ( a + h ) = f ( a ) + f ′ ( a ) h + o ( h ) , 其中 o ( h ) 是比 h 高阶 的无穷小。 f(a + h) = f(a) + f^{\prime}(a)h + o(h),其中 o(h) 是比 h \textbf{高阶} 的无穷小。 \nonumber f(a+h)=f(a)+f(a)h+o(h),其中o(h)是比h高阶的无穷小。

也就是说 f ( a + h ) ≈ f ( a ) + f ′ ( a ) h \displaystyle f(a + h) \approx f(a) + f^{\prime}(a)h f(a+h)f(a)+f(a)h , 或 f ( x ) ≈ f ( a ) + f ′ ( a ) ( x − a ) \displaystyle f(x) \approx f(a) + f^{\prime}(a)(x - a) f(x)f(a)+f(a)(xa)

注意到 f ( x ) \displaystyle f(x) f(x) f ( a ) + f ′ ( a ) ( x − a ) \displaystyle f(a) + f^{\prime}(a)(x - a) f(a)+f(a)(xa) a \displaystyle a a 处的零阶导数和一阶导数相同。对 足够光滑 的函数,如果一个多项式在 a \displaystyle a a 处的前 n \displaystyle n n 次导数值都与函数在 a \displaystyle a a 处的前 n \displaystyle n n 次导数值重合,那么这个多项式应该能很好地近似描述函数在 a \displaystyle a a 附近的情况。

定理:
n \displaystyle n n 是一个正整数,如果定义在一个包含 a \displaystyle a a 的区间上的函数 f \displaystyle f f a \displaystyle a a 点处 n + 1 \displaystyle n + 1 n+1 次可导,那么对于这个区间上的任意 x \displaystyle x x 都有:

f ( x ) = f ( a ) + f ′ ( a ) 1 ! ( x − a ) + f ( 2 ) ( a ) 2 ! ( x − a ) 2 + ⋯ + f ( n ) ( a ) n ! ( x − a ) n + R n ( x ) f(x) = f(a) + \cfrac{f^{\prime}(a)}{1!}(x - a) + \cfrac{f^{(2)}(a)}{2!}(x - a)^2 + \cdots + \cfrac{f^{(n)}(a)}{n!}(x - a)^n + R_n(x) \nonumber f(x)=f(a)+1!f(a)(xa)+2!f(2)(a)(xa)2++n!f(n)(a)(xa)n+Rn(x)

其中的多项式称为函数在 a \displaystyle a a 处的 泰勒展开式 ,剩余的 R n ( x ) \displaystyle R_n(x) Rn(x) 是泰勒公式的 余项 ,是 ( x − a ) n \displaystyle (x - a)^n (xa)n高阶无穷小

R n ( x ) \displaystyle R_n(x) Rn(x) 的表达式有若干种,分别以不同的数学家命名。

带有 皮亚诺型余项 的泰勒公式说明了多项式和函数的接近程度:

f ( x ) = f ( a ) + f ′ ( a ) 1 ! ( x − a ) + f ( 2 ) ( a ) 2 ! ( x − a ) 2 + ⋯ + f ( n ) ( a ) n ! ( x − a ) n + o [ ( x − a ) n ] f(x) = f(a) + \cfrac{f^{\prime}(a)}{1!}(x - a) + \cfrac{f^{(2)}(a)}{2!}(x - a)^2 + \cdots + \cfrac{f^{(n)}(a)}{n!}(x - a)^n + o \left[ (x - a)^n \right] \nonumber f(x)=f(a)+1!f(a)(xa)+2!f(2)(a)(xa)2++n!f(n)(a)(xa)n+o[(xa)n]

也就是说,当 x \displaystyle x x 无限趋近 a \displaystyle a a 时,余项 R n ( x ) \displaystyle R_{n}(x) Rn(x) 将会是 ( x − a ) n {\displaystyle (x-a)^{n}} (xa)n 的高阶无穷小,或者说多项式和函数的误差将远小于 ( x − a ) n {\displaystyle (x-a)^{n}} (xa)n 。这个结论可以由下面更强的结论推出。

带有 拉格朗日型余项 的泰勒公式可以视为拉格朗日微分中值定理的推广:

f ( x ) = f ( a ) + f ′ ( a ) 1 ! ( x − a ) + f ( 2 ) ( a ) 2 ! ( x − a ) 2 + ⋯ + f ( n ) ( a ) n ! ( x − a ) n + f ( n + 1 ) ( θ ) ( n + 1 ) ! ( x − a ) n + 1 f(x) = f(a) + \cfrac{f^{\prime}(a)}{1!}(x - a) + \cfrac{f^{(2)}(a)}{2!}(x - a)^2 + \cdots + \cfrac{f^{(n)}(a)}{n!}(x - a)^n + \cfrac{f^{(n + 1)}(\theta)}{(n + 1)!}(x - a)^{n + 1} \nonumber f(x)=f(a)+1!f(a)(xa)+2!f(2)(a)(xa)2++n!f(n)(a)(xa)n+(n+1)!f(n+1)(θ)(xa)n+1

R n ( x ) = f ( n + 1 ) ( θ ) ( n + 1 ) ! ( x − a ) n + 1 \displaystyle R_n(x) = \cfrac{f^{(n + 1)}(\theta)}{(n + 1)!}(x - a)^{n + 1} Rn(x)=(n+1)!f(n+1)(θ)(xa)n+1 ,其中 θ ∈ ( a , x ) \displaystyle \theta \in (a, x) θ(a,x)

带有 积分型余项 的泰勒公式可以看做微积分基本定理的推广:

R n ( x ) = ∫ a x f ( n + 1 ) ( t ) n ! ( x − t ) n d t R_n(x) = \int_a^x \cfrac{f^{(n + 1)}(t)}{n!} (x - t)^n \mathrm{d}t \nonumber Rn(x)=axn!f(n+1)(t)(xt)ndt

余项估计

拉格朗日型余项或积分型余项可以帮助估计泰勒展开式和函数在一定区间之内的误差。设函数在区间 [ a − r , a + r ] \displaystyle [a − r, a + r] [ar,a+r] n \displaystyle n n 次连续可微并且在区间 ( a − r , a + r ) \displaystyle (a − r, a + r) (ar,a+r) n + 1 \displaystyle n + 1 n+1 次可导。如果存在正实数 M n \displaystyle M_n Mn 使得区间 ( a − r , a + r ) \displaystyle (a − r, a + r) (ar,a+r) 里的任意 x \displaystyle x x 都有 ∣ f ( n + 1 ) ( x ) ∣ ⩽ M n \displaystyle \left| f^{(n + 1)}(x) \right| \leqslant M_n f(n+1)(x) Mn,那么:

f ( x ) = f ( a ) + f ′ ( a ) 1 ! ( x − a ) + f ( 2 ) ( a ) 2 ! ( x − a ) 2 + ⋯ + f ( n ) ( a ) n ! ( x − a ) n + R n ( x ) f(x) = f(a) + \cfrac{f^{\prime}(a)}{1!}(x - a) + \cfrac{f^{(2)}(a)}{2!}(x - a)^2 + \cdots + \cfrac{f^{(n)}(a)}{n!}(x - a)^n + R_n(x) \nonumber f(x)=f(a)+1!f(a)(xa)+2!f(2)(a)(xa)2++n!f(n)(a)(xa)n+Rn(x)

其中 ∣ R n ( x ) ∣ ⩽ M n r n + 1 ( n + 1 ) ! \displaystyle \left \vert R_n(x) \right \vert \leqslant M_n \cfrac{r^{n + 1}}{(n + 1)!} Rn(x)Mn(n+1)!rn+1 。这个上界估计对区间 ( a − r , a + r ) \displaystyle (a - r, a + r) (ar,a+r) 里的任意 x \displaystyle x x 都成立,是一个一致估计。

如果当 n \displaystyle n n 趋向于无穷大时,还有 M n r ( n + 1 ) ( n + 1 ) ! → 0 \displaystyle M_n \cfrac{r^(n + 1)}{(n + 1)!} \rightarrow 0 Mn(n+1)!r(n+1)0 ,那么可以推出 R n ( x ) → 0 \displaystyle R_n(x) \rightarrow 0 Rn(x)0 f \displaystyle f f 是区间 ( a − r , a + r ) \displaystyle (a - r, a + r) (ar,a+r) 上的解析函数。 f \displaystyle f f 在区间 ( a − r , a + r ) \displaystyle (a - r, a + r) (ar,a+r) 上任意一点的值都等于在这一点的 泰勒展开式的极限

麦克劳林公式

对于一个在 实数或复数 a \displaystyle a a 邻域上,以实数作为变量或以复数作为变量的函数,并且是无穷可微的函数 f ( x ) \displaystyle f(x) f(x) ,它的泰勒级数是以下这种形式的幂级数:

f ( x ) = ∑ n = 0 ∞ f ( n ) ( a ) n ! ( x − a ) n \displaystyle f(x) = \sum_{n = 0}^{\infty} \cfrac{f^{(n)}(a)}{n!}(x - a)^n \nonumber f(x)=n=0n!f(n)(a)(xa)n

如果 a = 0 \displaystyle a=0 a=0 ,也可以把这个级数称为麦克劳林级数

解析函数

如果泰勒级数对于区间 ( a − r , a + r ) \displaystyle (a-r,a+r) (ar,a+r) 中的所有 x \displaystyle x x都收敛并且级数的和等于 f ( x ) \displaystyle f(x) f(x) ,那么我们就称函数 f ( x ) \displaystyle f(x) f(x)解析函数或解析形的函数 (analytic)。一个函数 当且仅当(简单地说,“只有在且只要在”)能够被表示为 幂级数 的形式时,才是解析形的函数。通常会用 泰勒定理 来估计级数的 余项 ,这样就能够确定级数是否收敛于 f ( x ) \displaystyle f(x) f(x) 。上面给出的幂级数展开式中的系数正好是泰勒级数中的系数。

以下三个事实可以说明为什么泰勒级数是十分重要的:

  1. 可以逐项对幂级数的计算微分和积分,因此求和函数相对比较容易。
  2. 数学家因此能够在复数平面上研究函数,因为一个解析函数,也可以被定义为在复平面中一个开放的区间内的解析函数(在区间内每一个点上都能被微分的函数)。
  3. 可用泰勒级数估计,在某一点上函数会计算出什么值。

常用的函数的麦克劳林级数

几何级数

1 1 − x = ∑ n = 0 ∞ x n = 1 + x + x 2 + ⋯ + x n + ⋯ ∀ x : ∣ x ∣ < 1 \cfrac{1}{1 - x} = \sum_{n = 0}^{\infty} x^n = 1 + x + x^2 + \cdots + x^n + \cdots \quad \forall x : \lvert x \rvert < 1 \nonumber 1x1=n=0xn=1+x+x2++xn+x:x<1

二项式级数

( 1 + x ) α = 1 + α x + α ( α − 1 ) 2 ! x 2 + ⋯ + α ( α − 1 ) ⋯ ( α − n + 1 ) n ! x n + ⋯ ∀ x : ∣ x ∣ < 1 , ∀ α ∈ C (1 + x)^{\alpha} = 1 + \alpha x + \cfrac{\alpha (\alpha - 1)}{2!} x^2 + \cdots + \cfrac{\alpha (\alpha - 1) \cdots (\alpha - n + 1)}{n!} x^n + \cdots \quad \forall x : \lvert x \rvert < 1, \forall \alpha \in \mathbb{C} \nonumber (1+x)α=1+αx+2!α(α1)x2++n!α(α1)(αn+1)xn+x:x<1,αC

指数函数和自然对数

e x = ∑ n = 0 ∞ x n n ! = 1 + x + x 2 2 ! + x 3 3 ! + ⋯ + x n n ! + ⋯ ∀ x (对所有x都成立)   ln ⁡ ( 1 − x ) = − ∑ n = 1 ∞ x n n = − x − x 2 2 − x 3 3 − ⋯ − x n n − ⋯ ∀ x ∈ [ − 1 , 1 ) (对于在区间[-1,1)内所有的x都成立)   ln ⁡ ( 1 + x ) = ∑ n = 1 ∞ ( − 1 ) n + 1 n x n = x − x 2 2 + x 3 3 − ⋯ + ( − 1 ) n + 1 n x n + ⋯ ∀ x ∈ ( − 1 , 1 ] (对于在区间(-1,1]内所有的x都成立) \begin{align} e^{x} &=& \sum_{n=0}^{\infty} \frac{x^{n}}{n !} &=& 1 + x + \frac{x^{2}}{2!} + \frac{x^{3}}{3!} + \cdots + \frac{x^{n}}{n!} + \cdots &\quad \forall x \quad \text{(对所有x都成立)} \nonumber \\\ \ln(1 - x) &=& -\sum_{n = 1}^{\infty} \frac{x^{n}}{n} &=& -x - \frac{x^{2}}{2} - \frac{x^{3}}{3} - \cdots - \frac{x^{n}}{n} - \cdots &\quad \forall x \in [-1,1) \quad \text{(对于在区间[-1,1)内所有的x都成立)} \nonumber \\\ \ln(1 + x) &=& \sum_{n = 1}^{\infty} \frac{(-1)^{n + 1}}{n} x^{n} &=& x - \frac{x^{2}}{2} + \frac{x^{3}}{3} - \cdots + \frac{(-1)^{n+1}}{n} x^{n} + \cdots &\quad \forall x \in(-1,1] \quad \text{(对于在区间(-1,1]内所有的x都成立)} \nonumber \end{align} ex ln(1x) ln(1+x)===n=0n!xnn=1nxnn=1n(1)n+1xn===1+x+2!x2+3!x3++n!xn+x2x23x3nxnx2x2+3x3+n(1)n+1xn+x(对所有x都成立)x[1,1)(对于在区间[-1,1)内所有的x都成立)x(1,1](对于在区间(-1,1]内所有的x都成立)

三角函数

sin ⁡ x = ∑ n = 0 ∞ ( − 1 ) n ( 2 n + 1 ) ! x 2 n + 1 = x − x 3 3 ! + x 5 5 ! − ⋯ ∀ x   cos ⁡ x = ∑ n = 0 ∞ ( − 1 ) n ( 2 n ) ! x 2 n = 1 − x 2 2 ! + x 4 4 ! − ⋯ ∀ x   arcsin ⁡ x = ∑ n = 0 ∞ ( 2 n ) ! 4 n ( n ! ) 2 ( 2 n + 1 ) x 2 n + 1 = x + x 3 6 + 3 x 5 40 + ⋯ ∀ x : ∣ x ∣ ≤ 1   arccos ⁡ x = π 2 − arcsin ⁡ x   = π 2 − ∑ n = 0 ∞ ( 2 n ) ! 4 n ( n ! ) 2 ( 2 n + 1 ) x 2 n + 1 = π 2 − x − x 3 6 − 3 x 5 40 + ⋯ ∀ x : ∣ x ∣ ≤ 1   arctan ⁡ x = ∑ n = 0 ∞ ( − 1 ) n 2 n + 1 x 2 n + 1 = x − x 3 3 + x 5 5 − ⋯ ∀ x : ∣ x ∣ ≤ 1 , x ≠ ± i \begin{align} \sin x &=& \sum_{n = 0}^{\infty} \frac{(-1)^{n}}{(2n + 1)!} x^{2n + 1} &=& x - \frac{x^{3}}{3!} + \frac{x^{5}}{5!} - \cdots &\quad \forall x \nonumber \\\ \cos x &=& \sum_{n = 0}^{\infty} \frac{(-1)^{n}}{(2n)!} x^{2n} &=& 1 - \frac{x^{2}}{2!} + \frac{x^{4}}{4!} - \cdots &\quad \forall x \nonumber \\\ \arcsin x &=& \sum_{n = 0}^{\infty} \frac{(2 n)!}{4^{n}(n!)^{2}(2n + 1)} x^{2n + 1} &=& x + \frac{x^{3}}{6} + \frac{3 x^{5}}{40} + \cdots &\quad \forall x:|x| \leq 1 \nonumber \\\ \arccos x &=& \frac{\pi}{2} - \arcsin x \nonumber \\\ &=& \frac{\pi}{2} - \sum_{n = 0}^{\infty} \frac{(2n)!}{4^{n}(n!)^{2}(2n + 1)} x^{2n + 1} &=& \frac{\pi}{2} - x - \frac{x^{3}}{6} - \frac{3x^{5}}{40} + \cdots &\quad \forall x:|x| \leq 1 \nonumber \\\ \arctan x &=& \sum_{n= 0 }^{\infty} \frac{(-1)^{n}}{2n + 1} x^{2n + 1} &=& x - \frac{x^{3}}{3} + \frac{x^{5}}{5} - \cdots &\quad \forall x:|x| \leq 1, x \neq \pm i \nonumber \end{align} sinx cosx arcsinx arccosx  arctanx======n=0(2n+1)!(1)nx2n+1n=0(2n)!(1)nx2nn=04n(n!)2(2n+1)(2n)!x2n+12πarcsinx2πn=04n(n!)2(2n+1)(2n)!x2n+1n=02n+1(1)nx2n+1=====x3!x3+5!x512!x2+4!x4x+6x3+403x5+2πx6x3403x5+x3x3+5x5xxx:x1x:x1x:x1,x=±i

几个重要的低阶展开的麦克劳林公式

  1. sin ⁡ x = x − x 3 3 ! + O ( x 3 ) , arcsin ⁡ x = x + x 3 3 ! + O ( x 3 ) \displaystyle {\sin x=x-\frac{x^{3}}{3 !}+O\left(x^{3}\right), \arcsin x=x+\frac{x^{3}}{3 !}+O\left(x^{3}\right)} sinx=x3!x3+O(x3),arcsinx=x+3!x3+O(x3)
  2. tan ⁡ x = x + x 3 3 + O ( x 3 ) , arctan ⁡ x = x − x 3 3 + O ( x 3 ) \displaystyle {\tan x=x+\frac{x^{3}}{3}+O\left(x^{3}\right), \arctan x=x-\frac{x^{3}}{3}+O\left(x^{3}\right)} tanx=x+3x3+O(x3),arctanx=x3x3+O(x3)
  3. cos ⁡ x = 1 − x 2 2 ! + x 4 4 ! + O ( x 4 ) , arccos ⁡ x = π 2 − x − x 3 3 ! − O ( x 3 ) \displaystyle {\cos x=1-\frac{x^{2}}{2 !}+\frac{x^{4}}{4 !}+O\left(x^{4}\right), \arccos x=\frac{\pi}{2}-x-\frac{x^{3}}{3 !}-O\left(x^{3}\right)} cosx=12!x2+4!x4+O(x4),arccosx=2πx3!x3O(x3)
  4. ln ⁡ ( 1 + x ) = x − x 2 2 + x 3 3 + O ( x 3 ) \displaystyle {\ln (1+x)=x-\frac{x^{2}}{2}+\frac{x^{3}}{3}+O\left(x^{3}\right)} ln(1+x)=x2x2+3x3+O(x3)
  5. e x = 1 + x + x 2 2 ! + x 3 3 ! + O ( x 3 ) \displaystyle {e^{x}=1+x+\frac{x^{2}}{2 !}+\frac{x^{3}}{3 !}+O\left(x^{3}\right)} ex=1+x+2!x2+3!x3+O(x3)
  6. ( 1 + x ) α = 1 + α x + α ( α − 1 ) 2 ! x 2 + O ( x 2 ) \displaystyle {(1+x)^{\alpha}=1+\alpha x+\frac{\alpha(\alpha-1)}{2 !} x^{2}+O\left(x^{2}\right)} (1+x)α=1+αx+2!α(α1)x2+O(x2)

原文链接:泰勒公式

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值