Loading…

Alternating Series Tester

Math Calculus • Infinite Series and Sequences

View all topics

7. Alternating Series Tester

Tests the Leibniz alternating series test and computes the remainder bound \( |R_N| \le a_{N+1} \) when the hypotheses hold. Includes a zoomable, pannable partial-sum plot and a “how many terms for \( \varepsilon \)” helper.

Inputs
Recommended: Leibniz form \(t_n = (-1)^{n+s}a_n\) with \(a_n \ge 0\).
Variable: n. Constants: pi, e. Functions: sin cos tan asin acos atan sqrt abs exp ln/log. Use ^ for powers.
In Leibniz mode, this sets the alternating sign of \(t_n\). In general mode, “Auto” tries to pick \(s\in\{0,1\}\).
Computes \(S_N=\sum_{n=n_0}^{n_0+N-1} t_n\) and (if applicable) \(|R_N|\le a_{N+1}\).
Number of partial sums shown on the graph (≤ 500).
Find smallest \(N\le N_{\max}\) with \(a_{N+1}\le\varepsilon\).
Click a preset to load & compute.
Ready
Graph
Drag to pan • wheel/pinch to zoom. Plots partial sums \(S_k\) versus index \(k\).
x: 0, y: 0, zoom(px/unit): 60
Results & steps
Enter a series definition and click Calculate.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What is the Leibniz alternating series test?

For a series sum (-1)^(n+s) a_n with a_n >= 0, if a_n is eventually decreasing and a_n -> 0, then the series converges. If a_n does not approach 0, the series diverges by the n-th term test.

How is the alternating-series remainder bound computed?

When the Leibniz hypotheses hold, the truncation error satisfies |S - S_N| <= a_(N+1), where S_N is the partial sum using N terms starting at n0. The true sum lies between consecutive partial sums.

How many terms do I need to get error below epsilon?

Under the Leibniz conditions, it is enough to choose N so that a_(N+1) <= epsilon. The calculator can search up to N_max and report the smallest N that meets this threshold.

Why can an alternating series be inconclusive in this tester?

If the tool cannot confirm eventual decrease of a_n or cannot verify that a_n -> 0 over the tested range, the Leibniz test may not apply. Some alternating-looking series require other tests such as Dirichlet or Abel.