Sequence
A sequence is an ordered list of numbers. A term is an item in the sequence, and the term's index tells us where in the sequence that term is.
We typically denote sequences and series with a name like this: Most of the time, we can also write them as functions: For example, . We can define sequences recursively: . (note: "" is typically used for counting numbers (integers). So, is typically discrete, whereas is typically a continuous function).
Convergence
A sequence converges if . Since we are always going to look at limits at infinity, we often simplify to . If a sequence does not converge, it is divergent (who would've guessed...). For example, we say that converges to 0.
Series
An infinite series is a sequence of partial sums:
A series converges if . Otherwise, it diverges.
Geometric Series
A geometric series is a series of a sequence of a constant times a ratio to the th:
If we consider , then we'll see:
which (when ) means
To determine whether the geometric series diverges, we need to determine whether the limit of as approaches infinity is a number. Think about it: if , then the numerator will approach infinity (or negative infinity). So, a geometric series converges if and only if . In that case, the limit is simply ! (p.s. obviously, if , we just take the infinite sum: as approaches infinity... which clearly diverges.)
(check out this video if you want a person to explain geometric series)
This test for geometric series (known as the geometric series test) is one of a number of convergence tests.
Convergence Tests
- Divergence Test. If , then diverges. Use this test before all others! However, remember that the Divergence Test is not an "if and only if" statement — the only thing it can guarantee is whether a given series diverges (just because the test doesn't say it diverges doesn't mean it doesn't — consider the harmonic series).
- Geometric Series. A geometric series converges if and only if .
- Comparison Test. Suppose that and converges. Then, converges. By similar logic, if and diverges, then also diverges.
- Integral Test. Suppose is a continuous, positive, decreasing (all three of these must hold!) function for , and that represents the terms of the sequence for which you are summing the series . Then, the series converges if and only if the improper integral converges. I recommend watching Dr. Trefor Bazett's video about this test for a visual representation.
- Limit Comparison Test. If the ratio approaches a positive limit , then and both either converge or both diverge.
- Ratio Test. If we have the series , we can decide whether it converges by considering the following: . If , the series absolutely converges; if , it diverges; and if , the series may be divergent, conditionally convergent, or absolutely convergent.
- Root Test. Same as the Ratio Test, but
- Alternating Series Test. An alternating series is one where the terms can be written as or converges if and is a decreasing sequence.
Taylor Series
How do we actually calculate for all ? How do we know that ? In computers, we obviously have a few optimizations (say, when or ). However, we don't really know how to find the exact value of a function like that isn't easily representable. This is where we decided to use the magic of approximation. If a function is continuous and infinitely differentiable (and we can find its derivatives), we can model it with something called a Taylor series that gives us a polynomial approximation of the function.
Taylor Series
For an infinitely differentiable function , its Taylor polynomial centered at is
(See Paul's Online Math Notes for an explanation of how this is found.)
When the series is called the Maclaurin series.
Then, we can also find the error in Taylor approximation: Which means that we can write
Ex. Find the Taylor series for around (then Google the answer, I ain't typing allat out.)