---
title: Final exam
heading: "Final exam: functions, trig and sinusoids"
eyebrow: A2 · Final exam
type: problems
---

::: hook
Ten problems from across the whole course, the kind a precalculus final would set. Give yourself two and a half hours, work without the lessons open, and only check an answer once you've written down your working. "Another set" deals a different exam.
:::

::: pool
pick: 10

::: check
kind: parts
given: g = 5 | 8 | 10; L = 6 | 9; A = 2 | 3

## An amplifier with a gain of {g} clips at ±{L} V. A sine wave of amplitude {A} V goes in.

::: part
answer: (g*A + L - abs(g*A - L))/2
unit: V

### What is the peak of the output?

::: misses
- [g*A] Check that against the limit first.
- [any] The smaller of $\given{g} \times \given{A}$ and {L}.
:::
:::

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

### What is the largest input amplitude that comes out undistorted?

::: misses
- [L*g] Divide the limit by the gain.
- [any] $L/g$.
:::
:::
:::

::: check
kind: parts
given: r1 = -3..-1 int; r2 = 2..5 int; a = 2 | 3; let b = -a*(r1 + r2); let c = a*r1*r2

## Solve $\given{a}x^2 + (\given{b})x + (\given{c}) = 0$.

::: part
answer: b^2 - 4*a*c
tolerance: 0.01

### What is the discriminant?

::: misses
- [b^2 + 4*a*c] It's $b^2 - 4ac$.
- [any] $b^2 - 4ac$.
:::
:::

::: part
answer: r2
tolerance: 0.01

### What is the larger root?

::: misses
- [r1] That's the smaller one.
- [any] The quadratic formula, with the + sign.
:::
:::
:::

::: check
kind: parts
given: v0 = 0.25 | 0.5; s = 10 | 20; T1 = 20 | 30; T2 = 60 | 80; let v1 = v0 + s*T1/1000; let v2 = v0 + s*T2/1000; Tq = 45 | 100; let vq = v0 + s*Tq/1000

## A sensor reads {v1} V at {T1} °C and {v2} V at {T2} °C, and is linear.

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

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

::: misses
- [s/1000] In millivolts.
- [any] Change in reading over change in temperature.
:::
:::

::: part
answer: Tq
unit: °C

### What temperature gives {vq} V?

::: misses
- [vq/(s/1000)] The line doesn't pass through 0 V at 0 °C.
- [any] Point-slope form, solved for the temperature.
:::
:::
:::

::: check
kind: parts
given: R1 = 10k | 22k; R2 = 15k | 47k; RL = 20k | 100k

## A divider has $R_1$ = {R1} Ω on top and $R_2$ = {R2} Ω below. A load of {RL} Ω is then connected across $R_2$.

::: part
answer: R2/(R1 + R2)
tolerance: 0.5%

### What is the ratio $V_{out}/V_{in}$ unloaded?

::: misses
- [R1/(R1 + R2)] That's the share across the top.
- [any] $R_2/(R_1 + R_2)$.
:::
:::

::: part
answer: (R2*RL/(R2 + RL))/(R1 + R2*RL/(R2 + RL))
tolerance: 0.5%

### And loaded?

::: misses
- [R2/(R1 + R2)] The load in parallel lowers the bottom resistance.
- [any] Replace $R_2$ with $R_2 \parallel R_L$.
:::
:::
:::

::: check
kind: parts
given: a = 6 | 7; b = 2 | 3; c = 5 | 8; V1 = 9 | 12; V2 = 2 | 5

## $\given{a}I_1 - \given{b}I_2 = \given{V1}$ and $-\given{b}I_1 + \given{c}I_2 = \given{V2}$.

::: part
answer: (V1*c + b*V2)/(a*c - b^2)
unit: A

### What is $I_1$?

::: misses
- [V1/a] The loops are coupled through {b} Ω.
- [any] Cramer's rule.
:::
:::

::: part
answer: (a*V2 + b*V1)/(a*c - b^2)
unit: A

### What is $I_2$?

::: misses
- [V2/c] The loops are coupled.
- [any] Cramer's rule.
:::
:::
:::

::: check
kind: parts
given: V0 = 10 | 15; tau = 3.3 | 10 | 47; f = 0.1 | 0.25

## A capacitor discharges from {V0} V with $\tau$ = {tau} ms.

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

### After how many ms is it at {f} of its start?

::: misses
- [tau*ln(f)] That's negative.
- [tau/f] Solve with a logarithm.
- [any] $\tau\ln(1/f)$.
:::
:::

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

### What is its voltage after one time constant?

::: misses
- [V0*(1 - exp(-1))] That's charging. Discharging leaves $e^{-1}$.
- [any] $V_0e^{-1}$.
:::
:::
:::

::: check
kind: parts
given: A = 3 | 4; B = 30 | 90 | 250; k = 0.5 | 2

## Solve $\given{A}e^{\given{k}t} = \given{B}$, then express its answer in another base.

::: part
answer: ln(B/A)/k
tolerance: 0.5%

### What is $t$?

::: misses
- [ln(B)/k] Divide by {A} first.
- [any] $t = \ln(B/A)/k$.
:::
:::

::: part
answer: ln(B/A)/ln(2)
tolerance: 0.5%

### What is $\log_2(\given{B}/\given{A})$?

::: misses
- [log10(B/A)] That's base 10.
- [any] $\ln x/\ln 2$.
:::
:::
:::

