logb(x) is the exponent you put on b to get x; it is the inverse of bx.
by=x⟹logb(x)=y
Quick Answer
logb(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, logbx=logblogx handles any base.
Why This Matters
Without logs you can only guess and check an equation like 2x=50; with them, x=log2log50≈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 log216=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, log210 is between 3 and 4 (about 3.32). Values below 1 give negative logs: log281=−3, because 2−3=81. Zero and negative numbers have no log at all, because no power of a positive base is zero or negative, so the domain of logbx is x>0.
The rule log(ab)=loga+logb 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=log232=5; in x5=32 the unknown is the base, so x=532=2. Both undo a power, but they free different parts of it.
Think of it like this.A logarithm is a zero-counter, generalised. log101000=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=log3log50≈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=481=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=0.04ln2≈17.3. Any other base uses logb 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 compared with Exponential function, Root, and Natural logarithm
Type
Meaning
Key test
Formula
Example
Logarithm
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?'
Am I asking 'what exponent on the base gives this number?'
by=x⟹logb(x)=y
Solve 5x=125.
Exponential function
Goes the forward direction: given the exponent, produce the value. Logs go backward.
Use when you know the exponent and want the result, not the reverse.
bx
23=8 is exponential; log28=3 is the log
Root
Reverses a power by freeing the base, while a log frees the exponent.
Use when the unknown is the base under a fixed exponent, not the exponent itself.
nx
Solve x3=8 with a cube root; solve 2x=8 with a log
Natural logarithm
The specific logarithm with base e, used for continuous growth.
Use when the base is e or the context is continuous compounding/calculus.
lnx=logex
ln(e5)=5
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⟹logb(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; log28=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
nx
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
lnx=logex
Example
ln(e5)=5
Formula & Notation
by=x⟹logb(x)=y
logb:(0,∞)→R defined by logb(x)=y⟺by=x, where b>0,b=1
How to read it:logb(x) denotes the logarithm base b of x. log usually means log10; ln means loge.
Worked Examples
Example 1 — Solve for an exponent
Easy
Solve 5x=125.
Show the steps and the answer
Rewrite in log form: 5x=125 means x=log5125.
The unknown is the exponent, and a log is the tool that returns an exponent.
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.
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=logbc.
Example 2 — Root, not log
Standard
Solve x3=125. Same numbers — is this a log problem?
Show the steps and the answer
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.
Take the cube root: x=3125=5, since 5⋅5⋅5=125.
Cubing and cube-rooting undo each other, just as 5x and log5 do.
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 log232 and writes: "log232=232=16." Find the mistake and correct it.
Show the steps and the answer
Convert Kai's answer back to exponent form: log232=16 would mean 216=32.
Every log statement is an exponent statement in disguise, so checking costs one line.
Compute 216=65536, nowhere near 32.
Dividing by 2 counts how many 2s add up to 32, not how many 2s multiply to 32.
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:log232=5
Takeaway:logbx 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=log1.06log2≈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 −log10 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 10log10 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
The slip:Treating a log as division
Instead:logb(x) is the exponent on b, not x÷b.
The slip:Taking the log of zero or a negative number
Instead:the argument of a log must be positive.
The slip:Confusing which way it inverts
Instead:a log frees the exponent (2x=8⇒x=log28), a root frees the base.
Mini Practice
Try these on your own. Tap Reveal when you want to check.
1.
Without a calculator, evaluate log232.
Hint:What power of 2 gives 32?
2.
Evaluate log391.
Hint:A fraction like 91 comes from a negative exponent.
3.
Solve log4x=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: 'log28=28=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.
Because any allowed base raised to the power 0 gives 1: b0=1. So the exponent that turns b into 1 is always 0, whatever b is. In the same way, logbb=1, since b1=b. These two facts give quick checkpoints on a graph: every curve y=logbx passes through (1,0) and reaches height 1 at x=b.
Why does log(ac)=loga+logc?
Logs are exponents, and exponents add when you multiply powers of the same base: 102⋅103=105. Taking logs of that line gives log100+log1000=log100000, or 2+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)=loga+logc 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: log0.01=−2 because 10−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 or into 0. As the input shrinks toward 0, the log falls toward −∞, which is the vertical asymptote at x=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=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.
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 Logarithmlnx=logex handles continuous growth and is the log used throughout calculus.