Geometric Series
Statement
For any ring element and natural number :
Equivalently, .
When in (or ), the infinite series converges:
Visualization
Partial sums converging for : each bar shows , converging to :
n | S_n = 1 + 1/2 + ... + (1/2)^{n-1} | % of limit
---|--------------------------------------------|-----------
1 | 1.000 ████████████████████████ | 50.0%
2 | 1.500 ████████████████████████████████████| 75.0%
3 | 1.750 ████████████████████████████████████████| 87.5%
4 | 1.875 ██████████████████████████████████████████| 93.8%
5 | 1.938 ███████████████████████████████████████████| 96.9%
6 | 1.969 ████████████████████████████████████████████| 98.4%
7 | 1.984 █████████████████████████████████████████████| 99.2%
∞ | 2.000 ██████████████████████████████████████████████ 2.000
Exact partial sums for small and :
| Formula | ||
|---|---|---|
| 1 | ||
| 2 | ||
| 3 | ||
| 4 | ||
| 5 |
Proof Sketch
The key identity follows from telescoping. Consider the product:
Expanding and cancelling consecutive terms:
Dividing by gives the formula. This is a ring identity: no analytic assumptions required — it holds in any commutative ring where is invertible.
For the infinite sum: and as when .
Connections
- Quadratic FormulaQuadratic FormulaSolve any quadratic equation using the discriminantRead more → — setting and solving echoes the factoring step
- AM–GM InequalityAM–GM InequalityThe arithmetic mean is always at least as large as the geometric meanRead more → — bounding uses GM applied to the terms
- Binomial TheoremBinomial TheoremExpanding powers of a sum via binomial coefficientsRead more → — both rely on algebraic manipulation of sums with a closed form
- Cauchy–Schwarz — convergence proofs use Cauchy–Schwarz on partial sums
- Vieta Formulas — the polynomial relates roots (roots of unity) to coefficients
Lean4 Proof
Mathlib's geom_sum_eq in Mathlib.Algebra.Field.GeomSum gives the closed form for fields.
The ring-level identity is in Mathlib.Algebra.Ring.GeomSum.
Lean4 Proof
import Mathlib.Algebra.Field.GeomSum
import Mathlib.Algebra.Ring.GeomSum
/-- Finite geometric sum formula: Σ_{i<n} x^i = (x^n - 1)/(x - 1) for x ≠ 1.
This is `geom_sum_eq` in Mathlib (Field version). -/
theorem geom_sum_formula {F : Type*} [Field F] (x : F) (h : x ≠ 1) (n : ℕ) :
∑ i ∈ Finset.range n, x ^ i = (x ^ n - 1) / (x - 1) :=
geom_sum_eq h n
/-- Equivalent form: (x - 1) · Σ_{i<n} x^i = x^n - 1. Works in any CommRing. -/
theorem geom_sum_mul {R : Type*} [CommRing R] (x : R) (n : ℕ) :
(x - 1) * ∑ i ∈ Finset.range n, x ^ i = x ^ n - 1 :=
geom_sum_mul x n
/-- Corollary: for x in (-1,1), the partial sums are bounded above by 1/(1-x). -/
theorem geom_sum_bound (x : ℝ) (hx : x < 1) (hx0 : 0 ≤ x) (n : ℕ) :
∑ i ∈ Finset.range n, x ^ i ≤ 1 / (1 - x) := by
have hpos : 0 < 1 - x := by linarith
rw [le_div_iff hpos]
have key : (1 - x) * ∑ i ∈ Finset.range n, x ^ i = 1 - x ^ n := by
have := geom_sum_mul x n
linarith [this]
rw [key]
nlinarith [pow_nonneg hx0 n]Referenced by
- Cauchy–Schwarz InequalityAlgebra
- AM–GM InequalityAlgebra
- Vieta's FormulasAlgebra
- Binomial TheoremAlgebra
- Spectral Radius FormulaFunctional Analysis