thumb|300px|As the degree of the Taylor polynomial rises, it approaches the correct function. This image shows and its Taylor approximations by polynomials of degree <span style="color:red;">1</span>, <span style="color:orange;">3</span>, <span style="color:yellow;">5</span>, <span style="color:lime;">7</span>, <span style="color:blue;">9</span>, <span style="color:indigo;">11</span>, and <span style="color:violet;">13</span> at .

In mathematical analysis, the Taylor series or Taylor expansion of a function is an infinite sum of terms that are expressed in terms of the function's derivatives at a single point. For most common functions, the function and the sum of its Taylor series are equal near this point. Taylor series are named after Brook Taylor, who introduced them in 1715. A Taylor series is also called a Maclaurin series when is the point where the derivatives are considered, after Colin Maclaurin, who made extensive use of this special case of Taylor series in the 18th century.

The partial sum formed by the first terms of a Taylor series is a polynomial of degree that is called the th Taylor polynomial of the function. Taylor polynomials are approximations of a function, which become generally more accurate as increases. Taylor's theorem gives quantitative estimates on the error introduced by the use of such approximations. If the Taylor series of a function is convergent, its sum is the limit of the infinite sequence of the Taylor polynomials. A function may differ from the sum of its Taylor series, even if its Taylor series is convergent. A function is analytic at a point if it is equal to the sum of its Taylor series in some open interval (or open disk in the complex plane) containing . This implies that the function is analytic at every point of the interval (or disk).

Definition

The Taylor series of a real or complex-valued function , that is infinitely differentiable at a real or complex number , is the power series

<!--

Any changes to the following formula, without first obtaining consensus on the discussion page will be reverted. In particular, *DO NOT* add f(x)= here.

-->

