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, , , and the forward transform carries , so that 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 is switched on at and left on. The oscillator starts at rest.
(a) Write down and confirm the three things it must do at : vanish, leave the origin at slope , and carry no dependence on in that slope.
(b) Evaluate directly and obtain
Check the two limits you can check without doing any work: , and .
(c) Locate the first maximum and show that the fractional overshoot is , a function of alone. Evaluate it at , and at critical damping.
(d) A galvanometer needle must reach its final reading as fast as possible without ever passing it. What do you specify, and what does the answer to (c) say about slightly below that value?
Problem 2 — kick timing¶
Two identical kicks of impulse arrive, the second a time after the first.
(a) Write the motion for as a single decaying sinusoid. Give its amplitude as a function of , and identify the two competing effects that decide it.
(b) Show that the amplitude ratio against a single kick is for and for , where . Evaluate both at .
(c) Half-period spacing does not cancel the motion completely, at any finite . Explain why in one sentence, and state the condition under which cancellation would be exact.
(d) You may choose freely to make the ringing at late times as large as possible for two kicks of fixed impulse. Is optimal? Justify your answer — the reasoning matters more than the number.
Problem 3 — causality and what it forbids¶
(a) State the causality condition on and show that it is what puts the upper limit on the convolution integral.
(b) Someone reports a measured impulse response that is small but nonzero for , and attributes it to their apparatus. Give two mundane experimental explanations before reaching for new physics.
(c) The equation also admits the advanced solution, zero for . 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 and obtain . The integral is module 04’s one-sided exponential pair applied twice; say where the was split.
(b) Show that , and explain the conjugate in terms of which half of the spectrum the course’s time factor occupies.
(c) A force for is applied. Find twice — once by convolution, once as the inverse transform of — and show the two agree. State which is less work and why.
(d) A series RLC circuit has , and . Find and , then give the of a mechanical oscillator with the identical when is measured in metres and in coulombs.
Problem 5 — measuring from one kick, numerically¶
Simulate a ringdown of an oscillator with , sampled well above , and add Gaussian noise at of the initial amplitude. Use a fixed seed and say what it is.
(a) Extract 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 . 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 is driven by a square wave of fundamental frequency and amplitude , 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 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 , which under this course’s kernel places the th harmonic at . Show that the correct weight for that term is , not , 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 . 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 and a known , and asked to recover the force.
(a) Implement 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 , and identify the frequency band that does the damage.
(d) Rescue it crudely by zeroing every frequency where 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.