Taylor Series

Subtopic: Series

Taylor series represent functions as infinite polynomials built from derivatives at a single point. They're the ultimate local approximation—capturing a function's behavior through its derivatives. Taylor series power numerical computation, physics approximations, and theoretical analysis.

Introduction

Polynomials are easy to compute—just addition and multiplication. What if we could write any function as a polynomial? Taylor series do exactly that (for well-behaved functions), expressing ƒ⁡(x) f with hook of x as an infinite sum of powers of (x-a) open paren x minus a close paren.

The coefficients come from derivatives: the more derivatives you include, the better the approximation near the expansion point.

Definition

The Taylor series of ƒ⁡(x) f with hook of x centered at x=a x equals a:

ƒ⁡(x)=∑n=0∞(ƒ⁡(a)nn!)⁢(x−a)n f with hook of x equals the sum from n equals 0 to infinity of open paren the fraction with numerator f with hook of a to the n-th power and denominator n factorial close paren times open paren x minus a close paren to the n-th power

Expanded:

ƒ⁡(x)=ƒ⁡(a)+ƒ′⁡(a)⁢(x−a)+ƒ″⁡(a)2!⁢(x−a)2+ƒ″⁡(a)3!⁢(x−a)3+⋯ f with hook of x equals f with hook of a plus f with hook prime of a times open paren x minus a close paren plus the fraction with numerator f with hook double prime of a and denominator 2 factorial times open paren x minus a close paren squared plus the fraction with numerator f with hook double prime of a and denominator 3 factorial times open paren x minus a close paren cubed plus dot dot dot

When a=0 a equals 0, it's called a Maclaurin series.

Key Taylor Series

ex=1+x+x22!+x33!+⋯=∑n=0∞xnn! e to the x-th power equals 1 plus x plus the fraction with numerator x squared and denominator 2 factorial plus the fraction with numerator x cubed and denominator 3 factorial plus dot dot dot equals the sum from n equals 0 to infinity of the fraction with numerator x to the n-th power and denominator n factorial

sin⁡x=x-x33!+x55!-…=∑n=0∞(-1)n⁢x2⁢n+1(2⁢n+1)! sine x equals x minus the fraction with numerator x cubed and denominator 3 factorial plus the fraction with numerator x to the fifth power and denominator 5 factorial minus dot dot dot equals the sum from n equals 0 to infinity of the fraction with numerator open paren negative 1 close paren to the n-th power times x raised to the 2 n plus 1 power and denominator open paren 2 n plus 1 close paren factorial

cos⁡x=1-x22!+x44!-…=∑n=0∞(-1)n⁢x2⁢n(2⁢n)! cosine x equals 1 minus the fraction with numerator x squared and denominator 2 factorial plus the fraction with numerator x to the fourth power and denominator 4 factorial minus dot dot dot equals the sum from n equals 0 to infinity of the fraction with numerator open paren negative 1 close paren to the n-th power times x raised to the 2 n power and denominator 2 n factorial

ln⁡(1+x)=x−x22+x33−⋯=∑n=1∞(−1)n+1⁢xnn l n of open paren 1 plus x close paren equals x minus the fraction with numerator x squared and denominator 2 plus the fraction with numerator x cubed and denominator 3 minus dot dot dot equals the sum from n equals 1 to infinity of open paren negative 1 close paren raised to the n plus 1 power times x to the n-th power over n (|x|<1) open paren the absolute value of x is less than 1 close paren

11−x=1+x+x2+x3+⋯=∑n=0∞xn the fraction with numerator 1 and denominator 1 minus x equals 1 plus x plus x squared plus x cubed plus dot dot dot equals the sum from n equals 0 to infinity of x to the n-th power (|x|<1) open paren the absolute value of x is less than 1 close paren

Worked Example

Find the Maclaurin series for ƒ⁡(x)=ex f with hook of x equals e to the x-th power.

All derivatives of ex e to the x-th power equal ex e to the x-th power. At x=0 x equals 0, we have ƒ⁡(0)(n)=e0=1 f with hook of 0 raised to the n power equals e to the 0 power equals 1 for all n n.

ex=∑n=0∞(1n!)⁢xn=1+x+x22+x36+⋯ e to the x-th power equals the sum from n equals 0 to infinity of open paren the fraction with numerator 1 and denominator n factorial close paren x to the n-th power equals 1 plus x plus the fraction with numerator x squared and denominator 2 plus the fraction with numerator x cubed and denominator 6 plus dot dot dot

This converges for all x x.

Taylor Polynomials

The nth-degree Taylor polynomial is the partial sum:

Tn⁡(x)=∑k=0n(ƒ⁡(a)(k)k!)⁢(x−a)k T sub n of x equals the sum from k equals 0 to n of open paren the fraction with numerator f with hook of a raised to the k power and denominator k factorial close paren times open paren x minus a close paren to the k-th power

T1 T sub 1 is linear approximation (tangent line). T2 T sub 2 includes curvature. Higher degrees capture more local behavior.

Convergence

Not all Taylor series converge to their function. When they do, the radius of convergence R R tells you how far from a a the series works.

  • ex e to the x-th power, sin⁡x sine x, cos⁡x cosine x: converge everywhere (R=∞ R equals infinity)

  • ln⁡(1+x) l n of open paren 1 plus x close paren: converges for |x|<1 the absolute value of x is less than 1 (R=1 R equals 1)

  • 11−x the fraction with numerator 1 and denominator 1 minus x: converges for |x|<1 the absolute value of x is less than 1 (R=1 R equals 1)

Error Estimate

The remainder (error) after n terms satisfies:

Rn⁡(x)=ƒ⁡(c)(n+1)(n+1)!⁢(x−a)n+1 R sub n of x equals the fraction with numerator f with hook of c raised to the open paren n plus 1 close paren power and denominator open paren n plus 1 close paren factorial times open paren x minus a close paren raised to the n plus 1 power

for some c c between a a and x x. This Lagrange form bounds the approximation error.

Applications

In physics, small-angle approximations such as sin⁡θ≈θ sine theta almost equals theta come from Taylor series.

In numerical computing, functions like exp⁡(x) exp x, sin⁡x sine x, and cos⁡x cosine x are computed using truncated Taylor series.

In calculus, Taylor series are used to evaluate limits and prove identities, such as Euler’s formula ei⁢x=cos⁡x+i⁢sin⁡x e raised to the i x power equals cosine x plus i sine x.

In machine learning, second-order Taylor expansion underlies Newton's method for optimization.

Summary

A Taylor series expands ƒ⁡(x) f with hook of x as ∑n=0∞(ƒ⁡(a)(n)n!)⁢(x−a)n the sum from n equals 0 to infinity of open paren the fraction with numerator f with hook of a raised to the n power and denominator n factorial close paren times open paren x minus a close paren to the n-th power. Key series include ex e to the x-th power, sin⁡x sine x, cos⁡x cosine x, ln⁡(1+x) l n of open paren 1 plus x close paren, and 11−x the fraction with numerator 1 and denominator 1 minus x. Truncated Taylor polynomials approximate functions near the expansion point a a. The radius of convergence determines where the series equals the function. Error bounds are given by the Lagrange remainder.