EngineerPlay

Decibels and logarithms: practice problems

A gain in decibels is G = 10 × log₁₀ of a power ratio, or 20 × log₁₀ of a voltage ratio. Because decibels are logarithms, stages in a row simply add: a 30 dB amplifier and a 6 dB cable give 24 dB in all.

log₁₀ of a power of ten, a power ratio in decibels (10 log), and reading a point on a log-scale axis.

The diagram shows the power going into and coming out of an amplifier. What is its gain in decibels (a loss is negative), in dB?

One stage with the power going in and coming outLabels shown, in drawing order: P_in = 1 mW, Amplifier, G = ?, P_out = 100 mW.P_in = 1 mWAmplifierG = ?P_out = 100 mW

How to solve these

Logs. log₁₀ x is the power you raise 10 to, to get x: log₁₀ 1,000 = 3 and log₁₀ 0.01 = −2. The log of a product is the sum of the logs, so with log₁₀ 2 ≈ 0.301, log₁₀ 200 = 0.301 + 2 = 2.301 and log₁₀ 5 = 1 − 0.301 = 0.699.

Decibels. A power ratio is G = 10 × log₁₀(P_out ÷ P_in); a voltage ratio is G = 20 × log₁₀(V_out ÷ V_in). Back the other way, a power ratio is 10^(G ÷ 10) and a voltage ratio 10^(G ÷ 20). Rules of thumb: +3 dB doubles the power, +6 dB doubles the voltage, +10 dB is × 10 in power and +20 dB is × 10 in voltage. A loss is a negative gain.

dBm and chains. dBm is a power against 1 mW: 1 mW = 0 dBm, 1 W = 30 dBm. Through a chain, the output in dBm is the input in dBm plus the sum of every gain, with cable and attenuator losses counted as minus.

Plots on a log axis. Each decade (a factor of 10 in frequency) is the same length. A filter's cut-off is where the gain has fallen 3 dB below the pass band, half the power; past it the gain falls 20 dB per decade for each order of the filter.

Worked example

Using log₁₀ 2 ≈ 0.301, work out log₁₀(0.4).

A card with a logarithm to work out, and the table value of log 2Labels shown, in drawing order: log₁₀(0.4) = ?, log₁₀ 2 ≈ 0.301.log₁₀(0.4) = ?log₁₀ 2 ≈ 0.301
Show the working
  1. Split the number into a table value and a power of ten: 0.4 = 4 × 0.1.
  2. Work it out: log₁₀(0.4) = log₁₀(4) − 1 ≈ 2 × 0.301 − 1 = −0.398.
  3. Check: the log lies between the logs of the powers of ten either side of the number. Answer: −0.398.
Why not the others?
  • −1 Uses only the power of ten and leaves out the table value.

Remember: log₁₀ x is the power of ten that gives x; the log of a product is the sum of the logs, of a quotient the difference. Formula sheet

Questions

When do you use 10 log and when 20 log?

Use 10 × log₁₀ for powers (and sound intensities) and 20 × log₁₀ for voltages or currents. A voltage ratio of 10 is 20 dB, which is the same as a power ratio of 100, because power goes with the voltage squared.

How do you add gains in decibels?

Add them, counting each loss as a minus: +20 dB, then −6 dB of cable and −3 dB of splitter is +11 dB in all. In ratios that is the same as multiplying the stages' ratios together.

What is dBm?

A power measured against 1 milliwatt: P_dBm = 10 × log₁₀(P ÷ 1 mW). So 1 mW is 0 dBm, 100 mW is 20 dBm, 1 W is 30 dBm and 1 µW is −30 dBm.

How are these answers checked?

Each question is generated fresh and its answer computed by code. A separate test reads the drawing (labels, stages, the log axis, the gain curve) and works each answer out another way, for example multiplying the stages' ratios or finding the half-power point on the drawn curve.