Difference between revisions of "Taylor's Theorem"

From Department of Mathematics at UTSA
Jump to navigation Jump to search
(Created page with "File:Taylorspolynomialexbig.svg|thumb|right|300px|The exponential function ''y'' = ''e''<sup>''x''</sup> (red) and the corresponding Taylor polynomial of degree fo...")
 
 
(One intermediate revision by the same user not shown)
Line 90: Line 90:
 
<blockquote style="background: white; border: 1px solid black; padding: 1em;">  
 
<blockquote style="background: white; border: 1px solid black; padding: 1em;">  
 
:'''Mean-value forms of the remainder'''
 
:'''Mean-value forms of the remainder'''
:Let ''f'' : '''R''' → '''R'''  be ''k''&nbsp;+&nbsp;1 times differentiable on the open interval with ''f''{{i sup|(''k+1'')}} continuous on the closed interval between ''a'' and ''x''. Then
+
:Let ''f'' : '''R''' → '''R'''  be ''k''&nbsp;+&nbsp;1 times differentiable on the open interval with ''f''<sup>(''k+1'')</sup> continuous on the closed interval between ''a'' and ''x''. Then
  
 
:<math> R_k(x) = \frac{f^{(k+1)}(\xi_L)}{(k+1)!} (x-a)^{k+1} </math>
 
:<math> R_k(x) = \frac{f^{(k+1)}(\xi_L)}{(k+1)!} (x-a)^{k+1} </math>
  
for some real number ''ξ<sub>L</sub>'' between ''a'' and ''x''. This is the '''Lagrange form''' of the remainder.  
+
:for some real number ''ξ<sub>L</sub>'' between ''a'' and ''x''. This is the '''Lagrange form''' of the remainder.  
  
Similarly,
+
:Similarly,
  
 
:<math> R_k(x) = \frac{f^{(k+1)}(\xi_C)}{k!}(x-\xi_C)^k(x-a) </math>
 
:<math> R_k(x) = \frac{f^{(k+1)}(\xi_C)}{k!}(x-\xi_C)^k(x-a) </math>
  
for some real number ''ξ<sub>C</sub>'' between ''a'' and ''x''. This is the '''Cauchy form''' of the remainder.
+
:for some real number ''ξ<sub>C</sub>'' between ''a'' and ''x''. This is the '''Cauchy form''' of the remainder.
 
</blockquote>
 
</blockquote>
  
Line 172: Line 172:
 
=== Taylor expansions of real analytic functions ===
 
=== Taylor expansions of real analytic functions ===
  
Let ''I'' ⊂ '''R''' be an [[open interval]]. By definition, a function ''f'' : ''I'' → '''R''' is real analytic if it is locally defined by a convergent power series. This means that for every ''a''&nbsp;∈&nbsp;''I'' there exists some ''r''&nbsp;>&nbsp;0 and a sequence of coefficients ''c<sub>k</sub>''&nbsp;∈&nbsp;'''R''' such that (''a'' − ''r'', ''a'' + ''r'') ⊂ ''I'' and
+
Let ''I'' ⊂ '''R''' be an open interval. By definition, a function ''f'' : ''I'' → '''R''' is real analytic if it is locally defined by a convergent power series. This means that for every ''a''&nbsp;∈&nbsp;''I'' there exists some ''r''&nbsp;>&nbsp;0 and a sequence of coefficients ''c<sub>k</sub>''&nbsp;∈&nbsp;'''R''' such that (''a'' − ''r'', ''a'' + ''r'') ⊂ ''I'' and
  
 
:<math> f(x) = \sum_{k=0}^\infty c_k(x-a)^k = c_0 + c_1(x-a) + c_2(x-a)^2 + \cdots, \qquad |x-a|<r. </math>
 
:<math> f(x) = \sum_{k=0}^\infty c_k(x-a)^k = c_0 + c_1(x-a) + c_2(x-a)^2 + \cdots, \qquad |x-a|<r. </math>
Line 237: Line 237:
 
\end{cases}</math>
 
\end{cases}</math>
  
for some polynomial ''p<sub>k</sub>'' of degree 2(''k'' − 1). The function <math>e^{-\frac{1}{x^2}}</math> tends to zero faster than any polynomial as ''x'' → 0, so ''f'' is infinitely many times differentiable and {{nowrap|1=''f''{{i sup|(''k'')}}(0) = 0}} for every positive integer ''k''. The above results all hold in this case:
+
for some polynomial ''p<sub>k</sub>'' of degree 2(''k'' − 1). The function <math>e^{-\frac{1}{x^2}}</math> tends to zero faster than any polynomial as ''x'' → 0, so ''f'' is infinitely many times differentiable and ''f''<sup>(k)</sup>(0) = 0}} for every positive integer ''k''. The above results all hold in this case:
  
 
* The Taylor series of ''f'' converges uniformly to the zero function ''T<sub>f</sub>''(''x'')&nbsp;=&nbsp;0, which is analytic with all coefficients equal to zero.
 
* The Taylor series of ''f'' converges uniformly to the zero function ''T<sub>f</sub>''(''x'')&nbsp;=&nbsp;0, which is analytic with all coefficients equal to zero.
Line 246: Line 246:
 
=== Taylor's theorem in complex analysis ===
 
=== Taylor's theorem in complex analysis ===
  
