Calculus

Taylor Series Explained: Approximating Functions with Polynomials

By Math Solving Space · · 2 min read

On this page
  1. The formula
  2. Worked example 1: @@STASH8@@ about 0
  3. Worked example 2: @@STASH16@@ about 0
  4. Why does the approximation drift away?
  5. Where Taylor series are used
  6. Common mistakes
  7. Practice questions
  8. Frequently asked questions

A Taylor series approximates a function near a point aa by a polynomial whose derivatives at aa match the function's. Each coefficient is f(k)(a)k!\frac{f^{(k)}(a)}{k!}. When a=0a = 0 it is called a Maclaurin series. Near the centre, a few terms give an excellent approximation.

The formula

f(x)≈f(a)+f′(a)(x−a)+f′′(a)2!(x−a)2+f′′′(a)3!(x−a)3+⋯f(x) \approx f(a) + f'(a)(x - a) + \frac{f''(a)}{2!}(x - a)^2 + \frac{f'''(a)}{3!}(x - a)^3 + \cdots

Worked example 1: exe^x about 0

Every derivative of exe^x is exe^x, and e0=1e^0 = 1, so every coefficient is 1k!\frac{1}{k!}:

ex≈1+x+x22+x36+x424e^x \approx 1 + x + \frac{x^2}{2} + \frac{x^3}{6} + \frac{x^4}{24}

At x=0.5x = 0.5 this gives 1.64841.6484, while e0.5=1.6487e^{0.5} = 1.6487.

Worked example 2: sin⁡x\sin x about 0

The derivatives cycle sin⁡,cos⁡,−sin⁡,−cos⁡\sin, \cos, -\sin, -\cos, which at 0 give 0,1,0,−1,0,1,…0, 1, 0, -1, 0, 1, \ldots:

sin⁡x≈x−x36+x5120\sin x \approx x - \frac{x^3}{6} + \frac{x^5}{120}

This is why sin⁡x≈x\sin x \approx x for small angles in radians.

Why does the approximation drift away?

The polynomial is designed to match the function at the centre. Further away, the ignored terms matter more. Adding more terms keeps the polynomial close over a wider range.

Where Taylor series are used

  • Calculators evaluate sin⁡\sin, exe^x and ln⁡\ln with polynomial approximations.
  • Physics uses sin⁡θ≈θ\sin\theta \approx \theta for small angles (pendulums).
  • Limits like sin⁡xx→1\frac{\sin x}{x} \to 1 become obvious from the series.

Common mistakes

  • Forgetting the factorial in the denominator.
  • Using degrees instead of radians for trig series.
  • Centring at 0 when the function (like ln⁡x\ln x) is undefined there.

Practice questions

  1. Write the first three terms of the Maclaurin series of cos⁡x\cos x.
  2. Use ex≈1+x+x22e^x \approx 1 + x + \frac{x^2}{2} to estimate e0.1e^{0.1}.
  3. What is the coefficient of x3x^3 in the Maclaurin series of exe^x?

Answers: 1) 1−x22+x4241 - \frac{x^2}{2} + \frac{x^4}{24} 2) 1.1051.105 3) 16\frac{1}{6}

The Taylor series calculator builds the polynomial for any function and draws it against the real curve. Derivatives come from the derivative calculator; revise them in derivatives for beginners.

Frequently asked questions

What is the difference between Taylor and Maclaurin series?

A Maclaurin series is a Taylor series centred at 0.

Does a Taylor series always equal the function?

Not always. For functions like eˣ, sin x and cos x the infinite series equals the function everywhere; for others, only within a certain distance of the centre.

How many terms do I need?

It depends on how far from the centre you are and how accurate you need to be. Closer points need fewer terms.

Open the calculator →

#calculus#series