Series expansion

In mathematics, a series expansion is a technique that expresses a function as an infinite sum, or series, of simpler functions.

It is a method for calculating a function that cannot be expressed by just elementary operators (addition, subtraction, multiplication and division).

[1] The resulting so-called series often can be limited to a finite number of terms, thus yielding an approximation of the function.

The fewer terms of the sequence are used, the simpler this approximation will be.

Often, the resulting inaccuracy (i.e., the partial sum of the omitted terms) can be described by an equation involving Big O notation (see also asymptotic expansion).

The series expansion on an open interval will also be an approximation for non-analytic functions.

[2][verification needed] There are several kinds of series expansions, listed below.

A Taylor series is a power series based on a function's derivatives at a single point.

[3] More specifically, if a function

is infinitely differentiable around a point

, then the Taylor series of f around this point is given by

under the convention

[3][4] The Maclaurin series of f is its Taylor series about

[5][4] A Laurent series is a generalization of the Taylor series, allowing terms with negative exponents; it takes the form

and converges in an annulus.

[6] In particular, a Laurent series can be used to examine the behavior of a complex function near a singularity by considering the series expansion on an annulus centered at the singularity.

A general Dirichlet series is a series of the form

λ

One important special case of this is the ordinary Dirichlet series

[7] Used in number theory.

[citation needed] A Fourier series is an expansion of periodic functions as a sum of many sine and cosine functions.

[8] More specifically, the Fourier series of a function

of period

is given by the expression

cos ⁡

where the coefficients are given by the formulae[8][9]

f ( x ) cos ⁡

{\displaystyle {\begin{aligned}a_{n}&:={\frac {1}{L}}\int _{-L}^{L}f(x)\cos \left({\frac {n\pi x}{L}}\right)dx,\\b_{n}&:={\frac {1}{L}}\int _{-L}^{L}f(x)\sin \left({\frac {n\pi x}{L}}\right)dx.\end{aligned}}}

The following is the Taylor series of

[11][12] The Dirichlet series of the Riemann zeta function is

Approximation of cosine by a Taylor series
An animation showing the cosine function being approximated by successive truncations of its Maclaurin series .
spiral representing partial sums of the Dirichlet series defining the Riemann zeta function
Convergence and divergence of partial sums of the Dirichlet series defining the Riemann zeta function . Here, the yellow line represents the first fifty successive partial sums the magenta dotted line represents and the green dot represents as s is varied from -0.5 to 1.5.
The relative error in a truncated Stirling series vs. n , for 0 to 5 terms. The kinks in the curves represent points where the truncated series coincides with