A212 of 29
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

A2 · Lesson 12 · Sequences and geometric series

Infinitely many trips round a loop, and a finite answer

Feed a signal into a loop that passes 60% of it back around to the input. The signal goes in, 0.6 of it comes back and adds on, 0.6 of that comes back again, and so on forever. Infinitely many contributions, yet the total settles at exactly 2.5 times the input. Sums like this, where each term is the last one times a fixed ratio, are geometric series. They're behind feedback, echoes on cables, and the binary weights of a digital-to-analog converter.

Play

  • The staircase is the running total after n terms of a+ar+ar2+⋯. The dashed line is a/(1−r).
  • Set r to 0.5, then to 0.9. How many terms does it take to get close to the line each time?
  • Change a. Does it change how fast the staircase closes in?

Predict

A loop passes 60% of a signal back to its input, where it adds to the next pass. In total, how many times the input does the signal build up to?

Name it

Sequences

A sequence is a list of numbers a1,a2,a3,…. Two kinds come up constantly.

  • Arithmetic: each term adds the same difference d. The nth term is a1+(n−1)d, and the first n terms add to n2(a1+an), the number of terms times the average of the first and last.
  • Geometric: each term multiplies by the same ratio r. The nth term is arn−1.

Geometric series

Add the first n terms of a geometric sequence:

Sn=a+ar+ar2+⋯+arn−1

Multiply by r and subtract; everything cancels except the ends: Sn−rSn=a−arn. So

Sn=a1−rn1−r(r≠1)

When |r|<1, rn shrinks toward zero as n grows, and the infinite sum settles:

a+ar+ar2+⋯=a1−r(|r|<1)

When |r|≥1 the terms don't shrink, and the sum has no finite value.

How many terms to get close? The gap to the limit after n terms is rn times the limit. To get within 1%, you need rn<0.01, so n>ln⁡0.01/ln⁡r. With r=0.5 that's 7 terms; with r=0.9, 44.

In circuits

  • A loop with gain g: a signal that goes round a loop, passing g of itself back each time, totals 1/(1−g) times the input when |g|<1. That's the first view of feedback, which C6 develops.
  • Binary weights: a digital-to-analog converter adds 12,14,18,… of its reference, one term for each bit that's on. With every bit on, N bits give 1−2−N of the reference, just short of all of it.

Worked example

Find 3+1.5+0.75+⋯ to five terms, and forever.

Show the solution
  1. First term and ratio. a=3, r=0.5.
  2. Five terms. S5=31−0.551−0.5=3×0.968750.5=5.8125
  3. Forever. 31−0.5=6
  4. Compare. Five terms are already within 0.55=3% of the limit.

Answer five terms sum to 5.8125, and the whole series to 6.

Worked example

A digital-to-analog converter has 8 bits and a 2.5 V reference. Its most significant bit adds half the reference, the next a quarter, and so on. What does it put out with every bit on?

Show the solution
  1. Name the series. It's a geometric series with a=1.25 V and r=12, 8 terms.
  2. Sum it. S8=1.251−0.581−0.5=2.5(1−0.58)=2.5×255256=2.490V
  3. Compare with the reference. That's one step (1 LSB) short of the reference: the output can reach 255256 of it but never all of it.

Answer with every bit on, it puts out 2.490 V.

Worked example

A digital filter's impulse response is 1, 0.9, 0.81, and so on, each value 0.9 times the last. What's its total, which sets the filter's gain for a steady input? How much of it do the first 20 values hold?

Show the solution
  1. Name the series. It's a geometric series with a=1 and r=0.9.
  2. Total. 11−0.9=10 A steady input of 1 comes out as 10.
  3. First 20 values. 1−0.9201−0.9=8.78 about 88% of the total.
  4. What the tail means. The tail matters: a filter like this takes many samples to settle, and that's the price of its smoothing.

Answer the total is 10, so a steady input comes out 10 times larger, and the first 20 values hold 8.78 of it, about 88%.

Check

A geometric sequence starts at 3 and multiplies by 2 each step. What is its 6th term?

Check

What is the sum of the first 7 terms of 3+3(2)+3(2)2+⋯?

Check

What is 2+2(0.25)+2(0.25)2+⋯, forever?

Check

A loop passes 0.75 of a signal back to its input each time round. A steady input of 1 V goes in. What does the signal build up to?

Check

A resistor ladder's sections step up by 10 Ω, starting at 100 Ω. What do 25 sections add to, in series?

Check

A geometric series has ratio 0.7. How many terms until its sum is within 1% of the infinite total?

Check

A capacitor is charged toward 5 V in steps. Each step closes 10% of the gap that remains, starting from 0 V.

(a)

What is its voltage after 8 steps?

Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.

(b)

How much does step 8 alone add?

(c)

After how many steps is it first within 1% of 5 V?

Check

Derive the sum of a geometric series, S=a+ar+⋯+arn−1.

Step 1

Write out rS and subtract it from S. Almost every term cancels. What is S−rS?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

Why does 1+r+r2+⋯ settle to a finite value when |r|<1, but not when r=1?

Practice

Keep practicing

13 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.