---
title: Problem set 3
heading: "Problem set 3: exponentials, logarithms and series"
eyebrow: A2 · Problem set 3
type: problems
---

::: hook
These problems use lessons 10 to 12: exponentials and logarithms, transforming graphs, and sequences and series. Timing circuits, decays you have to measure, and sums that go on forever all appear. Each problem uses your own numbers.
:::

::: pool
pick: 12

::: check
kind: parts
given: V = 3.3 | 5; tau = 1 | 10 | 22; f = 0.6 | 0.7 | 0.8

## A reset circuit holds a microcontroller off until a capacitor, charging toward {V} V with $\tau$ = {tau} ms, reaches {f} of the supply.

::: part
answer: tau*ln(1/(1 - f))
tolerance: 0.5%

### How many milliseconds does the reset last?

::: misses
- [tau*ln(1/f)] Use the gap that's left, $1 - f$.
- [f*tau] The charge curve isn't a straight line.
- [any] $t = \tau\ln\big(1/(1 - f)\big)$.
:::
:::

::: part
answer: V*(1 - exp(-1))
unit: V

### What is the capacitor's voltage after one time constant?

::: misses
- [V*exp(-1)] That's what's left of the gap. The voltage has risen by $1 - e^{-1}$, 63%.
- [any] $V(1 - e^{-1})$.
:::
:::
:::

::: check
kind: parts
given: RA = 1k | 4.7k | 10k; RB = 10k | 22k | 47k; C = 10n | 100n

## A 555 timer in astable mode charges its capacitor through $R_A + R_B$ and discharges it through $R_B$, each time between a third and two-thirds of the supply. Here $R_A$ = {RA} Ω, $R_B$ = {RB} Ω, and $C$ = {C} F.

::: part
answer: ln(2)*(RA + RB)*C
unit: s

### How long is the output high (charging)?

::: misses
- [(RA + RB)*C] Only $\ln 2$ of a time constant: the gap halves.
- [ln(2)*RB*C] That's the discharge. Charging goes through both resistors.
- [any] $0.693(R_A + R_B)C$.
:::
:::

::: part
answer: ln(2)*RB*C
unit: s

### How long is it low?

::: misses
- [ln(2)*(RA + RB)*C] That's the charging time. It discharges through $R_B$ alone.
- [any] $0.693R_BC$.
:::
:::

::: part
answer: 1/(ln(2)*(RA + 2*RB)*C)
unit: Hz

### What is the output frequency?

::: misses
- [1/(ln(2)*(RA + RB)*C)] Add the low time to the high time for the period.
- [any] One over the sum of the high and low times.
:::
:::
:::

::: check
kind: parts
given: A = 5 | 8; B = 2 | 3; a = 0.2 | 0.5; b = 0.9 | 1.2

## Two signals are $\given{A}e^{\given{a}t}$ and $\given{B}e^{\given{b}t}$.

::: part
answer: ln(A/B)/(b - a)
tolerance: 0.5%

### At what $t$ are they equal?

::: misses
- [ln(B/A)/(b - a)] That's negative. Divide $A/B$, the bigger over the smaller.
- [ln(A/B)/(b + a)] Collect the exponents: $e^{(\given{b} - \given{a})t} = \given{A}/\given{B}$.
- [any] Divide both sides by $\given{B}e^{\given{a}t}$, then take $\ln$.
:::
:::

::: part
answer: A*exp(a*ln(A/B)/(b - a))
tolerance: 0.5%

### What is their common value there?

::: misses
- [any] Put that $t$ into either one.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 2 | 3; b = 4 | 10 | 18

## Solve $\ln x + \ln(x - \given{a}) = \ln \given{b}$.

::: part
answer: (a + sqrt(a^2 + 4*b))/2
tolerance: 0.5%

### What is $x$?

::: misses
- [(a - sqrt(a^2 + 4*b))/2] That root is negative, outside the logarithm's domain.
- [b + a] The logs combine into $\ln\big(x(x - \given{a})\big)$, which gives a quadratic.
- [any] Combine the logs, drop them, solve $x^2 - \given{a}x - \given{b} = 0$, and keep the root that's in the domain.
:::
:::
:::

::: check
kind: parts
given: V = 5 | 10; tau = 4 | 6; t0 = 1 | 3; t = 5 | 7

## A step of {V} V arrives at $t$ = {t0} ms at an RC circuit with $\tau$ = {tau} ms. The output is $v(t) = \given{V}\big(1 - e^{-(t - \given{t0})/\given{tau}}\big)$ for $t \ge \given{t0}$ ms, and 0 before.

