---
title: Problem set 1
heading: "Problem set 1: functions, lines and polynomials"
eyebrow: A2 · Problem set 1
type: problems
---

::: hook
These problems use lessons 1 to 4: functions and their graphs, domains and piecewise functions, lines, and quadratics. Each takes a few steps with your own numbers. Sketch a graph whenever you can: most of these are easier to see than to compute.
:::

::: pool
pick: 12

::: check
kind: parts
given: E = 9 | 12 | 24; r = 0.1 | 0.25 | 0.5; I1 = 1 | 2; I2 = 4 | 6; let V1 = E - r*I1; let V2 = E - r*I2

## A power supply reads {V1} V while delivering {I1} A and {V2} V while delivering {I2} A. Its output voltage falls in a straight line as the current rises.

::: part
answer: r
unit: Ω

### What is its internal resistance?

::: misses
- [V1/I1] That's the load at the first reading. The internal resistance is how much the voltage falls per ampere.
- [-r] The voltage falls as current rises, so the slope is negative and the resistance is the positive number.
- [any] Divide the fall in voltage by the rise in current.
:::
:::

::: part
answer: E
unit: V
tolerance: 0.2%

### What does it read with no load?

::: misses
- [V1] That's under load. Go back along the line to zero current.
- [any] Extend the line to $I = 0$: $V_1 + rI_1$.
:::
:::

::: part
answer: E/r
unit: A

### What current would it push into a short circuit?

::: misses
- [E*r] Set $V = 0$ in $V = E - rI$.
- [any] Where the line reaches zero volts: $E/r$.
:::
:::
:::

::: check
kind: parts
given: g = 5 | 10 | 20; L = 4 | 10 | 13

## An amplifier with a gain of {g} clips at ±{L} V.

::: part
answer: L/g
unit: V

### What is the largest input it passes undistorted?

::: misses
- [L*g] Divide the limit by the gain.
- [any] Solve $\given{g}x = \given{L}$.
:::
:::

::: part
answer: L
unit: V

### What is its output for an input of {L} V?

::: misses
- [g*L] That's beyond the limit. The output sits at the limit.
- [any] Check which piece {L} V falls in.
:::
:::

::: part
answer: 2*L/g
unit: V

### A sine wave in is clipped on both peaks. What is the largest peak-to-peak input that isn't?

::: misses
- [L/g] That's the peak. Peak to peak is twice it.
- [2*L] That's at the output. Divide by the gain.
- [any] Twice the largest undistorted peak.
:::
:::
:::

::: check
kind: parts
given: E = 12 | 24; r = 0.5 | 1 | 2; f = 0.5 | 0.75; let P0 = f*E^2/(4*r)

## A source of {E} V with {r} Ω of internal resistance delivers $P = \given{E}I - \given{r}I^2$ to its load. You want the load to get {P0} W.

::: part
answer: (E - sqrt(E^2 - 4*r*P0))/(2*r)
unit: A

### What is the smaller current that does it?

::: misses
- [(E + sqrt(E^2 - 4*r*P0))/(2*r)] That's the larger one.
- [P0/E] That ignores the $rI^2$ loss. Solve the quadratic.
- [any] Solve $\given{r}I^2 - \given{E}I + \given{P0} = 0$ with the quadratic formula.
:::
:::

::: part
answer: (E + sqrt(E^2 - 4*r*P0))/(2*r)
unit: A

### And the larger?

::: misses
- [(E - sqrt(E^2 - 4*r*P0))/(2*r)] That's the smaller one.
- [any] Take the + sign in the formula.
:::
:::

::: part
answer: (E - r*(E - sqrt(E^2 - 4*r*P0))/(2*r))/((E - sqrt(E^2 - 4*r*P0))/(2*r))
unit: Ω

### What load resistance gives the smaller current?

::: misses
- [E/((E - sqrt(E^2 - 4*r*P0))/(2*r))] That's the total resistance. Take off the internal {r} Ω.
- [any] The load is its voltage, $E - rI$, over the current.
:::
:::

::: right
Right. The two currents correspond to a large load and a small one. Both get the same power, but the large load wastes less in the source, so it's the efficient choice.
:::
:::

