# Taylor series

###### Contents:

## 1 Real Taylor series

Let $f:I\to \mathbb{R}$ be a function^{} defined on an open interval^{} $I$,
possessing derivatives of all orders at $a\in I$.
Then the power series^{}

$$T(x)=\sum _{k=0}^{\mathrm{\infty}}\frac{{f}^{(k)}(a)}{k!}{(x-a)}^{k}$$ |

is called the *Taylor series ^{}* for $f$ centered at $a$.

Often the case $a=0$ is considered, and we have the simpler

$$T(x)=\sum _{k=0}^{\mathrm{\infty}}\frac{{f}^{(k)}(0)}{k!}{x}^{k},$$ |

called the *Maclaurin series* for $f$ by some authors.

If we perform formal term-by-term differentiation^{} of $T(x)$,
we find that ${T}^{(k)}(a)={f}^{(k)}(a)$, so it is plausible
that $T$ is an extrapolation or an approximation to $f$ based
on the derivatives of $f$ at a single point $a$.

In general, $T$ may not extrapolate or approximate $f$ in the strictest sense: a Taylor series does not necessarily converge, and even if it does, it may not necessarily converge to the original function $f$ (http://planetmath.org/InfinitelyDifferentiableFunctionThatIsNotAnalytic). It is also not necessarily true that a Taylor series about $a$ equals the Taylor series of $f$ about some other point $b$, when considered as functions.

Those functions whose Taylor series do converge
to the function are termed
*analytic (http://planetmath.org/Analytic) functions*.

If we start with a *convergent* power series
$f(x)={c}_{0}+{c}_{1}(x-a)+{c}_{2}{(x-a)}^{2}+\mathrm{\cdots}$ to
define a function $f$, then the Taylor series of $f$
about $a$ will turn out to be the same as our original power series.

## 2 Taylor polynomials

The $n$th degree *Taylor polynomial* for $f$ centered at $a$
is the polynomial^{}

$${P}_{n,a}(x)=\sum _{k=0}^{n}\frac{{f}^{(k)}(a)}{k!}{(x-a)}^{k}.$$ |

In general, ${P}_{n,a}$ has degree $\le n$; it may be $$ if some of the terms ${f}^{(k)}(a)$ vanish. Nevertheless, ${P}_{n,a}$ is characterized by the following properties: it is the unique polynomial of degree $\le n$ whose derivatives up to the $n$th order at $a$ agree with those of $f$; it is also the unique polynomial $p$ of degree $\le n$ such that

$$f(x)-p(x)=o({|x-a|}^{n}),\text{as}x\to a.$$ |

(Landau notation^{} is being used here.)
These characterizations are sometimes helpful in
actually computing Taylor polynomials.

The Taylor polynomial ${P}_{n,a}$ is applicable even if $f$ is only
differentiable^{} $n$ times at $a$, or when its Taylor series does
not converge to $f$.

The error from the approximation of $f$ by ${P}_{n,a}$,
or *remainder term*, ${R}_{n,a}(x)=f(x)-{P}_{n,a}(x)$,
can be quantified precisely
using Taylor’s theorem (http://planetmath.org/TaylorsTheorem).
In particular, Taylor’s Theorem is often used to show

$$\underset{n\to \mathrm{\infty}}{lim}{R}_{n,a}(x)=0,$$ |

which is equivalent to $T(x)=f(x)$, i.e. the Taylor series converges to the original function.

A term that is often heard is that of a “Taylor expansion”; depending on the circumstance, this may mean either the Taylor series or the $n$th degree Taylor polynomial. Both are useful to linearize or otherwise reduce the analytical complexity of a function. They are also useful for numerical approximation of functions, when the magnitude of the later terms fall off rapidly.

## 3 Examples

Using the above definition of a Taylor series about $0$, we have the following important series representations:

${e}^{x}$ | $=1+{\displaystyle \frac{x}{1!}}+{\displaystyle \frac{{x}^{2}}{2!}}+{\displaystyle \frac{{x}^{3}}{3!}}+\mathrm{\cdots}$ | ||

$\mathrm{sin}x$ | $={\displaystyle \frac{x}{1!}}-{\displaystyle \frac{{x}^{3}}{3!}}+{\displaystyle \frac{{x}^{5}}{5!}}-{\displaystyle \frac{{x}^{7}}{7!}}+\mathrm{\cdots}$ | ||

$\mathrm{cos}x$ | $=1-{\displaystyle \frac{{x}^{2}}{2!}}+{\displaystyle \frac{{x}^{4}}{4!}}-{\displaystyle \frac{{x}^{6}}{6!}}+\mathrm{\cdots}$ |

That the series on the right converge to the functions on the left can be proven by Taylor’s Theorem.

## 4 Complex Taylor series

If $f:U\to \u2102$ is a holomorphic function^{} from an open subset $U$ of the complex plane^{}, and $a\in U$, we may also consider its Taylor series about $a$ (defined with the same formulae as before, but with complex numbers^{}).

In contrast with the complex case, it turns out that all holomorphic functions
are infinitely differentiable and have Taylor series that converge to them.
(The radius of convergence^{} of the Taylor series at $a$ being the radius of the largest open disk about $a$ on which the domain of $f$ can be extended.)

This of course makes the theory of analytic functions very nice, and many questions about real power series and real analytic functions are more easily answered by looking at the complex case. For example, we can immediately tell that the Taylor series about the origin for the tangent function (http://planetmath.org/DefinitionsInTrigonometry)

$$\frac{\mathrm{sin}z}{\mathrm{cos}z}=\mathrm{tan}z=z+\frac{1}{3}{z}^{3}+\frac{2}{15}{z}^{5}+\frac{17}{315}{z}^{7}+\frac{62}{2835}{z}^{9}+\mathrm{\cdots}$$ |

has a radius of convergence of $\pi /2$, because $\mathrm{tan}$ is holomorphic everywhere except at its poles at $z=\pi /2+k\pi ,k\in \mathbb{Z}$, and $\pi /2$ is the distance that the closest of these poles get to the origin.

## 5 Taylor series and polynomials in Banach spaces

Taylor series and polynomials can be generalized to Banach spaces: for details, see Taylor’s formula in Banach spaces.

## 6 Taylor series and polynomials for functions of several variables

The simplest Banach spaces are the spaces ${\mathbb{R}}^{n}$, and in this case Taylor series and Taylor polynomials for functions $f:{\mathbb{R}}^{n}\to \mathbb{R}$ (“functions of $n$ variables”) look like this:

$T(x)$ | $={\displaystyle \sum _{{i}_{1}=0}^{\mathrm{\infty}}}\mathrm{\cdots}{\displaystyle \sum _{{i}_{n}=0}^{\mathrm{\infty}}}{\displaystyle \frac{{f}^{({i}_{1},{i}_{2},\mathrm{\dots},{i}_{n})}(0)}{{i}_{1}!{i}_{2}!\mathrm{\cdots}{i}_{n}!}}{x}_{1}^{{i}_{1}}{x}_{2}^{{i}_{2}}\mathrm{\cdots}{x}_{n}^{{i}_{n}},{f}^{({i}_{1},{i}_{2},\mathrm{\dots},{i}_{n})}(0)={{\displaystyle \frac{{\partial}^{{i}_{1}+\mathrm{\cdots}+{i}_{n}}f}{\partial {x}_{1}^{{i}_{1}}\mathrm{\cdots}\partial {x}_{n}^{{i}_{n}}}}|}_{x=0},$ | ||

${P}_{N,0}(x)$ | $={\displaystyle \sum _{{i}_{1}+\mathrm{\cdots}+{i}_{n}\le N}}{\displaystyle \frac{{f}^{({i}_{1},{i}_{2},\mathrm{\dots},{i}_{n})}(0)}{{i}_{1}!{i}_{2}!\mathrm{\cdots}{i}_{n}!}}{x}_{1}^{{i}_{1}}{x}_{2}^{{i}_{2}}\mathrm{\cdots}{x}_{n}^{{i}_{n}}={{\displaystyle \sum _{|I|\le N}}{\displaystyle \frac{1}{I!}}{\displaystyle \frac{{\partial}^{|I|}f}{\partial {x}^{I}}}|}_{x=0}{x}^{I}.$ |

(For simplicity, we have put the centre at $a=0$. The last expression employs a commonly-used multi-index notation.)

For example, the second-degree Taylor polynomial for $f(x,y)=\mathrm{cos}(x+y)$ centered about $(0,0)$ is

$${P}_{2,0}(x,y)=1-\frac{1}{2}{x}^{2}-xy-\frac{1}{2}{y}^{2}.$$ |

Note that ${P}_{2,0}(x,y)$ can also be obtained by taking the one-variable Taylor series $\mathrm{cos}t=1-{t}^{2}/2+\mathrm{\cdots}$ and substituting $t=x+y$, and keeping only the terms of degree $\le 2$. This procedure works because of the uniqueness characterization of Taylor polynomials.

## 7 Taylor expansion of formal polynomials

If $f$ is a polynomial function, of degree $n$, then its Taylor series and its Taylor polynomial of degree $\ge n$ actually equal $f$. For this reason, we can consider Taylor series and polynomials applied to formal polynomials, without any notion of convergence. (The usual derivative is replaced by formal differentiation.) In this setting, a “Taylor expansion” of a formal polynomial $p(x)$ about $a$ amounts to nothing more than rewriting $p(x)$ in the form ${c}_{0}+{c}_{1}(x-a)+\mathrm{\cdots}+{c}_{n}{(x-a)}^{n}$.

Similar considerations apply to formal power series, or to formal polynomials of several variables.

## References

- 1 Lars V. Ahlfors. Complex Analysis, third edition. McGraw-Hill, 1979.
- 2 Michael Spivak. Calculus, third edition. Publish or Perish, 1994.

Title | Taylor series |

Canonical name | TaylorSeries |

Date of creation | 2013-03-22 11:56:59 |

Last modified on | 2013-03-22 11:56:59 |

Owner | stevecheng (10074) |

Last modified by | stevecheng (10074) |

Numerical id | 24 |

Author | stevecheng (10074) |

Entry type | Definition |

Classification | msc 41A58 |

Classification | msc 26A24 |

Classification | msc 30B10 |

Related topic | PowerSeries |

Related topic | Analytic |

Related topic | TaylorsTheorem |

Related topic | ConverseToTaylorsTheorem |

Related topic | CalculusOfVariations |

Related topic | EulerRelation |

Defines | Taylor polynomial |

Defines | Taylor expansion |

Defines | Maclaurin series |