Calculus/Taylor series

From testwiki
Revision as of 09:13, 11 December 2007 by 12.206.242.28 (talk) (Example 1)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Theory

Taylor Series

As the degree of the taylor series rises, it approaches the correct function. sin(x) and Taylor approximations, polynomials of degree 1, 3, 5, 7, 9, 11 and 13.

In mathematics, the Taylor series of an infinitely often differentiable real (or complex) function f defined on an open interval (a-r, a+r) is the power series

n=0f(n)(a)n!(xa)n

Here, n! is the factorial of n and f (n)(a) denotes the nth derivative of f at the point a. If this series converges for every x in the interval (a-r, a+r) and the sum is equal to f(x), then the function f(x) is called analytic. To check whether the series converges towards f(x), one normally uses estimates for the remainder term of Taylor's theorem. A function is analytic if and only if a power series converges to the function; the coefficients in that power series are then necessarily the ones given in the above Taylor series formula.

If a = 0, the series is also called a Maclaurin series.

The importance of such a power series representation is threefold. First, differentiation and integration of power series can be performed term by term and is hence particularly easy. Second, an analytic function can be uniquely extended to a holomorphic function defined on an open disk in the complex plane, which makes the whole machinery of complex analysis available. Third, the (truncated) series can be used to approximate values of the function near the point of expansion.

Template:-

Around zero, the function looks very flat. The function e-1/x² is not analytic: the Taylor series is 0, although the function is not.

Note that there are examples of infinitely often differentiable functions f(x) whose Taylor series converge, but are not equal to f(x). For instance, for the function defined piecewise by saying that f(x) = exp(−1/x²) if x ≠ 0 and f(0) = 0, all the derivatives are zero at x = 0, so the Taylor series of f(x) is zero, and its radius of convergence is infinite, even though the function most definitely is not zero. This particular pathology does not afflict complex-valued functions of a complex variable. Notice that exp(−1/z²) does not approach 0 as z approaches 0 along the imaginary axis.

Some functions cannot be written as Taylor series because they have a singularity; in these cases, one can often still achieve a series expansion if one allows also negative powers of the variable x; see Laurent series. For example, f(x) = exp(−1/x²) can be written as a Laurent series.

The Parker-Sockacki theorem is a recent advance in finding Taylor series which are solutions to differential equations. This theorem is an expansion on the Picard iteration.

List of Taylor series

Several important Taylor series expansions follow. All these expansions are also valid for complex arguments x.

Exponential function and natural logarithm:

ex=n=0xnn! for all x
ln(1+x)=n=1(1)n+1nxn for |x|<1

Geometric series:

11x=n=0xn for |x|<1

Binomial series:

(1+x)α=n=0C(α,n)xn for all |x|<1 and all complex α

Trigonometric functions:

sinx=n=0(1)n(2n+1)!x2n+1 for all x
cosx=n=0(1)n(2n)!x2n for all x
tanx=n=1B2n(4)n(14n)(2n)!x2n1 for |x|<π2
secx=n=0(1)nE2n(2n)!x2n for |x|<π2
arcsinx=n=0(2n)!4n(n!)2(2n+1)x2n+1 for |x|<1
arctanx=n=0(1)n2n+1x2n+1 for |x|<1

Hyperbolic functions:

sinhx=n=01(2n+1)!x2n+1 for all x
coshx=n=01(2n)!x2n for all x
tanhx=n=1B2n4n(4n1)(2n)!x2n1 for |x|<π2
sinh1x=n=0(1)n(2n)!4n(n!)2(2n+1)x2n+1 for |x|<1
tanh1x=n=012n+1x2n+1 for |x|<1

Lambert's W function:

W0(x)=n=1(n)n1n!xn for |x|<1e

The numbers Bk appearing in the expansions of tan(x) and tanh(x) are the Bernoulli numbers. The C(α,n) in the binomial expansion are the binomial coefficients. The Ek in the expansion of sec(x) are Euler numbers.

Multiple dimensions

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

n1=0nd=0n1xn1ndxndf(a1,,ad)n1!nd!(x1a1)n1(xdad)nd

History

The Taylor series is named for mathematician Brook Taylor, who first published the power series formula in 1715.

Constructing a Taylor Series

Several methods exist for the calculation of Taylor series of a large number of functions. One can attempt to use the Taylor series as-is and generalize the form of the coefficients, or one can use manipulations such as substitution, multiplication or division, addition or subtraction of standard Taylor series (such as those above) to construct the Taylor series of a function, by virtue of Taylor series being power series. In some cases, one can also derive the Taylor series by repeatedly applying integration by parts. The use of computer algebra systems to calculate Taylor series is common, since it eliminates tedious substitution and manipulation.

Example 1

Consider the function

f(x)=ln(1+cosx),

for which we want a Taylor series at 0.

We have for the natural logarithm

ln(1+x)=n=1(1)n+1nxn=xx22+x33x44+ for |x|<1

and for the cosine function

cosx=n=0(1)n(2n)!x2n=1x22!+x44! for all x.

We can simply substitute the second series into the first. Doing so gives

(1x22!+x44!)12(1x22!+x44!)2+13(1x22!+x44!)3

Expanding by using multinomial coefficients gives the required Taylor series. Note that cosine and therefore f are even functions, meaning that f(x)=f(x), hence the coefficients of the odd powers x, x3, x5, x7 and so on have to be zero and don't need to be calculated. The first few terms of the series are

ln(1+cosx)=ln2x24x496x6144017x832256031x107257600

The general coefficient can be represented using Faà di Bruno's formula. However, this representation does not seem to be particularly illuminating and is therefore omitted here.

Example 2

Suppose we want the Taylor series at 0 of the function

g(x)=excosx.

We have for the exponential function

ex=n=0xnn!=1+x+x22!+x33!+x44!+

and, as in the first example,

cosx=1x22!+x44!

Assume the power series is

excosx=c0+c1x+c2x2+c3x3+

Then multiplication with the denominator and substitution of the series of the cosine yields

ex=(c0+c1x+c2x2+c3x3+)cosx=(c0+c1x+c2x2+c3x3+c4x4+)(1x22!+x44!)=c0c02x2+c04!x4+c1xc12x3+c14!x5+c2x2c22x4+c24!x6+c3x3c32x5+c34!x7+

Collecting the terms up to fourth order yields

=c0+c1x+(c2c02)x2+(c3c12)x3+(c4+c04!c22)x4+

Comparing coefficients with the above series of the exponential function yields the desired Taylor series

excosx=1+x+x2+2x33+x42+


Convergence

Generalized Mean Value Theorem