::: check
kind: parts
given: L = 1 | 10 | 100; C = 0.1 | 1 | 10; k = 3 | 5

## A series RLC circuit has $L$ = {L} mH and $C$ = {C} µF. Its characteristic equation is $s^2 + \frac{R}{L}s + \frac{1}{LC} = 0$.

::: part
answer: 2*sqrt(L*1e-3/(C*1e-6))
unit: Ω

### What resistance makes it critically damped?

::: misses
- [sqrt(L*1e-3/(C*1e-6))] Include the factor of 2.
- [any] Set the discriminant to zero: $R = 2\sqrt{L/C}$.
:::
:::

::: part
answer: (-k*2*sqrt(L*1e-3/(C*1e-6))/(L*1e-3) + sqrt((k*2*sqrt(L*1e-3/(C*1e-6))/(L*1e-3))^2 - 4/(L*1e-3*C*1e-6)))/2
tolerance: 0.5%

### With {k} times that resistance, what is the root closer to zero, in 1/s?

::: misses
- [(-k*2*sqrt(L*1e-3/(C*1e-6))/(L*1e-3) - sqrt((k*2*sqrt(L*1e-3/(C*1e-6))/(L*1e-3))^2 - 4/(L*1e-3*C*1e-6)))/2] That's the root farther from zero.
- [any] Use the quadratic formula with $b = R/L$ and $c = 1/(LC)$, in base units.
:::
:::
:::

::: check
kind: parts
given: v0 = 0.4 | 0.5 | 0.6; s = 10 | 20; T = 30 | 45 | 70; let v100 = v0 + 0.1*s; let vT = v0 + T*s/1000

## A temperature sensor reads {v0} V at 0 °C and {v100} V at 100 °C, linear in between.

::: part
answer: s
unit: mV/°C
tolerance: 0.5%

### What is its slope, in mV per °C?

::: misses
- [s/1000] Put the answer in millivolts.
- [v100/100*1000] That assumes it reads 0 V at 0 °C. Use the change in reading.
- [any] Change in reading over change in temperature.
:::
:::

::: part
answer: T
unit: °C

### What temperature gives {vT} V?

::: misses
- [vT/(s/1000)] Subtract the {v0} V it reads at 0 °C first.
- [any] Subtract the 0 °C reading, then divide by the slope.
:::
:::
:::

::: check
kind: parts
given: R = 100 | 220 | 470; V1 = 3 | 5 | 9; V2 = 0.3 | 0.5

## A diode and a {R} Ω resistor are in series. The diode passes nothing until the voltage across the pair reaches 0.7 V; above that, the current is $(V - 0.7)/R$.

::: part
answer: (V1 - 0.7)/R
unit: A

### What current flows with {V1} V across the pair?

::: misses
- [V1/R] The diode takes 0.7 V of it.
- [any] Use the second piece: $(V - 0.7)/R$.
:::
:::

::: part
answer: 0
unit: A
tolerance: 1e-6

### And with {V2} V?

::: misses
- [(V2 - 0.7)/R] Below 0.7 V the diode doesn't conduct: that formula only holds above it.
- [V2/R] Below 0.7 V nothing flows.
- [any] Which piece does {V2} V fall in?
:::
:::

::: part
answer: 0.7 + 0.01*R
unit: V

### What voltage gives 10 mA?

::: misses
- [0.01*R] Add the diode's 0.7 V.
- [any] Solve $(V - 0.7)/R = 0.01$.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 2 | 4; b = 5 | 6 | 9

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

::: part
answer: a

### What is the smallest $x$ in its domain?

::: misses
- [-a] The root needs $x - \given{a} \ge 0$.
- [b] That's excluded. The root sets the lower end.
- [any] Where does $x - \given{a}$ become zero?
:::
:::

::: part
answer: b

### What value above {a} is excluded?

::: misses
- [-b] That's below {a}, already outside the domain.
- [b^2] Solve $x^2 = \given{b}^2$.
- [any] Where is the bottom zero?
:::
:::
:::

::: check
kind: parts
given: m = 2 | 3; c = 1 | 5; a = 2 | 4 | -3

## $f(x) = \given{m}x + \given{c}$ and $g(x) = x^2 - 3$.

