Taylor Series

⚡ Key Takeaways

Taylor series represents a function as an infinite sum of polynomial terms built from its derivatives at a single point. Key result: if ff is smooth and well-behaved near aa, then f(x)=∑n=0∞f(n)(a)n!(x−a)nf(x) = \sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!}(x-a)^n. Applies to approximation of functions, numerical methods, solving ODEs, physics expansions, and proving identities. Who/when: named for Brook Taylor (1715), with key contributions from Maclaurin, Gregory, and rigorous foundations by Lagrange and Cauchy.

💡 The Core Insight

A function's behavior near a point is encoded entirely in its derivatives at that point. If you know f(a)f(a), f′(a)f'(a), f′′(a)f''(a), and so on, you have captured the value, slope, curvature, and all higher-order bending of the curve at aa. Reassembling these into a polynomial ∑f(n)(a)n!(x−a)n\sum \frac{f^{(n)}(a)}{n!}(x-a)^n recovers the function — provided the "error" left after finitely many terms shrinks to zero. The factorial denominators are exactly what makes the nn-th derivative of the series at aa reproduce f(n)(a)f^{(n)}(a).

Formal Statement

DefinitionTaylor Series and Taylor Polynomial

Let ff be a function that is nn times differentiable at a point aa. The nn-th Taylor polynomial of ff centered at aa is

1
Pn(x)=∑k=0nf(k)(a)k!(x−a)k=f(a)+f′(a)(x−a)+f′′(a)2!(x−a)2+⋯+f(n)(a)n!(x−a)n.\quad P_n(x) = \sum_{k=0}^{n} \frac{f^{(k)}(a)}{k!}(x-a)^k = f(a) + f'(a)(x-a) + \frac{f''(a)}{2!}(x-a)^2 + \cdots + \frac{f^{(n)}(a)}{n!}(x-a)^n.

Derivation hint: demand that PnP_n match ff in value and in all derivatives up to order nn at aa; differentiating PnP_n kk times and evaluating at aa kills all but the kk-th term, forcing coefficient ck=f(k)(a)/k!c_k = f^{(k)}(a)/k!. If ff is infinitely differentiable at aa, the Taylor series is the formal infinite sum

2
T(x)=∑n=0∞f(n)(a)n!(x−a)n.\quad T(x) = \sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!}(x-a)^n.

Derivation hint: take the limit n→∞n \to \infty in [1]; convergence and equality with ff are separate questions addressed below.

Symbols: ff is the function; aa the center (or base point); f(k)f^{(k)} the kk-th derivative; k!k! the factorial; (x−a)(x-a) the displacement from the center. When a=0a=0 the series is called a Maclaurin series:

3
f(x)=∑n=0∞f(n)(0)n!xn.\quad f(x) = \sum_{n=0}^{\infty} \frac{f^{(n)}(0)}{n!}x^n.

Derivation hint: set a=0a=0 in [2].

TheoremTaylor's Theorem with Remainder

Let ff be (n+1)(n+1) times differentiable on an open interval containing aa and xx. Then

4
f(x)=Pn(x)+Rn(x),\quad f(x) = P_n(x) + R_n(x),

where the remainder Rn(x)R_n(x) admits the Lagrange form

5
Rn(x)=f(n+1)(ξ)(n+1)!(x−a)n+1\quad R_n(x) = \frac{f^{(n+1)}(\xi)}{(n+1)!}(x-a)^{n+1}

for some ξ\xi strictly between aa and xx. The Taylor series converges to f(x)f(x) if and only if Rn(x)→0R_n(x) \to 0 as n→∞n \to \infty. Derivation hint: apply the Cauchy Mean Value Theorem repeatedly, or use the integral form of the remainder and the Mean Value Theorem for integrals; ξ\xi is the unattained intermediate point.

The remainder also has an exact integral form, often more useful for bounds:

6
Rn(x)=1n!∫ax(x−t)nf(n+1)(t) dt.\quad R_n(x) = \frac{1}{n!}\int_a^x (x-t)^n f^{(n+1)}(t)\,dt.

Derivation hint: start from the Fundamental Theorem of Calculus f(x)=f(a)+∫axf′(t) dtf(x)=f(a)+\int_a^x f'(t)\,dt and integrate by parts repeatedly, each step generating one more polynomial term.

