On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Advanced Functions · Grade 9-12

Logarithm

log⁡b(x) is the exponent you put on b to get x; it is the inverse of bx.

by=x  ⟹  log⁡b(x)=y

Quick Answer

log⁡b(x) is the exponent you put on b to get x; it is the inverse of bx. Use a log when the unknown is stuck in an exponent, as in 'how many years until money at 5% doubles?', which means solving 1.05t=2. Logs also measure quantities that span huge ranges on a compressed scale: each step of 1 on the pH scale is a factor of 10. On a calculator, log⁡bx=log⁡xlog⁡b handles any base.

Why This Matters

Without logs you can only guess and check an equation like 2x=50; with them, x=log⁡50log⁡2≈5.64 in one step. They answer every 'how long until' question in growth and decay: doubling times, half-lives, loan payoff periods. They also explain why pH 3 against pH 5 means 100 times the acidity, not slightly more.

Intuitive Explanation

Start with the doubling ladder: 21=2, 22=4, 23=8, 24=16, 25=32. An exponential climbs the ladder: give it the rung number and it returns the value. A logarithm climbs down: give it the value and it returns the rung. So log⁡216=4, because 16 sits on rung 4. A log is an exponent, written in a form you can solve for.

Values between rungs give answers between whole numbers. Since 8<10<16, log⁡210 is between 3 and 4 (about 3.32). Values below 1 give negative logs: log⁡218=−3, because 2−3=18. Zero and negative numbers have no log at all, because no power of a positive base is zero or negative, so the domain of log⁡bx is x>0.

The rule log⁡(ab)=log⁡a+log⁡b comes straight from exponents, where multiplying powers adds their exponents. That is how logs turn multiplication into addition. Contrast logs with roots: in 2x=32 the unknown is the exponent, so x=log⁡232=5; in x5=32 the unknown is the base, so x=325=2. Both undo a power, but they free different parts of it.

Think of it like this. A logarithm is a zero-counter, generalised. log⁡101000=3 because 1000 is three multiplications by 10, the three zeros. A number between powers, such as 500, gets a fractional count (about 2.7), and other bases count multiplications by 2 or by e instead of by 10.

Core idea. A logarithm answers what power the base must be raised to in order to reach a given number.


When to Use

Use a log when the unknown is an exponent: 'how long until it doubles', 'how many halvings until under 1 mg', or any equation shaped like bx=c. Use it too for scales where each step means a factor of 10, such as pH, decibels and earthquake magnitude. If the unknown is the base, as in x4=81, take a root instead; if the exponent is known and you want the value, just evaluate the power.

Tip. Ask: Am I asking 'what exponent on the base gives this number?'

How to Recognize It

Before taking a log, find where the unknown sits in the equation and what kind of scale the numbers live on.

  1. Is the unknown in the exponent, as in 3x=50 or 1.05t=2?

    Yes means take a log of both sides: x=log⁡50log⁡3≈3.56. If the exponent is known and you want the value, just evaluate the power, which is the exponential function's job.

  2. Is the unknown the base under a fixed power, as in x4=81?

    Yes means take a root, not a log: x=814=3, or −3 if negatives are allowed. Roots free the base; logs free the exponent.

  3. Do the numbers span many powers of ten, as with acidity, sound level or earthquake size?

    Yes means a log scale, where adding 1 means multiplying by 10: pH 3 is ten times as acidic as pH 4. Values that differ by ordinary amounts are better on a plain linear scale.

  4. Is the base e, or does the growth happen continuously?

    Yes means the natural log, ln⁡, which undoes ex: from e0.04t=2, t=ln⁡20.04≈17.3. Any other base uses log⁡b or the change-of-base rule.

Logarithm compared with Exponential function, Root, and Natural logarithm

All four rows deal with powers, so their equations look alike. Ask which part of bx=c is unknown: the result (exponential function), the base (root), or the exponent (logarithm, or the natural log when the base is e).

Logarithm

Meaning
Use this when you need the exponent that produces a value, or must solve an equation with the unknown in the exponent. The deciding question is: Am I asking 'what exponent on the base gives this number?'
Key test
Am I asking 'what exponent on the base gives this number?'
Formula
by=x  ⟹  log⁡b(x)=y
Example
Solve 5x=125.

Exponential function

Meaning
Goes the forward direction: given the exponent, produce the value. Logs go backward.
Key test
Use when you know the exponent and want the result, not the reverse.
Formula
bx
Example
23=8 is exponential; log⁡28=3 is the log

Root

Meaning
Reverses a power by freeing the base, while a log frees the exponent.
Key test
Use when the unknown is the base under a fixed exponent, not the exponent itself.
Formula
xn
Example
Solve x3=8 with a cube root; solve 2x=8 with a log

Natural logarithm

Meaning
The specific logarithm with base e, used for continuous growth.
Key test
Use when the base is e or the context is continuous compounding/calculus.
Formula
ln⁡x=log⁡ex
Example
ln⁡(e5)=5

Formula & Notation

by=x  ⟹  log⁡b(x)=y
log⁡b ⁣:(0,∞)→R defined by log⁡b(x)=y  ⟺  by=x, where b>0,  b≠1

How to read it: log⁡b(x) denotes the logarithm base b of x. log⁡ usually means log⁡10; ln⁡ means log⁡e.

Worked Examples

Example 1 — Solve for an exponent

Easy

Solve 5x=125.
Show the steps and the answer
  1. Rewrite in log form: 5x=125 means x=log⁡5125.

    The unknown is the exponent, and a log is the tool that returns an exponent.

  2. Climb the powers of 5: 51=5, 52=25, 53=125.

    125 is a whole power of 5, so counting factors of 5 answers it without a calculator.

  3. Conclude x=3 and check: 5⋅5⋅5=125.

    Substituting back confirms the exponent.

