Calculus
Advanced

Taylor Series

Expands a function as an infinite polynomial around a.

Formula

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

Variables

aExpansion point
nTerm index

Example

Near a=0, cos x ≈ 1 − x²/2 + x⁴/24 — the first few Taylor terms.

How it works

A Taylor series writes a smooth function as an infinite sum of powers of (x - a), with each coefficient chosen so the polynomial matches the function, its slope, curvature, and higher derivatives at the point a. It works because the derivatives at a encode the local behavior of the function, and the factorials scale each term so the nth derivative of the series agrees with f^(n)(a). When the series converges to the function, it gives an exact representation; otherwise, finite truncations still provide very accurate local approximations.

When to use it

Use Taylor series when you need a local approximation of a complicated function, especially near a point where derivatives are easy to compute. They are essential in asymptotic analysis, numerical methods, error estimation, and physics/engineering approximations near equilibrium or small perturbations.

Worked example, step by step

Approximate e^x near a = 0 using the Taylor series. Step 1: For f(x) = e^x, every derivative is e^x, so f^(n)(0) = 1 for all n. Step 2: The Taylor series at 0 is e^x = 1 + x + x^2/2! + x^3/3! + ... Step 3: Evaluate at x = 0.2 using the first four terms: 1 + 0.2 + (0.2)^2/2 + (0.2)^3/6 = 1 + 0.2 + 0.04/2 + 0.008/6 = 1 + 0.2 + 0.02 + 0.001333... = 1.221333... Step 4: Compare with the actual value e^0.2 ≈ 1.221403. Final answer: e^0.2 ≈ 1.22133 from the Taylor approximation, which is very close to the true value.

Common mistakes to avoid

  • Forgetting to evaluate the derivatives at the expansion point a before forming coefficients
  • Omitting the factorial n! in the denominator, which changes every term's size
  • Using the series outside its interval/radius of convergence and assuming it always equals the function

Did You Know?

Taylor series let a computer compute sin, cos, and e^x using nothing but addition and multiplication.

Share this formula

Reviewed & maintained by the FormulaWon editorial teamLast reviewed September 2026