---
title: Problem set 7
heading: "Problem set 7: antiderivatives, growth, decay and stepping"
eyebrow: A5 · Problem set 7
type: problems
---

::: hook
These problems use lessons 33 to 38: L'Hôpital's rule, Newton's method, antiderivatives with starting values, exponential growth and decay equations, and Euler's method. Most of them are a first-order circuit or a thermal problem in disguise: find the time constant and the final value first.
:::

::: pool
pick: 12

::: check
kind: parts
given: R = 1 | 10; C = 1 | 10; f = 0.63 | 0.9 | 0.99

## A capacitor charges from 0 through {R} kΩ, with $C$ = {C} µF.

::: part
answer: R*C
unit: ms
tolerance: 0.5%

### What is its time constant?

::: misses
- [any] $\tau = RC$, and kΩ × µF = ms.
:::
:::

::: part
answer: R*C*ln(1/(1 - f))
unit: ms
tolerance: 0.5%

### How long until it reaches {f} of its final voltage?

::: misses
- [R*C*ln(1/f)] The gap left is $1 - f$, not $f$.
- [any] Solve $1 - e^{-t/\tau} = f$.
:::
:::
:::

::: check
kind: parts
given: T0 = 80 | 100; Ta = 20 | 25; T1 = 50 | 60; t1 = 5 | 10

## A heat sink cools from {T0} °C in a {Ta} °C room, reading {T1} °C after {t1} minutes.

::: part
answer: t1/ln((T0 - Ta)/(T1 - Ta))
unit: min
tolerance: 0.5%

### What is its time constant?

::: misses
- [t1/ln(T0/T1)] Measure temperatures from the room, not from zero.
- [any] The gap shrank from $T_0 - T_a$ to $T_1 - T_a$.
:::
:::

::: part
answer: Ta + (T0 - Ta)*exp(-30/(t1/ln((T0 - Ta)/(T1 - Ta))))
unit: °C
tolerance: 0.5%

### What will it read after 30 minutes?

::: misses
- [any] $T_a + (T_0 - T_a)e^{-30/\tau}$.
:::
:::
:::

::: check
kind: parts
given: T = 1.5 | 2 | 3; Y = 10 | 20

## A quantity doubles every {T} years.

::: part
answer: ln(2)/T
tolerance: 0.5%

### What is $k$ in $y' = ky$, per year?

::: misses
- [any] $e^{kT} = 2$.
:::
:::

::: part
answer: 2^(Y/T)
tolerance: 0.5%

### By what factor does it grow in {Y} years?

::: misses
- [2*Y/T] Doublings compound.
- [any] $\frac{Y}{T}$ doublings.
:::
:::
:::

::: check
kind: parts
given: y0 = 0 | 2; yinf = 10 | 20; tau = 1 | 4; h = 0.5 | 1

## Use Euler's method on $y' = (\given{yinf} - y)/\given{tau}$ from $y$ = {y0}, with step {h}.

::: part
answer: y0 + h*(yinf - y0)/tau
tolerance: 0.5%

### What is $y$ after one step?

::: misses
- [any] $y_1 = y_0 + h\,y'(y_0)$.
:::
:::

::: part
answer: (y0 + h*(yinf - y0)/tau) + h*(yinf - (y0 + h*(yinf - y0)/tau))/tau
tolerance: 0.5%

### What is $y$ after two steps?

::: misses
- [any] Repeat from $y_1$.
:::
:::

::: part
answer: yinf + (y0 - yinf)*exp(-2*h/tau)
tolerance: 0.5%

### What is the exact value at that time?

::: misses
- [any] $y_\infty + (y_0 - y_\infty)e^{-t/\tau}$.
:::
:::
:::

::: check
kind: parts
given: V0 = 5 | 12; tau = 1 | 2; L = 10 | 50; t = 1 | 3

