Taylor Series Expansion

⚡ Key Takeaways

Taylor Series Expansion represents a sufficiently smooth function as an infinite sum of polynomial terms built from its derivatives at a single point. Key result in words: near a point aa, a function behaves like a polynomial whose coefficients are f(n)(a)/n!f^{(n)}(a)/n!. Where it applies: approximation, numerical analysis, differential equations, physics, complex analysis. Who/when: named for Brook Taylor (1715), with roots in Gregory, Newton, and the Bernoullis; the centered-at-zero case bears Maclaurin's name.

💡 The Core Insight

A function that is "smooth enough" is locally indistinguishable from a polynomial. The first derivative captures slope, the second captures curvature, the third captures the rate of change of curvature, and so on. Each successive derivative refines the polynomial fit, and in the limit the polynomial of infinite degree may reproduce the function exactly within a region called the interval (or disk) of convergence.

Formal Statement

DefinitionTaylor Series and Taylor Polynomial

Let ff be a real-valued function that is nn times differentiable at a point a∈Ra \in \mathbb{R}. The nn-th order Taylor polynomial of ff about aa is

1
Tn(x)=∑k=0nf(k)(a)k!(x−a)k.\quad T_n(x) = \sum_{k=0}^{n} \frac{f^{(k)}(a)}{k!}(x-a)^k.

Derivation hint: demand that TnT_n and ff share value and first nn derivatives at aa; matching Tn(k)(a)=f(k)(a)T_n^{(k)}(a)=f^{(k)}(a) forces each coefficient to be f(k)(a)/k!f^{(k)}(a)/k!. If ff is infinitely differentiable at aa, the Taylor series is the limiting power series

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

Derivation hint: take n→∞n\to\infty in [1]; the ∼\sim symbol is used because equality requires the remainder to vanish. When a=0a = 0 this is called the Maclaurin series:

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

Derivation hint: substitute a=0a=0 into [2]. Here f(k)f^{(k)} denotes the kk-th derivative (f(0)=ff^{(0)}=f), k!k! is the factorial, aa is the center or base point, and x−ax-a is the displacement from the center.

TheoremTaylor's Theorem with Remainder

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

4
f(x)=∑k=0nf(k)(a)k!(x−a)k+Rn(x),\quad f(x) = \sum_{k=0}^{n} \frac{f^{(k)}(a)}{k!}(x-a)^k + R_n(x),

Derivation hint: this is an exact equality, not an approximation; RnR_n absorbs every error. where the Lagrange form of the remainder is

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}

Derivation hint: apply the generalized Mean Value Theorem (Cauchy) repeatedly, or use Rolle's theorem on an auxiliary function; ξ\xi lies strictly between aa and xx. for some ξ\xi between aa and xx. The integral form is

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: integrate by parts nn times starting from the Fundamental Theorem of Calculus f(x)−f(a)=∫axf′(t) dtf(x)-f(a)=\int_a^x f'(t)\,dt. The Taylor series of ff converges to f(x)f(x) at a point xx if and only if Rn(x)→0R_n(x)\to 0 as n→∞n\to\infty.

Why It Holds / Derivation

ProofTaylor's Theorem via Repeated Integration by Parts

We establish the integral remainder [6], from which Lagrange's form [5] follows.

Step 1. By the Fundamental Theorem of Calculus,

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

Derivation hint: this is the n=0n=0 base case; the integral is exactly R0(x)R_0(x).

Step 2. Integrate ∫axf′(t) dt\int_a^x f'(t)\,dt by parts choosing u=f′(t)u=f'(t) and dv=dtdv=dt, but use the antiderivative v=−(x−t)v=-(x-t) (legal since xx is constant in the integration):

8
∫axf′(t) dt=f′(a)(x−a)+∫ax(x−t)f′′(t) dt.\quad \int_a^x f'(t)\,dt = f'(a)(x-a) + \int_a^x (x-t)f''(t)\,dt.

