Intuition What this page is
The parent note Change of base formula — proof built the formula
log a x = l o g b a l o g b x .
Here we drill it against every kind of situation it can appear in: clean whole-number answers, ugly decimals, fractional and reciprocal bases, arguments smaller than 1 (negative answers), the degenerate edges (argument = 1 , base = argument, and the forbidden base = 1 ), a word problem , and an exam-style twist where you must combine change of base with the Laws of logarithms .
Everything rests on one fact from the Definition of a logarithm :
Definition What inputs are even allowed (the domain)
Before computing anything, three rules must hold or log a x is undefined :
The base a must satisfy a > 0 and a = 1 . (Powers of a negative or of 1 can't reach every positive number, so the "what power?" question would have no unique answer.)
The argument x must satisfy x > 0 . (Any positive base raised to any real power stays positive, so you can never reach 0 or a negative number — those simply have no logarithm.)
Every example below silently respects a > 0 , a = 1 , x > 0 . The only place these bite is the divide-by-zero trap of a forbidden base in Cell F2 , and the rejection of a = − 4 in Cell I.
Before any example, here is the full map of cases this topic can throw at you. Each later example is tagged with the cell it covers.
#
Case class
What's special about it
Example
A
Clean integer answer
x is an exact power of a
Ex 1
B
Non-integer answer
x is not a power of a → decimal, need calculator
Ex 2
C
Answer between 0 and 1
x > 1 but base bigger than x
Ex 3
D
Negative answer, base > 1
argument x < 1 (a fraction), base above 1
Ex 4
E
Fractional / reciprocal base, x > 1
old base a like 2 1 , argument above 1
Ex 5
E′
Both below 1: 0 < a < 1 and 0 < x < 1
fraction base and fraction argument → answer flips back positive
Ex 5b
F1
Degenerate arguments: x = 1 (any base) / base = x
log a 1 = 0 for both a > 1 and 0 < a < 1 ; log a a = 1
Ex 6
F2
Forbidden base a = 1
division by zero → formula collapses, log 1 x undefined
Ex 6b
G
Combining two logs (product/quotient cancels)
change of base as a simplifier
Ex 7
H
Word problem (real-world exponential)
translate a story into log
Ex 8
I
Exam twist (unknown base as variable)
solve for a base using change of base + Laws of logarithms
Ex 9
every answer, in two pictures
Left picture — base a > 1 (rising curve): y = log a x crosses zero at x = 1 .
x > 1 → above zero → answer positive .
x = 1 → exactly zero (because a 0 = 1 ).
0 < x < 1 → below zero → answer negative .
Right picture — base 0 < a < 1 (falling curve): same crossing at x = 1 , but the curve now slopes downward , so the two regions swap sign :
x > 1 → answer negative .
x = 1 → still exactly zero (the crossing never moves — see Ex 6).
0 < x < 1 → answer positive .
Alt-text: Two side-by-side plots of y = log a x against x . Left plot (base a > 1 ) is a rising lavender curve passing through the point ( 1 , 0 ) ; the region x > 1 is shaded mint and labelled POSITIVE, the region 0 < x < 1 is shaded butter and labelled NEGATIVE. Right plot (base 0 < a < 1 ) is a falling lavender curve through the same point ( 1 , 0 ) ; now x > 1 is shaded butter/NEGATIVE and 0 < x < 1 is shaded mint/POSITIVE — the sign regions are mirror-flipped. A red dotted vertical line marks x = 1 (the zero crossing) in both plots.
Figure 1 — Sign of log a x . Left: a base bigger than 1 gives a rising curve (positive right of x = 1 , negative left). Right: a base between 0 and 1 gives a falling curve, so the shaded positive/negative regions are mirror-flipped. The red dotted line x = 1 is the zero crossing in both — it never moves, which is why log a 1 = 0 for every allowed base.
Keep both curves in your head: which side is positive depends on whether the base is above or below 1 .
Worked example Example 1 — Cell A: clean integer answer
Compute log 3 81 using base 10.
Forecast: 81 = 3 4 , so guess 4 before doing anything.
Apply change of base with new base b = 10 : log 3 81 = log 10 3 log 10 81 .
Why this step? Your calculator has no "base 3" button, so we translate to base 10, its native ruler.
Evaluate: 0.4771 1.9085 = 4 .
Why this step? Both numbers are just heights measured on the same base-10 ruler; the ruler's scaling cancels in the division.
Verify: 3 4 = 3 ⋅ 3 ⋅ 3 ⋅ 3 = 81 . ✓ Matches forecast.
Worked example Example 2 — Cell B: non-integer answer
Compute log 5 40 using the natural log ln (base e ). See Natural logarithm ln .
Forecast: 5 2 = 25 and 5 3 = 125 . Since 40 sits between 25 and 125 but nearer 25 , expect an answer a bit above 2 .
Change of base with b = e : log 5 40 = ln 5 ln 40 .
Why this step? The new base is a free choice — 10 or e both give the identical answer. Here we pick e .
Evaluate: 1.6094 3.6889 ≈ 2.2920 .
Why this step? Isolating the ratio gives the true power, independent of ruler.
Verify: 5 2.2920 ≈ 40.0 . ✓ And it lands just above 2 , as forecast.
Worked example Example 3 — Cell C: answer strictly between 0 and 1
Compute log 9 3 .
Forecast: 3 is smaller than the base 9 , but still bigger than 1 . From the left (rising) picture, the answer is positive but less than 1 . In fact 9 1/2 = 3 , so guess 2 1 .
Change of base to b = 10 : log 9 3 = log 10 9 log 10 3 .
Why this step? Standard translation to calculator base.
Evaluate: 0.9542 0.4771 = 0.5 .
Why this step? The denominator is bigger than the numerator, so the fraction is < 1 — exactly the "answer between 0 and 1" signature.
Verify: 9 0.5 = 9 = 3 . ✓
Worked example Example 4 — Cell D: negative answer (argument below 1, base above 1)
Compute log 2 8 1 .
Forecast: 8 1 is less than 1 and the base 2 is above 1 , so from the left picture the answer is negative . Since 8 1 = 2 − 3 , guess − 3 .
Change of base to b = 10 : log 2 8 1 = log 10 2 log 10 ( 1/8 ) .
Why this step? Same translator; nothing special is needed for fractions.
Note log 10 ( 1/8 ) = − log 10 8 = − 0.9031 (a negative height, since 8 1 < 1 ).
Why this step? The Laws of logarithms give log ( 1/8 ) = − log 8 ; this is exactly why the answer turns out negative.
Evaluate: 0.3010 − 0.9031 = − 3 .
Verify: 2 − 3 = 2 3 1 = 8 1 . ✓ Negative as forecast.
Worked example Example 5 — Cell E: fractional / reciprocal base, argument above 1
Compute log 1/2 8 .
Forecast: The base 2 1 is less than 1 , so raising it to a positive power makes it smaller , not bigger. To reach a number 8 > 1 we need a negative power. On the right (falling) picture, x > 1 sits in the negative region. Since ( 2 1 ) − 3 = 2 3 = 8 , guess − 3 .
Change of base to b = 2 (a smart choice — 2 1 and 8 are both powers of 2 ): log 1/2 8 = log 2 ( 1/2 ) log 2 8 .
Why this step? Picking b = 2 makes both logs exact whole numbers — no decimals at all.
Top: log 2 8 = 3 . Bottom: log 2 ( 1/2 ) = − 1 because 2 − 1 = 2 1 .
Why this step? Both are read straight off the definition a y = x .
Evaluate: − 1 3 = − 3 .
Verify: ( 2 1 ) − 3 = 2 3 = 8 . ✓ A base below 1 with argument above 1 gives a negative answer — matches the right-hand picture.
Worked example Example 5b — Cell E′: BOTH below 1 (
0 < a < 1 and 0 < x < 1 )
Compute log 1/2 4 1 .
Forecast: Here the base 2 1 is below 1 and the argument 4 1 is below 1. On the right (falling) picture, the region 0 < x < 1 is the positive region — so unlike Cell D, this answer comes out positive . Since ( 2 1 ) 2 = 4 1 , guess + 2 .
Change of base to b = 2 (both 2 1 and 4 1 are powers of 2 ): log 1/2 4 1 = log 2 ( 1/2 ) log 2 ( 1/4 ) .
Why this step? A common power-of-2 base makes both logs exact, exposing the sign cleanly.
Top: log 2 ( 1/4 ) = − 2 because 2 − 2 = 4 1 . Bottom: log 2 ( 1/2 ) = − 1 .
Why this step? Both arguments are below 1, so both logs are negative.
Evaluate: − 1 − 2 = + 2 .
Why this step? A negative over a negative is positive — this is the arithmetic reason the falling-curve region below x = 1 is positive.
Verify: ( 2 1 ) 2 = 4 1 . ✓ Two fractions combine to a positive answer — the last unillustrated sign case.
Worked example Example 6 — Cell F₁: degenerate arguments (
x = 1 for BOTH kinds of base; base = x )
Evaluate (a) log 7 1 , (b) log 1/3 1 , and (c) log 7 7 .
Forecast: (a) "what power of 7 gives 1 ?" — any base to the power 0 is 1 , so guess 0 . (b) same question for a fractional base 3 1 — the crossing point x = 1 never moves, so guess 0 again. (c) "what power of 7 gives 7 ?" — that's just 1 .
(a) base above 1. Change of base: log 7 1 = log 10 7 log 10 1 = 0.8451 0 = 0 .
Why this step? The numerator log 10 1 = 0 because 1 0 0 = 1 ; a zero on top forces the whole answer to zero. This is the x = 1 crossing on the left (rising) picture.
(b) base below 1. Change of base: log 1/3 1 = log 10 ( 1/3 ) log 10 1 = − 0.4771 0 = 0 .
Why this step? The top is still log 10 1 = 0 ; the denominator being negative (base < 1 ) doesn't matter — 0 divided by anything nonzero is 0 . This is the same crossing point on the right (falling) picture, confirming it never shifts. So the previously un-drilled quadrant (base < 1 , x = 1 ) also gives 0 .
(c) base = argument. Change of base: log 7 7 = log 10 7 log 10 7 = 1 .
Why this step? Identical top and bottom → the ratio is 1 . Whenever argument equals base, the answer is 1 .
Verify: 7 0 = 1 ✓, ( 3 1 ) 0 = 1 ✓, and 7 1 = 7 ✓. The zero crossing at x = 1 holds for every allowed base.
Worked example Example 6b — Cell F₂: the forbidden base
a = 1
Attempt log 1 5 . Why is it undefined?
Forecast: "what power of 1 gives 5 ?" — 1 raised to any power is still 1 , so no power ever reaches 5 . Expect "no answer / undefined".
Try change of base to b = 10 : log 1 5 = log 10 1 log 10 5 = 0 0.6990 .
Why this step? Feeding a = 1 into the formula puts log 10 1 = 0 in the denominator — a division by zero , which is undefined. This is the algebraic image of "no power works".
Confirm from the definition: 1 y = 5 has no solution , since 1 y = 1 for every real y .
Why this step? Independently of any calculator, the question itself has no answer — the base 1 is flat , it never grows or shrinks.
Verify: For any target x = 1 , log 1 x is undefined; and log 1 1 is ambiguous (1 y = 1 for all y ). This is exactly why the domain rule bans a = 1 , and why the parent proof insisted on a = 1 before dividing at Step 5. ✗ (correctly rejected)
Worked example Example 7 — Cell G: two logs whose parts cancel
Simplify log 8 x ⋅ log x 64 for valid x .
Forecast: Both logs involve x , and 8 , 64 are powers of 2 . Guess the x 's cancel and leave a plain number.
Convert both to a common new base b = 2 :
l o g 2 8 l o g 2 x ⋅ l o g 2 x l o g 2 64 .
Why this step? Choosing the same new base makes the log 2 x factors line up so they can cancel.
Substitute log 2 8 = 3 , log 2 64 = 6 :
3 l o g 2 x ⋅ l o g 2 x 6 .
Why this step? 8 = 2 3 and 64 = 2 6 , read off the definition.
Cancel log 2 x (allowed since x = 1 makes it nonzero) → 3 6 = 2 .
Verify: Try x = 4 : log 8 4 = l o g 2 8 l o g 2 4 = 3 2 , and log 4 64 = l o g 2 4 l o g 2 64 = 2 6 = 3 . Product = 3 2 ⋅ 3 = 2 . ✓
Worked example Example 8 — Cell H: real-world word problem
A colony of bacteria triples every hour, starting from 500 . After how many hours does it first exceed 500000 ? (Links to Solving exponential equations .)
Forecast: Multiplying by 3 repeatedly, 500 → 1500 → 4500 → … ; a thousand-fold rise needs roughly log 3 1000 ≈ 6 –7 hours. Guess about 7 .
Model: after t hours the count is 500 ⋅ 3 t . Set 500 ⋅ 3 t = 500000 .
Why this step? Tripling each hour is repeated multiplication = an exponential with base 3 .
Divide by 500 : 3 t = 1000 . In log form: t = log 3 1000 .
Why this step? The Definition of a logarithm turns "unknown exponent" into a log.
Change of base to compute it: t = log 10 3 log 10 1000 = 0.4771 3 ≈ 6.288 .
Why this step? No base-3 button, so translate to base 10; and log 10 1000 = 3 exactly because 1 0 3 = 1000 .
Since t must be a whole hour to have passed , it first exceeds at t = 7 hours.
Why this step? At t = 6.288 it just crosses; the next completed hour is 7 .
Verify: 500 ⋅ 3 6 = 500 ⋅ 729 = 364500 < 500000 , but 500 ⋅ 3 7 = 500 ⋅ 2187 = 1 , 093 , 500 > 500000 . ✓ First exceeds at hour 7 .
Worked example Example 9 — Cell I: exam twist (base is the unknown)
Solve log a 16 = 2 for the base a (with a > 0 , a = 1 ).
Forecast: "a squared gives 16 " points straight at a = 4 .
Rewrite using the definition : log a 16 = 2 ⟺ a 2 = 16 .
Why this step? When the base is unknown, going to exponential form is cleaner than change of base — but let's also confirm with change of base to show consistency.
Cross-check via change of base: log a 16 = log 10 a log 10 16 = 2 ⟹ log 10 a = 2 1 log 10 16 = log 10 4 .
Why this step? Isolating log 10 a and using 2 1 log 10 16 = log 10 16 = log 10 4 (a power law) pins down a .
Therefore a = 4 . (Reject a = − 4 : the domain rule says bases must be positive.)
Verify: 4 2 = 16 , so log 4 16 = 2 . ✓ We correctly discard the negative root because a logarithm base must be positive and = 1 .
Recall Which cell was hardest — sign-check drill
For each, state the sign of the answer before computing:
log 5 0.2 ::: negative (base > 1 , argument < 1 )
log 0.5 4 ::: negative (base < 1 , argument > 1 )
log 0.5 0.25 ::: positive (base < 1 AND argument < 1 → signs flip back)
log 10 1 ::: exactly zero (argument = 1 )
log 1/3 1 ::: exactly zero (argument = 1 , even for a base below 1)
log 1 5 ::: undefined (forbidden base a = 1 )
log 3 9 ::: positive (base > 1 , argument > 1 )
Mnemonic Sign at a glance
"Below one, go negative — unless BOTH are below one." With a base above 1 : argument under 1 dips below the red line (negative). With a base under 1 everything flips; and if the argument is also under 1 , it flips twice back to positive. And x = 1 always sits on the line → zero , whatever the base.
What is log 9 3 , and why is it between 0 and 1 ?
Why is log 2 8 1 negative but log 1/2 4 1 positive?
Why is log 1 x undefined — argue both algebraically (the formula) and from the definition?
Does log a 1 = 0 hold for a base below 1? Why does the zero crossing never move?
In the bacteria problem, why did we round up to 7 ?
State the domain rules for log a x . a > 0 , a = 1 , and x > 0 .
Which cell gives a negative answer from a base below 1? Cell E — e.g. log 1/2 8 = − 3 (argument above 1).
When base and argument are BOTH below 1, what is the sign? Positive — e.g. log 1/2 ( 1/4 ) = + 2 .
Value of log 7 1 ? 0 , since 7 0 = 1 .
Value of log 1/3 1 ? 0 — the crossing at x = 1 holds for a base below 1 too.
Why is log 1 5 undefined? The formula divides by log b 1 = 0 ; and 1 y = 5 has no solution.
Value of log 7 7 ? 1 , since 7 1 = 7 .
log 9 3 = ? 0.5 (because 9 1/2 = 3 ).
log 2 ( 1/8 ) = ? − 3 .
log 1/2 ( 1/4 ) = ? + 2 .
Solve log a 16 = 2 . a = 4 (reject − 4 ).
log 8 x ⋅ log x 64 = ? 2 .
First hour bacteria exceed 500000 (triple hourly from 500 )? hour 7 .