Matrix squaring can also rapidly sum the geometric series
22 Mar 2026The geometric series,
satisfies a linear recurrence
with constant (in ) coefficients. This means it can also be written as a matrix power,
with
Repeatedly squaring can rapidly generate high matrix powers and thus sum large finite geometric series.
The first few iterations of repeated squaring give
and in general,
Let and denote the upper-left and upper-right entries of . Writing the result of squaring the matrix shows that they satisfy the recurrence
Since , this recurrence allows computing with multiplications and additions: exactly the same operation count as the Newton iteration discussed in yesterday’s post.
The matrix squaring iteration is connected to the Newton iteration by the identity
This allows writing a recurrence for alone,
which is exactly the Newton iteration from yesterday (where it was written using the variable ).
The two iterations—matrix squaring, and the Newton iteration—compute identical results (in exact arithmetic) with identical operation counts, but they are not quite identical computationally. They operate on different state spaces: the Newton iteration operates on a single number, and the matrix squaring iteration operates on a pair of numbers.
They also arrange their multiplications and additions differently, so that in floating point arithmetic, they have different numerical stability. I claim that the Newton iteration is more numerically stable in the region where the series converges, , but I won’t go into further detail today.