Why It Holds / Derivation

ProofTaylor's Theorem via Repeated Integration by Parts

We establish [4]–[6]. 1. Base case (FTC). For ff continuously differentiable,

f(x)=f(a)+∫axf′(t) dt.f(x) = f(a) + \int_a^x f'(t)\,dt.

This is the n=0n=0 statement with P0(x)=f(a)P_0(x)=f(a) and R0(x)=∫axf′(t) dtR_0(x)=\int_a^x f'(t)\,dt. 2. Integrate by parts. In ∫axf′(t) dt\int_a^x f'(t)\,dt, choose u=f′(t)u=f'(t), dv=dtdv=dt, but with the clever antiderivative v=−(x−t)v=-(x-t) (constant of integration chosen to vanish at t=xt=x). Then

∫axf′(t) dt=[−(x−t)f′(t)]ax+∫ax(x−t)f′′(t) dt=(x−a)f′(a)+∫ax(x−t)f′′(t) dt.\int_a^x f'(t)\,dt = \big[-(x-t)f'(t)\big]_a^x + \int_a^x (x-t)f''(t)\,dt = (x-a)f'(a) + \int_a^x (x-t)f''(t)\,dt.

3. Iterate. Repeating with v=−(x−t)k+1(k+1)v = -\frac{(x-t)^{k+1}}{(k+1)} at each stage produces, after nn integrations by parts,

f(x)=∑k=0nf(k)(a)k!(x−a)k+1n!∫ax(x−t)nf(n+1)(t) dt,f(x) = \sum_{k=0}^{n}\frac{f^{(k)}(a)}{k!}(x-a)^k + \frac{1}{n!}\int_a^x (x-t)^n f^{(n+1)}(t)\,dt,

which is exactly Pn(x)+Rn(x)P_n(x) + R_n(x) with RnR_n in the integral form [6]. 4. From integral to Lagrange form. Since (x−t)n(x-t)^n does not change sign on [a,x][a,x], the Mean Value Theorem for integrals gives a ξ\xi between aa and xx with

Rn(x)=f(n+1)(ξ)n!∫ax(x−t)n dt=f(n+1)(ξ)(n+1)!(x−a)n+1,R_n(x) = \frac{f^{(n+1)}(\xi)}{n!}\int_a^x (x-t)^n\,dt = \frac{f^{(n+1)}(\xi)}{(n+1)!}(x-a)^{n+1},

recovering [5]. ■\blacksquare

∎
mathematician · Brook Taylor | 1685–1731

An English mathematician and a Fellow of the Royal Society, Taylor published the general expansion in his 1715 Methodus Incrementorum Directa et Inversa, the founding text of the calculus of finite differences. He derived the series essentially as a limit of Newton's interpolation formula. Taylor did not address convergence — that rigor came a century later from Cauchy and Lagrange. He also made early contributions to perspective in art and to the physics of vibrating strings. Despite the eponym, special cases were known earlier to James Gregory, Newton, and the Indian Kerala school (Madhava) centuries before.

Building Intuition

🧠 Intuition

Think of building a clone of ff that agrees with the original ever more closely. The constant term f(a)f(a) matches height. Adding f′(a)(x−a)f'(a)(x-a) matches slope — now your clone is the tangent line. Adding f′′(a)2(x−a)2\frac{f''(a)}{2}(x-a)^2 matches curvature — the clone now bends the right way. Each new term pins down one more derivative, so the polynomial "hugs" ff over a wider neighborhood. The factorial 1/n!1/n! is the price of forcing the nn-th derivative to come out right: differentiating (x−a)n(x-a)^n exactly nn times yields n!n!, which the denominator cancels. Convergence is the question of whether infinitely many corrections ever catch up to the whole function — and the answer depends on how fast the higher derivatives grow.

Figure
Successive Taylor polynomials of sin(x) about 0 hugging the curve over a widening interval
x y sin x P₁ = x P₃ a=0

Worked Examples

ExampleMaclaurin series of exe^x and a numerical estimate

Given: f(x)=exf(x)=e^x, center a=0a=0. Estimate e0.5e^{0.5} using P4P_4 and bound the error.