Taylor's theorem generalizes to functions ''f'' : '''C''' → '''C''' which are [[complex differentiable]] in an open subset ''U''&nbsp;⊂&nbsp;'''C''' of the [[complex plane]]. However, its usefulness is dwarfed by other general theorems in [[complex analysis]]. Namely, stronger versions of related results can be deduced for [[complex differentiable]] functions ''f''&nbsp;:&nbsp;''U''&nbsp;→&nbsp;'''C''' using [[Cauchy's integral formula]] as follows.
+
Taylor's theorem generalizes to functions ''f'' : '''C''' → '''C''' which are complex differentiable in an open subset ''U''&nbsp;⊂&nbsp;'''C''' of the complex plane. However, its usefulness is dwarfed by other general theorems in complex analysis. Namely, stronger versions of related results can be deduced for complex differentiable functions ''f''&nbsp;:&nbsp;''U''&nbsp;→&nbsp;'''C''' using Cauchy's integral formula as follows.
  
Let ''r''&nbsp;>&nbsp;0 such that the [[closed disk]] ''B''(''z'',&nbsp;''r'')&nbsp;∪&nbsp;''S''(''z'',&nbsp;''r'') is contained in ''U''. Then Cauchy's integral formula with a positive parametrization {{nowrap|1=''γ''(''t'') = ''z'' + ''re<sup>it</sup>''}} of the circle ''S''(''z'', ''r'') with {{nowrap|''t'' ∈ [0, 2{{pi}}]}} gives
+
Let ''r''&nbsp;>&nbsp;0 such that the closed disk ''B''(''z'',&nbsp;''r'')&nbsp;∪&nbsp;''S''(''z'',&nbsp;''r'') is contained in ''U''. Then Cauchy's integral formula with a positive parametrization ''γ''(''t'') = ''z'' + ''re<sup>it</sup>'' of the circle ''S''(''z'', ''r'') with ''t'' ∈ [0, 2<math>\pi</math>] gives
  
 
:<math>f(z) = \frac{1}{2\pi i}\int_\gamma \frac{f(w)}{w-z}\,dw, \quad f'(z) = \frac{1}{2\pi i}\int_\gamma \frac{f(w)}{(w-z)^2} \, dw, \quad \ldots, \quad f^{(k)}(z) = \frac{k!}{2\pi i}\int_\gamma \frac{f(w)}{(w-z)^{k+1}} \, dw.</math>
 
:<math>f(z) = \frac{1}{2\pi i}\int_\gamma \frac{f(w)}{w-z}\,dw, \quad f'(z) = \frac{1}{2\pi i}\int_\gamma \frac{f(w)}{(w-z)^2} \, dw, \quad \ldots, \quad f^{(k)}(z) = \frac{k!}{2\pi i}\int_\gamma \frac{f(w)}{(w-z)^{k+1}} \, dw.</math>
  
Here all the integrands are continuous on the [[circle]] ''S''(''z'',&nbsp;''r''), which justifies differentiation under the integral sign. In particular, if ''f'' is once [[complex differentiable]] on the open set ''U'', then it is actually infinitely many times [[complex differentiable]] on ''U''. One also obtains the Cauchy's estimates<ref>{{harvnb|Rudin|1987|loc=§10.26}}</ref>
+
Here all the integrands are continuous on the circle ''S''(''z'',&nbsp;''r''), which justifies differentiation under the integral sign. In particular, if ''f'' is once complex differentiable  on the open set ''U'', then it is actually infinitely many times complex differentiable on ''U''. One also obtains the Cauchy's estimates
  
 
:<math>  |f^{(k)}(z)| \leq \frac{k!}{2\pi}\int_\gamma \frac{M_r}{|w-z|^{k+1}} \, dw = \frac{k!M_r}{r^k}, \quad M_r = \max_{|w-c|=r}|f(w)| </math>
 
:<math>  |f^{(k)}(z)| \leq \frac{k!}{2\pi}\int_\gamma \frac{M_r}{|w-z|^{k+1}} \, dw = \frac{k!M_r}{r^k}, \quad M_r = \max_{|w-c|=r}|f(w)| </math>
  
for any ''z''&nbsp;∈&nbsp;''U'' and ''r''&nbsp;>&nbsp;0 such that ''B''(''z'',&nbsp;''r'')&nbsp;∪&nbsp;''S''(''c'',&nbsp;''r'')&nbsp;⊂&nbsp;''U''. These estimates imply that the [[complex number|complex]] [[Taylor series]]
+
for any ''z''&nbsp;∈&nbsp;''U'' and ''r''&nbsp;>&nbsp;0 such that ''B''(''z'',&nbsp;''r'')&nbsp;∪&nbsp;''S''(''c'',&nbsp;''r'')&nbsp;⊂&nbsp;''U''. These estimates imply that the complex Taylor series
  
 
:<math> T_f(z) =  \sum_{k=0}^\infty \frac{f^{(k)}(c)}{k!}(z-c)^k </math>
 
:<math> T_f(z) =  \sum_{k=0}^\infty \frac{f^{(k)}(c)}{k!}(z-c)^k </math>
  
of ''f'' converges uniformly on any [[open disk]] ''B''(''c'',&nbsp;''r'')&nbsp;⊂&nbsp;''U'' with ''S''(''c'',&nbsp;''r'')&nbsp;⊂&nbsp;''U'' into some function ''T<sub>f</sub>''. Furthermore, using the contour integral formulas for the derivatives ''f''{{i sup|(''k'')}}(''c''),
+
of ''f'' converges uniformly on any open disk ''B''(''c'',&nbsp;''r'')&nbsp;⊂&nbsp;''U'' with ''S''(''c'',&nbsp;''r'')&nbsp;⊂&nbsp;''U'' into some function ''T<sub>f</sub>''. Furthermore, using the contour integral formulas for the derivatives ''f''<sup>(k)</sup>(''c''),
  
 
:<math>\begin{align}  
 
:<math>\begin{align}  
Line 269: Line 269:
 
\end{align}</math>
 
\end{align}</math>
  
so any [[complex derivative|complex differentiable]] function ''f'' in an open set ''U''&nbsp;⊂&nbsp;'''C''' is in fact [[complex analytic]]. All that is said for real analytic functions [[Taylor's theorem#Relationship to analyticity##Taylor expansions of analytic functions|here]] holds also for complex analytic functions with the open interval ''I'' replaced by an open subset ''U''&nbsp;∈&nbsp;'''C''' and ''a''-centered intervals (''a''&nbsp;−&nbsp;''r'',&nbsp;''a''&nbsp;+&nbsp;''r'') replaced by ''c''-centered disks ''B''(''c'',&nbsp;''r''). In particular, the Taylor expansion holds in the form
+
so any complex differentiable function ''f'' in an open set ''U''&nbsp;⊂&nbsp;'''C''' is in fact complex analytic. All that is said for real analytic functions here holds also for complex analytic functions with the open interval ''I'' replaced by an open subset ''U''&nbsp;∈&nbsp;'''C''' and ''a''-centered intervals (''a''&nbsp;−&nbsp;''r'',&nbsp;''a''&nbsp;+&nbsp;''r'') replaced by ''c''-centered disks ''B''(''c'',&nbsp;''r''). In particular, the Taylor expansion holds in the form
  
 
:<math> f(z) = P_k(z) + R_k(z), \quad P_k(z) = \sum_{j=0}^k \frac{f^{(j)}(c)}{j!}(z-c)^j, </math>
 
:<math> f(z) = P_k(z) + R_k(z), \quad P_k(z) = \sum_{j=0}^k \frac{f^{(j)}(c)}{j!}(z-c)^j, </math>
  
where the remainder term ''R<sub>k</sub>'' is complex analytic. Methods of complex analysis provide some powerful results regarding Taylor expansions. For example, using Cauchy's integral formula for any positively oriented [[Jordan curve]] ''γ'' which parametrizes the boundary ∂''W''&nbsp;⊂&nbsp;''U'' of a region ''W''&nbsp;⊂&nbsp;''U'', one obtains expressions for the derivatives {{nowrap|''f''{{i sup|(''j'')}}(''c'')}} as above, and modifying slightly the computation for {{nowrap|1=''T<sub>f</sub>''(''z'') = ''f''(''z'')}}, one arrives at the exact formula
+
where the remainder term ''R<sub>k</sub>'' is complex analytic. Methods of complex analysis provide some powerful results regarding Taylor expansions. For example, using Cauchy's integral formula for any positively oriented Jordan curve ''γ'' which parametrizes the boundary ∂''W''&nbsp;⊂&nbsp;''U'' of a region ''W''&nbsp;⊂&nbsp;''U'', one obtains expressions for the derivatives ''f''<sup>(j)</sup>(''c'') as above, and modifying slightly the computation for ''T<sub>f</sub>''(''z'') = ''f''(''z''), one arrives at the exact formula
  
 
:<math> R_k(z) = \sum_{j=k+1}^\infty  \frac{(z-c)^j}{2\pi i} \int_\gamma \frac{f(w)}{(w-c)^{j+1}} \, dw = \frac{(z-c)^{k+1}}{2\pi i} \int_\gamma \frac{f(w) \, dw}{(w-c)^{k+1}(w-z)} , \qquad z\in W. </math>
 
:<math> R_k(z) = \sum_{j=k+1}^\infty  \frac{(z-c)^j}{2\pi i} \int_\gamma \frac{f(w)}{(w-c)^{j+1}} \, dw = \frac{(z-c)^{k+1}}{2\pi i} \int_\gamma \frac{f(w) \, dw}{(w-c)^{k+1}(w-z)} , \qquad z\in W. </math>
Line 286: Line 286:
 
=== Example ===
 
=== Example ===
  
[[File:Function with two poles.png|thumb|right|Complex plot of ''f''(''z'')&nbsp;=&nbsp;1/(1&nbsp;+&nbsp;''z''<sup>2</sup>). Modulus is shown by elevation and argument by coloring: cyan=0, blue&nbsp;=&nbsp;{{pi}}/3, violet&nbsp;=&nbsp;2{{pi}}/3, red&nbsp;=&nbsp;{{pi}}, yellow=4{{pi}}/3, green=5{{pi}}/3.]]
+
[[File:Function with two poles.png|thumb|right|Complex plot of ''f''(''z'')&nbsp;=&nbsp;1/(1&nbsp;+&nbsp;''z''<sup>2</sup>). Modulus is shown by elevation and argument by coloring: cyan=0, blue&nbsp;=&nbsp;<math>\pi</math>/3, violet&nbsp;=&nbsp;2<math>\pi</math>/3, red&nbsp;=&nbsp;<math>\pi</math>, yellow=4<math>\pi</math>/3, green=5<math>\pi</math>/3.]]
 
The function
 
The function
  
Line 307: Line 307:
 
=== Higher-order differentiability ===
 
=== Higher-order differentiability ===
  
A function ''f'': '''R'''<sup>''n''</sup>&nbsp;→&nbsp;'''R''' is [[derivative|differentiable]] at '''''a'''''&nbsp;∈&nbsp;'''R'''<sup>''n''</sup> [[if and only if]] there exists a [[linear functional]] ''L''&nbsp;:&nbsp;'''R'''<sup>''n''</sup>&nbsp;→&nbsp;'''R''' and a function ''h''&nbsp;:&nbsp;'''R'''<sup>''n''</sup>&nbsp;→&nbsp;'''R''' such that
+
A function ''f'': '''R'''<sup>''n''</sup>&nbsp;→&nbsp;'''R''' is differentiable at '''''a'''''&nbsp;∈&nbsp;'''R'''<sup>''n''</sup> if and only if there exists a linear functional ''L''&nbsp;:&nbsp;'''R'''<sup>''n''</sup>&nbsp;→&nbsp;'''R''' and a function ''h''&nbsp;:&nbsp;'''R'''<sup>''n''</sup>&nbsp;→&nbsp;'''R''' such that
  
 
:<math>f(\boldsymbol{x}) = f(\boldsymbol{a}) + L(\boldsymbol{x}-\boldsymbol{a}) + h(\boldsymbol{x})\lVert\boldsymbol{x}-\boldsymbol{a}\rVert,
 
:<math>f(\boldsymbol{x}) = f(\boldsymbol{a}) + L(\boldsymbol{x}-\boldsymbol{a}) + h(\boldsymbol{x})\lVert\boldsymbol{x}-\boldsymbol{a}\rVert,
 
\qquad \lim_{\boldsymbol{x}\to\boldsymbol{a}}h(\boldsymbol{x})=0. </math>
 
\qquad \lim_{\boldsymbol{x}\to\boldsymbol{a}}h(\boldsymbol{x})=0. </math>
  
If this is the case, then ''L''&nbsp;=&nbsp;''df''('''''a''''') is the (uniquely defined) [[differential of a function|differential]] of ''f'' at the point '''''a'''''. Furthermore, then the [[partial derivatives]] of ''f'' exist at '''''a''''' and the differential of ''f'' at '''''a''''' is given by
+
If this is the case, then ''L''&nbsp;=&nbsp;''df''('''''a''''') is the (uniquely defined) differential of ''f'' at the point '''''a'''''. Furthermore, then the partial derivatives of ''f'' exist at '''''a''''' and the differential of ''f'' at '''''a''''' is given by
  
 
:<math> df( \boldsymbol{a} )( \boldsymbol{v} ) = \frac{\partial f}{\partial x_1}(\boldsymbol{a})v_1 + \cdots + \frac{\partial f}{\partial x_n}(\boldsymbol{a})v_n. </math>
 
:<math> df( \boldsymbol{a} )( \boldsymbol{v} ) = \frac{\partial f}{\partial x_1}(\boldsymbol{a})v_1 + \cdots + \frac{\partial f}{\partial x_n}(\boldsymbol{a})v_n. </math>
  
Introduce the [[multi-index notation]]
+
Introduce the multi-index notation
  
 
:<math> |\alpha| = \alpha_1+\cdots+\alpha_n, \quad \alpha!=\alpha_1!\cdots\alpha_n!, \quad \boldsymbol{x}^\alpha=x_1^{\alpha_1}\cdots x_n^{\alpha_n} </math>
 
:<math> |\alpha| = \alpha_1+\cdots+\alpha_n, \quad \alpha!=\alpha_1!\cdots\alpha_n!, \quad \boldsymbol{x}^\alpha=x_1^{\alpha_1}\cdots x_n^{\alpha_n} </math>
  
for ''α''&nbsp;∈&nbsp;'''N'''<sup>''n''</sup> and '''''x'''''&nbsp;∈&nbsp;'''R'''<sup>''n''</sup>.  If all the ''k''-th order [[partial derivatives]] of {{nowrap|''f'' : '''R'''<sup>''n''</sup> → '''R'''}} are continuous at {{nowrap|'''''a''''' ∈ '''R'''<sup>''n''</sup>}}, then by [[symmetry of second derivatives|Clairaut's theorem]], one can change the order of mixed derivatives at '''''a''''', so the notation
+
for ''α''&nbsp;∈&nbsp;'''N'''<sup>''n''</sup> and '''''x'''''&nbsp;∈&nbsp;'''R'''<sup>''n''</sup>.  If all the ''k''-th order partial derivatives of ''f'' : '''R'''<sup>''n''</sup> → '''R''' are continuous at '''''a''''' ∈ '''R'''<sup>''n''</sup>, then by Clairaut's theorem, one can change the order of mixed derivatives at '''''a''''', so the notation
  
 
:<math> D^\alpha f = \frac{\partial^{|\alpha|}f}{\partial x_1^{\alpha_1}\cdots \partial x_n^{\alpha_n}}, \qquad |\alpha|\leq k </math>
 
:<math> D^\alpha f = \frac{\partial^{|\alpha|}f}{\partial x_1^{\alpha_1}\cdots \partial x_n^{\alpha_n}}, \qquad |\alpha|\leq k </math>
  
for the higher order [[partial derivatives]] is justified in this situation. The same is true if all the (''k''&nbsp;−&nbsp;1)-th order partial derivatives of ''f'' exist in some neighborhood of '''''a''''' and are differentiable at '''''a'''''.<ref>This follows from iterated application of the theorem that if the partial derivatives of a function ''f'' exist in a neighborhood of '''''a''''' and are continuous at '''''a''''', then the function is differentiable at '''''a'''''.  See, for instance, {{harvnb|Apostol|1974|loc=Theorem 12.11}}.</ref> Then we say that ''f'' is ''k'' '''times differentiable at the point&nbsp;''a'''''.
+
for the higher order partial derivatives is justified in this situation. The same is true if all the (''k''&nbsp;−&nbsp;1)-th order partial derivatives of ''f'' exist in some neighborhood of '''''a''''' and are differentiable at '''''a'''''. Then we say that ''f'' is ''k'' '''times differentiable at the point&nbsp;''a'''''.
  
 
=== Taylor's theorem for multivariate functions ===
 
=== Taylor's theorem for multivariate functions ===
  
{{math theorem|name=Multivariate version of Taylor's theorem<ref>Königsberger Analysis 2, p. 64 ff.</ref>|math_statement= Let {{nowrap|''f'' : '''R'''<sup>''n''</sup> → '''R'''}} be a ''k''-times [[continuously differentiable]] function at the point {{nowrap|'''''a''''' ∈ '''R'''<sup>''n''</sup>}}. Then there exists  {{nowrap|''h''<sub>''α''</sub> : '''R'''<sup>n</sup> → '''R'''}} such that  
+
<blockquote style="background: white; border: 1px solid black; padding: 1em;">
 +
:'''Multivariate version of Taylor's theorem'''
 +
