---
title: Dynamic response of sensors
heading: First-order sensors like a thermometer probe with their step, ramp and sinusoid responses, second-order sensors like a fluid-filled catheter with natural frequency and damping, overshoot, and how much bandwidth a physiological waveform needs
eyebrow: S15 · Lesson 2 · Dynamic response of sensors
xp: 50
---

::: hook
A clinical thermometer that needs a minute to settle, a catheter that makes the arterial pressure trace ring after every heartbeat, a pulse oximeter that lags a falling oxygen level: all are dynamic-response problems. Most sensors behave like the first- and second-order systems of C2 and S9, and the same few formulas say how long to wait, how fast a signal can be followed, and how badly a waveform's shape will be distorted. For a blood-pressure catheter the answer decides whether the systolic peak on the screen is real.
:::

::: play
- The amplitude ratio of a second-order sensor, output over input, against frequency, for natural frequency $f_n$ and damping ratio ζ.
- An arterial pressure wave at 120 beats per minute has useful harmonics up to about 20 Hz. Where the curve rises above 1, those harmonics are exaggerated and the trace overshoots.
- Damping near 0.6 to 0.7 keeps the response flattest; a stiff, short catheter raises $f_n$ and pushes the problem out of the way.
:::

```sim plot
view: graph
x: f = 0.5..100 log
y: A = 0..3
slider: n = 5..100 = 25 log
slider: z = 0.05..1.5 step 0.01 = 0.2
plot: 1/sqrt((1 - (f/n)^2)^2 + (2*z*f/n)^2) | samples: 600 | label: amplitude ratio
marker: f = 20 | label: 10th harmonic at 2 Hz
readout: error at 20 Hz, % = 100*(1/sqrt((1 - (20/n)^2)^2 + (2*z*20/n)^2) - 1) | digits: 3
readout: step overshoot, % = 100*exp(-pi*z/sqrt(abs(1 - z^2)))*step(1 - z) | digits: 3
```

::: predict
## A catheter–transducer system has a natural frequency of 25 Hz and a damping ratio of 0.2. By how much does it exaggerate a 10 Hz component of the pressure wave?

- [ ] Not at all
- [ ] About 2%
- [x] About 17%
- [ ] About 150%

::: reveal
At f/f_n = 0.4 the amplitude ratio is $1/\sqrt{(1 - 0.16)^2 + (2 \times 0.2 \times 0.4)^2}$ = 1.17. A 10 Hz harmonic is shown 17% too large, and the systolic peak, built from such harmonics, reads high. Raising the damping toward 0.6 or the natural frequency well above 50 Hz fixes it.
:::
:::

::: nameit
## First-order sensors

A temperature probe with thermal mass and a thermal resistance to its surroundings obeys $\tau\dot{y} + y = x$ with time constant τ.

- **Step** of size ΔT: $y = \Delta T(1 - e^{-t/\tau})$; reaching within ε takes $\tau\ln(\Delta T/\varepsilon)$, and 90% takes 2.3τ.
- **Ramp** at rate r: after the start-up transient the reading lags by $r\tau$.
- **Sinusoid** at f: amplitude ratio $1/\sqrt{1 + (2\pi f\tau)^2}$ and phase lag $\tan^{-1}(2\pi f\tau)$.

## Second-order sensors

A fluid-filled catheter is a mass of liquid on the spring of the transducer's diaphragm, with viscous damping:

$$\frac{y}{x} = \frac{1}{1 - (f/f_n)^2 + j2\zeta f/f_n}$$

Its amplitude ratio peaks near $f_n$ when ζ < 0.707, and a step overshoots by $e^{-\pi\zeta/\sqrt{1 - \zeta^2}}$. Lesson 23 derives $f_n$ and ζ from the catheter's dimensions.

## How much bandwidth

Periodic physiological signals are sums of harmonics of the heart or breathing rate. Faithful pressure waveforms need about ten harmonics; a heart rate of 120 per minute (2 Hz) needs a flat response to 20 Hz.
:::

::: example
## A thermometer probe with τ = 10 s at 37 °C is placed in a patient at 39.5 °C. What does it read after 20 s, and how long until it's within 0.1 °C?

::: solution
1. **Reading after 20 s.** Twenty seconds is two time constants:
   $$\begin{aligned} T &= 37 + 2.5\left(1 - e^{-2}\right) \\ &= 39.16\ \text{°C} \end{aligned}$$
   still 0.34 °C low.
2. **Time to come within 0.1 °C.** The gap has to shrink from 2.5 °C to 0.1 °C:
   $$\begin{aligned} t &= 10 \ln\frac{2.5}{0.1}\ \text{s} \\ &= 32.2\ \text{s} \end{aligned}$$
3. **Predictive thermometers.** They fit the start of the exponential and extrapolate, so they finish in a few seconds.

**Answer:** it reads 39.16 °C after 20 s, still 0.34 °C low, and comes within 0.1 °C after 32.2 s.
:::
:::

::: example
## For the predict question's catheter, what step overshoot does it show, and what lag does the probe above have when a patient's temperature rises at 0.5 °C per minute?

::: solution
1. **Overshoot of the catheter.** With ζ = 0.2:
   $$\begin{aligned} \text{OS} &= e^{-\pi \times 0.2/\sqrt{0.96}} \\ &= 0.527 \end{aligned}$$
   a 53% overshoot that rings at about 25 Hz.
2. **Lag of the probe.** The ramp is 0.5 °C a minute, and the probe lags it by τ = 10 s:
   $$\begin{aligned} \Delta T &= 0.5 \times \frac{10}{60} \\ &= 0.083\ \text{°C} \end{aligned}$$
   which is negligible.

**Answer:** the catheter overshoots by 53% and rings at about 25 Hz, and the probe lags the ramp by a negligible 0.083 °C.
:::
:::

::: example
## A catheter system has $f_n$ = 40 Hz and ζ = 0.2. Where is its resonant peak and how high, and how much does it exaggerate the 12 Hz tenth harmonic of a 72 beat/min pressure wave?

::: solution
1. **Resonant peak frequency.**
   $$\begin{aligned} f_p &= f_n\sqrt{1 - 2\zeta^2} \\ &= 38.4\ \text{Hz} \end{aligned}$$
2. **Peak height.**
   $$\begin{aligned} M_p &= \frac{1}{2\zeta\sqrt{1 - \zeta^2}} \\ &= 2.55 \end{aligned}$$
3. **Amplitude ratio at the tenth harmonic.** At r = 12/40 = 0.3, the ratio is $1/\sqrt{D}$ with
   $$\begin{aligned} D &= (1 - 0.09)^2 \\ &\quad + (2 \times 0.2 \times 0.3)^2 \end{aligned}$$
   which gives 1.09.
4. **What it does to the waveform.** The tenth harmonic comes through 9% too large, so the recorded waveform shows ringing and overshoot that aren't in the artery.
5. **The fix.** Raising ζ toward 0.6 would flatten the response over the harmonics that matter.

**Answer:** the resonant peak is at 38.4 Hz with a height of 2.55, and the 12 Hz harmonic comes through with an amplitude ratio of 1.09, 9% too large.
:::
:::

::: check
given: T = 1 | 2.5 | 4; u = 5 | 15 | 30; s = 10 | 30
answer: T*exp(-s/u)
unit: °C
tolerance: 0.5%

## A probe with a {u} s time constant touches a patient {T} °C warmer than the probe. How far below the patient's temperature does it read after {s} s?

::: right
Right. $\Delta Te^{-t/\tau}$ = {answer} °C.
:::

::: misses
- [T*(1 - exp(-s/u))] That's how far it has risen; the question asks for what's left.
- [any] Not yet. A first-order step response.
:::
:::

::: check
given: T = 1 | 2.5 | 4; u = 5 | 15 | 30; e = 0.05 | 0.1
answer: u*ln(T/e)
unit: s
tolerance: 0.5%

## How long does a probe with time constant {u} s take to come within {e} °C of a {T} °C step?

::: right
Right. $\tau\ln(\Delta T/\varepsilon)$ = {answer} s.
:::

::: misses
- [u*log(T/e)] Use the natural logarithm.
- [any] Not yet. Solve $\Delta Te^{-t/\tau} = \varepsilon$.
:::
:::

::: check
given: r = 0.2 | 1 | 3; u = 5 | 20 | 60
answer: r*u/60
unit: °C
tolerance: 0.5%

## A temperature rises steadily at {r} °C per minute. How far behind does a probe with a {u} s time constant read?

::: right
Right. Rate × τ = {answer} °C.
:::

::: misses
- [r*u] Convert the rate to degrees per second.
- [any] Not yet. A ramp lags by rate times time constant.
:::
:::

::: check
given: f = 0.1 | 0.5 | 2; u = 0.1 | 0.5 | 2
answer: 1/sqrt(1 + (2*pi*f*u)^2)
tolerance: 0.5%

## A first-order sensor with τ = {u} s sees a {f} Hz sinusoid. What's its amplitude ratio?

::: right
Right. $1/\sqrt{1 + (2\pi f\tau)^2}$ = {answer}.
:::

::: misses
- [any] Not yet. First-order frequency response.
:::
:::

::: check
given: n = 15 | 30 | 60; z = 0.1 | 0.3 | 0.7; f = 5 | 10 | 20
answer: 1/sqrt((1 - (f/n)^2)^2 + (2*z*f/n)^2)
tolerance: 0.5%

## A catheter system has $f_n$ = {n} Hz and ζ = {z}. What's its amplitude ratio at {f} Hz?

::: right
Right. {answer}.
:::

::: misses
- [any] Not yet. Second-order magnitude.
:::
:::

::: check
given: z = 0.2 | 0.4 | 0.6
answer: 100*exp(-pi*z/sqrt(1 - z^2))
tolerance: 0.5%

## A pressure system with damping ratio {z} sees a step. By what percent does it overshoot?

::: right
Right. $100e^{-\pi\zeta/\sqrt{1 - \zeta^2}}$ = {answer}%.
:::

::: misses
- [100*exp(-pi*z)] Divide by $\sqrt{1 - \zeta^2}$ in the exponent.
- [any] Not yet. Second-order overshoot.
:::
:::

::: check
kind: parts
given: n = 15 | 30 | 60; z = 0.1 | 0.25 | 0.4

## A pressure system has natural frequency {n} Hz and damping ratio {z}.

::: part
answer: n*sqrt(1 - 2*z^2)
unit: Hz
tolerance: 0.5%

### At what frequency is its resonant peak?

::: misses
- [n] The peak sits a little below $f_n$ when damped.
- [any] $f_n\sqrt{1 - 2\zeta^2}$.
:::
:::

::: part
answer: 1/(2*z*sqrt(1 - z^2))
tolerance: 0.5%

### How high is the peak?

::: misses
- [1/(2*z)] Close for light damping; include $\sqrt{1 - \zeta^2}$.
- [any] $1/(2\zeta\sqrt{1 - \zeta^2})$.
:::
:::
:::

::: check
kind: derivation
vars: T = 0.5..10, u = 1..60, t = 0..200, e = 0.01..0.4

## A first-order probe with time constant τ meets a step of T degrees.

::: step
answer: T*exp(-t/u)

### How large is its error after time t?
:::

::: step
answer: u*ln(T/e)

### How long until the error falls to e?
:::

::: right
Right. Each time constant cuts the error by a factor of e.
:::
:::

::: explain
## Why does an underdamped catheter make the systolic pressure read too high?

::: model
The arterial pressure wave is a sum of harmonics of the heart rate, and its sharp systolic peak depends on the higher ones being in the right proportion. A fluid-filled catheter and transducer form a second-order system whose amplitude ratio rises above 1 as the frequency approaches its natural frequency when the damping is low. The higher harmonics are then amplified more than the fundamental, so the peaks are exaggerated and the trace rings after each upstroke. The mean pressure, carried by the zero-frequency component, stays correct, but the systolic reading rises and the diastolic one can fall, which is why clinicians check the response with a fast flush test.
:::
:::

::: practice

::: check
given: T = 0.5 | 6; u = 2 | 60; s = 1 | 120
answer: T*exp(-s/u)
unit: °C
tolerance: 0.5%

## Remaining error: step {T} °C, τ = {u} s, after {s} s?

::: misses
- [any] $\Delta Te^{-t/\tau}$.
:::
:::

::: check
given: n = 5 | 200; z = 0.05 | 1.2; f = 1 | 40
answer: 1/sqrt((1 - (f/n)^2)^2 + (2*z*f/n)^2)
tolerance: 0.5%

## Amplitude ratio: $f_n$ = {n} Hz, ζ = {z}, f = {f} Hz?

::: misses
- [any] Second-order magnitude.
:::
:::

::: check
given: z = 0.02 | 0.1 | 0.2 | 0.4 | 0.6 | 0.7 | 0.9
answer: 100*exp(-pi*z/sqrt(1 - z^2))
tolerance: 0.5%

## Overshoot for ζ = {z}?

::: misses
- [any] $100e^{-\pi\zeta/\sqrt{1 - \zeta^2}}$.
:::
:::
:::
