What follows is a derivation of the formula for the sum of a geometric series.
Consider a of
n terms, whose first term is
a1 and whose common ratio is
r. The sum of the series can be written as
Sn=a1+a1r+a1r2+a1r3+…+a1rn−1
Notice that the series is a , and can be written in .
Sn=a1rn−1+…+a1r3+a1r2+a1r+a
Since all of the terms contain a factor of
a1, it can be out of the right-hand side.
Sn=a1(rn−1+…+r3+r2+r+1)
Since the sum above is a polynomial, can be used to rewrite it. In fact, one gives
1−r1−rn=rn−1+…+r3+r2+r+1.
Thus, the formula for the sum of a geometric series can be written as follows.