Taylor Series & Local Approximation

A Taylor polynomial is the unique polynomial that matches a function’s derivatives at a chosen center, and its remainder turns local approximation into a quantitative contract. This chapter derives the coefficients, distinguishes finite approximations from infinite series and asymptotic expansions, and shows how to choose, bound, and evaluate an approximation safely.

Taylor approximation replaces a smooth function near a chosen center by a polynomial whose value, slope, curvature, and higher derivative data agree there. The coefficients are forced by that matching requirement; the real work is deciding how far the approximation is valid and how large the omitted remainder can be. An infinite Taylor series is a separate claim and must not be inferred merely from the existence of every derivative.

Why replace a nonlinear function by a polynomial #

A nonlinear model may be difficult to solve or evaluate repeatedly. Near a known operating point, a Taylor polynomial replaces it with additions and multiplications while the remainder records what accuracy was lost. The replacement is local: moving farther from the center eventually invalidates the promised error.

Deriving the polynomial from derivative matching #

Seek a degree-nn polynomial centered at aa:

Pn(x)=c0+c1(x−a)+c2(x−a)2+⋯+cn(x−a)n.P_n(x)=c_0+c_1(x-a)+c_2(x-a)^2+\cdots+c_n(x-a)^n.

Demand that it match the first nn derivatives of ff at the center:

Pn(k)(a)=f(k)(a),0≤k≤n.P_n^{(k)}(a)=f^{(k)}(a), \qquad 0\le k\le n.

At x=ax=a, all terms in the derivative of order kk vanish except the one originally proportional to (x−a)k(x-a)^k. That term contributes k!ckk!c_k, so

ck=f(k)(a)k!.c_k=\frac{f^{(k)}(a)}{k!}.

Therefore the unique matching polynomial is

Pn(x)=∑k=0nf(k)(a)k!(x−a)k.P_n(x)=\sum_{k=0}^{n}\frac{f^{(k)}(a)}{k!}(x-a)^k.

If a=0a=0, this is a Maclaurin polynomial. Centered form matters: the small parameter is h=x−ah=x-a, not necessarily xx itself.

The first two nontrivial orders have direct geometric meanings:

P1(a+h)=f(a)+f′(a)hP_1(a+h)=f(a)+f'(a)h

is the tangent-line model, while

P2(a+h)=f(a)+f′(a)h+12f′′(a)h2P_2(a+h)=f(a)+f'(a)h+\frac12f''(a)h^2

also matches local curvature.

The remainder is the approximation contract #

Define

Rn(x)=f(x)−Pn(x).R_n(x)=f(x)-P_n(x).

Taylor’s theorem with the Lagrange remainder says that if ff has the required n+1n+1 derivatives on an interval containing aa and xx, then for some ξ\xi between them,

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

If

∣f(n+1)(t)∣≤M\lvert f^{(n+1)}(t)\rvert\le M

throughout that interval, then

∣Rn(x)∣≤M(n+1)!∣x−a∣n+1.\lvert R_n(x)\rvert \le \frac{M}{(n+1)!}\lvert x-a\rvert^{n+1}.

The bound has three levers: move the center closer, increase the degree, or prove a tighter derivative bound. The unknown ξ\xi is not normally solved for; it certifies that a bound over the whole interval is sufficient.

Taylor polynomial and its bounded local error A smooth function and its Taylor polynomial agree at the center a and stay close within a chosen radius. The shaded gap is the remainder, bounded by a derivative maximum times the distance to the power n plus one divided by n plus one factorial. Taylor approximation is local—and the remainder says how local a − r a a + r derivative bound holds throughout this interval same value, slope, …, nth derivative f(x) Pₙ(x) Rₙ(x) Pₙ(x) = Σₖ₌₀ⁿ f⁽ᵏ⁾(a)(x−a)ᵏ / k! |Rₙ(x)| ≤ M |x−a|ⁿ⁺¹ / (n+1)!
Derivative matching fixes the polynomial at the center; a bound valid over the whole interval converts the shaded remainder into a quantitative error guarantee.

Worked approximation with a certified error #

Approximate e0.1e^{0.1} with the cubic Maclaurin polynomial. Every derivative of exe^x is exe^x, so

P3(x)=1+x+x22+x36.P_3(x)=1+x+\frac{x^2}{2}+\frac{x^3}{6}.

At x=0.1x=0.1,

P3(0.1)=1+0.1+0.005+0.0001666‾=1.1051666‾.P_3(0.1) =1+0.1+0.005+0.000166\overline6 =1.105166\overline6.

On [0,0.1][0,0.1], the fourth derivative is at most e0.1e^{0.1}. Therefore

∣R3(0.1)∣≤e0.10.144!<4.61×10−6.\lvert R_3(0.1)\rvert \le e^{0.1}\frac{0.1^4}{4!} <4.61\times10^{-6}.

The actual error is about 3.52×10−63.52\times10^{-6}, consistent with the certificate. A reported decimal without a bound says what a computation produced; the bound says what accuracy the mathematics guarantees.

For a tolerance τ\tau, choose the smallest nn for which an available bound satisfies

M∣x−a∣n+1(n+1)!≤τ.\frac{M\lvert x-a\rvert^{n+1}}{(n+1)!}\le\tau.

Because MM can itself depend on the interval and nn, this is a proof obligation, not merely a factorial-growth heuristic.

Standard local models and their domains #

Frequently used Maclaurin expansions include

ex=∑n=0∞xnn!,e^x=\sum_{n=0}^{\infty}\frac{x^n}{n!},

sin⁡x=∑n=0∞(−1)nx2n+1(2n+1)!,\sin x=\sum_{n=0}^{\infty}(-1)^n\frac{x^{2n+1}}{(2n+1)!},

