Math Solver Free

Taylor Series Calculator

Term-by-term Taylor/Maclaurin polynomials from symbolic derivatives.

How Taylor Series Work

A Taylor series rewrites a smooth function as an infinite polynomial built from its derivatives at a single point: f(x) = f(a) + f′(a)(x−a) + f″(a)(x−a)²/2! + … Each term corrects the approximation using higher-order information about how the function curves. Stop after n terms and you get the Taylor polynomial of degree n. This calculator does the repetitive part for you: type a function of x, choose the centre and a degree between 1 and 8, and it differentiates symbolically, evaluates every derivative at the centre, and lists each term beside the finished polynomial — the machinery behind the approximations that scientific calculators and physics formulas quietly rely on whenever an exact answer is unavailable or unnecessary.

Every Symbol in the Formula, Defined

In the general term, f^(k)(a) ⁄ k! × (x−a)^k, each symbol has a precise job. f(x) is the function being approximated, and a is the centre, the single point where all information is gathered. f′(a) is the first derivative of f evaluated at a — the slope there; f″(a) is the second derivative at a, measuring curvature; and f^(k)(a) is the k-th derivative at a, so k = 0 means the function itself, with f^(0)(a) simply f(a). The denominator k! is k factorial, the product 1 × 2 × … × k, which steadily shrinks the higher terms. The factor (x−a) is your displacement from the centre, raised to the power k: it is exactly zero at the centre itself, which is why the polynomial matches f perfectly at x = a, and it grows as you move away, which is why accuracy fades with distance. Finally, n, the degree, is the largest k you keep.

How to Use This Taylor Series Calculator

  1. Enter the function in the “Function f(x)” box, using x as the variable — the default is e^x, and forms such as sin(x) or ln(x) work too.
  2. Set the Center a and the Degree n in their boxes; n must be between 1 and 8, and a is 0 for a Maclaurin polynomial.
  3. Press Build Taylor Polynomial. The indigo panel shows the finished P(x), and the table below it lists every term as k, the derivative value f^(k)(a), and the resulting coefficient — if a red error appears, the function could not be differentiated or evaluated at your centre, as happens with ln(x) at a = 0.

Maclaurin: The Special Case a = 0

Center at zero and the series is called a Maclaurin series. The famous ones: e^x = 1 + x + x²/2! + x³/3! + …, sin(x) = x − x³/3! + x⁵/5! − …, cos(x) = 1 − x²/2! + x⁴/4! − …. These power series are how calculators themselves evaluate transcendental functions internally.

Worked Example 1: Maclaurin Polynomial for e^x, Degree 4

Every derivative of e^x is e^x itself, so at the centre a = 0 each derivative equals e⁰ = 1. That single fact builds the whole polynomial, because each coefficient is just 1 divided by a factorial.

  1. k = 0: f(0) = 1, coefficient 1/0! = 1, term 1.
  2. k = 1: f′(0) = 1, coefficient 1/1! = 1, term x.
  3. k = 2: f″(0) = 1, coefficient 1/2! = 1/2, term x²/2.
  4. k = 3 and 4: coefficients 1/3! = 1/6 and 1/4! = 1/24, terms x³/6 and x⁴/24.
  5. Polynomial: P(x) = 1 + x + x²/2 + x³/6 + x⁴/24.

Test it at x = 1: P(1) = 1 + 1 + 0.5 + 0.1667 + 0.0417 ≈ 2.7083, against the true e ≈ 2.7183. Four derivative terms have already pinned the value down to within a hundredth.

Worked Example 2: Taylor Polynomial for ln(x) at a = 1, Degree 3

The logarithm cannot be centred at 0, since ln(0) is undefined, so centre it at a = 1 where ln(1) = 0. Its derivatives cycle through powers of 1/x with alternating signs: f′(x) = 1/x, f″(x) = −1/x², and f‴(x) = 2/x³.

  1. Evaluate at a = 1: f(1) = 0, f′(1) = 1, f″(1) = −1, f‴(1) = 2.
  2. k = 1 term: 1/1! × (x−1) = (x−1).
  3. k = 2 term: −1/2! × (x−1)² = −(x−1)²/2.
  4. k = 3 term: 2/3! × (x−1)³ = (x−1)³/3, since 2/6 simplifies to 1/3.
  5. Polynomial: P(x) = (x−1) − (x−1)²/2 + (x−1)³/3.

