---
title: Geometric series and feedback
heading: A signal going around a loop is a geometric series
eyebrow: A6 · Lesson 24 · Geometric series and feedback
xp: 40
---

::: hook
An amplifier's gain might be 100 000 one day and 60 000 the next, depending on temperature and the particular chip. Yet an op-amp circuit built from it gives a gain of exactly 10, set by two resistors. The trick is feedback: feeding a fraction of the output back to the input. The arithmetic of why it works is a geometric series.

::: play
- An input of 1 goes into an amplifier with gain $A$ = 10. A fraction $\beta$ of the output is subtracted back at the input, so each trip around the loop multiplies the circulating signal by $-A\beta$, the **loop gain** with its sign.
- The staircase adds the output's contribution trip by trip. The dashed line is the closed-loop answer, $A/(1 + A\beta)$.
- Raise $\beta$ so the loop gain $A\beta$ approaches 1. What happens to the staircase? Past 1?
:::
:::

```sim plot
view: graph
x: n = 0..20
y: y = -5..12
slider: beta = 0..0.15 step 0.005 = 0.05
plot: 10*(1 - (-10*beta)^(floor(n) + 1))/(1 + 10*beta) | samples: 2000 | label: output after n trips
plot: 10/(1 + 10*beta) | dashed | color: ch2 | label: A/(1 + Aβ)
readout: loop gain Aβ = 10*beta
readout: closed-loop gain = 10/(1 + 10*beta)
```

::: predict
## The amplifier's gain $A$ is huge, so $A\beta \gg 1$. What does the closed-loop gain $A/(1 + A\beta)$ become?

- [ ] Huge, like $A$
- [x] Very nearly $1/\beta$, whatever $A$ is
- [ ] Zero
- [ ] Exactly 1

::: reveal
Very nearly $1/\beta$. When $A\beta$ dwarfs 1, $A/(1 + A\beta) \approx A/(A\beta) = 1/\beta$, and the amplifier's own gain cancels out. With $\beta = 0.1$, set by two resistors, the gain is 10 whether $A$ is 60 000 or 100 000. That insensitivity is why almost every precise amplifier uses negative feedback.
:::
:::

::: nameit
## The loop equation and the loop series

Write what the block diagram says. The amplifier sees the error $e = x - \beta y$ and outputs $y = Ae$. So

$$y = A(x - \beta y) \quad\Rightarrow\quad y\,(1 + A\beta) = Ax \quad\Rightarrow\quad \frac{y}{x} = \frac{A}{1 + A\beta}$$

**The same answer as a series.** Follow the signal around: the input goes straight through to give $A$; that output, fed back and subtracted, comes around as $-A\beta \cdot A$; that comes around again as $(-A\beta)^2 A$; and so on:

$$\frac{y}{x} = A\left(1 - A\beta + (A\beta)^2 - \cdots\right) = \frac{A}{1 + A\beta} \qquad\text{for } |A\beta| < 1$$

a geometric series with ratio $-A\beta$.

For $|A\beta| \ge 1$ the trip-by-trip series diverges, as the sim shows, but the loop equation still holds whenever the circuit actually settles. What decides whether it settles is how the loop behaves in time, not in this static picture. That question, stability, is the heart of control theory (D3) and of op-amp design (C6).

**Desensitization.** Differentiate the closed-loop gain $G = A/(1 + A\beta)$ with respect to $A$ and compare relative changes:

$$\frac{dG/G}{dA/A} = \frac{1}{1 + A\beta}$$

A 10% drift in $A$ moves the closed-loop gain by only $10\%/(1 + A\beta)$: with a loop gain of 1000, by 0.01%.

**Positive feedback**, adding the fed-back signal instead, gives $A/(1 - A\beta)$, which blows up as $A\beta \to 1$. That's how oscillators start.
:::

::: example
## An amplifier has $A$ = 10 000 and $\beta$ = 0.01. What is its closed-loop gain, and how close is it to $1/\beta$?

::: solution
1. **Closed-loop gain.**
   $$\begin{aligned} \frac{A}{1 + A\beta} &= \frac{10\,000}{1 + 100} \\ &= 99.01 \end{aligned}$$
2. **Compare with $1/\beta$.** The ideal value is $\frac{1}{\beta} = 100$, so the gain is 1% low, because the loop gain $A\beta = 100$ is finite.

**Answer:** the closed-loop gain is 99.01, 1% below the ideal $1/\beta = 100$.
:::
:::

::: example
## The same amplifier's open-loop gain drops 1%, to 9900. How much does the closed-loop gain change?

::: solution
1. **New closed-loop gain.**
   $$\frac{9900}{1 + 99} = 99.000$$
   down from 99.010.
2. **Compare.** That's a change of 0.010%. Feedback divided the 1% drift by $1 + A\beta = 101$.

**Answer:** the closed-loop gain falls from 99.010 to 99.000, a change of only 0.010%.
:::
:::

::: example
## A signal circulates in a loop that returns 0.8 of it each pass. After how many passes is the newest contribution below 1% of the first?

::: solution
1. **Contribution of each pass.** Pass $n$ contributes $0.8^n$ of the original.
2. **Solve for $n$.** $0.8^n < 0.01$ when
   $$n > \frac{\ln 0.01}{\ln 0.8} = 20.6$$
   so after 21 passes.
3. **Compare with the total.** The total of all passes is
   $$\frac{1}{1 - 0.8} = 5$$
   times the original, and the passes after the 21st add less than 5% of that total.

**Answer:** after 21 passes the newest contribution is below 1% of the first.
:::
:::

