# Series expansion

An animation showing the cosine function being approximated by successive truncations of its Maclaurin series.

In mathematics, a series expansion is an expansion of a function into a series, or infinite sum.[1] It is a method for calculating a function that cannot be expressed by just elementary operators (addition, subtraction, multiplication and division).[2]

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.[3][verification needed]

## Types of series expansions

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.[4] More specifically, if a function ${\displaystyle f:U\mapsto \mathbb {R} }$ is infinitely differentiable around a point ${\displaystyle x_{0}}$, then the Taylor series of f around this point is given by ${\displaystyle \sum _{n=0}^{\infty }{\frac {f^{(n)}(x_{0})}{n!}}(x-x_{0})^{n}}$ under the convention ${\displaystyle 0^{0}:=1}$.[4][5] The Maclaurin series of a f is its Taylor series about ${\displaystyle x_{0}=0}$.[6][5] A Laurent series is a generalization of the Taylor series, allowing negative exponent values; it takes the form ${\displaystyle \sum _{k=-\infty }^{\infty }c_{k}(z-a)^{k}}$ and converges in an annulus.[7]

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 ${\displaystyle \sum _{n=1}^{k}n^{-s}}$, the magenta dotted line represents ${\displaystyle n^{-s+1}/(-s+1)+\zeta (s)}$, and the green dot represents ${\displaystyle \zeta (s)}$ as s is varied from -0.5 to 1.5.

A general Dirichlet series is a series of the form ${\displaystyle \sum _{n=1}^{\infty }a_{n}e^{-\lambda _{n}s}}$. One important special case of this is the ordinary Dirichlet series ${\displaystyle \sum _{n=1}^{\infty }{\frac {a_{n}}{n^{s}}}}$.[8] Used in number theory.[citation needed]

A Fourier series is an expansion of periodic functions as a sum of many sine and cosine functions.[9] More specifically, the Fourier series of a function ${\displaystyle f(t)}$ of period ${\displaystyle 2L}$ is given by the expression

${\displaystyle a_{0}+\sum _{n=1}^{\infty }(a_{n}\cos({\frac {n\pi t}{L}})+b_{n}\sin({\frac {n\pi t}{L}}))}$
where the coefficients are given by the formulae

${\displaystyle a_{n}:={\frac {1}{L}}\int _{-L}^{L}f(t)\cos({\frac {n\pi t}{L}})dt}$
${\displaystyle b_{n}:={\frac {1}{L}}\int _{-L}^{L}f(t)\sin({\frac {n\pi t}{L}})dt.}$
[9][10] In acoustics, e.g., the fundamental tone and the overtones together form an example of a Fourier series.[citation needed]

Legendre polynomials: Used in physics to describe an arbitrary electrical field as a superposition of a dipole field, a quadrupole field, an octupole field, etc.[citation needed]

Zernike polynomials: Used in optics to calculate aberrations of optical systems. Each term in the series describes a particular type of aberration.[citation needed]

The relative error in a truncated Stirling series vs. ${\displaystyle n}$, for 0 to 5 terms. The kinks in the curves represent points where the truncated series coincides with ${\displaystyle \Gamma (n+1)}$.

The Stirling series ${\displaystyle {\text{Ln}}\Gamma \left(z\right)\sim \left(z-{\tfrac {1}{2}}\right)\ln z-z+{\tfrac {1}{2}}\ln \left(2\pi \right)+\sum _{k=1}^{\infty }{\frac {B_{2k}}{2k(2k-1)z^{2k-1}}}}$ is an approximation of the log-gamma function.[11]

## Examples

The following is the Taylor series of ${\displaystyle e^{x}}$:

${\displaystyle e^{x}=\sum _{n=0}^{\infty }{\frac {x^{n}}{n!}}=1+x+{\frac {x^{2}}{2}}+{\frac {x^{3}}{6}}...}$
[12][13]

The Dirichlet series of the Riemann zeta function is

${\displaystyle \zeta (s):=\sum _{n=1}^{\infty }{\frac {1}{n^{s}}}={\frac {1}{1^{s}}}+{\frac {1}{2^{s}}}+\cdots }$
[8]

## References

1. ^ "Series expansion - Encyclopedia of Mathematics". encyclopediaofmath.org. 7 February 2011. Retrieved 12 August 2021.{{cite web}}: CS1 maint: url-status (link)
2. ^ "Series and Expansions". Mathematics LibreTexts. 2013-11-07. Retrieved 2021-12-24.
3. ^ Gil, Amparo; Segura, Javier; Temme, Nico M. (2007-01-01). Numerical Methods for Special Functions. SIAM. ISBN 978-0-89871-782-2.
4. ^ a b "Taylor series - Encyclopedia of Mathematics". encyclopediaofmath.org. 27 December 2013. Retrieved 22 March 2022.
5. ^ a b Edwards, C. Henry; Penney, David E. (2008). Elementary Differential Equations with Boundary Value Problems. p. 196. ISBN 0-13-600613-2.
6. ^ Weisstein, Eric W. "Maclaurin Series". mathworld.wolfram.com. Retrieved 2022-03-22.
7. ^ "Laurent series - Encyclopedia of Mathematics". encyclopediaofmath.org. Retrieved 2022-03-22.
8. ^ a b "Dirichlet series - Encyclopedia of Mathematics". encyclopediaofmath.org. 26 January 2022. Retrieved 22 March 2022.
9. ^ a b "Fourier series - Encyclopedia of Mathematics". encyclopediaofmath.org. Retrieved 2022-03-22.
10. ^ Edwards, C. Henry; Penney, David E. (2008). Elementary Differential Equations with Boundary Value Problems. pp. 558, 564. ISBN 0-13-600613-2.
11. ^ "DLMF: 5.11 Asymptotic Expansions". dlmf.nist.gov. Retrieved 22 March 2022.
12. ^ Weisstein, Eric W. "Exponential Function". mathworld.wolfram.com. Retrieved 2021-08-12.
13. ^ "Exponential function - Encyclopedia of Mathematics". encyclopediaofmath.org. 5 June 2020. Retrieved 12 August 2021.{{cite web}}: CS1 maint: url-status (link)