Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Problem set — impulse response and convolution

Problem set: impulse response and convolution

Exam-style problems. Work them with a pen before touching a computer; the last two are meant to be finished numerically. Solutions and marking rubrics live with the instructor material and are deliberately not on this site.

Throughout, γ≡b/m\gamma \equiv b/m, Q=ω0/γQ = \wnat/\gamma, and the forward transform carries e−iωte^{-\ii\omega t}, so that G^(ω)=(1/m)/(ω02−ω2+iγω)\hat{G}(\omega) = (1/m)/(\wnat^2 - \omega^2 + \ii\gamma\omega) and module 02’s swept amplitude is its conjugate. If a term’s sign surprises you, check that convention first — it is the one thing in this module that reliably goes wrong quietly.

Problem 1 — the step response, by convolution

A force F0F_0 is switched on at t=0t = 0 and left on. The oscillator starts at rest.

(a) Write down G(t)G(t) and confirm the three things it must do at t=0+t = 0^+: vanish, leave the origin at slope 1/m1/m, and carry no dependence on kk in that slope.

(b) Evaluate x(t)=∫0tG(t−t′)F0 dt′x(t) = \int_0^t G(t - t')F_0\,dt' directly and obtain

x(t)=F0k[1−e−γt/2(cos⁡ωdt+γ2ωdsin⁡ωdt)].x(t) = \frac{F_0}{k}\left[1 - e^{-\gamma t/2}\left(\cos\omega_d t + \frac{\gamma}{2\omega_d}\sin\omega_d t\right)\right].

Check the two limits you can check without doing any work: t→∞t \to \infty, and γ→0\gamma \to 0.

(c) Locate the first maximum and show that the fractional overshoot is exp⁡ ⁣(−πγ/2ωd)\exp\!\left(-\pi\gamma / 2\omega_d\right), a function of QQ alone. Evaluate it at Q=20Q = 20, Q=2Q = 2 and at critical damping.

(d) A galvanometer needle must reach its final reading as fast as possible without ever passing it. What QQ do you specify, and what does the answer to (c) say about QQ slightly below that value?

Problem 2 — kick timing

Two identical kicks of impulse JJ arrive, the second a time τ\tau after the first.

(a) Write the motion for t>τt > \tau as a single decaying sinusoid. Give its amplitude as a function of τ\tau, and identify the two competing effects that decide it.

(b) Show that the amplitude ratio against a single kick is 1+e−π/Q1 + e^{-\pi/Q} for τ=Td\tau = T_d and 1−e−π/2Q1 - e^{-\pi/2Q} for τ=Td/2\tau = T_d/2, where Td=2π/ωdT_d = 2\pi/\omega_d. Evaluate both at Q=10Q = 10.

(c) Half-period spacing does not cancel the motion completely, at any finite QQ. Explain why in one sentence, and state the condition under which cancellation would be exact.

(d) You may choose τ\tau freely to make the ringing at late times as large as possible for two kicks of fixed impulse. Is τ=Td\tau = T_d optimal? Justify your answer — the reasoning matters more than the number.

Problem 3 — causality and what it forbids

(a) State the causality condition on GG and show that it is what puts the upper limit tt on the convolution integral.

(b) Someone reports a measured impulse response that is small but nonzero for t<0t < 0, and attributes it to their apparatus. Give two mundane experimental explanations before reaching for new physics.

(c) The equation mG¨+bG˙+kG=δ(t)m\ddot{G} + b\dot{G} + kG = \delta(t) also admits the advanced solution, zero for t>0t > 0. Write it down and describe the motion it represents.

(d) Suppose the advanced solution were the physical one. Describe a machine you could build, and say which conservation law — if any — it violates. (It is not energy. That is the point.)

Problem 4 — the frequency response, two ways

(a) Evaluate G^(ω)=∫0∞G(t)e−iωt dt\hat{G}(\omega) = \int_0^\infty G(t)e^{-\ii\omega t}\,dt and obtain (1/m)/(ω02−ω2+iγω)(1/m)/(\wnat^2 - \omega^2 + \ii\gamma\omega). The integral is module 04’s one-sided exponential pair applied twice; say where the sin⁡ωdt\sin\omega_d t was split.

(b) Show that X(ω)=F0G^(ω)∗X(\omega) = F_0\hat{G}(\omega)^{*}, and explain the conjugate in terms of which half of the spectrum the course’s time factor e−iωte^{-\ii\omega t} occupies.

(c) A force F(t)=F0e−t/τF(t) = F_0 e^{-t/\tau} for t≥0t \ge 0 is applied. Find x(t)x(t) twice — once by convolution, once as the inverse transform of G^F^\hat{G}\hat{F} — and show the two agree. State which is less work and why.

(d) A series RLC circuit has L=10 mHL = 10\ \mathrm{mH}, R=2.0 ΩR = 2.0\ \Omega and C=1.0 μFC = 1.0\ \mathrm{\mu F}. Find f0f_0 and QQ, then give the (m,b,k)(m, b, k) of a mechanical oscillator with the identical G(t)G(t) when xx is measured in metres and qq in coulombs.

Problem 5 — measuring QQ from one kick, numerically

Simulate a ringdown of an oscillator with Q=15Q = 15, sampled well above ωd\omega_d, and add Gaussian noise at 0.5%0.5\% of the initial amplitude. Use a fixed seed and say what it is.

(a) Extract QQ from the envelope with oscillators.q_from_ringdown, and again from the linewidth with oscillators.q_from_linewidth applied to fourier.spectrum of the same record. Report both as value ± uncertainty over at least eight seeds.

(b) Now apply oscillators.q_from_bandwidth to the same spectrum. It will return a number without complaint. Compute how many frequency bins lie across the full width of your line, and use that to explain the discrepancy.

(c) Show that the number of bins across the linewidth depends only on how many amplitude e-foldings your record contains, and not on QQ. Deduce the record length needed for ten bins, and the signal amplitude remaining at that point.

(d) Zero-pad the record by a factor of eight and repeat (b). The estimate improves. Explain carefully why this is not the same as having recorded more data.

Problem 6 — synthesis: a square wave through a resonator

This one problem uses every module so far. A damped oscillator with Q=12Q = 12 is driven by a square wave of fundamental frequency ω0/3\wnat/3 and amplitude F0F_0, with a little noise added.

(a) Expand the square wave in a Fourier series (module 03) and predict the steady-state response as a sum of harmonics, each weighted by module 02’s XX at that harmonic’s frequency. Which harmonic dominates, and by what factor over the fundamental?

(b) Watch the sign. Module 03’s synthesis writes the drive as ∑ncne+inω0t\sum_n c_n e^{+\ii n\omega_0 t}, which under this course’s kernel places the nnth harmonic at ω=−nω0\omega = -n\omega_0. Show that the correct weight for that term is X(nω0)∗X(n\omega_0)^{*}, not X(nω0)X(n\omega_0), and state what the response would look like if you used the wrong one.

(c) Compute the response numerically three ways: by summing the harmonics of (a), by oscillators.convolution_response, and by oscillators.simulate_forced. Show all three agree in the steady state, and say what limits the agreement in each case.

(d) Transform the computed response and compare its spectrum with the product G^F^\hat{G}\hat{F}. Then explain, in two sentences, why a resonator driven by a square wave is heard as very nearly a pure tone.

Problem 7 — challenge: deconvolution and its limits

You are given a measured x(t)x(t) and a known G^\hat{G}, and asked to recover the force.

(a) Implement F^=x^/G^\hat{F} = \hat{x}/\hat{G} by spectral division on noiseless simulated data and confirm you recover the input force.

(b) Add Gaussian noise at 10-6, 10-4 and 10-2 of the peak response and repeat. Plot the recovered force in each case and report its peak magnitude.

(c) Explain the failure quantitatively: relate the amplification of the noise at each frequency to ∣G^(ω)∣|\hat{G}(\omega)|, and identify the frequency band that does the damage.

(d) Rescue it crudely by zeroing every frequency where ∣G^∣|\hat{G}| falls below a threshold you choose. Show the result is bounded, and state precisely what has been thrown away along with the noise. What extra information would let you do better? Module 53-computational-imaging answers this properly; give your own answer first.