::: part
answer: m*(a^2 - 3) + c

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

::: misses
- [(m*a + c)^2 - 3] That's $g(f(\given{a}))$. Apply $g$ first.
- [any] Work out $g(\given{a})$, then feed it to $f$.
:::
:::

::: part
answer: (m*a + c)^2 - 3

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

::: misses
- [m*(a^2 - 3) + c] That's $f(g(\given{a}))$. Apply $f$ first.
- [any] Work out $f(\given{a})$, then feed it to $g$.
:::
:::
:::

::: check
kind: parts
given: t1 = -2 | 1; t2 = 3 | 4

## A voltage is $v(t) = t^3 - 3t$ volts, with $t$ in seconds.

::: part
answer: (t2^3 - 3*t2 - (t1^3 - 3*t1))/(t2 - t1)
unit: V/s
tolerance: 0.5%

### What is its average rate of change from $t$ = {t1} s to $t$ = {t2} s, in V/s?

::: misses
- [(t2^3 - 3*t2)/(t2 - t1)] Subtract the starting value, $v(\given{t1})$.
- [t2^3 - 3*t2 - (t1^3 - 3*t1)] Divide by the time taken.
- [any] Change in $v$ divided by change in $t$.
:::
:::

::: part
answer: t2^3 - 3*t2
tolerance: 0.5%

### What is the voltage at $t$ = {t2} s?

::: misses
- [any] Put $t$ = {t2} into $t^3 - 3t$.
:::
:::
:::

::: check
kind: parts
given: x1 = 1 | 2; y1 = 3 | 7; x2 = 5 | 6; y2 = 13 | 19; x3 = 10 | 12

## A line passes through $(\given{x1}, \given{y1})$ and $(\given{x2}, \given{y2})$.

::: part
answer: (y2 - y1)/(x2 - x1)
tolerance: 0.5%

### What is its slope?

::: misses
- [(x2 - x1)/(y2 - y1)] Rise over run.
- [any] Change in $y$ over change in $x$.
:::
:::

::: part
answer: y1 - (y2 - y1)/(x2 - x1)*x1
tolerance: 0.5%

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

::: misses
- [y1] That's at $x$ = {x1}.
- [any] $b = y_1 - m x_1$.
:::
:::

::: part
answer: y1 + (y2 - y1)/(x2 - x1)*(x3 - x1)
tolerance: 0.5%

### What is $y$ at $x$ = {x3}?

::: misses
- [(y2 - y1)/(x2 - x1)*x3] Add the intercept.
- [any] $y = y_1 + m(x - x_1)$.
:::
:::
:::

::: check
kind: parts
given: a = 2 | 3; b = 4 | 5; c = -1 | -2

## $p(x) = (x - 1)(x - \given{a})(x - \given{b})(x - (\given{c}))$.

::: part
answer: 4
tolerance: 0.5

### How many real roots does it have?

::: misses
- [3] Count every factor: each gives a root.
- [any] Each factor $(x - r)$ gives one root.
:::
:::

::: part
answer: b

### What is its largest root?

::: misses
- [a] That's a root, but not the largest.
- [any] Read the roots off the factors.
:::
:::

::: part
answer: c

### And its smallest?

::: misses
- [1] There's a smaller one.
- [-c] The factor $x - (\given{c})$ is zero at $x$ = {c}.
- [any] Read the roots off the factors.
:::
:::
:::

::: check
kind: parts
given: Vref = 1.5 | 2.5 | 3.3; d = 0.1 | 0.25 | 0.4

## A window comparator flags any input $v$ with $|v - \given{Vref}| > \given{d}$.

::: part
answer: Vref + d
unit: V

### Above what voltage does it flag?

::: misses
- [d] Measure the window from {Vref} V.
- [any] $v - \given{Vref} > \given{d}$.
:::
:::

::: part
answer: Vref - d
unit: V

### Below what voltage does it flag?

::: misses
- [Vref + d] That's the upper edge.
- [any] $v - \given{Vref} < -\given{d}$.
:::
:::

::: part
answer: 2*d
unit: V

### How wide is the window of inputs it accepts?

