maclaurin series calculator

Interactive Maclaurin Series Calculator

Choose a function, set a polynomial order, and evaluate the Maclaurin approximation at a specific x value.

Tip: Higher order usually improves accuracy near x = 0, but convergence depends on the function and x value.

What Is a Maclaurin Series?

A Maclaurin series is a special case of a Taylor series centered at x = 0. It expresses a function as an infinite sum of powers of x:

f(x) = Σ ( f(n)(0) / n! ) xn, for n = 0 to ∞

In practice, calculators use a finite number of terms to build a polynomial approximation:

Pn(x) = Σ ( f(k)(0) / k! ) xk, for k = 0 to n

This polynomial is easier to compute and often very accurate near the center point.

How to Use This Maclaurin Series Calculator

  • Select a function from the dropdown list.
  • Choose order n (number of terms minus one).
  • Enter x where you want the approximation.
  • Click Calculate to see the polynomial, approximation, exact value, and error.

The calculator also reports convergence guidance, because not every power series converges for every x.

Common Maclaurin Series Included

1) Exponential Function

ex = 1 + x + x2/2! + x3/3! + ...

Converges for all real x.

2) Sine and Cosine

sin(x) = x - x3/3! + x5/5! - ...
cos(x) = 1 - x2/2! + x4/4! - ...

Both converge for all real x and are excellent examples of alternating power series.

3) Natural Logarithm

ln(1 + x) = x - x2/2 + x3/3 - x4/4 + ...

Converges for |x| < 1, and conditionally at x = 1.

4) Geometric Function

1 / (1 - x) = 1 + x + x2 + x3 + ...

Converges only for |x| < 1.

5) Inverse Tangent

arctan(x) = x - x3/3 + x5/5 - x7/7 + ...

Converges for |x| < 1 and conditionally at x = ±1.

Why Convergence Matters

A polynomial approximation is only as good as its convergence behavior. For many functions, the Maclaurin series becomes inaccurate or even diverges away from x = 0. That is why a convergence check is shown with each result.

  • Inside radius of convergence: approximation generally improves as n increases.
  • Near boundary: convergence may be slow.
  • Outside radius: the series does not represent the function.

Applications of Maclaurin Polynomials

  • Numerical methods and scientific computing
  • Engineering approximations for small-angle and small-perturbation models
  • Physics derivations and asymptotic reasoning
  • Machine learning optimization (local approximations)
  • Computer algebra and symbolic math education

Quick Accuracy Tips

  • Use larger n for better precision near x = 0.
  • If x is large, consider expansion around a different center (Taylor, not Maclaurin).
  • Watch endpoint behavior for logarithmic and inverse trigonometric series.
  • Compare approximation with exact value whenever possible.

🔗 Related Calculators