cos⁡x=∑n=0∞(−1)nx2n(2n)!,\cos x=\sum_{n=0}^{\infty}(-1)^n\frac{x^{2n}}{(2n)!},

all convergent to their functions for every real xx. By contrast,

11−x=∑n=0∞xn\frac{1}{1-x}=\sum_{n=0}^{\infty}x^n

requires ∣x∣<1\lvert x\rvert<1, and integrating this identity gives

ln⁡(1+x)=x−x22+x33−⋯\ln(1+x) =x-\frac{x^2}{2}+\frac{x^3}{3}-\cdots

for −1<x≤1-1<x\le1, with separate endpoint analysis: it converges at x=1x=1 but not at x=−1x=-1, where the logarithm is singular.

Never use a memorized series without translating to its center and checking its interval. For example,

ln⁡x=ln⁡a+ln⁡(1+x−aa)\ln x=\ln a+\ln\left(1+\frac{x-a}{a}\right)

requires a>0a>0 for the real logarithm, and the geometric-series derivation applies when ∣x−a∣<a\lvert x-a\rvert<a.

Finite polynomial, power series, and function are different objects #

The Taylor polynomial PnP_n is finite and needs only finitely many derivatives. The formal Taylor series is

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

Three separate questions follow:

  1. Does this numerical series converge for the chosen xx?
  2. If it converges, what value does it approach?
  3. Does that value equal f(x)f(x)?

Equality to ff holds exactly where Rn(x)→0R_n(x)\to0. Smoothness alone does not guarantee it. A standard counterexample is

f(x)={e−1/x,x>0,0,x≤0.f(x)= \begin{cases} e^{-1/x}, & x>0,\\ 0, & x\le0. \end{cases}

This function is infinitely differentiable at zero and every derivative there is zero. Its Taylor series at zero is therefore the zero series, yet f(x)>0f(x)>0 for x>0x>0. The function is smooth but not analytic at the center.

Radius of convergence and endpoint work #

For a power series

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

there is a radius R∈[0,∞]R\in[0,\infty] such that it converges absolutely for ∣x−a∣<R\lvert x-a\rvert<R and diverges for ∣x−a∣>R\lvert x-a\rvert>R. When 0<R<∞0<R<\infty, the endpoints a−Ra-R and a+Ra+R must be tested separately; the radius alone decides neither endpoint.

Inside the open interval of convergence, power series may be differentiated and integrated term by term. This is a theorem about convergence, not a license to manipulate an arbitrary formal series at its endpoints.

For

∑n=0∞(x−2)n(n+1)3n,\sum_{n=0}^{\infty}\frac{(x-2)^n}{(n+1)3^n},

the ratio test gives ∣x−2∣<3\lvert x-2\rvert<3, hence candidate interval (−1,5)(-1,5). At x=−1x=-1 the series becomes alternating harmonic and converges; at x=5x=5 it becomes harmonic and diverges. The interval is [−1,5)[-1,5), while the radius remains 33.

Taylor and asymptotic expansions are not the same promise #

An asymptotic expansion records progressively smaller scales. As x→cx\to c,

f(x)∼∑k=0∞akϕk(x)f(x)\sim\sum_{k=0}^{\infty}a_k\phi_k(x)

means that after truncation at any fixed nn, the remainder is smaller than the last retained scale in the prescribed sense. The infinite series need not converge for a fixed nonzero distance from cc; some useful asymptotic series eventually become worse if too many terms are retained.

A convergent Taylor series that equals ff is stronger: its partial sums approach f(x)f(x) as degree grows for each xx in its convergence region. Keep the limiting operation explicit:

  • local approximation: x→ax\to a with fixed degree;
  • series convergence: n→∞n\to\infty with fixed xx;
  • asymptotic expansion: a scale parameter tends to its limit, with truncation interpreted term by term.

Conflating these processes is a common source of false error claims.

Choosing a useful approximation #

  1. Choose a nearby center with easy derivatives. For x\sqrt{x} near x=100x=100, center at 100100, not zero.
  2. Define the perturbation h=x−ah=x-a. Most bookkeeping errors disappear when every term is expressed in hh.
  3. State the real domain and interval connecting aa to xx. The derivative bound must hold throughout it.
  4. Select an order based on a tolerance. Do not choose a cubic merely because it is familiar.
  5. Bound the remainder with a theorem suited to the series. Lagrange and alternating-series bounds answer different situations.
  6. Evaluate the polynomial stably. Use nested form

    Pn(x)=c0+h(c1+h(c2+⋯+hcn))P_n(x)=c_0+h\bigl(c_1+h(c_2+\cdots+hc_n)\bigr)

    to reduce operations and avoid separately forming large powers.
  7. Compare truncation and roundoff. Increasing degree can reduce analytic error while increasing floating-point work or cancellation.

Taylor approximation is most valuable when it carries its own scope: center, degree, domain, interval, and a defensible remainder. Without those, a polynomial may look plausible while giving no reason to trust it.

Sources

  1. bookDifferential and Integral Calculus of a Function of One Variable: Lecture Notes and Practicumpdfnotes
  2. bookOpenStax Calculus Volume 2 — Taylor and Maclaurin Series
  3. bookOpenStax Calculus Volume 2 — Power Series and Functions
  4. docsMIT OpenCourseWare 18.01SC — Introduction to Taylor Series
  5. docsNIST Digital Library of Mathematical Functions, Section 2.1: Definitions and Elementary Properties
  6. docsMIT 18.100A problem-set solutions — smooth non-analytic function
  7. bookOpenStax University Physics Volume 1 — Pendulums

Searches titles, aliases, headings, summaries, and full text.↑↓ move ↵ open esc close