<math display="block"> f(a) + \frac {f'(a)}{1!}(x-a) + \frac{f(a)}{2!} (x-a)^2+ \cdots = \sum_{n=0} ^ {\infty} \frac {f^{(n)}(a)}{n!} (x-a)^{n}. </math>

Here, denotes the factorial of . The function denotes the th derivative of evaluated at the point . The derivative of order zero of is defined to be itself and and are both defined to be&nbsp;. This series can be written by using sigma notation, as in the right side formula.

The corresponding Taylor polynomial of degree is

<math display="block">

T_n(x)=\sum_{k=0}^{n}\frac{f^{(k)}(a)}{k!}(x-a)^k.

</math>

With , the Maclaurin series takes the form:

<math display="block"> f(0)+\frac {f'(0)}{1!} x+ \frac{f(0)}{2!} x^2+ \cdots = \sum_{n=0} ^ {\infty} \frac {f^{(n)}(0)}{n!} x^{n}. </math>

Basic properties

Taylor series inherit the basic properties of power series. Taylor series can also be combined algebraically. Sums, differences, products, and scalar multiples of Taylor series are obtained by the corresponding operations on power series. In particular, the Taylor series of <math>f(x)g(x)</math> around a point <math>x=a</math> is the Cauchy product of the Taylor series of <math>f(x)</math> and <math>g(x)</math> about <math>x=a</math>. Compositions of functions having Taylor series likewise have Taylor series, obtained by substituting one convergent power series into another when the substitution is valid.

A Taylor series may be differentiated and integrated term by term. Thus

<math display="block">

\frac{d}{dx}\sum_{n=0}^{\infty} c_n (x-a)^n

=

\sum_{n=1}^{\infty} n c_n (x-a)^{n-1},

</math>

and

<math display="block">

\int \sum_{n=0}^{\infty} c_n (x-a)^n\,dx

=

C+\sum_{n=0}^{\infty} \frac{c_n}{n+1}(x-a)^{n+1}.

</math>

The differentiated and integrated series have the same radius of convergence as the original power series, although the convergence behavior at the boundary may be different.

These properties sometimes allow the Taylor series of functions, such as the arctangent, to be computed in terms of simpler series, such as the geometric series.

Calculation of Taylor series

Several methods can be used to calculate Taylor series. One may apply the definition directly, although this often requires first identifying a general formula for the derivatives or coefficients. In many cases, Taylor series can also be obtained from known expansions by algebraic manipulations of power series, such as substitution, multiplication, division, addition, or subtraction, as well as termwise differentiation and integration of known Taylor series. In some cases, they may also be derived by repeated integration by parts. In practice, Taylor series are often computed with the aid of computer algebra systems.

A number of standard Maclaurin series are frequently used as starting points for calculating other Taylor series. Some fundamental examples are listed below; a more comprehensive listing appears later in the article.

{| class="wikitable"

|+ Common Maclaurin series

! Function

! Maclaurin series

! Convergence

|-

| <math>e^x</math>

| <math>\displaystyle \sum_{n=0}^{\infty}\frac{x^n}{n!}

=1+x+\frac{x^2}{2!}+\frac{x^3}{3!}+\cdots</math>

| All <math>x</math>

|-

| <math>\sin x</math>

| <math>\displaystyle \sum_{n=0}^{\infty}(-1)^n\frac{x^{2n+1{(2n+1)!}

=x-\frac{x^3}{3!}+\frac{x^5}{5!}-\cdots</math>

| All <math>x</math>

|-

| <math>\cos x</math>

| <math>\displaystyle \sum_{n=0}^{\infty}(-1)^n\frac{x^{2n{(2n)!}

=1-\frac{x^2}{2!}+\frac{x^4}{4!}-\cdots</math>

| All <math>x</math>

|-

| <math>\frac{1}{1-x}</math>

| <math>\displaystyle \sum_{n=0}^{\infty}x^n

=1+x+x^2+x^3+\cdots</math>

| <math>|x|<1</math>

|}

Examples

Term-by-term differentiation

Inside the region of convergence, a Taylor series can be differentiated term-by-term. For example, differentiating the geometric series

<math display="block">\frac1{1-x} = 1 + x + x^2 + x^3 + \cdots,\quad |x|<1, </math>

one gets

<math display="block">\frac{d}{dx}\frac{1}{1-x} = \frac{1}{(1-x)^2} = 0 + 1 + 2x + 3x^2 + \cdots, \quad |x|<1.</math>

Thus

<math display="block">\frac{1}{(1-x)^2} = \sum_{n=1}^\infty nx^{n-1},\quad |x|<1.</math>

This process can be iterated, giving

<math display="block">\frac{1}{(1-x)^3} = \sum_{n=2}^\infty n(n-1)x^{n-2},\quad |x|<1.</math>

<math display="block">\frac{1}{(1-x)^4} = \sum_{n=3}^\infty n(n-1)(n-2)x^{n-3},\quad |x|<1.</math>

and so forth.

Term-by-term integration

Inside the region of convergence, a Taylor series can be integrated term-by-term. For example, integrating the geometric series

<math display="block">\frac1{1-t} = 1 + t + t^2 + t^3 + \cdots,\quad |t|<1, </math>

one gets

<math display="block"> -\log(1-x) = \int_0^x \frac{dt}{1-t} = x + \frac{x^2}{2} + \frac{x^3}{3} + \frac{x^4}{4} + \cdots,\quad |x|<1.</math>

This gives the Maclaurin series

<math display="block">\log(1-x)=-\sum_{n=1}^\infty \frac{x^n}{n},</math>

valid for <math>|x|<1</math>.

Substitution

Taylor series can be composed, for example if the Taylor series of <math>f(t)</math> is known, then the Taylor series of <math>f(x^n)</math> is obtained by evaluating at <math>t=x^n</math> term by term. For instance, the geometric series <math>1/(1-t) = 1+t+t^2+\cdots</math> evaluated at <math>t=-x^2</math> gives

<math display="block">\frac{1}{1+x^2} = 1 - x^2 + x^4 - x^6 + \cdots = \sum_{n=0}^\infty (-1)^n x^{2n}.</math>

This last series can be integrated term-by-term to give

<math display="block">\arctan x = \int_0^x \frac{dt}{1+t^2} = \sum_{n=0}^\infty \frac{(-1)^n}{2n+1}x^{2n+1},</math>

for <math>|x|<1</math>.

Composition

In order to compute the 7th-degree Maclaurin polynomial for the function

<math display="block">f(x)=\ln(\cos x),\quad x\in\bigl({-\tfrac\pi2}, \tfrac\pi2\bigr),</math>

one may first rewrite the function as

<math display="block">f(x)={\ln}\bigl(1+(\cos x-1)\bigr),</math>

the composition of two functions and . The Taylor series for the natural logarithm is (using big O notation)

<math display="block">\ln(1+x) = x - \frac{x^2}2 + \frac{x^3}3 + O{\left(x^4\right)}</math>

and for the cosine function

<math display="block">\cos x - 1 = -\frac{x^2}2 + \frac{x^4}{24} - \frac{x^6}{720} + O{\left(x^8\right)}.</math>

The first several terms from the second series can be substituted into each term of the first series. Because the first term in the second series has degree 2, three terms of the first series suffice to give a polynomial of degree 7:

<math display="block">\begin{align}f(x) &= \ln\bigl(1+(\cos x-1)\bigr) \\

&= (\cos x-1) - \tfrac12(\cos x-1)^2 + \tfrac13(\cos x-1)^3+ O{\left((\cos x-1)^4\right)} \\

&= - \frac{x^2}2 - \frac{x^4}{12} - \frac{x^6}{45}+O{\left(x^8\right)}. \end{align}</math>

Since the cosine is an even function, the coefficients for all the odd powers are zero.

Division

Given that the Taylor series at of the function . The Taylor series for the exponential function is

<math display="block">e^x =1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \frac{x^4}{4!}+\cdots,</math>

and the series for cosine is

<math display="block">\cos x = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \cdots.</math>

Assume the series for their quotient is

<math display="block">\frac{e^x}{\cos x} = c_0 + c_1 x + c_2 x^2 + c_3 x^3 + c_4x^4 + \cdots</math>

Multiplying both sides by the denominator and then expanding it as a series yields

<math display="block">\begin{align}

e^x &= \left(c_0 + c_1 x + c_2 x^2 + c_3 x^3 + c_4x^4 + \cdots\right)\left(1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \cdots\right) \\[5mu]

&= c_0 + c_1x + \left(c_2 - \frac{c_0}{2!}\right)x^2 + \left(c_3 - \frac{c_1}{2!}\right)x^3+\left(c_4-\frac{c_2}{2!}+\frac{c_0}{4!}\right)x^4 + \cdots

\end{align}</math>

Comparing the coefficients of with the coefficients of ,

<math display="block">

c_0 = 1,\ \ c_1 = 1,\ \

c_2 - \tfrac12 c_0 = \tfrac12,\ \ c_3 - \tfrac12 c_1 = \tfrac16,\ \

c_4 - \tfrac12 c_2 + \tfrac1{24} c_0 = \tfrac1{24},\ \ldots.

</math>

The coefficients of the series for can thus be computed one at a time, amounting to long division of the series for and :

<math display="block">\frac{e^x}{\cos x}=1 + x + x^2 + \tfrac23 x^3 + \tfrac12 x^4 + \cdots.</math>

Non-elementary integrals

Term-by-term integration of Taylor series can be used to find the Taylor series of non-elementary integrals. For example, the Fresnel integral is

<math display="block">S(x) = \int_0^x \sin(t^2)\,dt</math>

and <math>S(x)</math> cannot be expressed in terms of elementary functions. Its Maclaurin series can be determined by termwise integration of the series

<math display="block">\sin(t^2) = \sum_{n=0}^\infty \frac{(-1)^n}{(2n+1)!}t^{4n+2},</math>

giving

<math display="block">S(x) = \sum_{n=0}^\infty \frac{(-1)^n}{(4n+3)(2n+1)!}x^{4n+3}.</math>

Differential equations

Taylor series can also be used to solve some ordinary differential equations. The method is to assume that the solution has a power series expansion, differentiate the series term by term, substitute the resulting series into the differential equation, and then determine the coefficients by equating like powers of the variable.

For example, to solve

<math display="block">y-y=0,</math>

suppose that

<math display="block">y=\sum_{n=0}^{\infty}a_nx^n.</math>

Then

<math display="block">y=\sum_{n=2}^{\infty}n(n-1)a_nx^{n-2}

=\sum_{n=0}^{\infty}(n+2)(n+1)a_{n+2}x^n.</math>

Substitution into the differential equation gives

<math display="block">

\sum_{n=0}^{\infty}\bigl((n+2)(n+1)a_{n+2}-a_n\bigr)x^n=0.

</math>

Since power series expansions are unique, each coefficient must vanish, so

<math display="block">

a_{n+2}=\frac{a_n}{(n+2)(n+1)}.

</math>

The even and odd coefficients are therefore determined separately by the arbitrary constants <math>a_0</math> and <math>a_1</math>:

<math display="block">

y=a_0\left(1+\frac{x^2}{2!}+\frac{x^4}{4!}+\cdots\right)

+a_1\left(x+\frac{x^3}{3!}+\frac{x^5}{5!}+\cdots\right).

</math>

Thus

<math display="block">

y=a_0\cosh x+a_1\sinh x,

</math>

or equivalently <math>y=C_1e^x+C_2e^{-x}</math>.

Approximation error and Taylor's theorem

The error incurred in approximating a function by its degree Taylor polynomial is called the remainder and is denoted by the function . Taylor's theorem can be used to obtain a bound on the size of the remainder.

In particular, Taylor's theorem writes a function, where the hypotheses of the theorem are satisfied, in the form

<math display="block">

f(x)=\sum_{k=0}^{n}\frac{f^{(k)}(a)}{k!}(x-a)^k+R_n(x).

</math>

The behavior of the remainder as tends to infinity determines whether the Taylor series represents the original function, which are questions of convergence and analyticity.

Generalization in finite differences

One form of the Gregory–Newton interpolation formula can be written as

<math display="block">f(x)=\sum_{k=0}^\infty\frac{\Delta^k [f](a)}{k!} \,(x-a)_k

</math>

which interpolates a polynomial <math>f</math> in terms of its finite differences evaluated at a single point <math>a</math>, and where <math>(x-a)_k</math> is the falling factorial. For a polynomial, this series terminates and gives the polynomial exactly; more generally, a function admits a Gregory–Newton development under suitable analytic hypotheses, classically formulated by Niels Erik Nørlund in terms of holomorphy in a half-plane together with an exponential type growth condition.

One generalization of the Taylor series that does converge to the value of the function itself for any bounded continuous function on , and this can be done by using the calculus of finite differences. Specifically, the following theorem, due to Einar Hille, that for any ,

<math display="block" >\lim_{h\to 0^+}\sum_{n=0}^\infty \frac{t^n}{n!}\frac{\Delta_h^nf(a)}{h^n} = f(a+t).</math>

Here is the th finite difference operator with step size . The series is precisely the Taylor series, except that divided differences appear in place of differentiation. When the function is analytic at , the terms in the series converge to the terms of the Taylor series, and in this sense generalizes the usual Taylor series.

In general, for any infinite sequence , the following power series identity holds:

<math display="block">\sum_{n=0}^\infty\frac{u^n}{n!}\Delta^na_i = e^{-u}\sum_{j=0}^\infty\frac{u^j}{j!}a_{i+j}.</math>

So in particular,

<math display="block">f(a+t) = \lim_{h\to 0^+} e^{-t/h}\sum_{j=0}^\infty f(a+jh) \frac{(t/h)^j}{j!}.</math>

The series on the right is the expected value of , where is a Poisson-distributed random variable that takes the value with probability . Hence,

<math display="block">f(a+t) = \lim_{h\to 0^+} \int_{-\infty}^\infty f(a+x)dP_{t/h,h}(x).</math>

The law of large numbers implies that the identity holds.

Convergence and analyticity

A Taylor series is formed from the values of all derivatives of a function at a single point, but this does not by itself imply that the series converges to the function. In general, a Taylor series may fail to converge, or it may converge to a function different from the original one.

For example, the function

<math display="block">

f(x) = \begin{cases}

e^{-1/x^2} & \text{if } x \neq 0, \\[3mu]

0 & \text{if } x = 0

\end{cases}

</math>

is infinitely differentiable at <math>x=0</math>, and all of its derivatives at <math>0</math> are equal to zero. Its Taylor series at <math>0</math> is therefore the zero series, even though the function itself is not identically zero. This gives a standard example of a non-analytic smooth function.

upright=1.4|thumb|right|The function is not analytic at : the Taylor series is identically , although the function is not.

More generally, the Taylor series of a function represents the function at a point <math>x</math> precisely when the remainder terms in Taylor's theorem tend to zero at that point. If

<math display="block">

f(x)=\sum_{k=0}^n \frac{f^{(k)}(a)}{k!}(x-a)^k+R_n(x),

</math>

then the Taylor series converges to <math>f(x)</math> exactly when

<math display="block">

\lim_{n\to\infty} R_n(x)=0.

</math>

A function is called analytic at a point if it is equal to the sum of its Taylor series in some open interval around that point, or, in the complex case, in some open disk. Equivalently, a function is analytic in a region if it is locally given by a convergent power series. Thus, if

<math display="block">

f(x)=\sum_{n=0}^{\infty}a_n(x-b)^n

</math>

near <math>b</math>, then differentiating the series term by term and setting <math>x=b</math> gives

<math display="block">

a_n=\frac{f^{(n)}(b)}{n!}.

</math>

Thus the power series expansion of an analytic function is its Taylor series.

In real analysis, infinite differentiability does not imply analyticity, as the example above shows. Borel's lemma implies that every power series is the Taylor series of some smooth function. In complex analysis, however, every holomorphic function is analytic. A function whose Taylor series converges to the function throughout the whole complex plane is called an entire function. Polynomials, the exponential function, and the sine and cosine functions are entire functions.

Radius of convergence

For any power series

<math display="block">

\sum_{n=0}^\infty c_n(x-a)^n,

</math>

there is a number <math>R</math>, called the radius of convergence, such that the series converges absolutely for <math>|x-a|<R</math> and diverges for <math>|x-a|>R</math>. The radius may be zero, finite and positive, or infinite. It is given by the Cauchy–Hadamard formula

<math display="block">

\frac{1}{R}=\limsup_{n\to\infty}|c_n|^{1/n},

</math>

with the usual conventions for <math>R=0</math> and <math>R=\infty</math>. When the limit exists, the ratio test often gives

<math display="block">

R=\lim_{n\to\infty}\left|\frac{c_n}{c_{n+1\right|.

</math>

Thus, when a Taylor series converges, it does so in an open interval centered at <math>a</math> in the real case, or in an open disk centered at <math>a</math> in the complex case. The behavior at the boundary points may vary: the series may converge at some, all, or none of them.

For a complex analytic function, the radius of convergence of the Taylor series at <math>a</math> is the distance from <math>a</math> to the nearest point where the function cannot be continued holomorphically. In many common examples this is the distance to the nearest singularity in the complex plane.

This explains the different radii of convergence for familiar Taylor series. The series for <math>e^x</math>, <math>\sin x</math>, and <math>\cos x</math> have infinite radius of convergence because these functions are entire. By contrast, the Taylor series for <math>\log(1+x)</math> at <math>x=0</math> has radius of convergence <math>1</math>, because the nearest singularity is at <math>x=-1</math>.

Complex singularities can determine the radius of convergence even for functions that are smooth on the real line. For example,

<math display="block">

\frac{1}{1+x^2}

</math>

is smooth for every real <math>x</math>, but its Taylor series at <math>0</math> has radius of convergence <math>1</math>, because the corresponding complex function has singularities at <math>x=i</math> and <math>x=-i</math>.

The radius of convergence should not be confused with the quality of approximation by a low-degree Taylor polynomial. A Taylor polynomial may approximate a function accurately near the center even if the full Taylor series has a small radius of convergence. Conversely, near the boundary of the interval or disk of convergence, the Taylor series may converge slowly. Outside the radius of convergence, the Taylor series does not represent the function.

Generalizations near singularities

A Taylor series cannot be centered at a point where the function is not analytic. Some singularities, namely poles, can be accounted for by a Laurent series. If <math>f</math> has a pole of order <math>k</math> at <math>z=a</math>, then near <math>a</math> it has a Laurent series of the form

<math display="block">

\sum_{n=-k}^{\infty} a_n (z-a)^n .

</math>

A meromorphic function is a function which is analytic except at isolated poles; near each pole it has a Laurent series with only finitely many negative-power terms.

More generally, a function analytic in an annulus

<math display="block">

r<|z-a|<R

</math>

has a convergent Laurent series of the form

<math display="block">

\sum_{n=-\infty}^{\infty} a_n (z-a)^n

</math>

in that annulus.

Other types of singularities, namely branch points, can occur for algebraic functions. If <math>f(z)</math> is an algebraic function of a complex variable <math>z</math> and <math>z=a</math> is a branch point, then <math>f(z)</math> need not have a Taylor series based at <math>z=a</math>. However, after a change of variables

<math display="block">

z-a=t^e,

</math>

where <math>e</math> is a positive integer called the ramification index, a branch of the function becomes analytic as a function of <math>t</math>. The resulting expansion in fractional powers of <math>z-a</math> is known as a Puiseux series.

Taylor series in multiple variables <span class="anchor" id="In several variables"></span>

The Taylor series may also be generalized to functions of more than one variable with

<math display="block">\begin{align}

T(x_1,\ldots,x_d) &= \sum_{n_1=0}^\infty \cdots \sum_{n_d = 0}^\infty \frac{(x_1-a_1)^{n_1}\cdots (x_d-a_d)^{n_d{n_1!\cdots n_d!}\,\left(\frac{\partial^{n_1 + \cdots + n_d}f}{\partial x_1^{n_1}\cdots \partial x_d^{n_d\right)(a_1,\ldots,a_d) \\

&= f(a_1, \ldots,a_d) + \sum_{j=1}^d \frac{\partial f(a_1, \ldots,a_d)}{\partial x_j} (x_j - a_j) + \frac{1}{2!} \sum_{j=1}^d \sum_{k=1}^d \frac{\partial^2 f(a_1, \ldots,a_d)}{\partial x_j \partial x_k} (x_j - a_j)(x_k - a_k) \\

& \qquad \qquad + \frac{1}{3!} \sum_{j=1}^d\sum_{k=1}^d\sum_{l=1}^d \frac{\partial^3 f(a_1, \ldots,a_d)}{\partial x_j \partial x_k \partial x_l} (x_j - a_j)(x_k - a_k)(x_l - a_l) + \cdots, \\

&= \sum_{|\alpha| \geq 0}\frac{(\mathbf{x}-\mathbf{a})^\alpha}{\alpha !} \left({\mathrm{\partial}^{\alphaf\right)(\mathbf{a}).

\end{align}</math>

The last expression is the multivariate Taylor series in terms of multi-index notation with a full analogy to the single variable case.

For example, for a function that depends on two variables, and , the Taylor series to second order about the point is

<math display="block">f(a,b) +(x-a) f_x(a,b) +(y-b) f_y(a,b) + \frac{1}{2!}\Big( (x-a)^2 f_{xx}(a,b) + 2(x-a)(y-b) f_{xy}(a,b) +(y-b)^2 f_{yy}(a,b) \Big)</math>

where the subscripts denote the respective partial derivatives.

Second-order Taylor series in several variables

A second-order Taylor series expansion of a scalar-valued function of more than one variable can be written compactly as

<math display="block">T(\mathbf{x}) = f(\mathbf{a}) + (\mathbf{x} - \mathbf{a})^\mathsf{T} D f(\mathbf{a}) + \frac{1}{2!} (\mathbf{x} - \mathbf{a})^\mathsf{T} \left \{D^2 f(\mathbf{a}) \right \} (\mathbf{x} - \mathbf{a}) + \cdots,</math>

where is the gradient of evaluated at and is the Hessian matrix.

Example

200px|thumb|right|Second-order Taylor series approximation (in orange) of a function around the origin.

In order to compute a second-order Taylor series expansion around the point of the function

<math display="block">f(x,y)=e^x\ln(1+y),</math>

one first computes all the necessary partial derivatives:

<math display="block">\begin{align}

f_x &= e^x\ln(1+y), & f_y &= \frac{e^x}{1+y}, \\

f_{xx} &= e^x\ln(1+y), & f_{yy} &= -\frac{e^x}{(1+y)^2}, \\

f_{xy} &= f_{yx} = \frac{e^x}{1+y}.

\end{align}</math>

Evaluating these derivatives at the origin gives the Taylor coefficients

<math display="block">\begin{align}

f_x(0,0) &= 0, & f_y(0,0) &= 1, \\

f_{xx}(0,0) &= 0, & f_{yy}(0,0) &= -1, \\

f_{xy}(0,0) &= 1.

\end{align}</math>

Substituting these values in to the general formula

<math display="block">\begin{align}

T(x,y) &= f(a,b) +(x-a) f_x(a,b) +(y-b) f_y(a,b) \\

&\qquad {}+\frac{1}{2!}\left( (x-a)^2f_{xx}(a,b)

+ 2(x-a)(y-b)f_{xy}(a,b) +(y-b)^2 f_{yy}(a,b) \right)+ \cdots

\end{align}</math>

produces

<math display="block">\begin{align}

T(x,y) &= 0 + 0(x-0) + 1(y-0) + \frac{1}{2}\big( 0(x-0)^2 + 2(x-0)(y-0) + (-1)(y-0)^2 \big) + \cdots \\

&= y + xy - \tfrac12 y^2 + \cdots

\end{align}</math>

Since is analytic in , we have

<math display="block">e^x\ln(1+y)= y + xy - \tfrac12 y^2 + \cdots, \qquad |y| < 1.</math>

Applications

Taylor polynomials are used to approximate functions near a point. Keeping only the first nonzero terms often gives a simpler model of a more complicated expression. For example, the small-angle approximation

<math display="block">\sin x \approx x</math>

comes from the first term of the Taylor series for sine, and higher-order approximations are obtained by retaining more terms. This approximation is widely used: for example, in Gaussian optics where the behavior of light rays making small angles with an axis is studied by replacing the sine function with its linear approximation.

Such approximations are used throughout mathematics, physics, and engineering. In perturbation theory, a complicated quantity is often expanded in powers of a small parameter, and the first few terms are used as an approximate solution. Taylor expansions also occur in the analysis of the simple pendulum and in numerical methods for approximating functions.

History

The ancient Greek philosopher Zeno of Elea considered the problem of summing an infinite series to achieve a finite result, but rejected it as an impossibility; the result was Zeno's paradox. Later, Aristotle proposed a philosophical resolution of the paradox, but the mathematical content was apparently unresolved until taken up by Archimedes, as it had been prior to Aristotle by the Presocratic Atomist Democritus. It was through Archimedes's method of exhaustion that an infinite number of progressive subdivisions could be performed to achieve a finite result. Liu Hui independently employed a similar method a few centuries later.<!--I'm sure there are better refs than this. Hui gave fairly "rigorous" bounds on the convergence, if I recall. But it isn't addressed here.-->

In the 14th century, the earliest examples of specific Taylor series (but not the general method) were given by the Indian mathematician Madhava of Sangamagrama. Though no record of his work survives, writings of his followers in the Kerala school of astronomy and mathematics suggest that he found the Taylor series for the trigonometric functions of sine, cosine, and arctangent; see Madhava series. During the following two centuries, his followers developed further series expansions and rational approximations.

In late 1670, James Gregory was shown in a letter from John Collins several Maclaurin series (, , , and ) derived by Isaac Newton, and told that Newton had developed a general method for expanding functions in series. Newton had in fact used a cumbersome method involving long division of series and term-by-term integration, but Gregory did not know it and set out to discover a general method for himself. In early 1671 Gregory discovered something like the general Maclaurin series and sent a letter to Collins including series for , , , (the integral of ), (the integral of , the inverse Gudermannian function), , and (the Gudermannian function). However, thinking that he had merely redeveloped a method by Newton, Gregory never described how he obtained these series, and it can only be inferred that he understood the general method by examining scratch work he had scribbled on the back of another letter from 1671.

In 1691–1692, Newton wrote down an explicit statement of the Taylor and Maclaurin series in an unpublished version of his work De Quadratura Curvarum. It was the earliest explicit formulation of the general Taylor series. However, this work by Newton was never completed and the relevant sections were omitted from the portions published in 1704 under the title Tractatus de Quadratura Curvarum.

It was not until 1715 that a general method for constructing these series for all functions for which they exist was finally published by Brook Taylor, after whom the series are now named.

The Maclaurin series was named after Colin Maclaurin, a Scottish mathematician, who published a special case of the Taylor result in the mid-18th century.

List of Maclaurin series of some common functions

Several important Maclaurin series expansions follow. All these expansions are valid for complex arguments . For multivalued complex functions, such as logarithms, fractional powers, and inverse trigonometric functions, a principal branch is understood.

Exponential function

right|thumb|The [[exponential function (in blue), and the sum of the first terms of its Taylor series at (in red)]]

The exponential function (with base e (mathematics)|) has Maclaurin series

<math display="block"> e^{x} = \sum^{\infty}_{n=0} \frac{x^n}{n!} = 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \cdots. </math>

It converges for all .

The exponential generating function of the Bell numbers is the exponential function of the predecessor of the exponential function:

<math display="block">\exp(\exp{x}-1) = \sum_{n=0}^{\infty} \frac{B_n}{n!}x^{n}</math>

Natural logarithm

The natural logarithm (with base ) has Maclaurin series

<math display="block"> \begin{align}

\ln(1-x) &= - \sum^{\infty}_{n=1} \frac{x^n}n = -x - \frac{x^2}2 - \frac{x^3}3 - \cdots , \\

\ln(1+x) &= \sum^\infty_{n=1} (-1)^{n+1}\frac{x^n}n = x - \frac{x^2}2 + \frac{x^3}3 - \cdots .

\end{align}</math>

The last series is known as Mercator series, named after Nicholas Mercator since it was published in his 1668 treatise Logarithmotechnia. Both of these series converge for . In addition, the series for converges for , and the series for converges for . The inverse tangent integral value <math>\text{Ti}_2(1/\sqrt{3})</math> appears in the per-site entropy of spanning trees on a large triangular lattice.

Elliptic functions

The complete elliptic integrals of first kind K and of second kind E can be defined as follows:

<math display="block">\begin{align}

\frac{2}{\pi}K(x) &= \sum_{n = 0}^{\infty} \frac{[(2n)!]^2}{16^{n}(n!)^4}x^{2n} \\

\frac{2}{\pi}E(x) &= \sum_{n = 0}^{\infty} \frac{[(2n)!]^2}{(1 - 2n)16^{n}(n!)^4}x^{2n}

\end{align}</math>

The Jacobi theta functions describe the world of the elliptic modular functions and they have these Taylor series:

<math display="block">\begin{align}

\vartheta_{00}(x) &= 1 + 2\sum_{n = 1}^{\infty} x^{n^2} \\

\vartheta_{01}(x) &= 1 + 2\sum_{n = 1}^{\infty} (-1)^{n} x^{n^2}

\end{align}</math>

See also

  • Asymptotic expansion
  • Newton polynomial
  • Padé approximant – best approximation by a rational function
  • Puiseux series – power series with rational exponents
  • Approximation theory
  • Function approximation

Notes

References

  • .
  • .
  • Note that this source is reprinted in 2003.
  • .
  • .
  • .
  • .
  • .
  • .
  • .
  • .

Further reading