calcolatore.online

Logarithm Calculator

Calculate the logarithm of a number in any base. Also shows natural log (ln), log base 10, and log base 2.

How to Calculate Logarithms

This calculator determines the logarithm of a number in any base, also showing the natural log (ln), common log (log10), and binary log (log2).

The Definition of Logarithm

The logarithm is the inverse operation of exponentiation. If b^x = n, then log_b(n) = x. In simple terms, the logarithm answers the question: "to what power must I raise the base to get this number?"

The Three Main Logarithms

Natural logarithm (ln) -- base e = 2.71828. The number e (Euler's number) is fundamental in calculus and describes continuous growth. The natural log is used in differential calculus, probability, and physics.

Common logarithm (log10) -- base 10. The most intuitive for those who use the decimal system. Used for the decibel scale (acoustics), pH scale (chemistry), and Richter scale (seismology).

Binary logarithm (log2) -- base 2. Fundamental in computer science: it indicates how many bits are needed to represent a number. log2(256) = 8, meaning 8 bits are needed for 256 values.

The Change of Base Formula

To calculate a logarithm in an arbitrary base, use the formula:

log_b(n) = ln(n) / ln(b)

This formula, known as the "change of base formula," allows converting any logarithm to the natural or common logarithm.

Properties of Logarithms

  • log(a x b) = log(a) + log(b) -- the log of a product is the sum of logs
  • log(a / b) = log(a) - log(b) -- the log of a quotient is the difference
  • log(a^n) = n x log(a) -- the log of a power brings the exponent out

These properties transform multiplications into additions, divisions into subtractions, and powers into multiplications.

Frequently Asked Questions

What is a logarithm?
The logarithm in base b of a number n (written log_b(n)) is the exponent to which b must be raised to obtain n. In formula: if b^x = n, then log_b(n) = x. For example, log10(1000) = 3 because 10^3 = 1000.
What is the difference between ln, log10, and log2?
The natural logarithm (ln) uses base e = 2.718 and is fundamental in calculus. The common logarithm (log10) uses base 10 and is used in chemistry (pH) and acoustics (decibels). The binary logarithm (log2) uses base 2 and is fundamental in computer science.
Why is the logarithm not defined for negative numbers or zero?
The logarithm log_b(n) asks: "to what exponent must I raise b to get n?" Since a positive base raised to any real exponent always gives a positive result, it is impossible to obtain zero or negative numbers. That is why the logarithm is defined only for n > 0.