info prev up next book cdrom email home

Taylor Series

A Taylor series is a series expansion of a Function about a point. A 1-D Taylor series is an expansion of a Scalar Function $f(x)$ about a point $x=a$. If $a=0$, the expansion is known as a Maclaurin Series.

\begin{displaymath}
\int^x_a f^{(n)}(x)\,dx = [f^{(n-1)}(x)]^x_a = f^{(n-1)}(x)-f^{(n-1)}(a)
\end{displaymath} (1)

$\int^x_a \left[{\int^x_a f^{(n)}(x)\,dx}\right]\,dx = \int^x_a [f^{(n-1)}(x)-f^{(n-1)}(a)]\,dx$
$ = f^{(n-2)}(x)-f^{(n-2)}(a)-(x-a)f^{(n-1)}(a).\quad$ (2)
Continuing,


\begin{displaymath}
\int\!\!\!\int\!\!\!\int ^x_a f^{(n)}(x)\,(dx)^3 = f^{(n-3)}...
...(x-a)f^{(n-2)}(a) - {\textstyle{1\over 2!}}(x-a)^2f^{(n-1)}(a)
\end{displaymath} (3)

$\underbrace{\int \cdots \int^x_a}_n f^{(n)}(x)\,(dx)^n = f(x)-f(a)-(x-a)f'(a)$
$ -{\textstyle{1\over 2!}}(x-a)^2f''(a)-\ldots -{\textstyle{1\over (n-1)!}} (x-a)^{n-1}f^{(n-1)}(a).\quad$ (4)
Therefore, we obtain the 1-D Taylor series
$f(x) = f(a)+(x-a)f'(a)+{\textstyle{1\over 2!}}(x-a)^2f''(a)+\ldots$
$+{\textstyle{1\over (n-1)!}}(x-a)^{n-1}f^{(n-1)}(a)+R_n,\quad$ (5)
where $R_n$ is a remainder term defined by
\begin{displaymath}
R_n = \underbrace{\int \cdots \int^x_a}_n f^{(n)}(x)\,(dx)^n.
\end{displaymath} (6)

Using the Mean-Value Theorem for a function $g$, it must be true that
\begin{displaymath}
\int^x_a g(x)\,dx = (x-a)g(x^*)
\end{displaymath} (7)

for some $x^*\in [a,x]$. Therefore, integrating $n$ times gives the result
\begin{displaymath}
R_n = {(x-a)^n\over n!} f^{(n)}(x^*).
\end{displaymath} (8)

The maximum error is then the maximum value of (8) for all possible $x^*\in [a,x]$.


An alternative form of the 1-D Taylor series may be obtained by letting

\begin{displaymath}
x-a\equiv \Delta x
\end{displaymath} (9)

so that
\begin{displaymath}
x=a+\Delta x\equiv x_0+\Delta x.
\end{displaymath} (10)

Substitute this result into (5) to give
\begin{displaymath}
f(x_0+\Delta x)=f(x_0)+\Delta x f'(x_0)+{\textstyle{1\over 2!}} (\Delta x)^2f''(x_0) + \ldots.
\end{displaymath} (11)


A Taylor series of a Function in two variables $f(x,y)$ is given by
$f(x+\Delta x,y+\Delta y) = f(x,y)+[f_x(x,y)\Delta x + f_y(x,y)\Delta y]$
$ + {\textstyle{1\over 2!}} [(\Delta x)^2 f_{xx}(x,y)+2\Delta x\Delta yf_{xy}(x,y) + (\Delta y)^2 f_{yy}(x,y)]$
$ + {\textstyle{1\over 3!}} [(\Delta x)^3 f_{xxx}(x,y)+3(\Delta x)^2\Delta y f_{xxy}(x,y)$
$ + 3\Delta x(\Delta y)^2 f_{xyy}(x,y)+(\Delta y)^3 f_{yyy}(x,y)]+\ldots.\quad$ (12)


This can be further generalized for a Function in $n$ variables,


\begin{displaymath}
f(x_1, \ldots, x_n) = \sum_{j=0}^\infty\left\{{{1\over j!}\l...
...j f(x_1', \ldots, x_n')}\right\}_{x_1'=a_1, \ldots, x_n'=a_n}.
\end{displaymath} (13)

Rewriting,

