Skip to content
TheCalcUniverse

Taylor Series Calculator — Expand Functions as Power Series

Compute Taylor series of common functions like e^x, sin(x), cos(x) around any center point. Adjust the expansion order for accurate polynomial approximation.

✓ Tested formula & cited sources Formula verified 2026-05-15 Runs in your browser — inputs never sent anywhere

The formula

f(x) = Σ_{n=0}^{∞} f^{(n)}(a)(x-a)^n / n!

f(x)
Function
a
Center
n
Order
f^{(n)}(a)
n-th Derivative at a
n!
n Factorial
Full explanation ↓

How Taylor Series Works

f(x) = Σ_{n=0}^{∞} f^{(n)}(a)(x-a)^n / n!

The Taylor series expansion represents a function as an infinite sum of terms calculated from its derivatives at a single point. The formula computes each term using the n-th derivative of f evaluated at the center point a, divided by n factorial, multiplied by (x - a)^n. When a = 0, the series is called a Maclaurin series. Taylor series are powerful tools for approximating functions using polynomials, enabling computation of function values, integrals, and solutions to differential equations.

f(x)
FunctionThe original function being expanded as a Taylor series (e.g., e^x, sin(x), cos(x)).
a
CenterThe point around which the function is expanded. The series approximates the function best near this point.
n
OrderThe highest-power term included in the expansion. Higher order gives better approximation but more terms.
f^{(n)}(a)
n-th Derivative at aThe n-th derivative of f evaluated at the center point a, determining the coefficient of each term.
n!
n FactorialThe product of all integers from 1 to n, used to normalize each term in the series.
A Taylor series approximates a function as an infinite sum of terms based on its derivatives at a single point

How to Use

  1. Enter a function expression using x as the variable (e.g., e^x, sin(x), cos(x), 1/(1-x)).
  2. Set the center point a (default 0, which gives the Maclaurin series).
  3. Choose the order n (default 5) to control how many terms are included.
  4. Optionally provide an x value to evaluate the Taylor polynomial approximation numerically.
  5. View the resulting polynomial and each individual term of the expansion.

Quick Reference

e^x1 + x + x²/2! + x³/3! + ...
sin(x)x − x³/3! + x⁵/5! − ...
cos(x)1 − x²/2! + x⁴/4! − ...
1/(1−x)1 + x + x² + x³ + ... (|x| < 1)

Common Uses

  • Approximating transcendental functions like e^x, sin(x), and cos(x) with simple polynomials for computation.
  • Solving differential equations by representing unknown functions as Taylor series and matching coefficients.
  • Evaluating limits and integrals that are difficult or impossible to compute exactly with elementary methods.
  • Modeling physical systems where only a few terms of the expansion capture the dominant behavior near equilibrium.
  • Numerical analysis for function approximation and error estimation in scientific computing.

Understanding the Result

The Taylor series is one of the most important tools in mathematical analysis, first formalized by the English mathematician Brook Taylor in 1715. It provides a way to represent smooth functions as infinite polynomials, making them easier to study, differentiate, integrate, and evaluate numerically. The fundamental insight is that knowing all the derivatives of a function at a single point is enough to reconstruct the entire function — at least locally, within the radius of convergence. For common functions like e^x, sin(x), and cos(x), the Taylor series have simple, repeating patterns that make them invaluable for computation. The approximation improves as more terms are added, and the error term can be bounded precisely using Taylor's theorem, which gives an explicit formula for the remainder after n terms. The series converges to the original function within its radius of convergence, which may be finite (like 1/(1-x) which converges only for |x| < 1) or infinite (like e^x and the trigonometric functions which converge everywhere on the real line). Taylor series form the foundation for numerous numerical methods in science and engineering, including Runge-Kutta methods for differential equations, finite element analysis, and most floating-point function evaluation in computer hardware. When the center is set to zero (a = 0), the series is called a Maclaurin series, named after the Scottish mathematician Colin Maclaurin who made extensive use of this special case in the 18th century.

Worked Examples

An engineering student needs to approximate sin(0.1) using a 3rd-order Maclaurin series to verify a hand calculation for their numerical methods homework.

expression = sin(x) · center = 0 · order = 3 · xValue = 0.1

x - 0.166667·(x-0)^3; f(0.1) ≈ 0.099833

The 3rd-order Maclaurin series for sin(x) around a=0 is: sin(0) + cos(0)(x-0)^1 + (-sin(0))(x-0)^2/2! + (-cos(0))(x-0)^3/3! = x - x^3/6. Evaluating at x=0.1 gives 0.1 - 0.001/6 = 0.1 - 0.0001667 = 0.0998333. The actual sin(0.1) = 0.0998334, so the approximation is accurate to 7 decimal places with just 2 non-zero terms.

A physics student wants to compute e^2 using a 5th-order Taylor expansion around a=0 to compare with the exact value from their scientific calculator.