At x = 1.5 this gives 0.5 − 0.125 + 0.0417 ≈ 0.4167, against the true ln(1.5) ≈ 0.4055 — a respectable estimate from three terms, half a unit from the centre.

Where Taylor Polynomials Earn Their Keep

Software evaluates functions like e^x and sin(x) by summing exactly these polynomials, because chips can multiply and add but cannot look values up infinitely. Physicists replace sin(x) by x for small pendulum swings, turning a hard equation into an easy one. Engineers estimate a logarithm or a square root near a known value during design checks, before any precise computation. Students of calculus use the same polynomials to evaluate awkward limits, replacing each function by its first non-vanishing term and cancelling.

Three Classic Taylor Blunders

  • Forgetting the factorial: writing the x² coefficient as f″(a) instead of f″(a)/2!. The division by k! is not decoration; without it the e^x series at degree 2 would give 1 + 1 + 1 = 3 at x = 1 instead of 2.5.
  • Evaluating derivatives at the wrong point: for a series about a = 1, every derivative must be evaluated at 1, not at 0 and not left as a function of x. One wrong evaluation point corrupts all the coefficients at once.
  • Trusting the polynomial far from the centre: a degree-3 polynomial for ln(x) is honest near x = 1 and increasingly fictional by x = 3. Distance from a, not enthusiasm, decides how far a polynomial can be pushed.

Convergence Matters

A Taylor polynomial approximates well near the center; far away it can diverge wildly. The interval where the full series converges must be checked separately — try our series convergence calculator for that, or the derivative calculator for the underlying derivatives.

Frequently Asked Questions

What is a Taylor series?

A Taylor series represents a smooth function as an infinite sum of polynomial terms built from its derivatives at a single point, the center a: f(x) = f(a) + f′(a)(x−a) + f″(a)(x−a)²/2! + … Each new term matches one more derivative of the function at that point, so the polynomial and the curve agree ever more closely near a, provided the function can be differentiated repeatedly there.

What is a Maclaurin series?

A Maclaurin series is simply a Taylor series whose center is a = 0, which turns every (x−a) factor into plain x and simplifies the arithmetic. The famous examples are e^x = 1 + x + x²/2! + x³/3! + … and sin(x) = x − x³/3! + x⁵/5! − …, where the factorials in the denominators make the later terms shrink quickly for modest values of x.

What is the difference between a Taylor series and a Taylor polynomial?

A Taylor series is the infinite sum itself, and wherever it converges it equals the function exactly. A Taylor polynomial is what remains when you stop after finitely many terms: degree n means keeping every term up to (x−a)^n. This calculator builds polynomials, because no screen can list infinitely many terms. The gap between the polynomial and the function is called the remainder.

How do I choose the center a?

Choose a center close to the x-value you actually care about, because accuracy fades as you move away from a. Also pick a point where the derivatives are easy to evaluate: 0 works beautifully for e^x and sin(x), while ln(x) needs a = 1 because ln(0) does not exist. Changing the center rebuilds every coefficient, since all derivatives are re-evaluated at the new point.

How accurate is a Taylor polynomial?

A Taylor polynomial is very accurate near its center, and each extra degree usually improves it, but the error grows as x moves away. The degree-4 Maclaurin polynomial for e^x gives 2.7083 at x = 1, within 0.01 of the true 2.7183, yet at x = 3 it gives only 16.375 against a true value near 20.09. Always weigh the distance from the center before trusting a value.

Is this Taylor series calculator free?

Yes. This calculator is completely free, needs no sign-up, and computes in your browser: it differentiates your function symbolically with math.js, evaluates each derivative at your center, and lists every term. You can build polynomials of degree 1 to 8 for any center, compare how the approximation improves as the degree rises, and use the term table to check your own hand working.

Related Tools & Guides

About the MathSolverFree Team

The MathSolverFree Team builds and maintains the calculators and step-by-step solvers on this site. Every tool is checked against worked textbook examples before it is published, and the method behind each solver is written out in full — in the worked examples on the page and in our guides — so you can see exactly how an answer is reached, not just the answer itself.

How we build and test our tools·More about the team