---
title: Problem set 3
heading: "Problem set 3: derivative rules"
eyebrow: A5 · Problem set 3
type: problems
---

::: hook
These problems use lessons 9 to 12: the derivative as a function, the product and quotient rules, the derivatives of exponentials and sinusoids, and numerical differences. Most are a derivative followed by a question about what it means for a circuit. Check each derivative at one point with a difference quotient if you're unsure.
:::

::: pool
pick: 12

::: check
kind: parts
given: a = 1 | 2 | 3; b = 2 | 5; x0 = 1 | 2

## Let $f(x) = \given{a}x^3 - \given{b}x^2$.

::: part
answer: 3*a*x0^2 - 2*b*x0
tolerance: 0.5%

### What is $f'(\given{x0})$?

::: misses
- [any] Power rule, term by term.
:::
:::

::: part
answer: 6*a*x0 - 2*b
tolerance: 0.5%

### What is $f''(\given{x0})$?

::: misses
- [any] Differentiate $f'$.
:::
:::

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

### Where, other than 0, is $f'(x) = 0$?

::: misses
- [b/(3*a)] $3ax^2 - 2bx = x(3ax - 2b)$.
- [any] Factor $f'$.
:::
:::
:::

::: check
kind: parts
given: V0 = 2 | 5; I0 = 0.5 | 2; t0 = 0.5 | 1.5

## A part has $v = \given{V0}t^2$ volts and $i = \given{I0}e^{-t}$ amps.

::: part
answer: V0*I0*t0^2*exp(-t0)
unit: W
tolerance: 0.5%

### What power does it take at $t$ = {t0} s?

::: misses
- [any] $p = vi$.
:::
:::

::: part
answer: V0*I0*exp(-t0)*(2*t0 - t0^2)
unit: W/s
tolerance: 0.5%

### How fast is the power changing then, in W/s?

::: misses
- [V0*I0*2*t0*exp(-t0)] The product rule has two terms; include $v\,di/dt$.
- [any] $p' = v'i + vi'$.
:::
:::

::: part
answer: 2
unit: s
tolerance: 0.5%

### When is the power largest?

::: misses
- [any] Set $2t - t^2 = 0$.
:::
:::
:::

::: check
kind: parts
given: tau = 0.001 | 0.01; w0 = 50 | 200 | 1000

## A response is $H(\omega) = \dfrac{1}{1 + \omega^2\tau^2}$ with $\tau$ = {tau} s.

::: part
answer: 1/(1 + (w0*tau)^2)
tolerance: 0.5%

### What is $H$ at $\omega$ = {w0} rad/s?

::: misses
- [any] Put the value in.
:::
:::

::: part
answer: -2*w0*tau^2/(1 + (w0*tau)^2)^2
tolerance: 0.5%

### What is $dH/d\omega$ there?

::: misses
- [2*w0*tau^2/(1 + (w0*tau)^2)^2] $H$ falls as $\omega$ rises, so the slope is negative.
- [any] $\frac{d}{d\omega}(1 + \omega^2\tau^2)^{-1}$, by the chain rule.
:::
:::
:::

::: check
kind: parts
given: A = 2 | 5; w = 100 | 377; p = 30 | 60; t = 1 | 4

## $v = \given{A}\sin(\given{w}t + \given{p}°)$, with $t$ in ms.

::: part
answer: A*sin(w*t*1e-3 + p*pi/180)
unit: V
tolerance: 0.5%

### What is $v$ at $t$ = {t} ms?

::: misses
- [any] Convert $t$ to seconds and the phase to radians.
:::
:::

::: part
answer: A*w*cos(w*t*1e-3 + p*pi/180)
unit: V/s
tolerance: 0.5%

### What is $dv/dt$ then, in V/s?

::: misses
- [A*cos(w*t*1e-3 + p*pi/180)] The chain rule brings out $\omega$.
- [any] $A\omega\cos(\omega t + \varphi)$.
:::
:::

::: part
answer: A*w
tolerance: 0.5%

### What is the largest $|dv/dt|$ ever reaches?

::: misses
- [any] The largest value of $\cos$ is 1.
:::
:::
:::

::: check
kind: parts
given: V = 5 | 12; tau = 1 | 2 | 5; t0 = 1 | 3

