A1024 of 28
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

A10 · Lesson 24 · Impulse response

Predicting any output from one measurement

Hit a linear system with one very short, sharp pulse and record what comes out: that recording, the impulse response, completely describes the system. Room acoustics are measured this way, by popping a balloon; so are loudspeakers, cables and control loops. Any other input's output is then a convolution, which a computer does in one line. In this lesson you'll go between the impulse response, the transfer function and the output, and compute a convolution in NumPy.

  • A pulse of 1 V lasting T goes into an RC low-pass with time constant τ. The output rises toward 1 V while the pulse is on, then decays.
  • Make the pulse much shorter than τ. The output becomes a small, sharp rise and a slow fall: almost the impulse response itself, scaled by the pulse's area.
  • Make the pulse much longer than τ. Now the output copies the pulse, with rounded edges.

Predict

A filter's impulse response has an area of 2 under it. What does its output settle to for a 1 V step input?

Name it

Three descriptions of one system

DomainDescriptionOutput
timeimpulse response h(t)y=h*x=∫0th(t−s)x(s)ds
Laplacetransfer function H(s)=ℒ{h}Y(s)=H(s)X(s)
frequencyfrequency response H(jω)each sinusoid scaled by H(jω)

The step response is ∫0th, or H(s)s in Laplace, and its final value is H(0)=∫0∞hdt.

For an RC low-pass, H(s)=11+sτ and h(t)=1τe−t/τ.

Convolution on a computer

Sample both signals at spacing Δt; then

y(nΔt)≈Δt∑kh(kΔt)x((n−k)Δt)

which is np.convolve(x, h) * dt, truncated to the length you want. The error shrinks with Δt: this is the rectangle rule (A6), so expect errors of order Δt/τ.

Short and long inputs

A pulse much shorter than the system's time constant acts like an impulse of the same area. A pulse much longer than it passes through nearly unchanged. In between, the output is a rounded copy, which is the "rise time" of a scope or a data link.

Worked example

A 1 V, 2 ms pulse enters an RC low-pass with τ = 1 ms. Find the output at 2 ms and 4 ms.

Show the solution
  1. During the pulse. The output is a step response, so at 2 ms 1−e−2=0.865V
  2. After the pulse. That value decays, so at 4 ms v=0.865e−(4−2)/1=0.117V
  3. Check numerically. A numerical convolution with Δt = 10 µs gives 0.860 and 0.116.

Answer 0.865 V at 2 ms and 0.117 V at 4 ms.

Worked example

A system has H(s)=2(s+1)(s+2). What is its impulse response, and its step response's final value?

Show the solution
  1. Partial fractions. H(s)=2(s+1)(s+2)=2s+1−2s+2
  2. Invert. h(t)=2e−t−2e−2t
  3. The final value. The step response settles at H(0)=22=1
  4. Check. That's also the area under h: ∫0∞hdt=2−1

Answer h(t)=2e−t−2e−2t, and the step response settles at 1.

Worked example

Find the impulse response of H(s)=1s2+2s+5 and its peak.

Show the solution
  1. The impulse response. h(t)=12e−tsin⁡2t
  2. Find the peak. Its derivative is zero where tan⁡2t=2, first at t=12tan−1⁡2=0.554s
  3. The peak value. h=12e−0.554sin⁡(1.107)=0.5×0.575×0.894=0.257
  4. After the peak. It then rings, each swing e−π/2=0.21 times the size of the one before.

Answer h(t)=12e−tsin⁡2t, which peaks at 0.257 at t=0.554 s.

Check

A 1 V pulse lasting 1 ms enters an RC low-pass with τ = 0.5 ms. What is the output at the end of the pulse?

Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.

Check

The same kind of pulse (1 ms, τ = 1 ms) has ended. What is the output at t = 5 ms?

Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.

Check

A system has H(s)=2(s+1)(s+4). What does its step response settle to?

Check

A 1 V pulse lasting 1 µs enters an RC low-pass with τ = 1000 µs, much longer. About what peak does the output reach?

Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.

Check

np.convolve of arrays of length 100 and 50 returns how many samples?

Check

Compute the output of an RC low-pass (τ = 1 ms) to a 1 V, 2 ms pulse by convolution: sample at dt = 1e-5 s for 6 ms, build x and h = exp(-t/tau)/tau, and set y = np.convolve(x, h)[:len(t)] * dt.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

H(s)=1(s+1)2+22.

(a)

When does its impulse response first peak?

Write units the way you normally would: 1.5 s and 1500 ms are the same answer.

(b)

What is its step response's final value?

Check

A unit pulse of length T enters an RC low-pass with time constant τ.

Step 1

What is the output at the end of the pulse?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

Why does a very short pulse produce an output shaped like the impulse response, whatever the pulse's own shape?

Practice

Keep practicing

9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.