Mathematics – What is the Logarithm of a Kilometer? Is it a Dimensionless Number?

dimensional analysismathematicssi-unitsunits

In log-plots a quantity is plotted on a logarithmic scale. This got me thinking about what the logarithm of a unit actually is.

Suppose I have something with length $L = 1 \:\mathrm{km}$.

$\log L = \log \mathrm{km}$

It seems that the unit of $\log L$ is $\log \mathrm{km}$, but I can also say $L = 1000 \mathrm{\:m}$ and now:

$\log L = 3 + \log \mathrm{m}$

This doesn't appear to have any units at all.

This suggests that $\log \mathrm{km}$ and $\log \mathrm{m}$ are actually dimensionless numbers. But wait, I can do this with any unit! Does it actually make sense to talk about the logarithm of a unit, or some other function for that matter?

Best Answer

Yes, logarithms always give dimensionless numbers, but no, it's not physical to take the logarithm of anything with units.

Instead, there is always some standard unit. For your example, the standard is the kilometer. Then 20 km, under the log transformation, becomes $\ln(20\;\textrm{km}\;/\;\textrm{km}\;)$. Similarly, the log of 10 cm, with this scale is
$$\ln(10\;\textrm{cm}\;/10\;\textrm{km}\;) = \ln(10\times 10^{-3} / 10^{3}) = \ln(10^{-5})$$