What a Logarithm Is (and How the Log Rules Work)

A logarithm answers one question: what exponent do I need? log₂ 8 asks “2 to what power is 8?” The answer is 3, because 2³ = 8. Every log rule and every log equation comes back to that.

The definition

logb(x) = y means by = x.

The base b must be positive and not 1, and x must be positive. Being able to switch between the two forms is the most useful log skill there is.

Log formExponential formValue
log₂ 82³ = 83
log₁₀ 100010³ = 10003
log₅ (1/25)5−2 = 1/25−2
log₄ 241/2 = 2½
logb 1b⁰ = 10
logb bb¹ = b1

Two bases get their own names. log x with no base written means base 10. ln x, the natural log, means base e, where e ≈ 2.718. Your calculator has a button for each.

The log rules

Because logs are exponents, they follow the exponent rules in a different outfit.

RuleStatementComes from
Productlogb(MN) = logb M + logb NMultiply powers, add exponents
Quotientlogb(M/N) = logb M − logb NDivide powers, subtract exponents
Powerlogb(Mk) = k · logb MPower of a power, multiply exponents
Change of baselogb x = ln x / ln bLets a calculator handle any base

Example Expand log(x²y/z)

  1. Quotient rule: log(x²y) − log z.
  2. Product rule: log(x²) + log y − log z.
  3. Power rule: 2 log x + log y − log z.

Example Condense 3 log₂ x − log₂ 4

  1. Power rule: log₂(x³) − log₂ 4.
  2. Quotient rule: log₂(x³/4).

Example Find log₂ 10 with a calculator

Change of base: ln 10 / ln 2 ≈ 2.3026 / 0.6931 ≈ 3.32. Check: 23.32 ≈ 10. ✓

Solving exponential equations

When the variable is in the exponent, first try to write both sides with the same base. If you can’t, take a log of both sides.

Example Solve 5 · 2x = 40

  1. Divide by 5: 2x = 8.
  2. 8 = 2³, so x = 3.

Example Solve 3x = 20

  1. 20 isn’t a power of 3, so take ln of both sides: ln(3x) = ln 20.
  2. Power rule: x · ln 3 = ln 20.
  3. Divide: x = ln 20 / ln 3 ≈ 2.9957 / 1.0986 ≈ 2.73.

Solving log equations

Get a single log on one side, then rewrite in exponential form.

Example Solve log₃(x + 1) = 2

Rewrite: x + 1 = 3² = 9, so x = 8.

Example Solve log x + log(x − 3) = 1

  1. Product rule: log(x(x − 3)) = 1.
  2. Exponential form, base 10: x(x − 3) = 10.
  3. Rearrange: x² − 3x − 10 = 0, which factors to (x − 5)(x + 2) = 0.
  4. Candidates: x = 5 or x = −2.
  5. Check: log(−2) is undefined, so reject it. The answer is x = 5.

Always check the domain

You can only take the log of a positive number. Log equations often produce an extra solution that makes an argument negative or zero. Plug each answer back in and throw out any that fail.

Where logs show up

Logs are how you solve for time in growth and decay problems.

Example $1,000 earns 5% interest compounded yearly. How long until it doubles?

  1. Set up: 1000(1.05)t = 2000, so 1.05t = 2.
  2. Take ln: t · ln 1.05 = ln 2.
  3. t = ln 2 / ln 1.05 ≈ 0.6931 / 0.0488 ≈ 14.2 years.

Example Bacteria double every 3 hours. Starting from 500, when will there be 8,000?

8000/500 = 16 = 2⁴, so the population doubles 4 times. That takes 4 × 3 = 12 hours.

Logs also run the pH scale, the decibel scale for sound, and the Richter-style magnitude scales for earthquakes. Each step of 1 on those scales is a factor of 10.

Mistakes to avoid

  • log(x + y) is not log x + log y. The product rule is about multiplying inside the log.
  • log x / log y is not log(x/y). The quotient rule is a subtraction of logs.
  • (log x)² is not 2 log x. The power rule needs the exponent inside the log.

Your turn

  1. Evaluate log₃ 81.

    Show answer

    4, because 3⁴ = 81.

  2. Evaluate log₂(1/32).

    Show answer

    −5, because 2−5 = 1/32.

  3. Expand ln(x³/√y).

    Show answer

    3 ln x − ½ ln y. √y is y1/2.

  4. Solve 2x+1 = 48.

    Show answer

    x = log₂ 24 ≈ 4.58. Divide by 2 to get 2x = 24, then x = ln 24 / ln 2.

  5. Solve log₅(2x − 1) = 2.

    Show answer

    x = 13. 2x − 1 = 25.

  6. Solve log₂ x + log₂(x + 2) = 3.

    Show answer

    x = 2. Combine to x(x + 2) = 8, so x² + 2x − 8 = 0 and (x + 4)(x − 2) = 0. Reject −4.

Questions students ask

Why is ln called natural?

The number e shows up whenever something grows continuously at a rate proportional to its size, from compound interest to population growth. Calculus with base e is also simpler than with any other base, which makes it the default in science.

Can a log be negative?

Yes. log₁₀ 0.01 = −2. What can’t be negative, or zero, is the number you take the log of.

How do logs connect to exponents?

They are inverse functions. logb(bx) = x and blogb x = x. Review the exponent rules if the log rules feel shaky.

Keep studying

Drafted with help from AI tools. Every example is worked through step by step so you can check it.