::: part
answer: V*(1 - exp(-(t - t0)/tau))
unit: V

### What is the output at $t$ = {t} ms?

::: misses
- [V*(1 - exp(-t/tau))] The curve is shifted right by {t0} ms. Use $t - \given{t0}$.
- [V*(1 - exp(-(t + t0)/tau))] A delay shifts right: subtract {t0}.
- [any] Put $t - \given{t0}$ into the charging curve.
:::
:::

::: part
answer: t0 + tau*ln(2)
unit: ms
tolerance: 0.5%

### When does it reach half of {V} V, in ms?

::: misses
- [tau*ln(2)] Add the delay of {t0} ms.
- [any] Half way takes $\tau\ln 2$ after the step arrives.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 2 | 4; b = 4 | 6; m = 2 | 3

## $g(x) = -\given{m}|x - \given{a}| + \given{b}$ is the graph of $|x|$ shifted, stretched and flipped.

::: part
answer: b

### What is its highest value?

::: misses
- [-b] The flip turns the V upside down, so its point is now the top.
- [any] The peak is where $|x - \given{a}| = 0$.
:::
:::

::: part
answer: a + b/m
tolerance: 0.5%

### Where does it cross zero on the right?

::: misses
- [a + b] The slope is {m}, so it reaches zero {b}/{m} to the right of the peak.
- [b/m] Measure from the peak at {a}.
- [any] Solve $\given{m}(x - \given{a}) = \given{b}$.
:::
:::
:::

::: check
kind: parts
given: N = 8 | 10 | 12; V = 2.048 | 3.3 | 4.096

## A DAC with {N} bits and a {V} V reference adds half the reference for its top bit, a quarter for the next, and so on.

::: part
answer: V/2^N
unit: V
tolerance: 0.1%

### How much does its lowest bit add?

::: misses
- [V/2^(N - 1)] The top bit adds $V/2$, so the {N}th adds $V/2^{\given{N}}$.
- [any] $V/2^N$.
:::
:::

::: part
answer: V*(1 - 2^(-N))
unit: V
tolerance: 0.01%

### What does it put out with every bit on?

::: misses
- [V] It stops one step short of the reference.
- [any] A geometric series: $V(1 - 2^{-N})$.
:::
:::
:::

::: check
kind: parts
given: g = 0.5 | 0.8 | 0.9; x = 1 | 2

## A loop passes {g} of its signal back to its input each time round, and {x} V goes in.

::: part
answer: x/(1 - g)
unit: V

### What does the signal build up to?

::: misses
- [x*(1 + g)] That's one trip. Every trip adds more.
- [any] $x/(1 - g)$.
:::
:::

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

### After how many trips round is it within 1% of that?

::: misses
- [floor(ln(0.01)/ln(g))] Round up.
- [any] The gap after $n$ trips is $g^n$ of the total.
:::
:::
:::

::: check
kind: parts
given: v1 = 8 | 10; r = 0.3 | 0.5 | 0.7; dt = 2 | 5 | 10; t1 = 1 | 3; let v2 = v1*r; let t2 = t1 + dt

## A decaying voltage reads {v1} V at $t$ = {t1} ms and {v2} V at $t$ = {t2} ms.

::: part
answer: dt/ln(1/r)
unit: ms
tolerance: 0.5%

### What is its time constant, in ms?

::: misses
- [dt*ln(1/r)] $\ln(v_1/v_2) = \Delta t/\tau$, so $\tau = \Delta t/\ln(v_1/v_2)$.
- [t2/ln(1/r)] Use the time between the readings.
- [any] $\tau = (t_2 - t_1)/\ln(v_1/v_2)$.
:::
:::

::: part
answer: v1*exp(t1*ln(1/r)/dt)
unit: V

### What was it at $t = 0$?

::: misses
- [v1] That's at {t1} ms. Go back to $t = 0$.
- [any] $v(0) = v_1e^{t_1/\tau}$.
:::
:::
:::

::: check
kind: parts
given: d = 0.1 | 0.25 | 0.5; n = 8 | 16 | 20

## A staircase generator steps its output up by {d} V on each clock tick, starting from 0 V.

::: part
answer: n*d
unit: V

### What is its output after {n} ticks?

::: misses
- [(n - 1)*d] Starting from 0 V, {n} steps reach $\given{n} \times \given{d}$.
- [any] {n} steps of {d} V.
:::
:::

::: part
answer: d*n*(n + 1)/2
tolerance: 0.5%

