How to Calculate a Maclaurin Series Step by Step

How to Calculate a Maclaurin Series Step by Step

A Maclaurin series is a powerful tool for approximating complex functions using simple polynomials. The formula is:

f(x) = f(0) + f'(0)x + f''(0)x²/2! + f'''(0)x³/3! + ...

This guide will walk you through the process of calculating a Maclaurin series by hand. Once you understand the steps, you can use our Maclaurin Series Calculator to check your work or handle more complicated functions. For a deeper dive into the definition, see What is a Maclaurin Series? Definition and Examples.

What You'll Need

  • Paper and pen or pencil
  • Basic knowledge of derivatives and factorials
  • A calculator (optional) for arithmetic

Step-by-Step Instructions

  1. Write down the general Maclaurin formula. Recall that the series is centered at x = 0: f(x) = Σ_{n=0}^∞ [f⁽ⁿ⁾(0)/n!] xⁿ. This is your blueprint.
  2. Find the first several derivatives of f(x). Start with f(x) itself (the 0th derivative) and compute derivatives until you have as many terms as you want. For a standard series up to x⁴, you need derivatives up to the 4th derivative.
  3. Evaluate each derivative at x = 0. Plug x = 0 into each derivative. Write down these numbers: f(0), f'(0), f''(0), f'''(0), etc.
  4. Plug into the formula. For each n, compute the term: [f⁽ⁿ⁾(0)/n!] * xⁿ. Remember that 0! = 1.
  5. Write out the series. List the terms in order from n=0 to the desired number of terms. Simplify coefficients when possible (like 1/2! = 1/2).
  6. (Optional) Look for a pattern. For many common functions, the derivatives cycle or follow a pattern. This lets you write a general term for the infinite series.

Worked Example 1: f(x) = e^x

We'll compute the Maclaurin series up to the x⁴ term.

  • Derivatives: f'(x) = e^x, f''(x) = e^x, f'''(x) = e^x, f⁴(x) = e^x.
  • Evaluated at 0: e^0 = 1 for all.
  • Terms: n=0: 1/0! * x⁰ = 1; n=1: 1/1! * x¹ = x; n=2: 1/2! * x² = x²/2; n=3: 1/3! * x³ = x³/6; n=4: 1/4! * x⁴ = x⁴/24.
  • Series: e^x ≈ 1 + x + x²/2 + x³/6 + x⁴/24.

This pattern continues: the coefficient for xⁿ is 1/n!. So the infinite series is Σ xⁿ/n!.

Worked Example 2: f(x) = sin(x)

We'll compute up to the x⁷ term. Note that derivatives cycle every 4 steps: sin → cos → –sin → –cos → sin.

  • Derivatives: f(x)=sin(x), f'(x)=cos(x), f''(x)=–sin(x), f'''(x)=–cos(x), f⁴(x)=sin(x).
  • Evaluate at 0: sin(0)=0, cos(0)=1, –sin(0)=0, –cos(0)=–1, sin(0)=0, etc.
  • Terms: n=0: 0; n=1: 1/1! * x¹ = x; n=2: 0; n=3: (–1)/3! * x³ = –x³/6; n=4: 0; n=5: 1/5! * x⁵ = x⁵/120; n=6: 0; n=7: –1/7! * x⁷ = –x⁷/5040.
  • Series: sin(x) ≈ x – x³/6 + x⁵/120 – x⁷/5040.

Only odd powers appear, with alternating signs. The general term for odd n=2k+1: (–1)ᵏ x²ᵏ⁺¹/(2k+1)!.

Common Pitfalls to Avoid

  • Forgetting factorials: The denominator n! is not optional. For example, the term for n=3 must be divided by 3! = 6, not just 3.
  • Sign errors: When derivatives involve negative signs (like sin and cos), keep careful track. Write each derivative evaluation explicitly.
  • Incorrect derivative order: Make sure you've taken the correct number of derivatives. The nth term uses the nth derivative.
  • Confusing Maclaurin with Taylor: A Maclaurin series is a Taylor series centered at 0. If you accidentally center elsewhere, you are computing a general Taylor series. See our Maclaurin Series Formula: Derivation and Explanation for clarity.

Once you have your series, you may want to check how well it approximates the function for specific x values. For guidance on accuracy and convergence, read Interpreting Maclaurin Series: Accuracy & Convergence.

Practice these steps with the functions provided in our calculator, and soon you'll be able to derive Maclaurin series by hand with confidence.

Try the free Maclaurin Series Calculator ⬆

Get your Maclaurin Series: Taylor series expansion centered at x=0 for function approximation and analysis result instantly — no signup, no clutter.

Open the Maclaurin Series Calculator

Contact Us