## A capacitor charges as $v = \given{V}(1 - e^{-t/\tau})$ with $\tau$ = {tau} ms.

::: part
answer: V/tau*exp(-t0/tau)
unit: V/ms
tolerance: 0.5%

### What is its slope at $t$ = {t0} ms, in V/ms?

::: misses
- [-V/tau*exp(-t0/tau)] The voltage is rising: the slope is positive.
- [any] $\frac{V}{\tau}e^{-t/\tau}$.
:::
:::

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

### When has the slope fallen to 10% of its starting value?

::: misses
- [tau*log(10)] Use the natural log.
- [any] Solve $e^{-t/\tau} = 0.1$.
:::
:::
:::

::: check
kind: parts
given: a = 50 | 200; w = 1000 | 3000

## A ringing current is $i = e^{-\given{a}t}\cos(\given{w}t)$ A.

::: part
answer: -a
unit: A/s
tolerance: 0.5%

### What is $di/dt$ at $t = 0$, in A/s?

::: misses
- [-w] At $t = 0$, $\sin 0 = 0$ kills the $\omega$ term.
- [any] Product rule, then put $t = 0$.
:::
:::

::: part
answer: atan(-a/w)/w + pi/w
unit: s
tolerance: 0.5%

### When is $di/dt$ first zero after $t = 0$? (Solve $\tan\omega t = -a/\omega$.)

::: misses
- [pi/w] That's where $\cos$ alone has its first minimum. The decay shifts it a little earlier.
- [any] $di/dt = -e^{-at}(a\cos\omega t + \omega\sin\omega t)$.
:::
:::
:::

::: check
kind: parts
given: h = 0.2 | 0.1 | 0.05 | 0.02 | 0.01 | 0.001

## Approximate the slope of $e^x$ at 0 (exactly 1) with step $h$ = {h}.

::: part
answer: (exp(h) - 1)/h - 1
tolerance: 1%

### What is the error of the forward difference?

::: misses
- [any] $\frac{e^h - 1}{h} - 1$.
:::
:::

::: part
answer: (exp(h) - exp(-h))/(2*h) - 1
tolerance: 1%

### What is the error of the central difference?

::: misses
- [any] $\frac{e^h - e^{-h}}{2h} - 1$.
:::
:::
:::

::: check
kind: parts
given: k = 0.5 | 2; x0 = 0 | 1

## Find the tangent line to $y = e^{\given{k}x}$ at $x$ = {x0}.

::: part
answer: k*exp(k*x0)
tolerance: 0.5%

### What is its slope?

::: misses
- [exp(k*x0)] The chain rule brings out {k}.
- [any] $\frac{d}{dx}e^{kx} = ke^{kx}$.
:::
:::

::: part
answer: exp(k*x0)*(1 - k*x0)
tolerance: 0.5%

### Where does it cross the $y$ axis?

::: misses
- [any] $y_0 - (\text{slope})\,x_0$.
:::
:::
:::

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

## Let $f(x) = x^{\given{n}}e^{-x}$ for $x \ge 0$.

::: part
answer: n
tolerance: 0.5%

### Where is $f'(x) = 0$, other than $x = 0$?

::: misses
- [any] $f' = e^{-x}x^{n-1}(n - x)$.
:::
:::

::: part
answer: n^n*exp(-n)
tolerance: 0.5%

### What is the maximum value?

::: misses
- [any] Put $x = n$ into $f$.
:::
:::
:::

::: check
kind: parts
given: V = 10 | 170; w = 377 | 1000; R = 10 | 100; t = 1 | 2

## A voltage $\given{V}\sin(\given{w}t)$ is across a {R} Ω resistor, with $t$ in ms.

::: part
answer: (V*sin(w*t*1e-3))^2/R
unit: W
tolerance: 0.5%

### What power does it take at $t$ = {t} ms?

::: misses
- [any] $p = v^2/R$.
:::
:::

::: part
answer: V^2*w/R*sin(2*w*t*1e-3)
unit: W/s
tolerance: 0.5%

### How fast is that power changing, in W/s?