::: check
kind: parts
given: g = 0.4 | 0.7 | 0.85; x = 1 | 3

## A loop feeds back {g} of its signal each pass, with {x} V going in.

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

### What does it settle at?

::: misses
- [x*(1 + g)] Every pass adds more.
- [any] $x/(1 - g)$.
:::
:::

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

### After how many passes is it within 1%?

::: misses
- [floor(ln(0.01)/ln(g))] Round up.
- [any] Solve $g^n < 0.01$.
:::
:::
:::

::: check
kind: parts
given: N = 1200 | 1800 | 3600; p = 2 | 4

## A generator with {p} pole pairs turns at {N} rpm.

::: part
answer: p*N/60
unit: Hz

### What frequency does it produce?

::: misses
- [N/60] Each turn gives {p} cycles.
- [any] $pN/60$.
:::
:::

::: part
answer: 2*pi*p*N/60
unit: rad/s

### What is that as an angular frequency?

::: misses
- [p*N/60] Multiply by $2\pi$.
- [any] $\omega = 2\pi f$.
:::
:::
:::

::: check
kind: parts
given: R = 5 | 12; X = 9 | 16; V = 24 | 230

## A load with {R} Ω resistance and {X} Ω reactance sits on {V} V.

::: part
answer: V/sqrt(R^2 + X^2)
unit: A

### What current flows?

::: misses
- [V/(R + X)] The impedance is the hypotenuse.
- [V/R] Include the reactance.
- [any] $V/\sqrt{R^2 + X^2}$.
:::
:::

::: part
answer: R/sqrt(R^2 + X^2)
tolerance: 0.5%

### What is the power factor?

::: misses
- [X/sqrt(R^2 + X^2)] That's the sine. Power factor is $\cos\varphi = R/|Z|$.
- [any] $R/|Z|$.
:::
:::
:::

::: check
kind: parts
given: A = 12 | 20; f = 50 | 2000; phi = 30 | 135

## $v(t) = \given{A}\cos(2\pi \cdot \given{f}\,t - \given{phi}°)$ volts.

::: part
answer: A*cos(-phi*pi/180)
unit: V

### What is $v(0)$?

::: misses
- [A] Only with zero phase.
- [any] $\given{A}\cos(-\given{phi}°)$.
:::
:::

::: part
answer: phi/(360*f)
unit: s

### When is its first peak after $t = 0$?

::: misses
- [(360 - phi)/(360*f)] With a minus sign in front of the phase, the peak comes when $2\pi ft = \varphi$.
- [any] Solve $2\pi ft - \varphi = 0$.
:::
:::
:::

::: check
kind: parts
given: A = 5 | 10; k = 0.4 | 0.7; f = 60 | 500; let L = k*A

## A {f} Hz sine wave peaks at {A} V.

::: part
answer: asin(L/A)/(2*pi*f)
unit: s

### When does it first reach {L} V after a rising zero crossing?

::: misses
- [L/A/(2*pi*f)] Take $\sin^{-1}$ first.
- [any] $\sin^{-1}(L/A)/(2\pi f)$.
:::
:::

::: part
answer: (pi - 2*asin(L/A))/(2*pi*f)
unit: s

### How long does it stay above {L} V?

::: misses
- [(pi - asin(L/A))/(2*pi*f)] Subtract the time before the upward crossing too.
- [any] From $\sin^{-1}(L/A)$ to $\pi - \sin^{-1}(L/A)$.
:::
:::
:::

::: check
kind: parts
given: Ip = 2 | 3; R = 8 | 50

## A current $\given{Ip}\cos(\omega t)$ A flows through {R} Ω.

::: part
answer: R*Ip^2/2
unit: W

### What is the average power?

::: misses
- [R*Ip^2] That's the peak.
- [any] $\cos^2$ averages to $\frac{1}{2}$.
:::
:::

::: part
answer: R*Ip^2
unit: W

### What is the peak power?

::: misses
- [R*Ip^2/2] That's the average.
- [any] $RI_p^2$.
:::
:::
:::

::: check
kind: parts
given: x = -4 | -7; y = -3 | 5

## A signal is the point $(\given{x}, \given{y})$ in the in-phase and quadrature plane.

::: part
answer: sqrt(x^2 + y^2)
tolerance: 0.2%

### What is its amplitude?

::: misses
- [any] $\sqrt{x^2 + y^2}$.
:::
:::

::: part
answer: arg(x + j*y)*180/pi
unit: °
tolerance: 0.2%

### What is its phase, between −180° and 180°?

::: misses
- [atan(y/x)*180/pi] Wrong quadrant.
- [any] atan2.
:::
:::
:::

::: check
kind: parts
given: A1 = 4 | 6; A2 = 3 | 7; p = 30 | 150

## Two same-frequency sinusoids of {A1} V and {A2} V are {p}° apart.

::: part
answer: abs(A1 + A2*exp(j*p*pi/180))
unit: V

### What is the amplitude of their sum?

::: misses
- [A1 + A2] Add them as arrows.
- [any] Components, then length.
:::
:::

::: part
answer: arg(A1 + A2*exp(j*p*pi/180))*180/pi
unit: °
tolerance: 0.2%

### What is the sum's phase, relative to the first?

::: misses
- [any] The angle of the sum arrow.
:::
:::
:::
:::
