Skip to content
FiftyCalc Free calculators for all 50 states

Taylor Series Calculator

Test cases replayed : 4 of 4 match · Methodology · No outside source listed

Pick a function, a center a and a degree n. The calculator lists the derivatives at a, evaluates the Taylor polynomial at x and compares it with the exact value. With a = 0 it is the Maclaurin polynomial.

Result

Sample figures

Taylor polynomial Pn(x)—

Exact value f(x) —

  • Error f(x) − Pn(x)—
  • f(a)—
  • f^(1)(a), derivative 1 at a—
  • f^(2)(a), derivative 2 at a—
  • f^(3)(a), derivative 3 at a—
  • f^(4)(a), derivative 4 at a—
  • f^(5)(a), derivative 5 at a—
  • f^(6)(a), derivative 6 at a—
  • f^(7)(a), derivative 7 at a—
  • f^(8)(a), derivative 8 at a—
  • f^(9)(a), derivative 9 at a—
  • f^(10)(a), derivative 10 at a—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Taylor Series Calculator

Function f(x)

Function f(x): choose e^x, sin x (radians), cos x (radians), ln(1 + x) or 1 / (1 − x). Prefilled example: e^x.

Center a: enter a number. Prefilled example: 0.

Degree n (0 to 10): enter a number from 0 to 10. Prefilled example: 5.

Evaluate at x: enter a number. Prefilled example: 1.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Function f(x): choose e^x, sin x (radians), cos x (radians), ln(1 + x) or 1 / (1 − x).
  2. Center a: enter a number.
  3. Degree n (0 to 10): enter a number from 0 to 10.
  4. Evaluate at x: enter a number.
  5. Read the result: Taylor polynomial Pn(x); the panel also shows Exact value f(x), Error f(x) − Pn(x), f(a), f^(1)(a), derivative 1 at a, f^(2)(a), derivative 2 at a, f^(3)(a), derivative 3 at a, f^(4)(a), derivative 4 at a, f^(5)(a), derivative 5 at a, f^(6)(a), derivative 6 at a, f^(7)(a), derivative 7 at a, f^(8)(a), derivative 8 at a, f^(9)(a), derivative 9 at a and f^(10)(a), derivative 10 at a.

How this calculator works

Taylor's theorem: Pn(x) = Σ from k = 0 to n of f^(k)(a) ÷ k! × (x − a)^k. Write each term with the derivatives listed: for example, with f(a) = 1 and f′(a) = 1, the first two terms are 1 + 1 × (x − a).

Derivatives used: e^x → e^a for every k; sin x → sin(a + kπ/2); cos x → cos(a + kπ/2); ln(1 + x) → (−1)^(k+1) (k − 1)! ÷ (1 + a)^k for k ≥ 1; 1/(1 − x) → k! ÷ (1 − a)^(k+1).

The error column is the exact value minus the polynomial, the remainder of Taylor's theorem. Values are shown to 4 decimal places.

Worked example

Function f(x)e^x
Center a0
Degree n (0 to 10)5
Evaluate at x1
Taylor polynomial Pn(x)2.7167
Exact value f(x)2.7183
Error f(x) − Pn(x)0.0016
f(a)1
f^(5)(a), derivative 5 at a1

Frequently asked questions

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

A Maclaurin series is a Taylor series centered at a = 0. Set the center to 0 to get it.

Why does the error grow for ln(1 + x) or 1/(1 − x)?

Their series around 0 converge only for −1 < x ≤ 1 and −1 < x < 1. Outside the interval of convergence, adding terms makes the polynomial worse.

What is the Maclaurin series of e^x?

1 + x + x²/2! + x³/3! + …; at x = 1 the degree-5 polynomial gives 2.7167, against e ≈ 2.7183.

Related calculators