Answer: x=3

Takeaway: When the unknown sits in the exponent, the answer is a log: bx=c means x=log⁡bc.

Example 2 — Root, not log

Standard

Solve x3=125. Same numbers — is this a log problem?
Show the steps and the answer
  1. Locate the unknown: in x3=125 it is the base, and the exponent 3 is known.

    A log frees an unknown exponent; a root frees an unknown base.

  2. Take the cube root: x=1253=5, since 5⋅5⋅5=125.

    Cubing and cube-rooting undo each other, just as 5x and log⁡5 do.

  3. Compare with Example 1: 5x=125 gave x=3, while x3=125 gives x=5.

    The same three numbers, 5, 3 and 125, answer two different questions depending on which one is missing.

Answer: x=5

Takeaway: Ask where the unknown is: in the exponent, use a log; in the base, use a root.

Example 3 — Find the mistake: a log is not a quotient

Application

Kai evaluates log⁡232 and writes: "log⁡232=322=16." Find the mistake and correct it.
Show the steps and the answer
  1. Convert Kai's answer back to exponent form: log⁡232=16 would mean 216=32.

    Every log statement is an exponent statement in disguise, so checking costs one line.

  2. Compute 216=65536, nowhere near 32.

    Dividing by 2 counts how many 2s add up to 32, not how many 2s multiply to 32.

  3. Count the doublings instead: 2→4→8→16→32 is five factors of 2, so 25=32.

    The logarithm counts multiplications by the base.

Answer: log⁡232=5

Takeaway: log⁡bx counts how many factors of b multiply to x; division answers a different question about repeated addition.

Where You'll See It

  • Doubling time of savings

    At 6% interest a balance grows as 1.06t. To double it, solve 1.06t=2: t=log⁡2log⁡1.06≈11.9 years. The banker's 'rule of 72', 72÷6=12 years, is a quick estimate of this same logarithm.

  • Acidity on the pH scale

    pH is −log⁡10 of the hydrogen-ion concentration in mol/L. Lemon juice at pH 2 has 10−2; tomato juice at pH 4 has 10−4. Two pH units apart means a factor of 102=100 in concentration.

  • Loudness in decibels

    Decibels are 10log⁡10 of a sound's intensity ratio, so every 10 dB means ten times the intensity. A 90 dB lawnmower is 103=1000 times as intense as a 60 dB conversation, even though 90 is only 1.5 times 60.

Common Mistakes

  1. The slip: Treating a log as division

    Instead: log⁡b(x) is the exponent on b, not x÷b.

  2. The slip: Taking the log of zero or a negative number

    Instead: the argument of a log must be positive.

  3. The slip: Confusing which way it inverts

    Instead: a log frees the exponent (2x=8⇒x=log⁡28), a root frees the base.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Without a calculator, evaluate log⁡232.

    Hint: What power of 2 gives 32?

  2. Evaluate log⁡319.

    Hint: A fraction like 19 comes from a negative exponent.

  3. Solve log⁡4x=3 for x.

    Hint: Rewrite the log statement in exponential form.

  4. Solve 2x=20. Give x to two decimal places.

    Hint: Take the natural log of both sides and divide.

  5. Two equations: x5=32 and 5x=32. Which one needs a logarithm, and which one a root?

    Hint: In each equation, is the unknown the base or the exponent?

  6. A student writes: 'log⁡28=82=4.' Find and correct the mistake.

    Hint: A logarithm asks for an exponent. Check: does 24 equal 8?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Why is log⁡b1 always 0?

Because any allowed base raised to the power 0 gives 1: b0=1b^0=1. So the exponent that turns bb into 1 is always 0, whatever bb is. In the same way, log⁡bb=1\log_b b=1, since b1=bb^1=b. These two facts give quick checkpoints on a graph: every curve y=log⁡bxy=\log_b x passes through (1,0)(1,0) and reaches height 1 at x=bx=b.

Why does log⁡(ac)=log⁡a+log⁡c?

Logs are exponents, and exponents add when you multiply powers of the same base: 102⋅103=10510^2\cdot 10^3=10^5. Taking logs of that line gives log⁡100+log⁡1000=log⁡100000\log 100+\log 1000=\log 100000, or 2+3=52+3=5. This is why, for centuries, scientists used log tables and slide rules to turn multiplication into addition. The look-alike rule log⁡(a+c)=log⁡a+log⁡c\log(a+c)=\log a+\log c is false and has no such reason behind it.

Logs can be negative, so why can't I take the log of a negative number?

The output of a log can be negative: log⁡0.01=−2\log 0.01=-2 because 10−2=0.0110^{-2}=0.01, which just says the number is less than 1. The input cannot be, because a positive base raised to any power gives a positive result, so no exponent turns 10 into −100-100 or into 0. As the input shrinks toward 0, the log falls toward −∞-\infty, which is the vertical asymptote at x=0x=0.

Is a magnitude 7 earthquake just a little stronger than a magnitude 5?

No. Magnitude is a log scale, so each step of 1 means 10 times the shaking amplitude on a seismograph. Two steps means 102=10010^2=100 times the amplitude, and the energy released grows even faster, about 32 times per step, so roughly 1,000 times for two steps. Reading a log scale as ordinary differences badly undersells big changes.

Learning Path

Logarithm

You are here

You need Exponential Function (repeated multiplication by b) and Inverse Function (undoing a rule, with domain and range swapped). Logarithm adds the inverse of bx: the exponent that produces a given value, defined for x>0. Next, the Natural Logarithm ln⁡x=log⁡ex handles continuous growth and is the log used throughout calculus.

See Also