Steps: 1. All derivatives satisfy f(n)(x)=exf^{(n)}(x)=e^x, so f(n)(0)=1f^{(n)}(0)=1 for every nn. 2. The Maclaurin series is ex=∑n=0∞xnn!=1+x+x22+x36+x424+⋯e^x = \sum_{n=0}^{\infty}\frac{x^n}{n!} = 1 + x + \frac{x^2}{2} + \frac{x^3}{6} + \frac{x^4}{24}+\cdots 3. Evaluate P4P_4 at x=0.5x=0.5:

P4(0.5)=1+0.5+0.252+0.1256+0.062524=1+0.5+0.125+0.02083‾+0.0026042=1.6484375.P_4(0.5) = 1 + 0.5 + \tfrac{0.25}{2} + \tfrac{0.125}{6} + \tfrac{0.0625}{24} = 1 + 0.5 + 0.125 + 0.0208\overline{3} + 0.0026042 = 1.6484375.

4. Error bound via Lagrange [5]: ∣R4∣=eξ5!(0.5)5|R_4| = \frac{e^{\xi}}{5!}(0.5)^5 with 0<ξ<0.50<\xi<0.5, so eξ<e0.5<2e^{\xi}<e^{0.5}<2. Hence

∣R4∣<2120(0.03125)=0.00052.|R_4| < \frac{2}{120}(0.03125) = 0.00052.

Answer: e0.5≈1.64844,error<5.2×10−4\boxed{e^{0.5}\approx 1.64844,\quad \text{error}<5.2\times10^{-4}} (true value 1.648721…1.648721\ldots, units: dimensionless). ✓

ExampleTaylor expansion of ln⁡x\ln x about a=1a=1 and its interval of validity

Given: f(x)=ln⁡xf(x)=\ln x, center a=1a=1. Find the series and the radius within which it converges.

Steps: 1. Derivatives: f′(x)=x−1f'(x)=x^{-1}, f′′(x)=−x−2f''(x)=-x^{-2}, f′′′(x)=2x−3f'''(x)=2x^{-3}, generally f(n)(x)=(−1)n−1(n−1)! x−nf^{(n)}(x)=(-1)^{n-1}(n-1)!\,x^{-n} for n≥1n\ge 1. 2. At a=1a=1: f(1)=0f(1)=0, f(n)(1)=(−1)n−1(n−1)!f^{(n)}(1)=(-1)^{n-1}(n-1)!. 3. Coefficient: f(n)(1)n!=(−1)n−1(n−1)!n!=(−1)n−1n\frac{f^{(n)}(1)}{n!} = \frac{(-1)^{n-1}(n-1)!}{n!} = \frac{(-1)^{n-1}}{n}. Thus

ln⁡x=∑n=1∞(−1)n−1n(x−1)n=(x−1)−(x−1)22+(x−1)33−⋯\ln x = \sum_{n=1}^{\infty}\frac{(-1)^{n-1}}{n}(x-1)^n = (x-1) - \frac{(x-1)^2}{2} + \frac{(x-1)^3}{3} - \cdots

4. Ratio test: lim⁡n→∞∣(x−1)n+1/(n+1)(x−1)n/n∣=∣x−1∣<1\lim_{n\to\infty}\left|\frac{(x-1)^{n+1}/(n+1)}{(x-1)^n/n}\right| = |x-1|<1, giving radius R=1R=1, i.e. 0<x<20<x<2. At x=2x=2 it converges (alternating harmonic →ln⁡2\to \ln 2); at x=0x=0 it diverges.

Answer: ln⁡x=∑n=1∞(−1)n−1n(x−1)n,  0<x≤2\boxed{\ln x = \sum_{n=1}^{\infty}\frac{(-1)^{n-1}}{n}(x-1)^n,\ \ 0<x\le 2} (dimensionless). ✓

Common Misconceptions

⚠️ Common mistake

A function being C∞C^\infty (infinitely differentiable) does NOT guarantee it equals its Taylor series. Convergence of the series is necessary, and even then the limit need not be ff. Always check that the remainder Rn(x)→0R_n(x)\to 0. Also: the Taylor series may converge only on a small interval (its radius of convergence) even when ff is defined everywhere — see arctan⁡x\arctan x or 11+x2\frac{1}{1+x^2}, whose Maclaurin series diverges for ∣x∣>1|x|>1 despite the function being perfectly smooth on all of R\mathbb{R}. The cause is a complex-plane singularity at x=±ix=\pm i, invisible on the real line.