### Add up the output after each of the {n} ticks. What is the total, in volt-ticks?

::: misses
- [n*n*d] The steps grow by {d} each time: an arithmetic series, $\frac{n}{2}$(first + last).
- [d*n*(n - 1)/2] Count again: the first tick gives {d}, the last $\given{n} \times \given{d}$.
- [any] An arithmetic series from {d} up to $\given{n} \times \given{d}$.
:::
:::
:::

::: check
kind: parts
given: b = 2 | 8; x = 1000 | 50000 | 1000000

## Logarithms in other bases.

::: part
answer: ln(x)/ln(b)
tolerance: 0.5%

### What is $\log_{\given{b}} \given{x}$?

::: misses
- [ln(b)/ln(x)] The base's log goes on the bottom.
- [log10(x)] Convert from base 10: divide by $\log_{10} \given{b}$.
- [any] $\ln x/\ln b$.
:::
:::

::: part
answer: ceil(ln(x)/ln(2))
tolerance: 0.5

### How many bits does it take to count {x} different values?

::: misses
- [floor(ln(x)/ln(2))] Round up: that many bits give fewer than {x} values.
- [any] The smallest $N$ with $2^N \ge \given{x}$.
:::
:::
:::

::: check
kind: parts
given: P = 2 | 5 | 20; Pmin = 1 | 10; a = 0.2 | 0.35 | 3

## A {P} mW optical signal enters a fiber that loses {a} dB per km. The receiver needs at least {Pmin} µW.

::: part
answer: 10*log(P)
tolerance: 0.5%

### What is the launched power in dBm?

::: misses
- [10*log(P*1e-3)] dBm is decibels relative to 1 mW, so use the power in milliwatts.
- [any] $10\log_{10}(P / 1\ \text{mW})$.
:::
:::

::: part
answer: 10*log(Pmin*1e-3)
tolerance: 0.5%

### What is the receiver's minimum in dBm?

::: misses
- [10*log(Pmin)] Put {Pmin} µW in milliwatts first.
- [any] {Pmin} µW is $\given{Pmin} \times 10^{-3}$ mW.
:::
:::

::: part
answer: (10*log(P) - 10*log(Pmin*1e-3))/a
tolerance: 0.5%

### How many kilometers of fiber can the link run?

::: misses
- [any] The allowed loss is the difference in dBm; divide by the loss per km.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 2 | 5; Va = 3.3 | 5; x0 = 0.5 | -0.8

## A sensor's output runs from $-\given{a}$ V to $+\given{a}$ V. A circuit stretches and shifts it, $y = mx + c$, to fill an ADC's 0 to {Va} V input exactly.

::: part
answer: Va/(2*a)
tolerance: 0.5%

### What is the gain $m$?

::: misses
- [Va/a] The input spans $2 \times \given{a}$ V, from $-\given{a}$ to $+\given{a}$.
- [any] Output span over input span.
:::
:::

::: part
answer: Va/2
unit: V
tolerance: 0.5%

### What is the offset $c$?

::: misses
- [any] An input of 0 V sits in the middle of the range, so it should map to the middle of the ADC's range.
:::
:::

::: part
answer: Va/(2*a)*x0 + Va/2
unit: V
tolerance: 0.5%

### What does the ADC see when the sensor puts out {x0} V?

::: misses
- [any] $y = mx + c$ with your $m$ and $c$.
:::
:::
:::

::: check
kind: parts
given: g = 0.3 | 0.5 | 0.7; n = 3 | 5; d = 100 | 250

## An echo effect feeds {g} of its output back every {d} ms. A click of 1 V goes in.

::: part
answer: g^n
unit: V
tolerance: 0.5%

### How big is echo number {n}?

::: misses
- [g*n] Each echo is {g} of the one before, so the factors multiply.
- [any] Echo $n$ is $\given{g}^n$ V.
:::
:::

::: part
answer: d*1e-3*ceil(ln(0.001)/ln(g))
unit: s
tolerance: 0.5%

### How long after the click do the echoes first drop below 1 mV?

::: misses
- [d*1e-3*floor(ln(0.001)/ln(g))] That echo is still just above 1 mV. Take the next one.
- [any] Find the first $n$ with $\given{g}^n < 0.001$; each echo comes {d} ms after the last.
:::
:::

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

### What is the sum of the click and all its echoes, in volts?

::: misses
- [g/(1 - g)] That's the echoes alone. Count the click too.
- [any] A geometric series starting at 1 with ratio {g}.
:::
:::
:::
:::
