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 b > 0 , b 1 , and u , v > 0 .

Rule name Formula
Product Rule log b ( u v ) = log b u + log b v
Quotient Rule log b ( u / v ) = log b u log b v
Power Rule log b ( u n ) = n log b u
Zero Rule log b 1 = 0
Identity Rule log b b = 1
Reciprocal Rule log b ( 1 / u ) = log b u
Change of Base log b u = log c u log c b

Definition: What Is a Logarithm?

If we raise a number b > 0 ( b 1 ) to a power r and obtain u , then r is called the logarithm of u to the base b , written r = log b u . In other words, the two equations

u=b^{r} \tag{a}r=\log_{b}u \tag{b}

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

u = b r r = log b u

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 2 3 = 8 and 10 4 = 0.0001 , we have

log 2 8 = 3 and log 10 0.0001 = 4.

More examples of converting between exponential and logarithmic form:

Exponential form Logarithmic form
5 2 = 25 log 5 25 = 2
3 0 = 1 log 3 1 = 0
b 1 = b log b b = 1
4 1 = 1 4 log 4 1 4 = 1

Why u , the Input of a Logarithm, Must Be Positive

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

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, log b undoes b ( ) :

b log b u = u and log b ( b r ) = r .

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
log b ( u v ) = log b u + log b v Product Rule: b r + s = b r b s
log b ( u / v ) = log b u log b v Quotient Rule: b r s = b r / b s
log b ( u n ) = n log b u Power Rule: ( b r ) s = b r s
log b 1 = 0 Zero Exponent Rule: b 0 = 1
log b b = 1 b 1 = b

Common Logarithm and Natural Logarithm

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

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

All logarithm rules in this section apply to both log and ln , since they are simply log b with b = 10 and b = e 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: log b ( u v ) = log b u + log b v
  2. Quotient Rule: log b ( u / v ) = log b u log b v
  3. Power Rule: log b ( u n ) = n log b u
  4. Zero Rule: log b 1 = 0
  5. Reciprocal Rule: log b ( 1 / u ) = log b u

We assume b > 0 , b 1 , and u , v > 0 throughout.

Product Rule: log b ( u v ) = log b u + log b v

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

Proof Let p = log b u and q = log b v , so u = b p and v = b q . By the Product Rule for exponents: u v = b p b q = b p + q . Converting back to logarithmic form: log b ( u v ) = p + q = log b u + log b v .

Quotient Rule: log b ( u / v ) = log b u log b v

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

Proof With p = log b u and q = log b v , so u = b p and v = b q . By the Quotient Rule for exponents: u v = b p b q = b p q . Converting back: log b ( u / v ) = p q = log b u log b v .

Power Rule: log b ( u n ) = n log b u

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

Proof Let p = log b u , so u = b p . By the Power Rule for exponents: u n = ( b p ) n = b p n . Converting back: log b ( u n ) = p n = n log b u .

Zero Rule: log b 1 = 0

The logarithm of $1$ is always $0$, regardless of the base.

Proof We need the exponent r such that b r = 1 . By the Zero Exponent Rule, b 0 = 1 , so r = 0 . Therefore log b 1 = 0 .

Reciprocal Rule: log b ( 1 / u ) = log b u

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

Proof This follows immediately from the Quotient Rule with v = u , using log b 1 = 0 : log b ( 1 / u ) = log b 1 log b u = 0 log b u = log b u . Alternatively, it follows from the Power Rule with n = 1 : log b ( u 1 ) = 1 log b u = log b u .

Frequently Asked Questions

Why must the base b satisfy b 1 ? If b = 1 , then b r = 1 r = 1 for every real number r . This means the equation 1 r = u has no solution when u 1 , and infinitely many solutions when u = 1 . Either way, a unique logarithm cannot be defined.
What is the difference between log and ln ? log (written without a base) denotes the common logarithm, base $10$: log u = log 10 u . ln denotes the natural logarithm, base e 2.71828 : ln u = log e u . 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) log b u = log c u log c b for any valid base c > 0 , c 1 . In practice, c = 10 or c = e is used, since most calculators provide only log and ln buttons. For example, log 2 5 = log 5 log 2 0.699 0.301 2.322 .
Proof of the Change of Base Formula Let r = log b u , so u = b r . Taking log c of both sides and applying the Power Rule: log c u = log c ( b r ) = r log c b . Solving for r : r = log c u log c b , which is the Change of Base Formula.
Why can't you take the logarithm of a negative number? Since b > 0 , the exponential b r is always positive for every real r . There is no real exponent r that makes b r negative, so log b u has no real value when u 0 . (In complex analysis, logarithms of negative numbers can be defined, but they are not real-valued.)
Is log b ( u + v ) equal to log b u + log b v ? No. The Product Rule says log b ( u v ) = log b u + log b v — it applies to a product inside the log, not a sum. There is no simple formula for log b ( u + v ) .

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