expression = e^x · center = 0 · order = 5 · xValue = 2

1 + x + 0.5·x^2 + 0.166667·x^3 + 0.041667·x^4 + 0.008333·x^5; f(2) ≈ 7.266667

The Maclaurin series for e^x is 1 + x + x^2/2! + x^3/3! + x^4/4! + x^5/5! = 1 + 2 + 2 + 1.333 + 0.667 + 0.267 = 7.267. The exact e^2 = 7.389, giving an error of about 1.7%. With a 10th-order expansion, the approximation improves to 7.389 - nearly exact. This demonstrates both the power of Taylor series and the need for sufficient terms when evaluating far from the center.

Frequently Asked Questions

What is the difference between a Taylor series and a Maclaurin series?
A Maclaurin series is simply a Taylor series with center a = 0. Both follow the same formula, but Maclaurin series are expanded around the origin, making them simpler for many common functions. For example, the Maclaurin series for e^x is 1 + x + x²/2! + x³/3! + ..., while the Taylor series around a general point a would involve powers of (x-a).
How does the order affect the approximation accuracy?
Higher order means more terms are included, which generally gives a more accurate approximation near the center point. However, far from the center, adding more terms might initially make the approximation worse (a phenomenon known as Runge's phenomenon for some functions). For well-behaved functions like e^x and sin(x), the approximation improves everywhere as order increases.
What happens if I use a function that is not in the known list?
The calculator will attempt to compute the Taylor series using finite-difference approximations of the derivatives. This numerical approach works for many differentiable functions but may be less accurate for functions with rapid changes or discontinuities. Results are best for smooth functions near the center point.
Can I use the Taylor series to compute values of functions?
Yes! By providing an x value in the "Evaluate at x" field, the calculator computes the Taylor polynomial approximation at that point. This is exactly how calculators and computers compute values of functions like sin(x), e^x, and many others — they use Taylor series (or similar polynomial approximations) evaluated to sufficient precision.
Why does the calculator show only a few known functions with exact symbolic terms?
The calculator provides exact symbolic Taylor expansions (with analytically computed derivatives) for the most commonly used functions: e^x, sin(x), cos(x), and 1/(1-x). These functions have simple, well-known derivative patterns that allow exact term generation. For other functions, the calculator uses numerical finite-difference approximations of the derivatives, which can produce approximate coefficients but may lack the elegant symbolic form. The finite-difference approach is a practical trade-off that lets you explore Taylor expansions for arbitrary differentiable functions without requiring a full computer algebra system.

Pro Tips

  • For best accuracy, choose a center point (a) as close as possible to the region where you plan to evaluate the function. The approximation quality degrades as |x - a| increases.
  • When using the calculator to check homework, always note the order used. Many textbook problems specify the order or number of terms explicitly — matching this ensures you are solving the same problem.
  • The finite-difference method for unknown functions uses a step size h = 0.001. For functions with very rapid oscillations or sharp features, the numerical derivatives may lose accuracy. Stick to smooth, well-behaved functions for best results.
  • Use the "Evaluate at x" field to test how well the polynomial approximates the actual function value. Try several different x values at different distances from the center to understand the convergence behavior.
  • For periodic functions like sin(x) and cos(x), use the angle reduction property (e.g., sin(x + 2pi) = sin(x)) to move the evaluation point closer to the center, improving accuracy for a given order.
  • Remember that the Taylor series for 1/(1-x) only converges for |x| < 1. Evaluating at x = 2 will give a wildly incorrect result no matter how many terms you include — this is a fundamental limitation of the series, not a calculator error.

Limitations to Know

  • Taylor series only converge within their radius of convergence — evaluating outside this radius produces meaningless results regardless of the number of terms. For example, the series for 1/(1-x) diverges for |x| >= 1.
  • The finite-difference derivative approximation becomes unreliable for functions with discontinuities, cusps, or very rapid oscillations near the center point. Stick to smooth, well-behaved functions for best results.
  • Numerical precision limits (about 15-16 significant digits in double-precision floating-point) mean that coefficients for very high orders may accumulate rounding errors.
  • The calculator does not provide the Lagrange remainder term, which quantifies the error between the polynomial approximation and the true function value. For error bounds, consult Taylor's theorem and compute the remainder manually.
  • For functions not in the known list (e^x, sin(x), cos(x), 1/(1-x)), only numerical approximations of terms are available, not exact symbolic forms.
Was this calculator helpful?
Cite this calculator

TheCalcUniverse. "Taylor Series Calculator — Expand Functions as Power Series." TheCalcUniverse, 2026, https://thecalcuniverse.com/math/taylor-series/. Accessed July 24, 2026.

Embed this calculator on your site

Free to embed. Paste this into any HTML page — it stays up to date automatically.

Open embed ↗

You may also like

Guides that use this calculator