Understanding Logarithms - Complete Guide

Learn what logarithms are, how they work, and how to use them. Covers log rules, common and natural logarithms, change of base, and real-world applications.

What Is a Logarithm?

A logarithm answers the question: "To what power must a given base be raised to produce a certain number?" If b^x = y, then log_b(y) = x. For example, since 2^3 = 8, we know that log_2(8) = 3. The base b must be a positive number other than 1, and the argument y must be positive. Logarithms are the inverse operation of exponentiation, just as subtraction is the inverse of addition and division is the inverse of multiplication. They were originally invented by John Napier in the early 1600s to simplify complex multiplications and divisions in astronomy and navigation.

Common and Natural Logarithms

The two most frequently used logarithm bases are 10 and e. The common logarithm (base 10), written as log(x) or log₁₀(x), is used in engineering, chemistry (pH scale), acoustics (decibels), and seismology (Richter scale). For example, log(1000) = 3 because 10³ = 1000. The natural logarithm (base e, where e is approximately 2.71828), written as ln(x), is dominant in calculus, physics, and pure mathematics because it has elegant properties related to rates of growth. For instance, ln(e) = 1 and ln(1) = 0. Most scientific calculators have dedicated buttons for both log and ln.

Key Logarithm Rules

Logarithms obey three fundamental rules that mirror the properties of exponents. The product rule: log_b(xy) = log_b(x) + log_b(y). Multiplying inside the logarithm becomes adding outside, which is how logarithms originally simplified multiplication into addition. The quotient rule: log_b(x/y) = log_b(x) - log_b(y). Division becomes subtraction. The power rule: log_b(x^n) = n * log_b(x). An exponent inside becomes a coefficient outside. These three rules, combined with the facts that log_b(1) = 0 and log_b(b) = 1, allow you to simplify, expand, or condense virtually any logarithmic expression.

Change of Base Formula

Sometimes you need a logarithm in a base that your calculator does not have. The change of base formula lets you convert: log_b(x) = log_c(x) / log_c(b), where c can be any convenient base. Most commonly, you convert to base 10 or base e: log_b(x) = log(x) / log(b) = ln(x) / ln(b). For example, log_2(100) = log(100) / log(2) = 2 / 0.3010 = approximately 6.644. This formula is essential for programming, where languages typically provide only log (base 10) and ln (base e), and you need to compute logs in other bases like 2 (common in computer science).

Solving Logarithmic Equations

To solve an equation involving logarithms, the general strategy is to isolate the logarithm and then convert to exponential form. For example, to solve log_3(x) = 4, rewrite as 3^4 = x, so x = 81. For equations like log(x) + log(x - 3) = 1, use the product rule to combine: log(x(x - 3)) = 1, then convert to 10^1 = x² - 3x, giving x² - 3x - 10 = 0, which factors as (x - 5)(x + 2) = 0. Since the argument of a logarithm must be positive, x = 5 is the valid solution and x = -2 is rejected. Always check your solutions in the original equation to catch extraneous roots introduced by the algebraic manipulation.

Logarithmic Scales

Logarithmic scales are used when data spans many orders of magnitude. The Richter scale for earthquakes is logarithmic: each whole number increase represents a tenfold increase in seismic wave amplitude and roughly a 31.6-fold increase in energy. The pH scale in chemistry is based on the negative common logarithm of hydrogen ion concentration: pH = -log[H+]. The decibel scale for sound intensity uses dB = 10 * log(I/I₀). Logarithmic scales compress enormous ranges into manageable numbers, making it possible to compare quantities that differ by factors of millions or billions on a single graph.

Logarithms in Calculus

The natural logarithm plays a central role in calculus. The derivative of ln(x) is 1/x, one of the simplest and most important derivative formulas. The integral of 1/x is ln|x| + C, which fills the gap left by the power rule (since the power rule for x^(-1) would require dividing by zero). Logarithmic differentiation is a technique where you take the natural log of both sides of an equation to simplify complicated products, quotients, and variable exponents before differentiating. The natural logarithm also appears in the solutions to differential equations modeling exponential growth, radioactive decay, and cooling.

Real-World Applications

Beyond the scales mentioned above, logarithms appear throughout science and engineering. In information theory, the Shannon entropy of a message is computed using logarithms (base 2, in bits). In finance, the continuously compounded return on an investment is calculated using natural logarithms. In biology, the growth of bacterial populations follows exponential models whose analysis requires logarithms. In computer science, the time complexity of binary search and many divide-and-conquer algorithms is O(log n), where n is the input size. Understanding logarithms is essential for anyone working with data, signals, or systems that involve exponential relationships.

Try These Calculators

Put what you learned into practice with these free calculators.

Try It Yourself

Put what you learned into practice with our free graphing calculator.

Related Graphs