CounterexampleThe flat function whose Taylor series is identically zero

Define

f(x)={e−1/x2,x≠00,x=0.f(x) = \begin{cases} e^{-1/x^2}, & x\neq 0\\ 0, & x=0.\end{cases}

This function is C∞C^\infty on all of R\mathbb{R}, and one can show by induction that every derivative at the origin vanishes: f(n)(0)=0f^{(n)}(0)=0 for all nn. Therefore its Maclaurin series is

7
T(x)=∑n=0∞0n!xn=0.\quad T(x) = \sum_{n=0}^{\infty}\frac{0}{n!}x^n = 0.

Derivation hint: each derivative is a rational function times e−1/x2e^{-1/x^2}; since e−1/x2e^{-1/x^2} decays faster than any power of xx grows, the limit at 00 is 00. The series converges everywhere (to 00) but equals ff only at x=0x=0, since f(x)>0f(x)>0 for all x≠0x\neq 0. This is the canonical example of a smooth, non-analytic function: the remainder Rn(x)R_n(x) never tends to zero away from the origin.

Connections

connection

Taylor series are a special case of Power Series, inheriting their radius of convergence and term-by-term differentiation/integration. A function equal to its Taylor series on an open set is called real analytic, the central object of Real Analysis. Extending the center and variable into the complex plane links Taylor series to Complex Analysis, where Cauchy's theory shows every holomorphic function is automatically analytic — explaining the mysterious radii of convergence via nearest singularities. The discrete analogue is the Newton forward-difference formula of the Calculus of Finite Differences, from which Taylor originally derived his series. Truncated Taylor polynomials are the foundation of the Big-O / little-o asymptotics used in Asymptotic Analysis, and the multivariable generalization uses the gradient and Hessian Matrix.

Real-World Applications

🔬 Where this appears

Historical Development

⏳ History
- c. 1350 — Madhava of Sangamagrama (Kerala school) derives series for sin⁡\sin, cos⁡\cos, and arctan⁡\arctan, including the Madhava–Leibniz series for π\pi — the earliest known instances of such expansions.
- 1668 — Nicholas Mercator and James Gregory publish series; Gregory finds Taylor-type expansions decades before Taylor.
- 1671 — Isaac Newton develops general series methods in De Methodis, expanding functions via his binomial theorem and reversion of series.
- 1715 — Brook Taylor states the general theorem in Methodus Incrementorum, derived from finite differences; no discussion of convergence.
- 1742 — Colin Maclaurin popularizes the a=0a=0 case in his Treatise of Fluxions, lending his name to that special form.
- 1772 — Joseph-Louis Lagrange introduces the remainder term and proposes building all of calculus on Taylor series (the "calculus of analytic functions").
- 1821 — Augustin-Louis Cauchy provides rigorous treatment of convergence and the remainder in his Cours d'analyse, and gives the counterexample e−1/x2e^{-1/x^2} showing smoothness ≠ analyticity.
- 1823 — Cauchy establishes the integral form of the remainder and the complex-analytic foundation linking convergence radius to singularities.
- 1840s–1850s — Weierstrass and Riemann found the modern theory of analytic functions, embedding Taylor series in Complex Analysis.

Subtleties & Limits

open-problem

The gap between smooth (C∞C^\infty) and analytic functions is profound: analytic functions form a meager subset, yet they are the ones for which Taylor series fully determine global behavior. Borel's theorem (1895) shows the contrast is total — any sequence of real numbers can serve as the derivatives f(n)(a)f^{(n)}(a) of some smooth function, so the Taylor coefficients carry essentially no constraint in the smooth category. Modern questions include: characterizing the precise growth conditions on derivatives (Denjoy–Carleman classes) that force analyticity; understanding divergent asymptotic series (e.g. in quantum field theory and the Stirling expansion) which approximate functions superbly for finitely many terms yet diverge — managed through Borel summation and resurgence theory; and the practical question of optimal polynomial approximation (Chebyshev, minimax) versus Taylor truncation, since Taylor series concentrate all accuracy at the center and may be far from optimal across an interval.

See Also

Power Series · Maclaurin Series · Complex Analysis · Fourier Series · Numerical Analysis · Mean Value Theorem · Asymptotic Analysis · Real Analysis · Calculus of Finite Differences