Search Knowledge

© 2026 LIBREUNI PROJECT

Calculus & Analysis / Overview

Sequences and Series

Sequences and Series

Calculus is the study of the infinite. While derivatives and integrals use infinite processes to find slopes and areas, sequences and series study infinite processes directly. How can you add up an infinite number of things and get a finite answer? This question is at the heart of Zeno’s paradoxes and modern data compression.

Limits of Sequences

A sequence is an infinite list of numbers a1,a2,a3,a_1, a_2, a_3, \dots. We are interested in its convergence: does the sequence eventually settle down to a specific value LL? limnan=L\lim_{n \to \infty} a_n = L

In computer science, every iterative algorithm (like Newton’s method or Gradient Descent) is a sequence. We need to prove that these sequences converge to the correct solution.

Infinite Series: Summing to Infinity

A series is the sum of the terms of a sequence: n=1an\sum_{n=1}^\infty a_n. A series converges if the sequence of its partial sums Sn=a1++anS_n = a_1 + \dots + a_n converges to a finite limit.

The Geometric Series

The most famous convergent series is the geometric series: 1+r+r2+r3+=11rfor r<11 + r + r^2 + r^3 + \dots = \frac{1}{1-r} \quad \text{for } |r| < 1 This formula is used to calculate the “Present Value” of future cash flows in finance and the “Multiplier Effect” in economics.

Taylor Series: Polynomials for Everything

The ultimate application of series is the Taylor Series. It allows us to represent transcendental functions (ex,sinx,lnxe^x, \sin x, \ln x) as infinite polynomials. f(x)=n=0f(n)(a)n!(xa)nf(x) = \sum_{n=0}^\infty \frac{f^{(n)}(a)}{n!}(x-a)^n

This is how calculators and computers compute sin(1)\sin(1). They don’t have a giant lookup table; they use the first few terms of the Taylor series to get as much precision as needed.

python
1import numpy as np
2import matplotlib.pyplot as plt
3 
4def taylor_exp(x, n):
5 """Approximate e^x using first n terms of Taylor series at a=0."""
6 approx = 0
7 factorial = 1
8 for i in range(n):
9 if i > 0: factorial *= i
10 approx += (x**i) / factorial
11 return approx
12 
13x_val = 1.0
14print(f"Exact e^{x_val}: {np.exp(x_val)}")
15for n in [1, 3, 5, 10]:
16 print(f"Taylor (n={n}): {taylor_exp(x_val, n)}")
17 
18# Visualizing approximation
19x = np.linspace(-2, 2, 100)
20plt.plot(x, np.exp(x), 'k', label='Exact exp(x)')
21plt.plot(x, taylor_exp(x, 3), '--', label='n=3 Approximation')
22plt.plot(x, taylor_exp(x, 5), ':', label='n=5 Approximation')
23plt.ylim(-1, 8)
24plt.legend()
25plt.title("Taylor Expansion of e^x")
26plt.grid(True)
27plt.show()
28 

Power Series and Convergence

A Power Series cnxn\sum c_n x^n only converges for xx within a certain “Radius of Convergence.” Outside this range, the series explodes to infinity. Knowing this limit is vital for ensuring the stability of electronic filters and signal processing algorithms.

Exercises

Does the series 1 + 1/2 + 1/4 + 1/8 + ... converge? If so, to what?

Why is the Taylor series of sin(x) particularly efficient for computers?

What happens to a power series outside its radius of convergence?