A6 · Lesson 22 · Sequences
Does it settle down?
A digital filter produces one output number per sample. Newton's method produces one better guess per step. A feedback loop in a microcontroller updates once per tick. Each makes a sequence, an endless list of numbers, and the engineering question is always the same: does it settle to a final value, how fast, and does it overshoot on the way? This lesson makes "settles" precise and gives you the standard sequences to compare against.
- A simple digital filter, , starts at and is fed a constant 1. Its outputs are .
- Slide between 0 and 1. How does the speed of settling change?
- Now make negative. What changes? What happens as approaches 1?
Predict
The filter has . About how many samples does it take to get within 1% of its final value?
About 44. The gap to the final value is , and needs . With it takes only 7 samples. The closer is to 1, the slower the filter settles, which is the price of smoothing out more noise.
Name it
The limit of a sequence
A sequence converges to if its terms get and stay as close to as you like: for every tolerance there's a point after which every is within of . We write . A sequence that doesn't converge diverges, by growing without bound like or by never settling like .
All the limit laws from A5 carry over. For ratios of polynomials, divide top and bottom by the highest power of .
Standard limits
| Sequence | Limit |
|---|---|
| 0 if ; 1 if ; diverges otherwise | |
| , | 0 (exponentials beat powers) |
| , | 0 (powers beat logarithms) |
| 0 (factorials beat exponentials) | |
| 1 |
Two tools
Monotone and bounded: a sequence that only increases and never passes some ceiling must converge. That's how you know an iteration settles even before you know where.
Fixed points: if converges, its limit satisfies . It converges to when ; the filter above has , so , which is exactly the condition for a stable filter.
Worked example
Find .
Show the solution
- Divide top and bottom by .
- Let . The small terms vanish, leaving .
Answer the limit is .
Worked example
Iterate from . Where does it go?
Show the solution
- Iterate. and .
- Find the limit. If the limit is , then
- Recognize the method. This is Newton's method for , and the number of correct digits roughly doubles each step.
Answer it goes to .
Worked example
What does approach as grows? Compute it at = 100.
Show the solution
- Evaluate at .
- Take logs. Since , so the sequence approaches .
- Interpret. This is compound interest with ever more frequent compounding, and it's one way to define .
Answer it approaches ; at = 100 it's 2.7048.
Check
Find .
Check
The filter starts at 0 with a constant input of 1. What is ?
Check
For that filter with = 0.8, how many samples until the output is within 1% of its final value?
Check
The iteration converges. To what?
Check
Find .
Check
Which sequence converges to zero?
Check
Consider .
(a)
What is it at = 100?
(b)
What is its limit as ?
Check
Find the limit of .
Step 1
Take the natural log of the sequence.
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°.
Step 2
Use for small : what does the log approach?
Explain why
Why does the filter settle only when ?
The gap between the output and its final value 1 gets multiplied by every sample, so after samples it's times the starting gap. If , repeated multiplication shrinks it toward zero and the output settles; with negative the gap flips sign each time, so the output overshoots and undershoots while closing in. If the gap grows every sample and the output runs away, which is an unstable filter.
Practice
Keep practicing
9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.