Home / Math / Logarithm

Logarithm Calculator

Result:
2
log10(100) = 2

Calculation Explanation:

The logarithm asks: To what power must we raise the base b to equal x?
by = x
Since 102 = 100, the log is 2.

Detailed Guide to Logarithms

Logarithms are one of the fundamental concepts in algebra, serving as the inverse operation to exponentiation. While exponents allow us to calculate the result of raising a number to a power (e.g., 23 = 8), logarithms allow us to find the power itself (e.g., log2 8 = 3).

They are essential in various fields, including computer science (measuring algorithm efficiency), physics (measuring sound in decibels), chemistry (pH scale), and finance (compound interest).

Definition of a Logarithm

The logarithm of a number x with base b is the exponent to which b must be raised to produce x.

If by = x, then logb(x) = y

Key Conditions:

  • The Base b must be positive and not equal to 1 (b > 0, b ≠ 1).
  • The Argument x must be a positive number (x > 0).

Types of Logarithms

While a logarithm can have any valid base, three specific bases are used so frequently that they have their own notation:

Type Notation Base Common Use
Common Logarithm log(x) 10 Science, Engineering, pH, Richter Scale
Natural Logarithm ln(x) e (2.718) Calculus, Physics, Biology, Finance
Binary Logarithm log₂(x) 2 Computer Science, Information Theory

Logarithm Rules & Properties

Knowing these rules makes solving logarithmic equations much easier:

  • Product Rule: logb(M · N) = logb M + logb N
  • Quotient Rule: logb(M / N) = logb M - logb N
  • Power Rule: logb(Mp) = p · logb M
  • Identity Rule: logb b = 1
  • Zero Rule: logb 1 = 0

Change of Base Formula

Most physical calculators only have buttons for log (base 10) and ln (base e). To calculate a log with a different base, such as log2 8, you use the Change of Base Formula:

logb(x) = ln(x) / ln(b)

Frequently Asked Questions (FAQ)

1. Why can't I take the log of a negative number?
Because there is no power to which you can raise a positive base to get a negative number. The result of by is always positive for any real number y.
2. What is the value of ln(e)?
The value is 1. Since the base of the natural log (ln) is e, you are asking "to what power must I raise e to get e?". The answer is 1.
3. What is the difference between log and ln?
log usually refers to base 10, while ln refers to base e (approx 2.718). They function the same way, just with different scaling factors.