A1 · Lesson 9 · Log scales
Power laws are straight lines on log-log axes
Open almost any datasheet and the graphs have strange axes: 10, 100, 1k, 10k, evenly spaced. A filter's response, a capacitor's impedance against frequency, a transistor's gain against current, all on log scales. They're used because they let one picture span many decades. They also turn the most common relationship in engineering, the power law, into a straight line whose slope you can read off with a ruler.
Play
- Both axes are logarithmic. The curve is .
- Set to 2, then to 1, then to −1. What shape do you get each time?
- Change . What does it do to the line, and what does it leave alone?
Predict
On log-log axes, is a straight line. How many decades does it climb for each decade it moves right?
Two. Multiplying by 10 multiplies by 100, which is two decades. On log-log axes the slope of a power law, measured in decades per decade, is its exponent. Changing slides the line up or down without tilting it.
Name it
Equal distances mean equal ratios
On a log scale, a number sits at the position of its logarithm. So the distance between two points depends only on their ratio: 1 to 10, 10 to 100 and 3 to 30 are all the same length. Two ratios get their own names:
- a decade is a factor of 10;
- an octave is a factor of 2 (from music, where an octave doubles the pitch).
Counting them is taking a logarithm:
One octave is 0.301 decade, and one decade is 3.32 octaves. Audio runs from 20 Hz to 20 kHz: three decades, or about ten octaves.
Reading a log axis. Inside one decade, a number times the decade's start sits of the way across: 2 is 30% of the way, 3 is 48%, 5 is 70%. That's why the gridlines bunch up toward the right end of each decade.
The middle of a log axis is the geometric mean. Halfway between and is the number with the same ratio to each:
Halfway between 100 Hz and 10 kHz is 1 kHz, nowhere near the arithmetic mean of 5050 Hz. The center frequency of a band-pass filter is defined this way.
Power laws are straight lines. Take the logarithm of :
On log-log axes that's a straight line with slope , measured in decades of per decade of . A few you'll meet constantly:
- against : slope 2;
- a capacitor's impedance, , against : slope −1, falling one decade per decade;
- the field of a point charge against distance: slope −2, the inverse-square law.
To find the exponent from a graph, pick two points on the line and divide: .
Exponentials want a different plot. is straight on axes with a log and a linear (a semi-log plot), since . That's how a capacitor's discharge or a radioactive decay is checked against theory.
Worked example
A filter's response is plotted from 10 Hz to 100 kHz. How many decades and octaves does the axis span, and what frequency sits in the middle?
Show the solution
- Decades.
- Octaves. Each decade is 3.32 octaves:
- Middle. The middle is the geometric mean: On the page, 1 kHz sits exactly halfway across, two decades from each end.
Answer the axis spans 4 decades, or 13.3 octaves, and 1 kHz sits in the middle.
Worked example
On a log-log plot, a part's impedance falls in a straight line from 1.59 kΩ at 100 Hz to 15.9 Ω at 10 kHz. What's the slope, and what is the part?
Show the solution
- Slope.
- Name the part. Impedance falling as is a capacitor's signature, .
- Solve for C. Either point works; at 100 Hz,
Answer the slope is −1, and the part is a 1.00 µF capacitor.
Worked example
A capacitor discharging through a resistor is plotted on semi-log axes. Its voltage falls from 10 V to 1 V in 23 ms. What's the time constant?
Show the solution
- Time for a tenfold fall. For , a fall by a factor of 10 takes
- Solve for the time constant.
- Read the plot. On the semi-log plot, every decade of fall takes the same 23 ms.
- Check the line. If the points bent away from a straight line, the discharge wouldn't be a single exponential: a leaky capacitor could do that, or a resistor whose value changes with voltage.
Answer the time constant is 10.0 ms.
Check
A frequency response is plotted from 20 Hz to 20 kHz. How many decades does the axis span?
Check
How many octaves are there from 220 Hz to 1000 Hz?
Check
What frequency sits halfway between 20 Hz and 1000 Hz on a log axis?
Check
A log axis runs from 1 to 10 over 10 cm. How many centimeters from its left end is the 4?
Check
On log-log axes, a straight line passes through = 20, = 5 and = 200, = 0.05. It's a power law . What is ?
Check
Which axes make a straight line?
Explain why
Explain why changing in moves the line on log-log axes without changing its slope.
On log-log axes the line is . The slope is the factor in front of , which is . The constant only adds to every point, so it lifts or lowers the whole line by the same number of decades everywhere without tilting it.
Practice
Keep practicing
11 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.