The Logarithm

A logarithm is the inverse operation of exponentiation. It answers the question "to what power must I raise the base to obtain this number?" Logarithms appear throughout mathematics, science, and engineering: the pH scale, decibel levels, the Richter scale, and compound interest formulas all rely on them. This section introduces the definition and the five core logarithm rules (also called log rules or properties of logarithms).

Quick Reference: Logarithm Rules Chart

The table below summarizes the logarithm rules covered in this section. Here , , and .

Rule name Formula
Product Rule
Quotient Rule
Power Rule
Zero Rule
Identity Rule
Reciprocal Rule
Change of Base

Definition: What Is a Logarithm?

If we raise a number () to a power and obtain , then is called the logarithm of to the base , written . In other words, the two equations

are simply two different ways of expressing the same relationship between , , and :

Equation (a) is the exponential form; equation (b) is the logarithmic form. Converting fluently between them is the key skill for working with logarithms.

Examples

Because and , we have

More examples of converting between exponential and logarithmic form:

Exponential form Logarithmic form

Why , the Input of a Logarithm, Must Be Positive

Because , we have for every real number . Therefore is only defined when ; the logarithm of a non-positive number does not exist (as a real number). The condition is also required: if then for all , making it impossible to recover from .

Logarithms and Exponents: Two Sides of the Same Coin

A logarithm is the inverse of an exponent. Just as subtraction undoes addition and division undoes multiplication, undoes :

This inverse relationship is why every logarithm rule corresponds exactly to one of the laws of exponents from the previous section. The table below makes the correspondence explicit.

Logarithm rule Corresponding exponent law
Product Rule:
Quotient Rule:
Power Rule:
Zero Exponent Rule:

Common Logarithm and Natural Logarithm

Two bases appear so frequently that they have their own notation:

  • Common logarithm (base 10): is written simply as (no base written). It is the logarithm used in pH chemistry, the Richter scale, and decibel measurements. On a calculator it is the button.
  • Natural logarithm (base ): is written as . Here is Euler's number. The natural logarithm appears throughout calculus, physics, and probability. On a calculator it is the button.

All logarithm rules in this section apply to both and , since they are simply with and respectively.

Properties of Logarithms

The following five properties follow immediately from the definition. In each case the proof translates the logarithm statement into exponential form, applies one of the laws of exponents, then converts back.

  1. Product Rule:
  2. Quotient Rule:
  3. Power Rule:
  4. Zero Rule:
  5. Reciprocal Rule:

We assume , , and throughout.

Product Rule:

The logarithm of a product equals the sum of the logarithms.

Proof Let and , so and . By the Product Rule for exponents: Converting back to logarithmic form: .

Quotient Rule:

The logarithm of a quotient equals the difference of the logarithms.

Proof With and , so and . By the Quotient Rule for exponents: Converting back: .

Power Rule:

An exponent inside a logarithm can be moved out as a multiplier.

Proof Let , so . By the Power Rule for exponents: Converting back: .

Zero Rule:

The logarithm of is always , regardless of the base.

Proof We need the exponent such that . By the Zero Exponent Rule, , so . Therefore .

Reciprocal Rule:

The logarithm of a reciprocal is the negative of the logarithm.

Proof This follows immediately from the Quotient Rule with , using : Alternatively, it follows from the Power Rule with : .

Frequently Asked Questions

Why must the base satisfy ? If , then for every real number . This means the equation has no solution when , and infinitely many solutions when . Either way, a unique logarithm cannot be defined.
What is the difference between and ? (written without a base) denotes the common logarithm, base : . denotes the natural logarithm, base : . Both satisfy all the logarithm rules above. The natural logarithm is preferred in calculus because its derivative takes a particularly simple form.
How do you convert a logarithm from one base to another? (Change of Base Formula) for any valid base , . In practice, or is used, since most calculators provide only and buttons. For example, .
Proof of the Change of Base Formula Let , so . Taking of both sides and applying the Power Rule: Solving for : which is the Change of Base Formula.
Why can't you take the logarithm of a negative number? Since , the exponential is always positive for every real . There is no real exponent that makes negative, so has no real value when . (In complex analysis, logarithms of negative numbers can be defined, but they are not real-valued.)
Is equal to ? No. The Product Rule says — it applies to a product inside the log, not a sum. There is no simple formula for .

We will study logarithms in more detail including graphs, equations, and applications in Section: Logarithmic Functions.