Two sums with no common ratio
Take and . The angle goes up by each term, but neither sum is geometric: to be geometric, each term would have to be the one before it times the same number.
At , , but cos 90° ÷ cos 60° = 0. The ratio changes from one term to the next, so the formula for a geometric sum cannot be used on C, or on S, alone.
Pair them into one complex sum
Add C to i times S, term by term. The terms pair off: C + iS .
Let . By De Moivre’s theorem, for every whole number k, so each bracket is a power of z, and C + iS . That sum is geometric: each term is the one before it times z.
The terms 1, z, and at , laid head to tail. Each has length 1 and turns 30° from the one before. The gold arrow is their sum, C + iS: its real part is , and its imaginary part is .
Sum it as a geometric series
A geometric series with first term 1 and ratio z has the sum , as long as . There are n + 1 terms, from up to , so the power on top is n + 1.
So C + iS , and by De Moivre again.
Split the quotient into its parts
C is the real part of the quotient and S is its imaginary part. To read them off, write the top and the bottom in polar form.
Use the double-angle formulas and . Then . Multiply out the right side to check: .
The top works the same way with in place of : .
Divide. The −2i cancels, and dividing the two brackets subtracts their angles: . So C + iS .
The first factor is real, so the parts can be read off: and .
Checks
At with n = 2: . The formula gives . And , while the formula gives .
At with n = 3, the sum drawn above: , and term by term .
At every term cancels
At , z = cos 90° + i sin 90° = i. With n = 3 the sum is , and the formula agrees: .
The real parts give C = 1 + cos 90° + cos 180° + cos 270° = 1 + 0 − 1 + 0 = 0, and the imaginary parts give S = 0 + 1 + 0 − 1 = 0. In the closed form, , so both C and S are 0.
At the terms 1, i, and , laid head to tail, go round a square and end where they started, at 0.
When z = 1
The geometric formula needs . At , or any whole number of turns, z = 1 and 1 − z = 0. Then every term is 1, so C = n + 1 and S = 0, found by counting rather than by the formula.
At with n = 2, z is the cube root of 1 called , and the sum is . The closed form gives sin 180° = 0 on top, so C = 0 and S = 0, as The Roots of Unity found.
The usual mistakes
Building the series from alone. Its powers are , and so on, and is not : at , but cos 60° = 0.5. Only the whole of has .
Taking C from the imaginary part. C has no i beside it in C + iS, so C is the real part and S is the imaginary part.
Putting on top. The sum runs from to , which is n + 1 terms, so the top is .
Forgetting the leading 1. At , 1 + cos 90° + cos 180° + cos 270° is 0, not −1: the first term is cos 0° = 1, and it cancels cos 180° = −1.