C4 · Lesson 2 · Bode plots
Straight lines that sketch any frequency response
With log frequency across and gain in dB up, every pole and zero becomes a corner joining two straight lines. A pole bends the gain down by 20 dB per decade and pulls the phase down by 90°; a zero does the opposite. Because the dB of a product is a sum, you can sketch any response by adding the straight lines of its poles and zeros, which engineers do in seconds on paper, and which shows at a glance what a circuit does.
Play
- The response has a gain K, two poles and a zero. Move the poles apart. Count the slope between and beyond them.
- Bring the zero down between the poles. What happens to the slope after it?
- Read the gain at each corner. How far is the true curve from where the straight lines meet?
Predict
A response is flat at 40 dB, with poles at 100 Hz and 10 kHz. What does the straight-line sketch give at 100 kHz?
−40 dB. From 100 Hz to 10 kHz is two decades at −20 dB per decade, which brings the gain from 40 dB down to 0 dB. Above 10 kHz both poles act, so the gain falls 40 dB per decade, reaching −40 dB at 100 kHz. Counting decades and adding slopes is all a Bode sketch takes.
Name it
Sketching a Bode plot
Why straight lines. For one pole, :
- for , : a flat line at 0 dB;
- for , : a line falling 20 dB for every decade (6 dB per octave);
- the two meet at , where the true curve is 3 dB below.
Phase of one pole: 0° well below , −45° at , −90° well above. As a sketch: a straight ramp from 0° at to −90° at (within about 6°).
Zeros do the same upside down: +20 dB per decade and +90°.
The recipe:
- Write H as factors of the form over .
- Start at dB on the left.
- Going right, at each pole's corner the slope drops by 20 dB per decade; at each zero's it rises by 20.
- Add 90° of phase lag per pole, spread over two decades around its corner; 90° of lead per zero.
Repeated poles (two at the same frequency) give −40 dB per decade at once, and 6 dB below the straight lines at the corner.
Reading slopes. A slope of −20n dB per decade at high frequencies means there are n more poles than zeros. The final phase is −90° per excess pole.
Worked example
Sketch and read it at 50 kHz.
Show the solution
- Start at the DC gain. The sketch starts at 40 dB.
- First pole. From 100 Hz it falls 20 dB per decade, reaching 20 dB at 1 kHz.
- Zero. The zero flattens it until 10 kHz.
- Second pole. Then it falls 20 dB per decade again, so at 50 kHz
- Check. The exact value is 5.9 dB.
Answer the sketch reads 6.0 dB at 50 kHz, and the exact value is 5.9 dB.
Worked example
A single pole sits at 1 kHz. Compare the straight-line phase sketch with the true phase at 300 Hz.
Show the solution
- Straight-line sketch. The sketch ramps 45° per decade from 0° at 100 Hz, so at 300 Hz it gives
- True phase.
- Compare. The two agree within the 6° the sketch promises.
Answer the sketch gives −21.5° at 300 Hz and the true phase is −16.7°.
Worked example
A lead network has . At what frequency is its phase lead largest, and how large?
Show the solution
- What adds phase and what takes it. The zero adds phase from 100 Hz to 10 kHz, and the pole takes it away from 1 kHz to 100 kHz.
- Where the lead peaks. Midway between them on a log scale:
- Peak lead. There
- Check. It equals
- Where it's used. Control engineers place exactly such networks so their peak lead falls at a loop's crossover, buying phase margin.
Answer the lead is largest at 3.16 kHz, where it reaches 54.9°.
Check
A response has 4 poles and 1 zero(s). What is its slope far above all the corners?
Check
A response starts flat at 40 dB with one pole at 0.1 kHz. Using straight lines, what is the gain 2 decade(s) above the pole?
Check
A response flat at 20 dB has a single pole at 1 kHz (and nothing else nearby). What is the true gain at 1 kHz?
Check
A response has poles at 1 kHz and 20 kHz. What is its phase at 6 kHz?
Check
A response flat at 40 dB has a pole at 0.1 kHz and a second pole exactly 3 decades higher. Using straight lines, what is the gain at the second pole's corner?
Check
A lead network has a zero at 0.1 kHz and a pole 4 times higher.
(a)
Where is its phase lead largest?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
(b)
How large is that lead?
Check
A network with a zero at a and a pole at b (both Hz), at frequency f.
Step 1
What's its phase, in radians?
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°.
Step 2
Where is the phase extreme?
Step 3
What's the phase there?
Check
Write bode_db(k, zeros, poles, f) returning the exact gain in dB of , and asymptote_db(k, zeros, poles, f) returning the straight-line sketch: , plus 20 dB per decade above each zero, minus 20 dB per decade above each pole.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Explain why
Why can a Bode plot be sketched by adding straight-line contributions from each pole and zero?
A transfer function is a product of factors, one for each pole and zero. On a log scale the magnitude of a product becomes the sum of the magnitudes of the factors, and the phase of a product is the sum of their phases. Each factor's magnitude in dB is almost exactly flat well below its corner and a straight line of ±20 dB per decade well above it, so the whole plot is a sum of straight lines, bending at each corner, with small corrections near the corners.
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.