$f(x_1+a_1, \ldots, x_n+a_n)$
$ = \sum_{j=0}^\infty\left\{{{1\over j!} \left({\sum_{k=1}^n a_k {\partial\over\...
...al x_k'}}\right)^j f(x_1', \ldots, x_n')}\right\}_{x_1'=x_1, \ldots, x_n'=x_n}.$

(14)

Taking $n=2$ in (13) gives

$f(x_1,x_2)=\sum_{j=0}^\infty \left\{{{1\over j!}\left[{(x_1'-a_1){\partial \ove...
...artial \over \partial x_2'}}\right]^j f(x_1',x_2')}\right\}_{x_1'=x_1,x_2'=x_2}$
$= f(a_1,a_2)+\left[{(x_1-a_1){\partial f\over \partial x_1}+(x_2-a_2) {\partial f\over\partial x_2}}\right]$
$ +{1\over 2!} \left[{(x_1-a_1)^2 {\partial ^2f\over \partial {x_1}^2}+2(x_1-a_1...
...tial x_2}+(x_2-a_2)^2 {\partial ^2f\over \partial {x_2}^2}}\right]+\ldots.\quad$ (15)


Taking $n=3$ in (14) gives

$f(x_1+a_1, x_2+a_2, x_3+a_3)$
$ = \sum_{j=0}^\infty\left\{{{1\over j!} \left({a_1 {\partial\over\partial x_1'}...
...3'}}\right)^j f(x_1', x_2', x_3')}\right\}_{x_1'=x_1, x_2'=x_2, x_3'=x_3},\quad$ (16)
or, in Vector form

\begin{displaymath}
f({\bf r}+{\bf a}) = \sum_{j=0}^\infty \left[{\,{1\over j!} ...
...ot\nabla_{{\bf r}'})^j f({\bf r}')}\right]_{{\bf r}'={\bf r}}.
\end{displaymath} (17)

The zeroth- and first-order terms are
\begin{displaymath}
f({\bf r})
\end{displaymath} (18)

and
\begin{displaymath}
({\bf a}\cdot\nabla_{{\bf r}'})f({\bf r}')\vert _{{\bf r}'={\bf r}},
\end{displaymath} (19)

respectively. The second-order term is


$\displaystyle {\textstyle{1\over 2}}({\bf a}\cdot \nabla_{{\bf r}'})({\bf a}\cdot \nabla_{{\bf r}'}) f({\bf r}')\vert _{{\bf r}'={\bf r}}$ $\textstyle =$ $\displaystyle {\textstyle{1\over 2}}{\bf a}\cdot \nabla_{{\bf r}'} [{\bf a}\cdot(\nabla f({\bf r}'))]_{{\bf r}'={\bf r}}$  
  $\textstyle =$ $\displaystyle {\textstyle{1\over 2}}{\bf a}\cdot [{\bf a}\cdot\nabla_{{\bf r}'}(\nabla_{{\bf r}'} f({\bf r}'))]\vert _{{\bf r}'={\bf r}},$ (20)

so the first few terms of the expansion are


\begin{displaymath}
f({\bf r}+{\bf a}) = f({\bf r})+({\bf a}\cdot\nabla_{{\bf r}...
...r}'}(\nabla_{{\bf r}'} f({\bf r}'))]\vert _{{\bf r}'={\bf r}}.
\end{displaymath} (21)


Taylor series can also be defined for functions of a Complex variable. By the Cauchy Integral Formula,

$\displaystyle f(z)$ $\textstyle =$ $\displaystyle {1\over 2\pi i} \int_C {f(z')\,dz\over z'-z} = {1\over 2\pi i} \int_C {f(z')\,dz'\over (z'-z_0)-(z-z_0)}$  
  $\textstyle =$ $\displaystyle {1\over 2\pi i} \int_C {f(z')\,dz'\over (z'-z_0)\left({1 - {z-z_0\over z'-z_0}}\right)}.$ (22)

In the interior of $C$,
\begin{displaymath}
{\vert z-z_0\vert\over \vert z'-z_0\vert} < 1
\end{displaymath} (23)

so, using
\begin{displaymath}
{1\over 1-t} = \sum_{n=0}^\infty t^n,
\end{displaymath} (24)

it follows that
$\displaystyle f(z)$ $\textstyle =$ $\displaystyle {1\over 2\pi i} \int_C \sum_{n=0}^\infty {(z-z_0)^nf(z')\,dz'\over (z'-z_0)^{n+1}}$  
  $\textstyle =$ $\displaystyle {1\over 2\pi i} \sum_{n=0}^\infty (z-z_0)^n \int_C {f(z')\,dz\over (z'-z_0)^{n+1}}.$ (25)

Using the Cauchy Integral Formula for derivatives,
\begin{displaymath}
f(z) = \sum_{n=0}^\infty (z-z_0)^n {f^{(n)}(z_0)\over n!}.
\end{displaymath} (26)

See also Cauchy Remainder Form, Lagrange Expansion, Laurent Series, Legendre Series, Maclaurin Series, Newton's Forward Difference Formula


References

Abramowitz, M. and Stegun, C. A. (Eds.). Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables, 9th printing. New York: Dover, p. 880, 1972.

Arfken, G. ``Taylor's Expansion.'' §5.6 in Mathematical Methods for Physicists, 3rd ed. Orlando, FL: Academic Press, pp. 303-313, 1985.

Morse, P. M. and Feshbach, H. ``Derivatives of Analytic Functions, Taylor and Laurent Series.'' §4.3 in Methods of Theoretical Physics, Part I. New York: McGraw-Hill, pp. 374-398, 1953.



info prev up next book cdrom email home

© 1996-9 Eric W. Weisstein
1999-05-26