A logarithmic scale (or log scale) is a way of displaying numerical data over a very wide range of values in a compact way. As opposed to a linear number line in which every unit of distance corresponds to adding by the same amount, on a logarithmic scale, every unit of length corresponds to multiplying the previous value by the same amount. Hence, such a scale is nonlinear: the numbers 1, 2, 3, 4, 5, and so on, are not equally spaced. Rather, the numbers 10, 100, 1000, 10000, and 100000 would be equally spaced. Likewise, the numbers 2, 4, 8, 16, 32, and so on, would be equally spaced. Often exponential growth curves are displayed on a log scale, otherwise they would increase too quickly to fit within a small graph.
The markings on slide rules are arranged in a log scale for multiplying or dividing numbers by adding or subtracting lengths on the scales.
The following are examples of commonly used logarithmic scales, where a larger quantity results in a higher value:
The following are examples of commonly used logarithmic scales, where a larger quantity results in a lower (or negative) value:
Some of our senses operate in a logarithmic fashion (Weber–Fechner law), which makes logarithmic scales for these input quantities especially appropriate. In particular, our sense of hearing perceives equal ratios of frequencies as equal differences in pitch. In addition, studies of young children in an isolated tribe have shown logarithmic scales to be the most natural display of numbers in some cultures.^{[1]}
The top left graph is linear in the X and Y axes, and the Y-axis ranges from 0 to 10. A base-10 log scale is used for the Y axis of the bottom left graph, and the Y axis ranges from 0.1 to 1,000.
The top right graph uses a log-10 scale for just the X axis, and the bottom right graph uses a log-10 scale for both the X axis and the Y axis.
Presentation of data on a logarithmic scale can be helpful when the data:
A slide rule has logarithmic scales, and nomograms often employ logarithmic scales. The geometric mean of two numbers is midway between the numbers. Before the advent of computer graphics, logarithmic graph paper was a commonly used scientific tool.
Main article: Log–log plot |
If both the vertical and horizontal axes of a plot are scaled logarithmically, the plot is referred to as a log–log plot.
Main article: Semi-log plot |
If only the ordinate or abscissa is scaled logarithmically, the plot is referred to as a semi-logarithmic plot.
A modified log transform can be defined for negative input (y<0) and to avoid the singularity for zero input (y=0) so as to produce symmetric log plots:^{[2]}^{[3]}
for a constant C=1/ln(10).
A logarithmic unit is a unit that can be used to express a quantity (physical or mathematical) on a logarithmic scale, that is, as being proportional to the value of a logarithm function applied to the ratio of the quantity and a reference quantity of the same type. The choice of unit generally indicates the type of quantity and the base of the logarithm.
Examples of logarithmic units include units of information and information entropy (nat, shannon, ban) and of signal level (decibel, bel, neper). Frequency levels or logarithmic frequency quantities have various units are used in electronics (decade, octave) and for music pitch intervals (octave, semitone, cent, etc.). Other logarithmic scale units include the Richter magnitude scale point.
In addition, several industrial measures are logarithmic, such as standard values for resistors, the American wire gauge, the Birmingham gauge used for wire and needles, and so on.
Further information: Level (logarithmic quantity) |
Unit | Base of logarithm | Underlying quantity | Interpretation |
---|---|---|---|
bit | 2 | number of possible messages | quantity of information |
byte | 2^{8} = 256 | number of possible messages | quantity of information |
decibel | 10^{(1/10)} ≈ 1.259 | any power quantity (sound power, for example) | sound power level (for example) |
decibel | 10^{(1/20)} ≈ 1.122 | any root-power quantity (sound pressure, for example) | sound pressure level (for example) |
semitone | 2^{(1/12)} ≈ 1.059 | frequency of sound | pitch interval |
The two definitions of a decibel are equivalent, because a ratio of power quantities is equal to the square of the corresponding ratio of root-power quantities.^{[citation needed]}