Alternating series (Leibniz criterion)
Let be a monotonically decreasing null sequence (i.e. and ). Then the alternating series
converges.
How to use the applet
- ,
- Move to show terms and partial sums up to index .
- Move to change how fast decreases.
- Green: the terms .
- Red: the even partial sums .
- Blue: the odd partial sums .
- The dashed horizontal red/blue lines indicate the current bounds
- The vertical gray segment visualizes the “gap” which tends to as .
- (red) moves downward, (blue) moves upward, and the gap shrinks; hence both subsequences converge to the same limit, so converges.
- The alternating series converges for every (Leibniz).
- The corresponding positive series converges only if (and diverges for ).
- Hold Shift + scroll to zoom
- Hold Shift + drag to move
- Points shaped like <> act as sliders
Description
Reference: Lecture Notes Calculus 1 ( May22,2022 ) Theorem3.5 page 36
This applet aims to justify Leibniz criterion.
Move the slider N and watch the partial sums .
The even partial sums (red) form a decreasing sequence, while the odd partial sums (blue) form an increasing sequence. The dashed horizontal lines visualize the bounds
The vertical “gap” segment shows
so the two bounding subsequences squeeze together and must converge to the same limit. Therefore converges and the series converges.
In this applet we use with , which is decreasing and satisfies .
In the code all the sequnce points are computed in advance for performance reasons in computeArrays.
The in the update function each sequence point is set to visible depending on the current N
aPts[n].setAttribute({ visible: vis });
sPts[n].setAttribute({ visible: vis });