## An inductor ($L$ = {L} mH, starting at 0 A) has $v = \given{V0}e^{-t/\tau}$ V across it, with $\tau$ = {tau} ms.

::: part
answer: V0*tau/L*(1 - exp(-t/tau))
unit: A
tolerance: 0.5%

### What is its current at $t$ = {t} ms?

::: misses
- [V0*tau/L] That's where it ends up. At {t} ms it's still on the way.
- [any] $i = \frac{1}{L}\int_0^t v\,dt$; ms over mH gives amps.
:::
:::

::: part
answer: V0*tau/L
unit: A
tolerance: 0.5%

### What current does it end up with?

::: misses
- [any] Let $t \to \infty$.
:::
:::
:::

::: check
kind: parts
given: a = 5 | 10 | 30; x0 = 2 | 3

## Find $\sqrt[3]{\given{a}}$ with Newton's method on $x^3 - \given{a}$, from {x0}.

::: part
answer: x0 - (x0^3 - a)/(3*x0^2)
tolerance: 0.1%

### What is $x_1$?

::: misses
- [any] $x_1 = x_0 - \frac{x_0^3 - a}{3x_0^2}$.
:::
:::

::: part
answer: (x0 - (x0^3 - a)/(3*x0^2)) - ((x0 - (x0^3 - a)/(3*x0^2))^3 - a)/(3*(x0 - (x0^3 - a)/(3*x0^2))^2)
tolerance: 0.01%

### What is $x_2$?

::: misses
- [any] Apply the same step to $x_1$.
:::
:::
:::

::: check
kind: parts
given: y0 = 0 | 1; yinf = 5 | 12; tau = 2 | 10; L = 3 | 4

## A quantity settles from {y0} toward {yinf} with $\tau$ = {tau} s.

::: part
answer: tau*ln((yinf - y0)/(yinf - L))
unit: s
tolerance: 0.5%

### When does it reach {L}?

::: misses
- [tau*ln(yinf/L)] Measure from the final value: the gap goes from $y_\infty - y_0$ to $y_\infty - L$.
- [any] Solve $y_\infty + (y_0 - y_\infty)e^{-t/\tau} = L$.
:::
:::

::: part
answer: (yinf - y0)/tau
tolerance: 0.5%

### What is its initial rate of change, per second?

::: misses
- [any] The gap over the time constant.
:::
:::
:::

::: check
kind: parts
given: tau = 2 | 10 | 50

## A decay has time constant {tau} s.

::: part
answer: tau*ln(2)
unit: s
tolerance: 0.5%

### What is its half-life?

::: misses
- [tau/2] Half-life is $\tau\ln 2 = 0.693\,\tau$.
- [any] Solve $e^{-t/\tau} = \tfrac12$.
:::
:::

::: part
answer: tau*ln(100)
unit: s
tolerance: 0.5%

### How long until it's down to 1%?

::: misses
- [any] $\tau\ln 100$, about 6.6 half-lives.
:::
:::
:::

::: check
kind: parts
given: e1 = 0.08 | 0.2; r = 2 | 4

## A stepper's error at the end is {e1} with step $h$, and $\given{e1}/\given{r}$ with step $h/2$.

::: part
answer: ln(r)/ln(2)
tolerance: 0.5%

### What order is the method (the power of $h$ the error goes as)?

::: misses
- [r] The order is the power of 2 in the ratio: $2^p = $ {r}.
- [any] Solve $2^p = r$.
:::
:::

::: part
answer: e1/r^2
tolerance: 0.5%

### What error would step $h/4$ give?

::: misses
- [any] Halve again: divide by {r} once more.
:::
:::
:::

::: check
kind: parts
given: V = 12 | 24; R = 4 | 8; L = 0.1 | 0.5

## An inductor of {L} H in series with {R} Ω is switched onto {V} V.

::: part
answer: V/R
unit: A
tolerance: 0.5%

### What current does it end up with?

::: misses
- [any] At steady state the inductor is a short.
:::
:::

