How to Calculate a Power Series: A Step-by-Step Guide

How to Calculate a Power Series by Hand

Calculating a power series manually helps you understand how functions can be approximated near a specific point. This step-by-step guide will walk you through the process using common function expansions. For a quick and accurate result, use the Power Series Calculator.

You'll Need:

  • Pen and paper (or a digital document)
  • The known power series expansion for your function (see Power Series Formula)
  • The center c and value of x
  • Basic algebra and factorial knowledge

Step-by-Step Process

  1. Identify the function and its series expansion. Look up the standard Maclaurin or Taylor series for your function. For example, for \(e^x\) centered at 0, the series is \(\sum_{n=0}^{\infty} \frac{x^n}{n!}\).
  2. Determine the center c. The series is written as \( \sum a_n (x - c)^n \). If no center is given, it's usually 0 (Maclaurin series).
  3. Write the general term. Substitute the coefficients \(a_n\) from the known series. For \(e^x\), \(a_n = 1/n!\), so the term is \(\frac{(x-c)^n}{n!}\).
  4. Choose the number of terms N and the value of x. Decide how many terms to include for your approximation. More terms give better accuracy within the interval of convergence.
  5. Compute each term individually. For \(n = 0\) up to \(N-1\), calculate \(a_n (x-c)^n\). Watch out for signs and factorials.
  6. Sum the terms. Add all the computed terms together to get the partial sum \(S_N\). This is your power series approximation.
  7. (Optional) Compare with the actual function value. If possible, compute the exact function value to see how accurate your approximation is.

Worked Example 1: Approximating \( e^x \) at \(x = 1\)

We'll approximate \(e^1\) (the number \(e\approx 2.71828\)) using the Maclaurin series centered at \(c=0\).

Step 1: Series: \(e^x = \sum_{n=0}^{\infty} \frac{x^n}{n!}\).

Step 2: Center \(c=0\), so \((x-c) = x = 1\).

Step 3: Terms: \(a_n = 1/n!\).

Step 4: Compute terms for \(n=0\) to \(n=4\) (5 terms):

  • \(n=0\): \(1/0! = 1\)
  • \(n=1\): \(1/1! = 1\)
  • \(n=2\): \(1/2! = 0.5\)
  • \(n=3\): \(1/6 \approx 0.166667\)
  • \(n=4\): \(1/24 \approx 0.041667\)

Step 5: Sum: \(1 + 1 + 0.5 + 0.166667 + 0.041667 = 2.708334\).

The exact \(e^1\) is about 2.718282, so the error is about 0.009948 — a good approximation with just 5 terms.

Worked Example 2: Approximating \(\sin x\) at \(x = 0.5\)

The Maclaurin series for \(\sin x\) is \(\sum_{n=0}^{\infty} \frac{(-1)^n x^{2n+1}}{(2n+1)!}\). Center \(c=0\). We'll use \(x=0.5\).

Step 1: Series: only odd powers with alternating signs.

Step 2: Compute first three non-zero terms (\(n=0,1,2\)):

  • \(n=0\): \((-1)^0 (0.5)^{1}/1! = 0.5\)
  • \(n=1\): \((-1)^1 (0.5)^{3}/3! = -0.125/6 \approx -0.020833\)
  • \(n=2\): \((-1)^2 (0.5)^{5}/5! = 0.03125/120 \approx 0.000260\)

Step 3: Sum: \(0.5 - 0.020833 + 0.000260 = 0.479427\).

Exact \(\sin(0.5)\) ≈ 0.479426, so the error is about 0.000001 — extremely close.

Common Pitfalls

  • Forgetting factorials: Always compute \(n!\) correctly. For large \(n\), factorials grow fast.
  • Sign errors: Alternating series (like \(\sin x\) or \(\cos x\)) require careful sign handling.
  • Wrong center: If the series is centered at a non-zero \(c\), you must use \((x-c)^n\) instead of \(x^n\).
  • Convergence: The series only converges within its radius of convergence. Check the definition of power series for details.
  • Truncation error: The more terms you include, the better the approximation. For functions like \(e^x\), the series converges everywhere; for \(\ln(1+x)\), it converges only for \(|x|<1\).

For more practice, see the Power Series for Calculus Students page which lists key expansions.

Try the free Power Series Calculator ⬆

Get your Power series expansions for common mathematical functions result instantly — no signup, no clutter.

Open the Power Series Calculator

Contact Us