:Let ''f'' : '''R'''<sup>''n''</sup> → '''R''' be a ''k''-times continuously differentiable function at the point '''''a''''' ∈ '''R'''<sup>''n''</sup>. Then there exists  ''h''<sub>''α''</sub> : '''R'''<sup>n</sup> → '''R''' such that  
  
 
:<math>\begin{align}
 
:<math>\begin{align}
 
& f(\boldsymbol{x}) = \sum_{|\alpha|\leq k} \frac{D^\alpha f(\boldsymbol{a})}{\alpha!} (\boldsymbol{x}-\boldsymbol{a})^\alpha  + \sum_{|\alpha|=k} h_\alpha(\boldsymbol{x})(\boldsymbol{x}-\boldsymbol{a})^\alpha, \\
 
& f(\boldsymbol{x}) = \sum_{|\alpha|\leq k} \frac{D^\alpha f(\boldsymbol{a})}{\alpha!} (\boldsymbol{x}-\boldsymbol{a})^\alpha  + \sum_{|\alpha|=k} h_\alpha(\boldsymbol{x})(\boldsymbol{x}-\boldsymbol{a})^\alpha, \\
 
& \mbox{and}\quad \lim_{\boldsymbol{x}\to \boldsymbol{a}}h_\alpha(\boldsymbol{x})=0.
 