::: part
answer: L/R*ln(20)
unit: s
tolerance: 0.5%

### How long until it reaches 95% of that?

::: misses
- [L/R*ln(1/0.95)] The gap left is 5%, so solve $e^{-t/\tau} = 0.05$.
- [any] $\tau = L/R$; solve $1 - e^{-t/\tau} = 0.95$.
:::
:::
:::

::: check
kind: parts
given: p = 2 | 3 | 5

## A battery loses {p}% of its charge per month to self-discharge, steadily in proportion to what's left.

::: part
answer: -ln(1 - p/100)
tolerance: 0.5%

### What is the decay constant $k$, per month?

::: misses
- [p/100] Close, but a loss of {p}% per month means $e^{-k} = 1 - p/100$.
- [any] Solve $e^{-k} = 1 - p/100$.
:::
:::

::: part
answer: ln(2)/(-ln(1 - p/100))
tolerance: 0.5%

### After how many months is it at half charge?

::: misses
- [any] $\ln 2/k$.
:::
:::
:::

::: check
kind: parts
given: c = 0.5 | 1 | 2; x0 = 2 | 3

## Solve $\ln x = \given{c}$ with Newton's method on $f(x) = \ln x - \given{c}$, from {x0}.

::: part
answer: x0 - x0*(ln(x0) - c)
tolerance: 0.1%

### What is $x_1$?

::: misses
- [x0 - (ln(x0) - c)] $f'(x) = 1/x$, so dividing by it multiplies by $x$.
- [any] $x_1 = x_0 - \frac{\ln x_0 - c}{1/x_0}$.
:::
:::

::: part
answer: exp(c)
tolerance: 0.1%

### What is the exact answer?

::: misses
- [any] $x = e^c$.
:::
:::
:::

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

## $y' = \given{a}t^2 + \given{b}$, with $y(0)$ = {y0}.

::: part
answer: a*T^3/3 + b*T + y0
tolerance: 0.5%

### What is $y(\given{T})$?

::: misses
- [a*T^3/3 + b*T] Add the starting value.
- [any] $y = \frac{a}{3}t^3 + bt + y_0$.
:::
:::

::: part
answer: (a*T^3/3 + b*T)/T
tolerance: 0.5%

### What is the average rate of change of $y$ over $[0, \given{T}]$?

::: misses
- [any] $\frac{y(T) - y(0)}{T}$.
:::
:::
:::

::: check
kind: parts
given: I = 1 | 5; C = 10 | 100; T1 = 2 | 5; R = 1 | 10

## A {C} µF capacitor is charged by a constant {I} mA for {T1} ms, then left to discharge through {R} kΩ.

::: part
answer: I*T1/C
unit: V
tolerance: 0.5%

### What voltage does it reach?

::: misses
- [any] $v = It/C$; mA × ms / µF gives volts.
:::
:::

::: part
answer: I*T1/C*exp(-10/(R*C))
unit: V
tolerance: 0.5%

### What is its voltage 10 ms into the discharge?

::: misses
- [any] $\tau = RC$ in ms; kΩ × µF = ms.
:::
:::
:::

::: check
kind: parts
given: P = 5 | 20; th = 2 | 4; Ta = 20 | 25; tau = 60 | 300

## A heater of {P} W on a heat sink of $\theta$ = {th} °C/W, with time constant {tau} s, starts at the room's {Ta} °C.

::: part
answer: Ta + P*th
unit: °C
tolerance: 0.5%

### What temperature does it settle at?

::: misses
- [P*th] Add the room temperature.
- [any] $T_\infty = T_a + P\theta$.
:::
:::

::: part
answer: tau*ln(10)
unit: s
tolerance: 0.5%

### How long until it has covered 90% of the rise?

::: misses
- [tau*ln(1/0.9)] The gap left is 10%.
- [any] Solve $e^{-t/\tau} = 0.1$.
:::
:::
:::
:::
