Taylor and Maclaurin (Power) Series Calculator
If you’ve ever needed a fast polynomial approximation of a function (without doing pages of derivatives), this Taylor and Maclaurin Series Calculator makes it simple. Pick a function, choose the order, set the center, and instantly see the truncated series, the approximation value, and the error.
Calculator
How to use
A quick, step-by-step guide to get your result in seconds.
- Choose Series Mode: Select Maclaurin (a = 0) or Taylor (custom a).
- Select a supported function and enter the expansion order n.
- Enter the x value where you want the approximation evaluated.
- If using Taylor mode, enter center a.
- Click Calculate to view the series, approximation, exact value, error, and convergence note.
In-depth guide
Taylor and Maclaurin Power Series: A Practical Guide (With a Calculator)
A power series is one of the most useful “bridges” between calculus and real-world computation. It turns complicated functions into polynomials you can add, subtract, multiply, and evaluate easily. That’s why truncated Taylor series and Maclaurin series show up everywhere: physics, engineering, computer graphics, numerical methods, and even finance.
This page explains how Taylor and Maclaurin expansions work, how to interpret approximation error, and how to use a series approximation responsibly. You’ll also see why the expansion center matters, what “order” really means, and how radius of convergence changes whether a series is trustworthy.
What is a Taylor Series (and Why It Works)?
A Taylor series expands a function around a point a by matching the function’s derivatives at that point. If a function is smooth enough, you can write:
Taylor series (infinite form):
f(x) = Σ (n=0..∞) [ f^(n)(a) / n! ] (x - a)^n
The idea is simple: the polynomial is built so it shares the same value, slope, curvature, and higher derivative behavior as the original function at a. Near that center point, the polynomial and the function tend to be very close.
Maclaurin Series: The Special Case (a = 0)
A Maclaurin series is just a Taylor series centered at a = 0. The formula is the same, except (x - a) becomes x:
Maclaurin series:
f(x) = Σ (n=0..∞) [ f^(n)(0) / n! ] x^n
Maclaurin expansions are popular because they often produce clean, well-known patterns (like sin, cos, and e). But a Taylor expansion about a different center can be dramatically more accurate if your x is far from 0.
How Truncated Series (Taylor Polynomials) Are Used
In real calculators and real computations, we rarely use infinite series directly. Instead, we use a Taylor polynomial (also called a truncated power series):
Truncated Taylor polynomial of order n:
P_n(x) = Σ (k=0..n) [ f^(k)(a) / k! ] (x - a)^k
Order n means you keep terms up to (x-a)^n. You get a polynomial with n+1 terms (from k = 0 to n).
- Low order (like n = 1 or 2): fast and simple, but can be inaccurate unless x is very close to a.
- Medium order (n = 4 to 8): often a great balance for many practical approximations.
- High order (n = 10+): can be extremely accurate near the center, but may be slower and can suffer from rounding in some cases.
Taylor and Maclaurin (Power) Series Calculator: What It Shows
Our Taylor and Maclaurin (Power) Series Calculator is designed to be “explainable,” not just fast. It typically shows:
- Series expression in powers of
(x - a) - Approximation value at your chosen x
- Exact value (when available) for comparison
- Absolute error and percent error
- Convergence note (important for trust!)
- Step-by-step table with coefficients and term contributions
This format helps you answer practical questions like: “Which term matters most?”, “Is my center point a good choice?”, and “Is order 5 enough?”
Worked Example: Approximating e^x with a Taylor Expansion
Consider the common function e^x. Its derivatives are all e^x, which makes it a friendly example.
If you expand around a = 1 and keep order n = 5, your calculator might display something like:
- Center: a = 1
- Order: n = 5
- Evaluation point: x = 0.3
The result is a polynomial in (x - 1). Then the calculator evaluates it at x = 0.3 and compares against the exact e^0.3. The difference becomes your approximation error.
Key insight: even for the same function and the same order, changing the center a can change the error a lot. A Taylor expansion works best when x is close to a.
Understanding Coefficients and Terms (What the Table Really Means)
The step table typically includes:
- Derivative value:
f^(n)(a) - Coefficient:
c_n = f^(n)(a) / n! - Power term:
(x-a)^n - Term value:
c_n (x-a)^n
This is more than “math details.” It tells you why the approximation lands where it does. If higher-order term values are already tiny, increasing n may not change much. But if the later terms are still large, you probably need a higher order or a better center.
Absolute Error vs Percent Error (And When Percent Error Breaks)
Error metrics help you decide whether the approximation is acceptable:
- Absolute error:
|exact - approximation| - Percent error:
(|exact - approximation| / |exact|) × 100%
Important: percent error can be undefined when the exact value is 0 (division by zero). That’s not a bug—it’s the math.
Radius of Convergence: When a Series is “Legally Valid”
The calculator’s convergence note is crucial because not every power series works everywhere.
Some functions (like e^x, sin x, and cos x) are entire, meaning their Taylor series converges for all real x (radius of convergence R = ∞).
Others only converge within a certain distance from the center. For example:
| Function | Typical series center | Convergence idea |
|---|---|---|
| ln(1+x) | a = 0 (Maclaurin) | Converges for -1 < x ≤ 1 (behavior at x=1 depends on the exact series form) |
| 1/(1-x) | a = 0 | Converges for |x| < 1 |
| arctan(x) | a = 0 | Converges for |x| ≤ 1 (slow near endpoints) |
Practical takeaway: A truncated polynomial will always output a number, even outside the convergence radius. But that doesn’t mean the infinite series is valid there. Treat out-of-radius results cautiously.
How to Choose a Good Center a
If you’re using Taylor (custom a), pick a center close to the x-values you care about.
- If you want accuracy near x = 0, use Maclaurin.
- If you want accuracy near x = 2, consider a = 2.
- If x ranges across an interval, choose a center near the middle of that interval.
Center choice can outperform “just increase the order.” A smart center can reduce the required order dramatically.
Order n: How High Should You Go?
There’s no single perfect order, but these guidelines help:
- Start with n = 3 to 5 for a quick estimate.
- Check the error (absolute or percent) if the calculator provides an exact comparison.
- Increase n until your error is within tolerance.
- If error stays large, move the center a closer to x.
For many smooth functions, accuracy improves rapidly as n increases—especially when |x − a| is small.
Common Real-World Uses of Power Series Approximations
- Engineering: linearization and small-signal models
- Physics: approximating motion, waves, and potentials
- Numerical computing: fast evaluation of transcendental functions
- Economics/finance: local approximations to simplify models
- Education: understanding how functions behave near a point
Quick Safety Checklist (Trust Your Approximation)
- Is your x close to a?
- Is the function’s series known to converge at your x?
- Are the later term values small compared with earlier ones?
- Does the calculator show a small error relative to your needs?
If you can answer “yes” to most of these, your truncated series result is likely reliable.
FAQ
Answers to the most common questions about this calculator.
What does the Taylor and Maclaurin Series Calculator compute?
It computes a truncated Taylor polynomial (or a Maclaurin polynomial when a = 0) up to order n, evaluates it at your chosen x, and reports approximation error when the exact value is available.
What is the difference between Taylor series and Maclaurin series?
A Maclaurin series is a Taylor series centered at a = 0. A Taylor series can be centered at any point a, which often improves accuracy when x is closer to that center.
Why does increasing the order n usually improve accuracy?
Higher order includes more terms that match the function’s derivatives near the center a. When the series converges and x is near a, adding terms typically reduces approximation error.
When can percent error be undefined?
Percent error divides by the exact value. If the exact value is 0, percent error is mathematically undefined (division by zero).