& \mbox{and}\quad \lim_{\boldsymbol{x}\to \boldsymbol{a}}h_\alpha(\boldsymbol{x})=0.
\end{align}</math>}}
+
\end{align}</math>
 +
</blockquote>
  
If the function {{nowrap|''f'' : '''R'''<sup>''n''</sup> → '''R'''}} is ''k''&nbsp;+&nbsp;1 times [[continuously differentiable]] in a [[closed ball]] <math>B = \{ \mathbf{y} \in \R^n : \left\|\mathbf{a}-\mathbf{y}\right\| \leq  r\}</math> for some <math>r > 0</math>, then one can derive an exact formula for the remainder in terms of {{nowrap|(''k''+1)-th}} order [[partial derivatives]] of ''f'' in this neighborhood.<ref>https://sites.math.washington.edu/~folland/Math425/taylor2.pdf</ref> Namely,
+
If the function |''f'' : '''R'''<sup>''n''</sup> → '''R''' is ''k''&nbsp;+&nbsp;1 times continuously differentiable in a closed ball <math>B = \{ \mathbf{y} \in \R^n : \left\|\mathbf{a}-\mathbf{y}\right\| \leq  r\}</math> for some <math>r > 0</math>, then one can derive an exact formula for the remainder in terms of (''k''+1)-th order partial derivatives of ''f'' in this neighborhood. Namely,
  
 
:<math> \begin{align}
 
:<math> \begin{align}
Line 343: Line 346:
 
</math>
 
</math>
  
In this case, due to the [[continuous function|continuity]] of (''k''+1)-th order [[partial derivative]]s in the [[compact set]] ''B'', one immediately obtains the uniform estimates
+
In this case, due to the continuity of (''k''+1)-th order partial derivatives in the compact set ''B'', one immediately obtains the uniform estimates
  
 
:<math>\left|R_\beta(\boldsymbol{x})\right| \leq \frac{1}{\beta!} \max_{|\alpha|=|\beta|} \max_{\boldsymbol{y}\in B} |D^\alpha f(\boldsymbol{y})|, \qquad \boldsymbol{x}\in B. </math>
 
:<math>\left|R_\beta(\boldsymbol{x})\right| \leq \frac{1}{\beta!} \max_{|\alpha|=|\beta|} \max_{\boldsymbol{y}\in B} |D^\alpha f(\boldsymbol{y})|, \qquad \boldsymbol{x}\in B. </math>
Line 375: Line 378:
 
:<math>\lim_{x\to a} h_k(x) =0. </math>
 
:<math>\lim_{x\to a} h_k(x) =0. </math>
  
The proof here is based on repeated application of [[L'Hôpital's rule]].  Note that, for each {{nowrap|1=''j'' = 0,1,…,''k''−1}}, <math>f^{(j)}(a)=P^{(j)}(a)</math>.  Hence each of the first ''k''−1 derivatives of the numerator in <math>h_k(x)</math> vanishes at <math>x=a</math>, and the same is true of the denominator.  Also, since the condition that the function ''f'' be ''k'' times differentiable at a point requires differentiability up to order ''k''−1 in a neighborhood of said point (this is true, because differentiability requires a function to be defined in a whole neighborhood of a point), the numerator and its ''k''&nbsp;−&nbsp;2 derivatives are differentiable in a neighborhood of ''a''. Clearly, the denominator also satisfies said condition, and additionally, doesn't vanish unless ''x''=''a'', therefore all conditions necessary for L'Hopital's rule are fulfilled, and its use is justified. So
+
The proof here is based on repeated application of L'Hôpital's rule.  Note that, for each ''j'' = 0,1,…,''k''−1, <math>f^{(j)}(a)=P^{(j)}(a)</math>.  Hence each of the first ''k''−1 derivatives of the numerator in <math>h_k(x)</math> vanishes at <math>x=a</math>, and the same is true of the denominator.  Also, since the condition that the function ''f'' be ''k'' times differentiable at a point requires differentiability up to order ''k''−1 in a neighborhood of said point (this is true, because differentiability requires a function to be defined in a whole neighborhood of a point), the numerator and its ''k''&nbsp;−&nbsp;2 derivatives are differentiable in a neighborhood of ''a''. Clearly, the denominator also satisfies said condition, and additionally, doesn't vanish unless ''x''=''a'', therefore all conditions necessary for L'Hopital's rule are fulfilled, and its use is justified. So
  
 
:<math>\begin{align}
 
:<math>\begin{align}
Line 393: Line 396:
 
</math>
 
</math>
  