::: check
given: A = 100 | 1000 | 10000; beta = 0.05 | 0.1 | 0.2
answer: A/(1 + A*beta)
tolerance: 0.5%

## An amplifier of gain {A} has negative feedback with $\beta$ = {beta}. What is the closed-loop gain?

::: right
Right. $A/(1 + A\beta)$ = {answer}, close to $1/\beta$ because the loop gain is large.
:::

::: misses
- [A/(1 - A*beta)] That's positive feedback. Negative feedback adds $A\beta$ in the denominator.
- [A*beta] That's the loop gain. The closed-loop gain is $A/(1 + A\beta)$.
- [any] Not yet. Use $A/(1 + A\beta)$.
:::
:::

::: check
given: Lg = 4 | 9 | 19; d = 5 | 10 | 20
answer: d/(1 + Lg)
unit: %
tolerance: 1%

## The open-loop gain drifts by {d}%. The loop gain is {Lg}. By how much does the closed-loop gain drift?

::: right
Right. The drift is divided by $1 + A\beta$, giving {answer}.
:::

::: misses
- [d] Feedback divides the drift by $1 + A\beta$.
- [d/Lg] Close, but the factor is $1 + A\beta$, not $A\beta$.
- [any] Not yet. Divide the drift by $1 + A\beta$.
:::
:::

::: check
given: L = 0.2 | 0.4 | 0.5 | 0.6; A = 2 | 5 | 10
answer: A/(1 + L)
tolerance: 0.5%

## Adding up the trips around a loop with loop gain $A\beta$ = {L} and forward gain {A}: what is $A(1 - L + L^2 - L^3 + \cdots)$?

::: right
Right. The geometric series sums to $1/(1 + L)$, so the total is {answer}.
:::

::: misses
- [A/(1 - L)] The ratio is $-L$: the signs alternate.
- [any] Sum the geometric series with ratio $-L$.
:::
:::

::: check
kind: choice

## An amplifier with positive feedback has $A\beta$ approaching 1. What happens to its gain $A/(1 - A\beta)$?

- [ ] It approaches $A/2$
- [x] It grows without limit: the circuit is on the edge of oscillating
- [ ] It approaches 1
- [ ] It drops to zero

::: right
Right. The denominator goes to zero. In a real circuit this is where the loop can sustain a signal with no input at all: an oscillator.
:::

::: misses
- [1] At $A\beta = 1$ the denominator is zero, not 2.
- [3] That's what strong negative feedback does with $\beta = 1$.
- [4] The gain grows; it doesn't vanish.
:::
:::

::: check
kind: parts
given: g = 0.5 | 0.8 | 0.9

## A loop returns {g} of the signal on each pass.

::: part
answer: 1/(1 - g)
tolerance: 0.5%

### What is the total, counting the first pass as 1?

::: misses
- [g/(1 - g)] That leaves out the first pass.
- [any] A geometric series with ratio {g}.
:::
:::

::: part
answer: ceil(ln(0.01)/ln(g))
tolerance: 0

### After how many passes is the newest one below 1% of the first?

::: misses
- [any] The first $n$ with $g^n < 0.01$.
:::
:::
:::

::: check
kind: derivation
vars: A = 10..1000, b = 0.001..0.1

## Derive the closed-loop gain by summing the trips around a feedback loop.

::: step
answer: A*b

### Each trip around the loop multiplies the signal by the loop gain. With forward gain $A$ and feedback $\beta$ (subtracted), what is the size of the loop gain?
:::

::: step
answer: A/(1 + A*b)

### The output is $A(1 - A\beta + (A\beta)^2 - \cdots)$ for $|A\beta| < 1$. Sum it. (The formula holds beyond that range too.)
:::

::: right
Right. $G = \frac{A}{1 + A\beta}$, the feedback formula, as a geometric series.
:::
:::

::: explain
## Why does a large loop gain make an amplifier's closed-loop gain depend almost only on the feedback network?

::: model
The closed-loop gain is $A/(1 + A\beta)$. When $A\beta$ is much larger than 1, the 1 in the denominator hardly matters, so the gain is close to $A/(A\beta) = 1/\beta$: the forward gain $A$ cancels. Since β is set by passive parts like resistors, which are stable and precise, the circuit's gain inherits their precision, and large changes in $A$ make only tiny changes in the result.
:::
:::

::: practice

::: check
given: beta = 0.001 | 0.01 | 0.02 | 0.1
answer: 1/beta
tolerance: 0.5%

## A feedback amplifier has enormous open-loop gain and $\beta$ = {beta}. What is its closed-loop gain?

::: misses
- [beta] It's the reciprocal: $1/\beta$.
- [any] With huge $A$, the closed-loop gain is $1/\beta$.
:::
:::

::: check
given: A = 10 | 50 | 200; beta = 0.1 | 0.2 | 0.5
answer: A*beta
tolerance: 0.5%

## What is the loop gain of an amplifier with $A$ = {A} and $\beta$ = {beta}?

::: misses
- [A/(1 + A*beta)] That's the closed-loop gain. The loop gain is $A\beta$.
- [any] Multiply $A$ by $\beta$.
:::
:::

::: check
given: A = 2 | 3 | 5; beta = 0.05 | 0.1 | 0.15
answer: A/(1 - A*beta)
tolerance: 0.5%

## With positive feedback, $A$ = {A} and $\beta$ = {beta}: what is the gain?

::: misses
- [A/(1 + A*beta)] With positive feedback the sign in the denominator is minus.
- [any] $A/(1 - A\beta)$.
:::
:::
:::
