calculus

Taylor Series

A Taylor series approximates a smooth function as an infinite polynomial built from its derivatives at a single point. Truncating gives polynomial approximations.

The Taylor series of a function ff about a point aa is

f(x)=n=0f(n)(a)n!(xa)n=f(a)+f(a)(xa)+f(a)2!(xa)2+f(x) = \sum_{n=0}^\infty \frac{f^{(n)}(a)}{n!}(x - a)^n = f(a) + f'(a)(x-a) + \frac{f''(a)}{2!}(x-a)^2 + \cdots

When a=0a = 0 the series is called a Maclaurin series.

Famous expansions:

  • ex=xnn!e^x = \sum \frac{x^n}{n!}
  • sinx=(1)nx2n+1(2n+1)!\sin x = \sum \frac{(-1)^n x^{2n+1}}{(2n+1)!}
  • cosx=(1)nx2n(2n)!\cos x = \sum \frac{(-1)^n x^{2n}}{(2n)!}
  • 11x=xn\frac{1}{1-x} = \sum x^n (for x<1|x| < 1).

Truncating the series at degree nn yields a polynomial approximation. This is how calculators compute trig and exp internally and how physics approximates "small angle" or "low velocity" behaviour. The Taylor series exists wherever the function is infinitely differentiable and the remainder term tends to zero.

Related resources