For <math> t \in [a,x] </math>. Then, by [[mean value theorem#Cauchy's mean value theorem|Cauchy's mean value theorem]],
+
For <math> t \in [a,x] </math>. Then, by Cauchy's mean value theorem,
  
{{NumBlk|:|<math> \frac{F'(\xi)}{G'(\xi)} = \frac{F(x) - F(a)}{G(x) - G(a)}</math>|{{EquationRef|⁎⁎⁎}}}}
+
<math> \frac{F'(\xi)}{G'(\xi)} = \frac{F(x) - F(a)}{G(x) - G(a)}</math> (⁎⁎⁎)
  
for some ξ on the open interval between ''a'' and ''x''. Note that here the numerator {{nowrap|1=''F''(''x'') − ''F''(''a'') = ''R<sub>k</sub>''(''x'')}} is exactly the remainder of the Taylor polynomial for ''f''(''x''). Compute
+
for some ξ on the open interval between ''a'' and ''x''. Note that here the numerator ''F''(''x'') − ''F''(''a'') = ''R<sub>k</sub>''(''x'') is exactly the remainder of the Taylor polynomial for ''f''(''x''). Compute
  
 
:<math>\begin{align}
 
:<math>\begin{align}
Line 405: Line 408:
 
\end{align}</math>
 
\end{align}</math>
  
plug it into ({{EquationNote|⁎⁎⁎}}) and rearrange terms to find that
+
plug it into (⁎⁎⁎) and rearrange terms to find that
  
 
:<math>  R_k(x) = \frac{f^{(k+1)}(\xi)}{k!}(x-\xi)^k \frac{G(x)-G(a)}{G'(\xi)}.</math>
 
:<math>  R_k(x) = \frac{f^{(k+1)}(\xi)}{k!}(x-\xi)^k \frac{G(x)-G(a)}{G'(\xi)}.</math>
Line 416: Line 419:
 
:<math> G(t) = \int_a^t \frac{f^{(k+1)}(s)}{k!} (x-s)^k \, ds,</math>
 
:<math> G(t) = \int_a^t \frac{f^{(k+1)}(s)}{k!} (x-s)^k \, ds,</math>
  
but the requirements for ''f'' needed for the use of mean value theorem are too strong, if one aims to prove the claim in the case that ''f''{{i sup|(''k'')}} is only [[absolutely continuous]]. However, if one uses [[Riemann integral]] instead of [[Lebesgue integral]], the assumptions cannot be weakened.
+
but the requirements for ''f'' needed for the use of mean value theorem are too strong, if one aims to prove the claim in the case that ''f''<sup>(k)</sup> is only absolutely continuous. However, if one uses Riemann integral instead of Lebesgue integral, the assumptions cannot be weakened.
  
 
=== Derivation for the integral form of the remainder ===
 
=== Derivation for the integral form of the remainder ===
  
Due to [[absolutely continuous|absolute continuity]] of ''f''{{i sup|(''k'')}} on the [[closed interval]] between ''a'' and ''x'' its derivative ''f''{{i sup|(''k''+1)}} exists as an ''L''<sup>1</sup>-function, and we can use [[fundamental theorem of calculus]] and [[integration by parts]]. This same proof applies for the [[Riemann integral]] assuming that ''f''{{i sup|(''k'')}} is [[continuous function|continuous]] on the closed interval and [[Differentiable function|differentiable]] on the [[open interval]] between ''a'' and ''x'', and this leads to the same result than using the mean value theorem.
+
Due to absolute continuity of ''f''<sup>(k)</sup> on the closed interval between ''a'' and ''x'' its derivative ''f''<sup>(''k''+1)</sup> exists as an ''L''<sup>1</sup>-function, and we can use fundamental theorem of calculus and integration by parts. This same proof applies for the Riemann integral assuming that ''f''<sup>(k)</sup> is continuous on the closed interval and differentiable on the open interval between ''a'' and ''x'', and this leads to the same result than using the mean value theorem.
  
The [[fundamental theorem of calculus]] states that
+
The fundamental theorem of calculus states that
  
 
:<math>f(x)=f(a)+ \int_a^x \, f'(t) \, dt.</math>
 
:<math>f(x)=f(a)+ \int_a^x \, f'(t) \, dt.</math>
  
Now we can [[Integration by parts|integrate by parts]] and use the fundamental theorem of calculus again to see that
+
Now we can integrate by parts and use the fundamental theorem of calculus again to see that
  
 
:<math> \begin{align}
 
:<math> \begin{align}
Line 434: Line 437:
 
\end{align} </math>
 
\end{align} </math>
  
which is exactly Taylor's theorem with remainder in the integral form in the case ''k''=1. The general statement is proved using [[mathematical induction|induction]]. Suppose that
+
which is exactly Taylor's theorem with remainder in the integral form in the case ''k''=1. The general statement is proved using induction. Suppose that
{{NumBlk|:|<math> f(x) = f(a) + \frac{f'(a)}{1!}(x - a) + \cdots + \frac{f^{(k)}(a)}{k!}(x - a)^k + \int_a^x \frac{f^{(k+1)} (t)}{k!} (x - t)^k \, dt. </math>|{{EquationRef|⁎⁎⁎⁎}}}}
+
<math> f(x) = f(a) + \frac{f'(a)}{1!}(x - a) + \cdots + \frac{f^{(k)}(a)}{k!}(x - a)^k + \int_a^x \frac{f^{(k+1)} (t)}{k!} (x - t)^k \, dt. </math> (⁎⁎⁎⁎)
  
 
Integrating the remainder term by parts we arrive at
 
Integrating the remainder term by parts we arrive at
Line 444: Line 447:
 
\end{align}</math>
 
\end{align}</math>
  
Substituting this into the formula {{nowrap|in ({{EquationNote|⁎⁎⁎⁎}})}} shows that if it holds for the value ''k'', it must also hold for the value ''k''&nbsp;+&nbsp;1. Therefore, since it holds for ''k''&nbsp;=&nbsp;1, it must hold for every positive integer&nbsp;''k''.
+
Substituting this into the formula (⁎⁎⁎⁎) shows that if it holds for the value ''k'', it must also hold for the value ''k''&nbsp;+&nbsp;1. Therefore, since it holds for ''k''&nbsp;=&nbsp;1, it must hold for every positive integer&nbsp;''k''.
  
 
=== Derivation for the remainder of multivariate Taylor polynomials ===
 
=== Derivation for the remainder of multivariate Taylor polynomials ===
  
We prove the special case, where ''f'' : '''R'''<sup>''n''</sup> → '''R''' has continuous partial derivatives up to the order ''k''+1 in some closed ball ''B'' with center '''''a'''''.  The strategy of the proof is to apply the one-variable case of Taylor's theorem to the restriction of ''f'' to the line segment adjoining '''''x''''' and '''''a'''''.<ref>{{harvnb|Hörmander|1976|pp=12–13}}</ref> Parametrize the line segment between '''''a''''' and '''''x''''' by '''''u'''''(''t'') = {{nowrap|'''''a''''' + ''t''('''''x''''' − '''''a''''').}} We apply the one-variable version of Taylor's theorem to the function {{nowrap|1=''g''(''t'') = ''f''('''''u'''''(''t''))}}:
+
We prove the special case, where ''f'' : '''R'''<sup>''n''</sup> → '''R''' has continuous partial derivatives up to the order ''k''+1 in some closed ball ''B'' with center '''''a'''''.  The strategy of the proof is to apply the one-variable case of Taylor's theorem to the restriction of ''f'' to the line segment adjoining '''''x''''' and '''''a'''''.  Parametrize the line segment between '''''a''''' and '''''x''''' by '''''u'''''(''t'') = '''''a''''' + ''t''('''''x''''' − '''''a'''''). We apply the one-variable version of Taylor's theorem to the function ''g''(''t'') = ''f''('''''u'''''(''t'')):
  
 
:<math>f(\mathbf{x})=g(1)=g(0)+\sum_{j=1}^k\frac{1}{j!}g^{(j)}(0)\ +\ \int_0^1 \frac{(1-t)^k }{k!} g^{(k+1)}(t)\, dt.</math>
 
:<math>f(\mathbf{x})=g(1)=g(0)+\sum_{j=1}^k\frac{1}{j!}g^{(j)}(0)\ +\ \int_0^1 \frac{(1-t)^k }{k!} g^{(k+1)}(t)\, dt.</math>
  
Applying the [[chain rule]] for several variables gives
+
Applying the chain rule for several variables gives
  
 
:<math>\begin{align}
 
:<math>\begin{align}
Line 459: Line 462:
 
\end{align}</math>
 
\end{align}</math>
  
where <math>\tbinom j \alpha</math> is the [[multinomial coefficient]]. Since <math>\tfrac{1}{j!}\tbinom j \alpha=\tfrac{1}{\alpha!}</math>, we get:
+
where <math>\tbinom j \alpha</math> is the multinomial coefficient. Since <math>\tfrac{1}{j!}\tbinom j \alpha=\tfrac{1}{\alpha!}</math>, we get:
  
 
:<math>f(\mathbf x)= f(\mathbf a) + \sum_{1 \leq |\alpha| \leq k}\frac{1}{\alpha!} (D^\alpha f) (\mathbf a)(\mathbf x-\mathbf a)^\alpha+\sum_{|\alpha|=k+1}\frac{k+1}{\alpha!}
 
:<math>f(\mathbf x)= f(\mathbf a) + \sum_{1 \leq |\alpha| \leq k}\frac{1}{\alpha!} (D^\alpha f) (\mathbf a)(\mathbf x-\mathbf a)^\alpha+\sum_{|\alpha|=k+1}\frac{k+1}{\alpha!}
 
(\mathbf x-\mathbf a)^\alpha \int_0^1 (1-t)^k (D^\alpha f)(\mathbf a+t(\mathbf x-\mathbf a))\,dt.</math>
 
(\mathbf x-\mathbf a)^\alpha \int_0^1 (1-t)^k (D^\alpha f)(\mathbf a+t(\mathbf x-\mathbf a))\,dt.</math>
  
== References ==
+
== Licensing ==  
Apostol, Tom (1967), Calculus, Wiley, ISBN 0-471-00005-1.
+
Content obtained and/or adapted from:
Apostol, Tom (1974), Mathematical analysis, Addison–Wesley.
+
* [https://en.wikipedia.org/wiki/Taylor%27s_theorem Taylor's theorem, Wikipedia] under a CC BY-SA license
Bartle, Robert G.; Sherbert, Donald R. (2011), Introduction to Real Analysis (4th ed.), Wiley, ISBN 978-0-471-43331-6.
 
Hörmander, L. (1976), Linear Partial Differential Operators, Volume 1, Springer, ISBN 978-3-540-00662-6.
 
Kline, Morris (1972), Mathematical thought from ancient to modern times, Volume 2, Oxford University Press.
 
Kline, Morris (1998), Calculus: An Intuitive and Physical Approach, Dover, ISBN 0-486-40453-6.
 
Pedrick, George (1994), A First Course in Analysis, Springer, ISBN 0-387-94108-8.
 
Stromberg, Karl (1981), Introduction to classical real analysis, Wadsworth, ISBN 978-0-534-98012-2.
 
Rudin, Walter (1987), Real and complex analysis (3rd ed.), McGraw-Hill, ISBN 0-07-054234-1.
 
Tao, Terence (2014), Analysis, Volume I (3rd ed.), Hindustan Book Agency, ISBN 978-93-80250-64-9.
 

Latest revision as of 12:11, 6 November 2021

The exponential function y = ex (red) and the corresponding Taylor polynomial of degree four (dashed green) around the origin.

In calculus, Taylor's theorem gives an approximation of a k-times differentiable function around a given point by a polynomial of degree k, called the kth-order Taylor polynomial. For a smooth function, the Taylor polynomial is the truncation at the order k of the Taylor series of the function. The first-order Taylor polynomial is the linear approximation of the function, and the second-order Taylor polynomial is often referred to as the quadratic approximation. There are several versions of Taylor's theorem, some giving explicit estimates of the approximation error of the function by its Taylor polynomial.

Taylor's theorem is named after the mathematician Brook Taylor, who stated a version of it in 1715, although an earlier version of the result was already mentioned in 1671 by James Gregory.

Taylor's theorem is taught in introductory-level calculus courses and is one of the central elementary tools in mathematical analysis. It gives simple arithmetic formulas to accurately compute values of many transcendental functions such as the exponential function and trigonometric functions. It is the starting point of the study of analytic functions, and is fundamental in various areas of mathematics, as well as in numerical analysis and mathematical physics. Taylor's theorem also generalizes to multivariate and vector valued functions.

Motivation

Graph of f(x) = ex (blue) with its linear approximation P1(x) = 1 + x (red) at a = 0.

If a real-valued function f(x) is differentiable at the point x = a, then it has a linear approximation near this point. This means that there exists a function h1(x) such that

Here

is the linear approximation of f(x) for x near the point a, whose graph y = P1(x) is the tangent line to the graph y = f(x) at x = a. The error in the approximation is:

As x tends to a, this error goes to zero much faster than , making a useful approximation.

Graph of f(x) = ex (blue) with its quadratic approximation P2(x) = 1 + x + x2/2 (red) at a = 0. Note the improvement in the approximation.

For a better approximation to f(x), we can fit a quadratic polynomial instead of a linear function:

Instead of just matching one derivative of f(x) at x = a, this polynomial has the same first and second derivatives, as is evident upon differentiation.

Taylor's theorem ensures that the quadratic approximation is, in a sufficiently small neighborhood of x = a, more accurate than the linear approximation. Specifically,

Here the error in the approximation is

which, given the limiting behavior of , goes to zero faster than as x tends to a.

Approximation of f(x) = 1/(1 + x2) (blue) by its Taylor polynomials Pk of order k = 1, …, 16 centered at x = 0 (red) and x = 1 (green). The approximations do not improve at all outside (−1, 1) and (1 − √2, 1 + √2) respectively.

Similarly, we might get still better approximations to f if we use polynomials of higher degree, since then we can match even more derivatives with f at the selected base point.

In general, the error in approximating a function by a polynomial of degree k will go to zero much faster than as x tends to a. However, there are functions, even infinitely differentiable ones, for which increasing the degree of the approximating polynomial does not increase the accuracy of approximation: we say such a function fails to be analytic at x = a: it is not (locally) determined by its derivatives at this point.

Taylor's theorem is of asymptotic nature: it only tells us that the error Rk in an approximation by a k-th order Taylor polynomial Pk tends to zero faster than any nonzero k-th degree polynomial as x → a. It does not tell us how large the error is in any concrete neighborhood of the center of expansion, but for this purpose there are explicit formulas for the remainder term (given below) which are valid under some additional regularity assumptions on f. These enhanced versions of Taylor's theorem typically lead to uniform estimates for the approximation error in a small neighborhood of the center of expansion, but the estimates do not necessarily hold for neighborhoods which are too large, even if the function f is analytic. In that situation one may have to select several Taylor polynomials with different centers of expansion to have reliable Taylor-approximations of the original function (see animation on the right.)

There are several ways we might use the remainder term:

  1. Estimate the error for a polynomial Pk(x) of degree k estimating f(x) on a given interval (ar, a + r). (Given the interval and degree, we find the error.)
  2. Find the smallest degree k for which the polynomial Pk(x) approximates f(x) to within a given error tolerance on a given interval (ar, a + r) . (Given the interval and error tolerance, we find the degree.)
  3. Find the largest interval (ar, a + r) on which Pk(x) approximates f(x) to within a given error tolerance. (Given the degree and error tolerance, we find the interval.)

Taylor's theorem in one real variable

Statement of the theorem

The precise statement of the most basic version of Taylor's theorem is as follows:

Taylor's theorem
Let k ≥ 1 be an integer and let the function f : RR be k times differentiable at the point aR. Then there exists a function hk : RR such that
and
This is called the Peano form of the remainder.

The polynomial appearing in Taylor's theorem is the k-th order Taylor polynomial

of the function f at the point a. The Taylor polynomial is the unique "asymptotic best fit" polynomial in the sense that if there exists a function hk : RR and a k-th order polynomial p such that

then p = Pk. Taylor's theorem describes the asymptotic behavior of the remainder term

which is the approximation error when approximating f with its Taylor polynomial. Using the little-o notation, the statement in Taylor's theorem reads as

Explicit formulas for the remainder

Under stronger regularity assumptions on f there are several precise formulas for the remainder term Rk of the Taylor polynomial, the most common ones being the following.

Mean-value forms of the remainder
Let f : RR be k + 1 times differentiable on the open interval with f(k+1) continuous on the closed interval between a and x. Then
for some real number ξL between a and x. This is the Lagrange form of the remainder.
Similarly,
for some real number ξC between a and x. This is the Cauchy form of the remainder.

These refinements of Taylor's theorem are usually proved using the mean value theorem, whence the name. Also other similar expressions can be found. For example, if G(t) is continuous on the closed interval and differentiable with a non-vanishing derivative on the open interval between a and x, then

for some number ξ between a and x. This version covers the Lagrange and Cauchy forms of the remainder as special cases, and is proved below using Cauchy's mean value theorem.

The statement for the integral form of the remainder is more advanced than the previous ones, and requires understanding of Lebesgue integration theory for the full generality. However, it holds also in the sense of Riemann integral provided the (k + 1)th derivative of f is continuous on the closed interval [a,x].

Integral form of the remainder
Let f(k) be absolutely continuous on the closed interval between a and x. Then

Due to absolute continuity of f(k) on the closed interval between a and x, its derivative f(k+1) exists as an L1-function, and the result can be proven by a formal calculation using fundamental theorem of calculus and integration by parts.

Estimates for the remainder

It is often useful in practice to be able to estimate the remainder term appearing in the Taylor approximation, rather than having an exact formula for it. Suppose that f is (k + 1) - times continuously differentiable in an interval I containing a. Suppose that there are real constants q and Q such that

throughout I. Then the remainder term satisfies the inequality

if x > a}}, and a similar estimate if x < a. This is a simple consequence of the Lagrange form of the remainder. In particular, if

on an interval I = (ar,a + r) with some , then

for all x∈(ar,a + r). The second inequality is called a uniform estimate, because it holds uniformly for all x on the interval (ar,a + r).

Example

Approximation of ex (blue) by its Taylor polynomials Pk of order k = 1,…,7 centered at x = 0 (red).

Suppose that we wish to find the approximate value of the function f(x) = ex on the interval [−1,1] while ensuring that the error in the approximation is no more than 10−5. In this example we pretend that we only know the following properties of the exponential function:

(⁎)

From these properties it follows that f(k)(x) = ex for all k, and in particular, f(k)(0) = 1. Hence the k-th order Taylor polynomial of f at 0 and its remainder term in the Lagrange form are given by

where ξ is some number between 0 and x. Since ex is increasing by (⁎), we can simply use ex ≤ 1 for x ∈ [−1, 0] to estimate the remainder on the subinterval [−1, 0]. To obtain an upper bound for the remainder on [0,1], we use the property eξ < ex for 0<ξ<x to estimate

using the second order Taylor expansion. Then we solve for ex to deduce that

simply by maximizing the numerator and minimizing the denominator. Combining these estimates for ex we see that

so the required precision is certainly reached, when

(See factorial or compute by hand the values 9! = 362 880 and 10! = 3 628 800.) As a conclusion, Taylor's theorem leads to the approximation

For instance, this approximation provides a decimal expression e ≈ 2.71828, correct up to five decimal places.

Relationship to analyticity

Taylor expansions of real analytic functions

Let IR be an open interval. By definition, a function f : IR is real analytic if it is locally defined by a convergent power series. This means that for every a ∈ I there exists some r > 0 and a sequence of coefficients ck ∈ R such that (ar, a + r) ⊂ I and

In general, the radius of convergence of a power series can be computed from the Cauchy–Hadamard formula

This result is based on comparison with a geometric series, and the same method shows that if the power series based on a converges for some bR, it must converge uniformly on the closed interval [arb, a + rb], where rb = |b − a|. Here only the convergence of the power series is considered, and it might well be that (aR,a + R) extends beyond the domain I of f.

The Taylor polynomials of the real analytic function f at a are simply the finite truncations

of its locally defining power series, and the corresponding remainder terms are locally given by the analytic functions

Here the functions

are also analytic, since their defining power series have the same radius of convergence as the original series. Assuming that [ar, a + r] ⊂ I and r < R, all these series converge uniformly on (ar, a + r). Naturally, in the case of analytic functions one can estimate the remainder term Rk(x) by the tail of the sequence of the derivatives f′(a) at the center of the expansion, but using complex analysis also another possibility arises, which is described below.

Taylor's theorem and convergence of Taylor series

The Taylor series of f will converge in some interval in which all its derivatives are bounded and do not grow too fast as k goes to infinity. (However, even if the Taylor series converges, it might not converge to f, as explained below; f is then said to be non-analytic.)

One might think of the Taylor series

of an infinitely many times differentiable function f : RR as its "infinite order Taylor polynomial" at a. Now the estimates for the remainder imply that if, for any r, the derivatives of f are known to be bounded over (a − r, a + r), then for any order k and for any r > 0 there exists a constant Mk,r > 0 such that

(**)

for every x ∈ (a − r,a + r). Sometimes the constants Mk,r can be chosen in such way that Mk,r is bounded above, for fixed r and all k. Then the Taylor series of f converges uniformly to some analytic function

(One also gets convergence even if Mk,r is not bounded above as long as it grows slowly enough.)

The limit function Tf is by definition always analytic, but it is not necessarily equal to the original function f, even if f is infinitely differentiable. In this case, we say f is a non-analytic smooth function, for example a flat function:

Using the chain rule repeatedly by mathematical induction, one shows that for any order k,

for some polynomial pk of degree 2(k − 1). The function tends to zero faster than any polynomial as x → 0, so f is infinitely many times differentiable and f(k)(0) = 0}} for every positive integer k. The above results all hold in this case:

  • The Taylor series of f converges uniformly to the zero function Tf(x) = 0, which is analytic with all coefficients equal to zero.
  • The function f is unequal to this Taylor series, and hence non-analytic.
  • For any order k ∈ N and radius r > 0 there exists Mk,r > 0 satisfying the remainder bound (⁎⁎) above.

However, as k increases for fixed r, the value of Mk,r grows more quickly that rk, and the error does not go to zero.

Taylor's theorem in complex analysis

Taylor's theorem generalizes to functions f : CC which are complex differentiable in an open subset U ⊂ C of the complex plane. However, its usefulness is dwarfed by other general theorems in complex analysis. Namely, stronger versions of related results can be deduced for complex differentiable functions f : U → C using Cauchy's integral formula as follows.

Let r > 0 such that the closed disk B(zr) ∪ S(zr) is contained in U. Then Cauchy's integral formula with a positive parametrization γ(t) = z + reit of the circle S(z, r) with t ∈ [0, 2] gives

Here all the integrands are continuous on the circle S(zr), which justifies differentiation under the integral sign. In particular, if f is once complex differentiable on the open set U, then it is actually infinitely many times complex differentiable on U. One also obtains the Cauchy's estimates

for any z ∈ U and r > 0 such that B(zr) ∪ S(cr) ⊂ U. These estimates imply that the complex Taylor series

of f converges uniformly on any open disk B(cr) ⊂ U with S(cr) ⊂ U into some function Tf. Furthermore, using the contour integral formulas for the derivatives f(k)(c),

so any complex differentiable function f in an open set U ⊂ C is in fact complex analytic. All that is said for real analytic functions here holds also for complex analytic functions with the open interval I replaced by an open subset U ∈ C and a-centered intervals (a − ra + r) replaced by c-centered disks B(cr). In particular, the Taylor expansion holds in the form

where the remainder term Rk is complex analytic. Methods of complex analysis provide some powerful results regarding Taylor expansions. For example, using Cauchy's integral formula for any positively oriented Jordan curve γ which parametrizes the boundary ∂W ⊂ U of a region W ⊂ U, one obtains expressions for the derivatives f(j)(c) as above, and modifying slightly the computation for Tf(z) = f(z), one arrives at the exact formula

The important feature here is that the quality of the approximation by a Taylor polynomial on the region W ⊂ U is dominated by the values of the function f itself on the boundary ∂W ⊂ U. Similarly, applying Cauchy's estimates to the series expression for the remainder, one obtains the uniform estimates

Example

Complex plot of f(z) = 1/(1 + z2). Modulus is shown by elevation and argument by coloring: cyan=0, blue = /3, violet = 2/3, red = , yellow=4/3, green=5/3.

The function

is real analytic, that is, locally determined by its Taylor series. This function was plotted above to illustrate the fact that some elementary functions cannot be approximated by Taylor polynomials in neighborhoods of the center of expansion which are too large. This kind of behavior is easily understood in the framework of complex analysis. Namely, the function f extends into a meromorphic function

on the compactified complex plane. It has simple poles at z = i and z = −i, and it is analytic elsewhere. Now its Taylor series centered at z0 converges on any disc B(z0, r) with r < |z − z0|, where the same Taylor series converges at z ∈ C. Therefore, Taylor series of f centered at 0 converges on B(0, 1) and it does not converge for any zC with |z| > 1 due to the poles at i and −i. For the same reason the Taylor series of f centered at 1 converges on B(1, √2) and does not converge for any z ∈ C with |z − 1| > √2.

Generalizations of Taylor's theorem

Higher-order differentiability

A function f: Rn → R is differentiable at a ∈ Rn if and only if there exists a linear functional L : Rn → R and a function h : Rn → R such that

If this is the case, then L = df(a) is the (uniquely defined) differential of f at the point a. Furthermore, then the partial derivatives of f exist at a and the differential of f at a is given by

Introduce the multi-index notation

for α ∈ Nn and x ∈ Rn. If all the k-th order partial derivatives of f : RnR are continuous at aRn, then by Clairaut's theorem, one can change the order of mixed derivatives at a, so the notation

for the higher order partial derivatives is justified in this situation. The same is true if all the (k − 1)-th order partial derivatives of f exist in some neighborhood of a and are differentiable at a. Then we say that f is k times differentiable at the point a.

Taylor's theorem for multivariate functions

Multivariate version of Taylor's theorem
Let f : RnR be a k-times continuously differentiable function at the point aRn. Then there exists hα : RnR such that

If the function |f : RnR is k + 1 times continuously differentiable in a closed ball for some , then one can derive an exact formula for the remainder in terms of (k+1)-th order partial derivatives of f in this neighborhood. Namely,

In this case, due to the continuity of (k+1)-th order partial derivatives in the compact set B, one immediately obtains the uniform estimates

Example in two dimensions

For example, the third-order Taylor polynomial of a smooth function f: R2 → R is, denoting xa = v,

Proofs

Proof for Taylor's theorem in one real variable

Let

where, as in the statement of Taylor's theorem,

It is sufficient to show that

The proof here is based on repeated application of L'Hôpital's rule. Note that, for each j = 0,1,…,k−1, . Hence each of the first k−1 derivatives of the numerator in vanishes at , and the same is true of the denominator. Also, since the condition that the function f be k times differentiable at a point requires differentiability up to order k−1 in a neighborhood of said point (this is true, because differentiability requires a function to be defined in a whole neighborhood of a point), the numerator and its k − 2 derivatives are differentiable in a neighborhood of a. Clearly, the denominator also satisfies said condition, and additionally, doesn't vanish unless x=a, therefore all conditions necessary for L'Hopital's rule are fulfilled, and its use is justified. So

where the last equality follows by the definition of the derivative at x = a.

Derivation for the mean value forms of the remainder

Let G be any real-valued function, continuous on the closed interval between a and x and differentiable with a non-vanishing derivative on the open interval between a and x, and define

For . Then, by Cauchy's mean value theorem,

(⁎⁎⁎)

for some ξ on the open interval between a and x. Note that here the numerator F(x) − F(a) = Rk(x) is exactly the remainder of the Taylor polynomial for f(x). Compute

plug it into (⁎⁎⁎) and rearrange terms to find that

This is the form of the remainder term mentioned after the actual statement of Taylor's theorem with remainder in the mean value form. The Lagrange form of the remainder is found by choosing and the Cauchy form by choosing .

Remark. Using this method one can also recover the integral form of the remainder by choosing

but the requirements for f needed for the use of mean value theorem are too strong, if one aims to prove the claim in the case that f(k) is only absolutely continuous. However, if one uses Riemann integral instead of Lebesgue integral, the assumptions cannot be weakened.

Derivation for the integral form of the remainder

Due to absolute continuity of f(k) on the closed interval between a and x its derivative f(k+1) exists as an L1-function, and we can use fundamental theorem of calculus and integration by parts. This same proof applies for the Riemann integral assuming that f(k) is continuous on the closed interval and differentiable on the open interval between a and x, and this leads to the same result than using the mean value theorem.

The fundamental theorem of calculus states that

Now we can integrate by parts and use the fundamental theorem of calculus again to see that

which is exactly Taylor's theorem with remainder in the integral form in the case k=1. The general statement is proved using induction. Suppose that (⁎⁎⁎⁎)

Integrating the remainder term by parts we arrive at

Substituting this into the formula (⁎⁎⁎⁎) shows that if it holds for the value k, it must also hold for the value k + 1. Therefore, since it holds for k = 1, it must hold for every positive integer k.

Derivation for the remainder of multivariate Taylor polynomials

We prove the special case, where f : RnR has continuous partial derivatives up to the order k+1 in some closed ball B with center a. The strategy of the proof is to apply the one-variable case of Taylor's theorem to the restriction of f to the line segment adjoining x and a. Parametrize the line segment between a and x by u(t) = a + t(xa). We apply the one-variable version of Taylor's theorem to the function g(t) = f(u(t)):

Applying the chain rule for several variables gives

where is the multinomial coefficient. Since , we get:

Licensing

Content obtained and/or adapted from: