Here is the gain of an RC circuit with s, drawn against frequency. Watch the dots at 0.1, 1 and 10 rad/s as the ordinary axis turns into one where every tenfold step of frequency gets the same width.
Sweep
The RC circuit’s gain, RC = 1 s, as the frequency axis turns logarithmic.
On an ordinary axis from 0 to 100 rad/s, everything happens in the first sliver.
Describe this picture
The gain , from 0 to 1, against ω in rad/s; the clip plays by itself with no control. The axis turns from linear, 0 to 100, into logarithmic, 0.01 to 100, while the curve is carried along. Three dots ride the curve at 0.1, 1 and 10 rad/s, and a fourth sits at 2 rad/s. At the end the decade gridlines are labelled 0.01, 0.1, 1, 10 and 100, with small marks for 2, 3, … 9 times in between, and the dots read , , and .
A frequency axis that multiplies
Fourier series and LTI systems (7.4) found the RC circuit’s answer to a handful of harmonics. With s the answer is , with gain and lag . This page asks for the answer at every frequency, and for a way to draw it that an engineer can read at a glance.
The trouble starts with the axis. The interesting part of this circuit’s response spans 0.1, 1, 10 and 100 rad/s. Draw the gain against on an ordinary axis from 0 to 100 rad/s and the first three of those frequencies fall in the first tenth of the axis. The rest of it is a flat line near zero.
The cure is to give each tenfold range of frequency the same width. A piano keyboard does this for pitch: every octave, a doubling of frequency, takes the same width. On a logarithmic axis the same holds for steps of ten, and one such step, say from 1 to 10, is a decade. A mark at frequency sits at a distance proportional to from the start, so multiplying by 10 always moves the mark by one decade.
That is what the picture at the top of the page does. On the ordinary axis, the dots at 0.1 and 1 rad/s sit almost on top of each other near zero. Stretch the low end and squeeze the high end, and the dots read , and on the gridlines at 0.1, 1 and 10 rad/s. The dot on the mark “2” is 2 rad/s, gain 0.447. The corner, 1 rad/s, sits in the middle.
Those four values are at four frequencies: , , and . The corner at rad/s is the one that 7.4 called , and it sits in the middle because 1 is as many decades above 0.01 as it is below 100.
Between two gridlines, for example between 1 and 10, the small marks are 2, 3, 4, up to 9 times the first. They crowd toward the high-frequency end of the decade. The reason is that equal distances mean equal ratios: the step from 1 to 2 doubles the frequency, while the step from 9 to 10 multiplies it by only .
Zero is never reached on this axis, because each step toward lower frequency divides by 10.
The sweep: points landing on the Bode plot
Gains are usually quoted in decibels, as in How big is a signal (1.3). The size of in decibels is , relative to the input. A gain of one tenth is dB and a gain of one hundredth is dB. A Bode plot draws two panels on one logarithmic frequency axis: the gain in dB, and the phase of in degrees.
I want you to measure the circuit the way a lab does. Feed in a sine, wait until the start-up wobble has died away, then read the size and the lag of the output. That is one point of the frequency response. Then move to the next frequency. An audio engineer sweeping a sine through an amplifier is doing this.
The next instrument does it for you over 14 s, from 0.01 to 100 rad/s. Before you watch, predict: as the input gets faster, does the output shrink, lag, or both? Watch the output sine against the input, and the dots it leaves on the Bode plot.
Sweep
A sine in, a sine out: each reading of size and lag is one point of the Bode plot.
Very slow: the output follows the input.
Describe this picture
The input and output sines, labelled “input” and “output”, drawn over exactly two input periods, so the picture is the same width at every frequency. Below them two panels, “gain (dB)” and “phase (°)”, are stacked on a logarithmic frequency axis, and three readouts say “frequency ω”, “gain” and “phase”. The frequency is rad/s, one decade every 3.5 s, and a dot is stamped on each panel every half-decade. The readouts go from dB and at 0.01 rad/s, through dB and at 1 rad/s (7 s), to dB and at 100 rad/s (14 s). Labelled stamps remain at 0.1, 1 and 10 rad/s. When the clip stops, dragging along the Bode plot, or the arrow keys, move the test frequency.
Very slow, at 0.01 rad/s, the output follows the input: dB and . At the corner, 1 rad/s, it is 3 dB down and 45° behind: dB and , which is rad. On the way up the stamps read dB and at 0.1 rad/s, and dB and at 10 rad/s. At 100 rad/s the output is dB and . Every tenfold step past the corner makes the output about 20 dB smaller, and the lag heads for 90°. When the clip stops, drag along the Bode plot to move the test frequency yourself.
So the answer to the prediction is both. The dots lie on one smooth curve, which is why a handful of measurements is enough to draw it.
What number is , exactly? Send the arrow into a system with impulse response . By Continuous-time convolution (5.3) the output is
Here is only the dummy variable of the integral, as in 5.3. The arrow comes out unchanged except for the factor in front, so that factor is the frequency response:
This is the Fourier transform of from From series to transform (8.1). For the RC circuit, , which is when s. Its transform is , the pair of 8.1, and that is the number 7.4 found by trying in the equation. The sweep has been measuring the transform of all along.
Two straight lines
Look at the end of the sweep again. Far above the corner, when s, because is nearly . A tenfold step in then makes the gain ten times smaller, which is dB for every decade.
That gives two rules for sketching the gain: flat at 0 dB up to the corner, then down 20 dB for every tenfold step. An engineer can draw them on the back of an envelope.
The true curve is never far from them. In decibels it is exactly . Below the corner the lines say 0, so the gap is . Above it the lines say , so the gap is . Both are largest at , where each is dB.
The next instrument draws the sketch first and then checks it. Watch the gap between the true curve and the lines.
Straight lines
Sketch the RC circuit’s gain (RC = 1 s) with two rules, then check it against the true curve.
Two rules: flat until the corner, then down 20 dB for every tenfold step.
Describe this picture
A gain axis in dB on the logarithmic frequency axis; the picture plays by itself, with no control. It starts empty, then the lines draw themselves, labelled “two lines”, with the corner marked “corner”. By 3.5 s two marks sit on them: dB at 10 rad/s and dB at 100 rad/s. Then the exact curve, labelled “true curve”, lowers onto the sketch, and three markers appear at half the corner, at the corner and at twice the corner, reading dB, dB and dB.
The lines say dB at 10 rad/s and dB at 100 rad/s. At half the corner, at the corner and at twice the corner, the true curve is dB, dB and dB from them. It is never more than 3.01 dB from the lines, and that is at the corner.
At twice the corner, for example, the exact gain is dB and the line says dB, a gap of dB.
I call this one RC stage with corner : flat, then dB per decade, with dB and at the corner. It is the first-order system of First- and second-order systems (6.3).
Two stages in a row
Put a second RC stage after the first, with its corner at 10 rad/s, and keep a buffer between them so that the second does not load the first. Each stage multiplies the arrow by its own number, so the pair has (convolution becomes multiplication, Properties of the Fourier transform (8.2)). Here
In decibels the product turns into a sum. The logarithm of a product is the sum of the logarithms, , so the two stages’ dB curves add. The slopes add as well. Above 10 rad/s both stages are falling, and the line falls 40 dB per decade.
The sketch is still good. At 1 rad/s the pair is dB below the lines: the 3.01 dB of the first stage, plus a small dB from the second. At 100 rad/s the exact gain is dB against the line’s dB. Worked example 3 gives the rest.
Second order: the gain at every rhythm
First- and second-order systems (6.3) pushed a mass on a spring with a sine at three rhythms and quoted the steady gains, , and , without deriving them. You now have what is needed. The equation of that page is
Feed in the arrow and try . By the differentiation rule of 8.2, each derivative multiplies by , so and . Cancel the common factor :
Divide top and bottom by and write :
This is the steady gain of 6.3 for every rhythm. For , half the natural rate gives , which is dB. At the denominator of is , so , the quality factor of 6.3, and in decibels dB. At twice the natural rate the gain is , which is dB.
On a Bode plot this system is flat at 0 dB for slow rhythms, rises to a peak of 13.98 dB at , and then falls. Far above the gain is about , which is dB per decade, the slope of two stages.
Bandwidth
An amplifier’s datasheet does not quote a whole Bode plot. It quotes one frequency: where the gain has fallen to the maximum divided by , a drop of 3.01 dB. This is the 3 dB bandwidth , and the circuit lets frequencies below it through almost unchanged.
For a first-order system the corner and the 3 dB point are the same. With the time constant , the 3 dB point is rad/s, or Hz. For s that is Hz.
Bandwidth is tied to speed. 6.3 §1 gave the rise time, the time from 10 % to 90 % of a step, as s for s. Multiply the two:
The cancels, so the product is the same for every first-order system. A circuit with twice the bandwidth rises in half the time.
Why a brick wall cannot be built
So far the filters have been gentle slopes. What would the best possible low-pass filter look like? An ideal filter keeps a band of frequencies exactly and removes everything else. There are four kinds: low-pass (keeps everything below a cutoff), high-pass (keeps everything above it), band-pass (keeps a band) and band-stop (removes a band).
The ideal low-pass is the one to know, because the others can be built from it. The high-pass is the low-pass subtracted from 1. A band-pass slides the low-pass bump up to by multiplying by , the shift of 8.2. The band-stop is the band-pass subtracted from 1.
Transforms of common signals (8.3) gave the ideal low-pass pair. For cutoff rad/s it is for and 0 elsewhere, with
Look at for negative time. At s it is . A system whose impulse response is nonzero before would respond before the input arrives, so it is not causal, as Properties of LTI systems (5.4) showed. A brick wall cannot be built.
Can a delay help? Delaying by seconds multiplies by , which only turns each frequency by a straight-line angle, as in 8.2. The size stays a brick wall. Delaying moves most of after 0, and what remains before 0 can be cut off.
The next instrument shows this. It measures the share of ‘s energy that comes before . The energy is the area under (1.3), and for this the total is 1. Watch that share as the delay grows.
Brick wall
The ideal low-pass, corner π rad/s: delaying its impulse response, then cutting what is left before 0.
Half of this filter's response comes before the input arrives.
Describe this picture
Two panels; the picture plays for 8 s by itself, with no control. One, “|H|”, shows a brick wall from to rad/s on a linear frequency axis. The other, “h(t − D)”, shows the delayed impulse response against time in seconds, with the part before “t = 0” shaded. Two readouts say “delay D” and “share of h’s energy before t=0”. At the start they read “0.00 s” and “50.0%”, with a mark on . eases to 3 s and holds, reading “3.00 s” and “1.68%” at 4 s, then eases on to 6 s. The shaded part is then labelled “cut off” and removed, and the readouts are “6.00 s” and “0.84%”.
With no delay, half of this filter’s response comes before the input arrives. The share is a half because is symmetric about 0. Delayed by 3 s, most of it comes after 0, and only 1.68 % is left before. At 6 s the share is 0.84 %, and what is left before 0 is cut off. The cut part shrinks, but never to nothing.
The shares fall as grows: at s, at 2 s, at 3 s and at 6 s. Roughly, the share is . It never reaches zero, because has a tail that never stops. And the cut changes the response a little. The result is causal, but its frequency response has ripples near the cutoff, of the kind Convergence and the Gibbs phenomenon (7.3) showed. More delay gives a better wall, and costs a longer wait.
Two delays
A delay can be measured in two ways. Take a burst: a tone under a smooth envelope that rises and falls. The tone’s crests and the envelope’s peak are two different things to follow through a circuit.
The phase delay is . It is how late the crests inside arrive. The group delay is , the negative slope of the phase against . It is how late the envelope arrives. For a pure delay of the phase is the straight line (8.2), so both are . The shape passes through unchanged, which is called distortionless.
The RC circuit’s phase is not a straight line. With s, , so and . At rad/s they are s and s, nearly equal. At 1 rad/s they are s and s. At 10 rad/s they are s and s.
The figure sends a burst with carrier 1 rad/s and envelope through the circuit. That envelope has fallen to of its peak 10 s from the centre, so the burst is long compared with one crest, and only frequencies near 1 rad/s matter.
In the figure the dashed curves are the envelopes. A square marks an envelope peak and a dot marks a crest. Simulated, the envelope peaks are s apart and the chosen crests s apart. The theory at 1 rad/s says s and s, and the small differences come from the burst’s bandwidth.
Worked example
-
RC low-pass, s. With :
(rad/s) dB 0.01 0.99995 0.1 0.99504 1 0.70711 10 0.099504 100 0.0099995 -
Line error of one stage at , and is , and dB. At the exact gain is dB and the line is dB.
-
Two stages, corners 1 and 10 rad/s. The line errors at 0.5, 1 and 2 rad/s are , and dB. At 10 rad/s it is dB. At 100 rad/s the exact gain is dB against the line’s dB.
-
Delays, s. and give s and s at 0.1 rad/s, s and s at 1 rad/s, and s and s at 10 rad/s. A simulated burst with carrier 1 rad/s and envelope gives s and s. With it gives s and s.
-
Bandwidth and rise time, s. rad/s, Hz, s, and .
-
6.3’s rig on a Bode plot. For the gain at is , which is dB. At it is ( dB) and at it is ( dB).
-
Brick wall, rad/s. , and . It is zero at every nonzero integer, and its total energy is 1. The share of the energy before after a delay is at , then , , and at , 2, 3 and 6 s.
Where you’ll meet this
Every datasheet that quotes a bandwidth, a corner or a roll-off in dB per decade is quoting this page. An audio equaliser is a Bode plot you can move with sliders. A loudspeaker, a microphone and a tuned circuit have the resonant peak of the second-order system. The question of how much delay a filter adds, and whether it adds the same to every frequency, is the question of the last section.
Later pages read the same plot from other directions. Poles, zeros and the s-plane (9.3) shows how to read the bends of a Bode plot off a map of the system, and Frequency response of discrete-time systems (12.4) draws the same plot for sampled systems. Linear-phase systems (17.3) builds filters whose phase is a straight line, All-pass systems (17.1) and Minimum phase (17.2) separate size from phase, and Analog prototype filters (20.1) designs filters that approach the brick wall.
The maths behind it · eigenvectors and eigenvalues
An arrow goes through the system and comes out as the same arrow times one number, . A vector that a matrix only stretches is called an eigenvector, and the stretch is its eigenvalue. A Bode plot is therefore the system’s eigenvalues plotted against frequency. Two systems in a row multiply their eigenvalues, which in dB adds the curves.
The maths behind it · power spectral density
A signal that never repeats exactly, noise for example, can still be described by how much power it carries near each frequency. That description is its power spectral density (Power spectral density, 24.4). Through a filter, the power near each frequency is multiplied by .
Reference card
| Quantity | Formula | Notes |
|---|---|---|
| Frequency response | an arrow comes out times | |
| Magnitude in dB | relative to the input | |
| Bode plot | dB and degrees against a logarithmic axis | each decade ×10 in frequency |
| One RC stage, corner | flat, then dB per decade; dB and at | the first-order system of 6.3 §1 |
| Cascade | dB curves add, since | |
| Second order | gain at (6.3 §4) | |
| 3 dB bandwidth | first order: ; | |
| Ideal low-pass | for ; | not causal; delay and cut to approximate |
| Phase delay | the crests | |
| Group delay | the envelope | |
| Distortionless | flat size, straight-line phase; |