Calculates the logarithm to the given base as log_b x = ln x ÷ ln b, the power to which b must be raised to give x. The common logarithm (base 10) and the natural logarithm (base e) are also shown.
Explanation
A logarithm answers one question: to what power must the base be raised to give this number? Writing logbx=y says exactly the same thing as by=x. The logarithm undoes the power.
logbx=y⟺by=x A logarithm to any base can be rebuilt from natural logarithms through the change of base formula, which is what this calculator does internally.
logbx=lnblnx - x — the value, which must be positive
- b — the base, positive and not equal to 1
- log10x — the common logarithm, base 10
- lnx — the natural logarithm, base e≈2.71828
Example
Take x=8 with base b=2. Since 2 cubed is 8,
log28=3 The change of base formula agrees: ln2ln8=0.69312.0794=3. The calculator also shows log108≈0.9031 and ln8≈2.0794.
Notes
- The value x must be positive. No power of a positive base ever reaches zero or turns negative, so the logarithm of such a number is not a real number, and the calculator rejects it.
- The base must be positive and not 1. Every power of 1 is 1, so base 1 could never produce anything else.
- logb1=0 and logbb=1, whatever the base happens to be.
- For 0<x<1 with a base above 1, the logarithm is negative: log100.01=−2.
- Logarithms turn multiplication into addition, since logb(xy)=logbx+logby. That property is what made them indispensable before calculators existed.