::: misses
- [2*V^2*w/R*sin(2*w*t*1e-3)] $\frac{d}{dt}\sin^2\omega t = 2\omega\sin\omega t\cos\omega t = \omega\sin 2\omega t$.
- [any] Chain rule on $\sin^2$.
:::
:::
:::

::: check
kind: parts
given: C = 1 | 10; a = 2 | 5; b = 1 | 3; t = 1 | 4

## A {C} µF capacitor has $v = \given{a}t^2 + \given{b}t$ volts across it, with $t$ in ms.

::: part
answer: C*1e-6*(2*a*t + b)*1000
unit: A
tolerance: 0.5%

### What current flows at $t$ = {t} ms?

::: misses
- [C*1e-6*(2*a*t + b)] $dv/dt$ is in V/ms; convert to V/s.
- [any] $i = C\,dv/dt$.
:::
:::

::: part
answer: C*1e-6*2*a*1e6
unit: A/s
tolerance: 0.5%

### How fast is the current changing, in A/s?

::: misses
- [any] $di/dt = C\,d^2v/dt^2$, with ms converted to s twice.
:::
:::
:::

::: check
kind: parts
given: a = 2 | 6; n = 1 | 2 | 3; x0 = 0.5 | 2

## Let $f(x) = \given{a}x^{-\given{n}}$.

::: part
answer: -n*a*x0^(-n - 1)
tolerance: 0.5%

### What is $f'(\given{x0})$?

::: misses
- [n*a*x0^(-n - 1)] A negative power brings down a negative factor.
- [any] Power rule with exponent $-n$.
:::
:::

::: part
answer: n*(n + 1)*a*x0^(-n - 2)
tolerance: 0.5%

### What is $f''(\given{x0})$?

::: misses
- [any] Differentiate again.
:::
:::
:::

::: check
kind: parts
given: b = 2 | 3; x0 = 0 | 1

## Let $f(x) = \dfrac{x^2 + 1}{x - \given{b}}$.

::: part
answer: ((2*x0)*(x0 - b) - (x0^2 + 1))/(x0 - b)^2
tolerance: 0.5%

### What is $f'(\given{x0})$?

::: misses
- [((x0^2 + 1) - 2*x0*(x0 - b))/(x0 - b)^2] The quotient rule is (bottom × top′ − top × bottom′) over bottom².
- [any] Quotient rule.
:::
:::

::: part
answer: b - sqrt(b^2 + 1)
tolerance: 0.5%

### Where is $f'(x) = 0$, to the left of {b}?

::: misses
- [b + sqrt(b^2 + 1)] That's the one to the right.
- [any] The top of $f'$ is $x^2 - 2bx - 1$.
:::
:::
:::

::: check
kind: parts
given: x0 = 0.5 | 1 | 1.5

## Let $f(x) = xe^x\sin x$.

::: part
answer: exp(x0)*sin(x0) + x0*exp(x0)*sin(x0) + x0*exp(x0)*cos(x0)
tolerance: 0.5%

### What is $f'(\given{x0})$?

::: misses
- [exp(x0)*sin(x0) + x0*exp(x0)*cos(x0)] Three factors give three terms: differentiate each in turn.
- [any] $(uvw)' = u'vw + uv'w + uvw'$.
:::
:::

::: part
answer: x0*exp(x0)*sin(x0)
tolerance: 0.5%

### What is $f(\given{x0})$?

::: misses
- [any] Put the value in.
:::
:::
:::

::: check
kind: parts
given: f = 50 | 200; n = 20 | 100

## A sine $\sin(2\pi \cdot \given{f}\,t)$ is sampled {n} times per cycle. Estimate its slope at $t = 0$ (exactly $2\pi f$) with a central difference over neighboring samples.

::: part
answer: sin(2*pi/n)/(2/(n*f))
unit: V/s
tolerance: 0.5%

### What does the central difference give, in V/s?

::: misses
- [any] $\frac{\sin(2\pi f\Delta t) - \sin(-2\pi f\Delta t)}{2\Delta t}$ with $\Delta t = 1/(nf)$.
:::
:::

::: part
answer: 1 - sin(2*pi/n)/(2*pi/n)
tolerance: 1%

### By what fraction does it fall short of the exact slope?

::: misses
- [any] About $\frac{(2\pi/n)^2}{6}$.
:::
:::
:::
:::