::: misses
- [d] The window reaches {d} V on each side.
- [any] From the lower edge to the upper.
:::
:::
:::

::: check
kind: parts
given: T = -10 | 0 | 40 | 50; X = 10 | 20 | 50

## A 32.768 kHz watch crystal is most accurate at 25 °C. Away from that, its frequency error in ppm is $e(T) = -0.034\,(T - 25)^2$, with $T$ in °C.

::: part
answer: -0.034*(T - 25)^2
tolerance: 0.5%

### What is its frequency error at {T} °C, in ppm?

::: misses
- [0.034*(T - 25)^2] The crystal always runs slow away from 25 °C, so the error is negative.
- [-0.034*(T - 25)] The temperature difference is squared.
- [any] Put {T} into $e(T)$.
:::
:::

::: part
answer: 25 + sqrt(X/0.034)
unit: °C
tolerance: 0.5%

### Above 25 °C, at what temperature does it run {X} ppm slow?

::: misses
- [25 - sqrt(X/0.034)] That's the temperature below 25 °C with the same error.
- [sqrt(X/0.034)] That's how far from 25 °C. Add the 25.
- [any] Solve $0.034(T - 25)^2 = \given{X}$, taking the root above 25.
:::
:::

::: part
answer: 86400*0.034*(T - 25)^2*1e-6
unit: s
tolerance: 0.5%

### A watch kept at {T} °C loses how many seconds a day?

::: misses
- [86400*0.034*(T - 25)^2] Multiply by $10^{-6}$: the error is in parts per million.
- [any] A day is 86 400 s; the watch loses that times the fractional error.
:::
:::
:::

::: check
kind: parts
given: Imax = 2 | 3; V1 = 13.8 | 14.0; V2 = 14.4 | 14.6; V = 14.05 | 14.25

## A battery charger gives a constant {Imax} A until the battery reaches {V1} V. Between {V1} V and {V2} V the current falls in a straight line to zero, and above {V2} V it's zero.

::: part
answer: Imax*(V2 - V)/(V2 - V1)
unit: A
tolerance: 0.5%

### What current flows when the battery is at {V} V?

::: misses
- [Imax*(V - V1)/(V2 - V1)] That rises with voltage. The current falls from {Imax} A toward zero.
- [any] The fraction of the way from {V1} to {V2} V tells you how far the current has fallen.
:::
:::

::: part
answer: -Imax/(V2 - V1)
unit: A/V
tolerance: 0.5%

### What is the slope of the middle piece, in amperes per volt?

::: misses
- [Imax/(V2 - V1)] The current falls as the voltage rises, so the slope is negative.
- [any] The change in current over the change in voltage across the middle piece.
:::
:::

::: part
answer: V2 - 0.5*(V2 - V1)/Imax
unit: V
tolerance: 0.5%

### At what voltage has the current dropped to 0.5 A?

::: misses
- [V1 + 0.5*(V2 - V1)/Imax] That's where it would have reached 0.5 A climbing from zero. It falls from {Imax} A.
- [any] Work back from {V2} V, where the current is zero.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 2; b = 10 | 17 | 26; x0 = 5 | 6; x1 = 1 | 2

## $f(x) = \sqrt{x - \given{a}}$ and $g(x) = \given{b} - x^2$.

::: part
answer: b - (x0 - a)
tolerance: 0.5%

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

::: misses
- [b - x0^2] Work from the inside: find $f(\given{x0})$ first.
- [any] $f(\given{x0}) = \sqrt{\given{x0} - \given{a}}$; then square it and subtract from {b}.
:::
:::

::: part
answer: sqrt(b - x1^2 - a)
tolerance: 0.5%

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

::: misses
- [sqrt(b - x1^2)] Subtract {a} inside the square root.
- [any] $g(\given{x1})$ first, then $f$.
:::
:::

::: part
answer: sqrt(b - a)
tolerance: 0.5%

### What is the largest $x$ for which $f(g(x))$ is defined?

::: misses
- [sqrt(b)] $g(x)$ has to be at least {a}, not just zero.
- [any] $f$ needs $g(x) \ge \given{a}$, so $x^2 \le \given{b} - \given{a}$.
:::
:::
:::
:::