Derivation hint: [−(x−t)f′(t)]ax=(x−a)f′(a)\big[-(x-t)f'(t)\big]_a^x = (x-a)f'(a) since the upper boundary term vanishes.

Step 3. Repeating with antiderivative v=−(x−t)22v=-\frac{(x-t)^2}{2} on the new integral yields the next term f′′(a)2(x−a)2\frac{f''(a)}{2}(x-a)^2 plus a remainder containing f′′′f'''. Inductively, after nn integrations by parts,

9
f(x)=∑k=0nf(k)(a)k!(x−a)k+1n!∫ax(x−t)nf(n+1)(t) dt.\quad 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.

Derivation hint: each step lowers the power on the remaining integral's f(j)f^{(j)} and raises the power of (x−t)(x-t), generating 1/k!1/k! factors.

Step 4. To recover the Lagrange form, apply the Mean Value Theorem for integrals: if f(n+1)f^{(n+1)} is continuous, there exists ξ\xi between aa and xx with

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

Derivation hint: (x−t)n(x-t)^n has constant sign on the interval, so the weighted MVT pulls f(n+1)f^{(n+1)} out at some interior point ξ\xi. ■\blacksquare

∎
mathematician · Brook Taylor | 1685–1731

An English mathematician and member of the Royal Society, Brook Taylor published Methodus Incrementorum Directa et Inversa in 1715, containing the general theorem now bearing his name. Taylor did not address convergence and his statement was incomplete by modern standards; the importance of the series for the foundations of calculus was recognized only later by Lagrange, who in 1772 called it "the main foundation of differential calculus." Taylor also made early contributions to the calculus of finite differences, perspective in art, and the physics of vibrating strings.

Building Intuition

🧠 Intuition

Think of building a function out of progressively finer corrections. Start at the point aa with the constant f(a)f(a) — a flat line at the right height. Add f′(a)(x−a)f'(a)(x-a) to give the line the correct slope: this is the tangent line, the best linear fit. Add 12f′′(a)(x−a)2\tfrac{1}{2}f''(a)(x-a)^2 to bend the line into the correct curvature: now you have the best parabolic fit. Each new term is a polynomial bump that fixes the next-finest mismatch in derivatives while leaving all lower derivatives at aa untouched (because (x−a)k(x-a)^k and its first k−1k-1 derivatives vanish at aa). The remainder RnR_n measures how much "wiggle" of ff remains unmodeled, and it shrinks like (x−a)n+1(x-a)^{n+1} — so the approximation is excellent near aa and degrades as you move away.

Figure
Successive Taylor polynomials of sin(x) about a=0 converging to the curve
x y f(x)=sin x T₁ = x T₃ a=0

Worked Examples

ExampleApproximating e0.1 with a Maclaurin polynomial

Given: f(x)=exf(x)=e^x, centered at a=0a=0. We want e0.1e^{0.1} to within a guaranteed error bound.

Step 1 — coefficients. Since f(n)(x)=exf^{(n)}(x)=e^x, every f(n)(0)=1f^{(n)}(0)=1, so

11
ex=∑n=0∞xnn!=1+x+x22+x36+⋯ .\quad e^x = \sum_{n=0}^{\infty}\frac{x^n}{n!} = 1 + x + \frac{x^2}{2} + \frac{x^3}{6}+\cdots.

Derivation hint: substitute f(n)(0)=1f^{(n)}(0)=1 into the Maclaurin formula [3].

Step 2 — evaluate T3T_3 at x=0.1x=0.1.

12
T3(0.1)=1+0.1+0.012+0.0016=1.10516‾.\quad T_3(0.1) = 1 + 0.1 + \frac{0.01}{2} + \frac{0.001}{6} = 1.1051\overline{6}.

Derivation hint: plug x=0.1x=0.1 into [11] truncated at n=3n=3.

Step 3 — bound the error. By Lagrange [5] with n=3n=3, ξ∈(0,0.1)\xi\in(0,0.1):

13
∣R3∣=eξ4!(0.1)4≤e0.124(10−4)<1.224×10−4=5×10−6.\quad |R_3| = \frac{e^{\xi}}{4!}(0.1)^4 \le \frac{e^{0.1}}{24}(10^{-4}) < \frac{1.2}{24}\times 10^{-4} = 5\times 10^{-6}.

Derivation hint: bound eξe^\xi by e0.1<1.2e^{0.1}<1.2 on the interval.

Answer: e0.1≈1.105167, error<5×10−6\boxed{e^{0.1} \approx 1.105167,\ \text{error} < 5\times10^{-6}} (dimensionless). The true value is 1.1051709…1.1051709\ldots, confirming the bound.

ExampleCurvature of a cosine and a small-angle limit

Given: A pendulum's restoring quantity involves cos⁡θ\cos\theta. Approximate cos⁡θ\cos\theta for small θ\theta (radians) and evaluate at θ=0.2\theta = 0.2 rad.

Step 1 — Maclaurin series of cosine. Derivatives cycle cos⁡,−sin⁡,−cos⁡,sin⁡\cos,-\sin,-\cos,\sin, giving values 1,0,−1,01,0,-1,0 at 00:

14
cos⁡θ=1−θ22!+θ44!−⋯ .\quad \cos\theta = 1 - \frac{\theta^2}{2!} + \frac{\theta^4}{4!} - \cdots.

Derivation hint: only even derivatives survive; alternating signs from the second-derivative sign flips.

Step 2 — second-order approximation. Keep through θ2\theta^2:

15
cos⁡(0.2)≈1−(0.2)22=1−0.02=0.98.\quad \cos(0.2) \approx 1 - \frac{(0.2)^2}{2} = 1 - 0.02 = 0.98.

Derivation hint: truncate [14] after the quadratic term.

Step 3 — error from the next term. The leading omitted term is θ4/24=(0.2)4/24=6.67×10−5\theta^4/24 = (0.2)^4/24 = 6.67\times10^{-5}.

Answer: cos⁡(0.2)≈0.98, error≈6.7×10−5\boxed{\cos(0.2)\approx 0.98,\ \text{error}\approx 6.7\times10^{-5}} (dimensionless). The small-angle approximation cos⁡θ≈1−θ2/2\cos\theta\approx 1-\theta^2/2 is now justified quantitatively.

Common Misconceptions

⚠️ Common mistake

Infinitely differentiable does NOT mean equal to its Taylor series. Existence of all derivatives at aa guarantees the Taylor series can be written down, but convergence of the series to ff requires Rn(x)→0R_n(x)\to 0. Functions for which the series converges to ff on a neighborhood are called analytic; not every smooth (C∞C^\infty) function is analytic. Always check the remainder, not just differentiability.

⚠️ Common mistake

The interval of convergence is not always the whole real line. The geometric series 11−x=∑xn\frac{1}{1-x}=\sum x^n converges only for ∣x∣<1|x|<1, even though 11−x\frac{1}{1-x} is perfectly well-defined and smooth at, say, x=2x=2. The series cannot "see" past the singularity at x=1x=1; the radius of convergence is set by the distance to the nearest singularity in the complex plane.

CounterexampleCauchy's flat function

Define

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

Derivation hint: the exponential decays faster than any power of xx approaches zero. Every derivative at the origin equals zero: f(n)(0)=0f^{(n)}(0)=0 for all nn. Therefore its Maclaurin series is identically ∑0⋅xn=0\sum 0\cdot x^n = 0, which converges everywhere — but to the zero function, not to ff, since f(x)>0f(x)>0 for x≠0x\neq 0. This ff is C∞C^\infty everywhere yet analytic nowhere on any neighborhood of 00. It is the canonical proof that smoothness ≠\ne analyticity.

Connections

connection

The Taylor series sits at the crossroads of analysis. It generalizes the Mean Value Theorem (the n=0n=0 case of the remainder) and the Linear Approximation (the n=1n=1 tangent-line case). Its convergence theory is the subject of Power Series and the Radius of Convergence, computed via the ratio or root tests from Convergence Tests for Series. In the complex domain it merges with the Laurent Series and is implied by Cauchy's Integral Formula, where analyticity of a complex differentiable function is automatic. The remainder term connects directly to Numerical Integration error estimates and to the Asymptotic Expansion, its divergent cousin used in physics.

Real-World Applications

🔬 Where this appears

Historical Development

⏳ History
- 1668–1671 — James Gregory discovers series for arctan⁡\arctan, tan⁡\tan, sec⁡\sec and effectively the general Taylor expansion in his manuscripts, decades before Taylor.
- 1670s — Isaac Newton develops the binomial series and infinite-series methods extensively but publishes little.
- 1694 — Johann Bernoulli derives an integral-form series equivalent to Taylor's theorem.
- 1715 — Brook Taylor publishes the general theorem in Methodus Incrementorum, giving it his name.
- 1742 — Colin Maclaurin popularizes the a=0a=0 special case in his Treatise of Fluxions, attributing it to Taylor.
- 1772 — Joseph-Louis Lagrange champions the series as the foundation of calculus and introduces the remainder form named for him.
- 1797 — Lagrange's Théorie des fonctions analytiques attempts (incorrectly) to base all of calculus on Taylor series, exposing the need for rigor.
- 1823 — Augustin-Louis Cauchy provides rigorous convergence theory and constructs the flat function e−1/x2e^{-1/x^2} showing smoothness ≠\ne analyticity.
- 1840s — Cauchy and Weierstrass develop complex power series, explaining real radii of convergence via complex singularities.

Subtleties & Limits

open-problem

Several deep issues lie just beyond the undergraduate boundary. Divergent but useful series: many physically important Taylor/asymptotic series (e.g., the perturbation series of quantum electrodynamics, or Stirling's series) diverge for every nonzero argument, yet their partial sums give superb finite-order approximations; the rigorous theory of Borel summation and resurgence rescues meaning from such divergence and remains an active research area. Quasianalytic classes: the Denjoy–Carleman theorem precisely characterizes which families of C∞C^\infty functions are determined by their derivatives at a point, sharpening the analytic/smooth divide. Optimal truncation: for asymptotic series there is a least-error truncation point, and understanding the "superasymptotic" and "hyperasymptotic" corrections beyond it is ongoing. Finally, multivariate and operator-valued Taylor expansions raise convergence and domain questions still studied in functional analysis.

See Also

Maclaurin Series · Linear Approximation · Power Series · Laurent Series · Lagrange Remainder · Analytic Function · Padé Approximant · Newton's Method