Toolvito

Processed online by Toolvito

Series Calculator

Expand a function in a Taylor or Maclaurin series, test a series for convergence with the textbook tests and find its sum, or find the radius and interval of convergence of a power series. The steps show each derivative, limit and test.

Choose what to do

Task
Taylor or Maclaurin series

For example sin(x), ln(1 + x), 1/(1 - x) or e^x cos(x).

Optional (x).

Optional: 0 gives the Maclaurin series.

Optional: the value of the series and of f there, the error and a remainder bound.

0 to 30.

More options

Significant digits of decimal values, 2 to 30.

When you run a task here, Toolvito receives the information you submit for processing. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

How to use it

  1. Choose a task: Taylor series, Series sum and convergence or Radius and interval of convergence.
  2. Type the function, such as e^x, ln(x) with centre 1, or 1/(1 - 2x); or the term of a series, such as 1/n^2, (-1)^(n+1)/n or 2^n/n!; or the term of a power series, such as x^n/n or (x - 2)^n/(n 3^n).
  3. Select Calculate. Read the answer, the steps and the checks; download the worked solution and the graph.

Taylor and Maclaurin series

  • f(x) = Σ f⁽ᵏ⁾(a)/k! · (x − a)ᵏ. The table lists each derivative at the centre a and each coefficient. A Maclaurin series is the Taylor series at a = 0.
  • When it can be found, the general term (such as xⁿ/n! for eˣ) and the radius of convergence are given: this is also the power series representation of the function.
  • At a pole (such as 1/x² at 0) the Laurent series with negative powers and the residue are given instead.
  • Give a value of x to compare the series with f there: the actual error and a Lagrange remainder bound |f⁽ⁿ⁺¹⁾(c)|·|x − a|ⁿ⁺¹/(n + 1)! (the largest derivative on the interval is found on a grid, so the bound is an estimate).

Convergence tests

  • nth-term test: if aₙ does not go to 0 the series diverges. Geometric series Σ arⁿ converge when |r| < 1. p-series Σ 1/nᵖ converge when p > 1.
  • Ratio test lim |aₙ₊₁/aₙ| and root test lim |aₙ|^(1/n): below 1 the series converges absolutely, above 1 it diverges, at 1 the test does not decide.
  • Alternating series test: Σ (−1)ⁿbₙ converges when bₙ decreases to 0; when Σ|aₙ| diverges the convergence is conditional.
  • Limit comparison with Σ 1/nᵖ and the integral test for positive decreasing terms. With Automatic the first test that decides is used; you can also choose one test.
  • The exact sum is given when SymPy finds one (such as π²/6 for Σ 1/n²); otherwise a numerical value. A sum up to a letter N gives a formula, and a sequence gives its limit.

Radius and interval of convergence

For Σ aₙ(x − c)ⁿ the ratio test gives lim |aₙ₊₁/aₙ| as a function of x; solving “less than 1” gives the radius R and the open interval. Each endpoint is then tested as a series of numbers, so the interval may include one end, both or neither.

How the answers are checked

Taylor coefficients are compared with mpmath’s numerical differentiation, and the error near the centre must shrink like hᵐ with m above the order. Sums are compared with mpmath’s nsum (two accelerations, or bounds from the integral test); partial sums are added up here. The radius is checked by the root test with numbers at n = 2,000.

Related tools