MarketTaylor series
Company Profile

Taylor series

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 0 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.

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 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}. 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 . This series can be written by using sigma notation, as in the right side formula. With , the Maclaurin series takes the form: 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}. == List of Maclaurin series of some common functions ==
List of Maclaurin series of some common functions
Several important Maclaurin series expansions follow. All these expansions are valid for complex arguments . 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 e^{x} = \sum^{\infty}_{n=0} \frac{x^n}{n!} = 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \cdots. It converges for all . The exponential generating function of the Bell numbers is the exponential function of the predecessor of the exponential function: \exp(\exp{x}-1) = \sum_{n=0}^{\infty} \frac{B_n}{n!}x^{n} Natural logarithm The natural logarithm (with base ) has Maclaurin series \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} 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 \text{Ti}_2(1/\sqrt{3}) 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: \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} The Jacobi theta functions describe the world of the elliptic modular functions and they have these Taylor series: \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} The regular partition number sequence has this generating function: \vartheta_{00}(x)^{-1/6}\vartheta_{01}(x)^{-2/3}\biggl[\frac{\vartheta_{00}(x)^4 - \vartheta_{01}(x)^4}{16\,x}\biggr]^{-1/24} = \sum_{n=0}^{\infty} P(n)x^n = \prod_{k = 1}^{\infty} \frac{1}{1 - x^{k}} The strict partition number sequence Q(n) has the generating function: \vartheta_{00}(x)^{1/6}\vartheta_{01}(x)^{-1/3}\biggl[\frac{\vartheta_{00}(x)^4 - \vartheta_{01}(x)^4}{16\,x}\biggr]^{1/24} = \sum_{n=0}^{\infty} Q(n)x^n = \prod_{k = 1}^{\infty} \frac{1}{1 - x^{2k - 1}} == Calculation of Taylor 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. 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. First example In order to compute the 7th-degree Maclaurin polynomial for the function f(x)=\ln(\cos x),\quad x\in\bigl({-\tfrac\pi2}, \tfrac\pi2\bigr), one may first rewrite the function as f(x)={\ln}\bigl(1+(\cos x-1)\bigr), the composition of two functions and . The Taylor series for the natural logarithm is (using big O notation) \ln(1+x) = x - \frac{x^2}2 + \frac{x^3}3 + O{\left(x^4\right)} and for the cosine function \cos x - 1 = -\frac{x^2}2 + \frac{x^4}{24} - \frac{x^6}{720} + O{\left(x^8\right)}. 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: \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} Since the cosine is an even function, the coefficients for all the odd powers are zero. Second example Given that the Taylor series at of the function . The Taylor series for the exponential function is e^x =1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \frac{x^4}{4!}+\cdots, and the series for cosine is \cos x = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \cdots. Assume the series for their quotient is \frac{e^x}{\cos x} = c_0 + c_1 x + c_2 x^2 + c_3 x^3 + c_4x^4 + \cdots Multiplying both sides by the denominator and then expanding it as a series yields \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} Comparing the coefficients of with the coefficients of , 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. The coefficients of the series for can thus be computed one at a time, amounting to long division of the series for and : \frac{e^x}{\cos x}=1 + x + x^2 + \tfrac23 x^3 + \tfrac12 x^4 + \cdots. Third example Here we employ a method called "indirect expansion" to expand the given function. This method uses the known Taylor expansion of the exponential function. In order to expand as a Taylor series in , we use the known Taylor series of function : e^x = \sum^\infty_{n=0} \frac{x^n}{n!} =1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \frac{x^4}{4!}+\cdots. Thus, \begin{align}(1+x)e^x &= e^x + xe^x = \sum^\infty_{n=0} \frac{x^n}{n!} + \sum^\infty_{n=0} \frac{x^{n+1}}{n!} = 1 + \sum^\infty_{n=1} \frac{x^n}{n!} + \sum^\infty_{n=0} \frac{x^{n+1}}{n!} \\ &= 1 + \sum^\infty_{n=1} \frac{x^n}{n!} + \sum^\infty_{n=1} \frac{x^n}{(n-1)!} =1 + \sum^\infty_{n=1}\left(\frac{1}{n!} + \frac{1}{(n-1)!}\right)x^n \\ &= 1 + \sum^\infty_{n=1}\frac{n+1}{n!}x^n\\ &= \sum^\infty_{n=0}\frac{n+1}{n!}x^n.\end{align} == Approximation error and convergence ==
Approximation error and convergence
Taylor's theorem {{multiple image | image1 = Taylorsine.svg | image2 = LogTay.svg | footer = Pictured is an accurate approximation of around the point . The pink curve is a polynomial of degree seven \sin{x} \approx x - \frac{x^3}{3!} + \frac{x^5}{5!} - \frac{x^7}{7!}. The error in this approximation is no more than . For a full cycle centered at the origin (), the error is less than 0.08215. In particular, for , the error is less than 0.000003. In contrast, also shown is a picture of the natural logarithm function and some of its Taylor polynomials around . These approximations converge to the function only in the region . Outside of this region, the higher-degree Taylor polynomials are worse approximations for the function. | total_width = 500 }} 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 general, Taylor series need not be convergent at all. In fact, the set of functions with a convergent Taylor series is a meager set in the Fréchet space of smooth functions. Even if the Taylor series of a function does converge, its limit need not be equal to the value of the function . For example, the function f(x) = \begin{cases} e^{-1/x^2} & \text{if } x \neq 0 \\[3mu] 0 & \text{if } x = 0 \end{cases} is infinitely differentiable at , and has all derivatives zero there. Consequently, the Taylor series of about is identically zero. However, is not the zero function, so it does not equal its Taylor series around the origin. Thus, is an example of a non-analytic smooth function. This example shows that there are infinitely differentiable functions in real analysis, whose Taylor series are not equal to even if they converge. By contrast, the holomorphic functions studied in complex analysis always possess a convergent Taylor series, and even the Taylor series of a meromorphic function, which might have singularities, never converges to a value different from the function itself. The complex function , however, does not approach when approaches along the imaginary axis, so it is not continuous in the complex plane and its Taylor series is undefined at . Every sequence of real or complex numbers can appear more generally as coefficients in the Taylor series of an infinitely differentiable function defined on the real line, a consequence of Borel's lemma. As a result, the radius of convergence of a Taylor series can be zero. There are even infinitely differentiable functions defined on the real line whose Taylor series have a radius of convergence everywhere. A function cannot be written as a Taylor series centred at a singularity. In these cases, the function can still be expressed as a series expansion by allowing negative powers of the variable . Such a series is known as a Laurent series, which generalizes the Taylor series. Radius of convergence and singularities For any power series \sum_{n=0}^\infty c_n (x-a)^n, there is a number R called the radius of convergence, which can be any non-negative number or +\infty, such that the power series converges absolutely for |x-a| and diverges for |x-a|>R. Thus, when a Taylor series converges, it does so in an open interval centered at a (in the real case), or a disc centered at a (in the complex case). A Taylor series may converge absolutely or conditionally at some, all, or none of the boundary points of the open interval/disc, and the quality of convergence at boundary points is an important question in many asymptotic problems. If a function is analytic at a, then its Taylor series converges to the function in some open neighborhood of a. In complex analysis, the radius of convergence of a holomorphic function is the radius of the largest open disc centered at a on which the function remains holomorphic. In many common cases, that means that the radius of convergence is the distance of a to the nearest singularity of the function in the complex plane. This explains the different radii of convergence for certain Taylor series of functions familiar in calculus. The series for e^x, \sin x, and \cos x have infinite radius of convergence because these are entire functions, having no singularities in the complex plane. By contrast, the Taylor series for \log(1+x) around x=0 has radius of convergence 1, because the nearest singularity of the function is at x=-1. However, the real singularities only provide part of the picture in general. For example, although 1/(1+x^2) is a smooth function for all real x, the radius of convergence of its Taylor series around x=0 is 1, because the nearest complex singularities are at x=\pm i, which are points of the complex unit circle. Thus, even for real-valued functions, the role of complex singularities is important: a function can be infinitely differentiable on the whole real line, and yet have a Taylor series with only a finite radius of convergence, because the limiting obstruction can come from singularities in the corresponding complex function rather than any failure of smoothness on the real axis. A power series may converge at every point of the boundary of its disc of convergence and still fail to extend holomorphically beyond that disc. For example, if \alpha>0 is not an integer, then the binomial series (1+x)^\alpha=\sum_{n=0}^\infty \binom{\alpha}{n}x^n has radius of convergence R=1. The series converges everywhere on the closed unit disc (including every boundary point). However, for nonintegral \alpha, the function (1+x)^\alpha does not extend as a single-valued holomorphic function to any neighborhood of x=-1. Thus the obstruction to analytic continuation at the boundary point x=-1 is not a failure of convergence of the power series, nor a pole or essential singularity, but the branching of the analytic continuation. In effect, x=-1 is a branch point of the function. This illustrates that convergence on the closed disc is weaker than holomorphic extendibility beyond the boundary. The radius of convergence should not be confused with the quality of the approximation by low-degree Taylor polynomials. A Taylor polynomial may approximate a function accurately near the center even when the full series has only a small radius of convergence. Conversely, near the boundary of the disc of convergence, the full Taylor series may converge slowly. Outside the radius of convergence, the Taylor series does not represent the function at all. Series with finite differences One form of the Gregory–Newton interpolation formula can be written as f(x)=\sum_{k=0}^\infty\frac{\Delta^k [f](a)}{k!} \,(x-a)_k which interpolates a polynomial f in terms of its finite differences evaluated at a single point a, and where (x-a)_k 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 , \lim_{h\to 0^+}\sum_{n=0}^\infty \frac{t^n}{n!}\frac{\Delta_h^nf(a)}{h^n} = f(a+t). 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: \sum_{n=0}^\infty\frac{u^n}{n!}\Delta^na_i = e^{-u}\sum_{j=0}^\infty\frac{u^j}{j!}a_{i+j}. So in particular, f(a+t) = \lim_{h\to 0^+} e^{-t/h}\sum_{j=0}^\infty f(a+jh) \frac{(t/h)^j}{j!}. The series on the right is the expected value of , where is a Poisson-distributed random variable that takes the value with probability . Hence, f(a+t) = \lim_{h\to 0^+} \int_{-\infty}^\infty f(a+x)dP_{t/h,h}(x). The law of large numbers implies that the identity holds. == Analytic functions ==
Analytic functions
If is given by a convergent power series in an open disk centred at in the complex plane (or an interval in the real line), it is said to be analytic in this region. Thus for in this region, is given by a convergent power series f(x) = \sum_{n=0}^\infty a_n(x-b)^n. Differentiating by the above formula times, then setting gives \frac{f^{(n)}(b)}{n!} = a_n, and so the power series expansion agrees with the Taylor series. Thus, a function is analytic in an open disk centered at if and only if its Taylor series converges to the value of the function at each point of the disk. If is equal to the sum of its Taylor series for all in the complex plane, it is called entire. The polynomials, exponential function , and the trigonometric functions of sine and cosine, are examples of entire functions. The Taylor series can be used to calculate the value of an entire function at every point, provided the value of the function and all its derivatives are known at a single point. Uses of the Taylor series for analytic functions include: • The partial sums of the Taylor series (that is, Taylor polynomial) of the series can be used as approximations of the function. These approximations are good if sufficiently many terms are included. • Differentiation and integration of power series can be performed term by term and are hence particularly easy. • An analytic function is uniquely extended to a holomorphic function on an open disk in the complex plane. This makes the machinery of complex analysis available. • The (truncated) series can be used to compute function values numerically, often by recasting the polynomial into the Chebyshev form and evaluating it with the Clenshaw algorithm. • Algebraic operations can be done readily on the power series representation; for instance, Euler's formula follows from Taylor series expansions for trigonometric and exponential functions. This result is of fundamental importance in such fields as harmonic analysis. • Approximations based on the first few terms of a Taylor series can render otherwise intractable problems solvable over a restricted domain. This idea underlies perturbation theory, which is widely used in physics. Other physics fields that require approximation using Taylor series are simple pendulum, and geometric optics using paraxial approximation. == Taylor series in multiple variables ==
Taylor series in multiple variables
The Taylor series may also be generalized to functions of more than one variable with \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}^{\alpha}}f\right)(\mathbf{a}). \end{align} 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 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) 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 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, where is the gradient of evaluated at and is the Hessian matrix. Example In order to compute a second-order Taylor series expansion around the point of the function f(x,y)=e^x\ln(1+y), one first computes all the necessary partial derivatives: \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} Evaluating these derivatives at the origin gives the Taylor coefficients \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} Substituting these values in to the general formula \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} produces \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} Since is analytic in , we have e^x\ln(1+y)= y + xy - \tfrac12 y^2 + \cdots, \qquad |y| == History ==
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. 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. == See also ==
tickerdossier.comtickerdossier.substack.com