Intuition What this page is for
The parent note told you what a logarithm is: log b y is the exponent you raise b to in order to get y , i.e. log b y = x ⟺ b x = y .
This page throws every kind of case at you — big answers, negative answers, fractions, the tricky "value equals zero", inputs at the very edge of the domain, illegal bases, a real-world story, and an exam trap — and works each one from first principles. By the end there is no situation the definition can surprise you with.
Definition A note on the highlight marks
Throughout this vault, a term wrapped in double-equals like ==this== is a cloze highlight — it marks a key phrase you should be able to recall. If your reader shows the raw == symbols, just read them as emphasis; they are never part of the mathematics.
Before anything else, one habit. Whenever you see log b y , silently translate it into a question :
Mnemonic The translation habit
log b y = ? means "b raised to WHAT power gives me y ? "
The answer to that question is the value of the log. Every example below starts by writing that question out loud.
Definition The two legality rules (memorise before the matrix)
A logarithm log b y only makes sense when both of these hold:
the base is legal: ==b > 0 == and ==b = 1 ==;
the input is legal: ==y > 0 ==.
Why the base rules? If b ≤ 0 (say b = − 2 ), then b x flips sign and even goes complex for fractional x — it is not a smooth one-to-one curve, so it has no inverse. If b = 1 , then 1 x = 1 for every x , so "1 to what power gives 5 ?" has no answer and "1 to what power gives 1 ?" has infinitely many — again no inverse. Both the matrix and the examples respect these rules.
Here is the full landscape of cases a logarithm problem can live in. Every cell is covered by an example further down.
#
Case class
What makes it distinct
Covered by
A
Answer is a positive whole number
y > 1 , base > 1 ⇒ exponent positive
Example 1
B
Answer is zero
input y = 1 exactly — the pivot point
Example 2
C
Answer is negative
input 0 < y < 1 , so exponent dips below 0
Example 3
D
Answer is a fraction
y is a root of the base
Example 4
E
Base between 0 and 1 (decreasing)
signs flip vs. the usual intuition
Example 5
F
Degenerate input
y ≤ 0 , or the edges y → 0 + and y → ∞
Example 6
G
Degenerate base
b ≤ 0 or b = 1 — no log exists at all
Example 6b
H
Cancellation identities in disguise
nested b l o g / log ( b ⋯ )
Example 7
I
Real-world word problem
pick the base, translate the story
Example 8
J
Exam twist — solve for the base
the base is the unknown, not the exponent
Example 9
We will draw one picture that shows cases A–C and F together on the same graph, because they are all "read a height off the exponential curve and report the exponent" — they only differ in where on the curve you land.
Look at the curve above (it is y = 2 x ). Each labelled dot is one of the inputs we are about to read: the orange dot labelled "Case A" is a point above height 1 (positive exponent); the plum dot labelled "Case B" sits at height 1 (exponent 0 ); the brown dot labelled "Case C" is below height 1 but still above the dashed floor (negative exponent); and the black ✕ labelled "Case F" sits on the line y = 0 that the curve only approaches and never reaches — so no dot of the curve lands there and the log is undefined. The log just reads the horizontal position of each point on the curve.
Because a log is the inverse of the exponential, we can also draw the log curve directly. The next figure plots y = log 2 x — the reflection of y = 2 x in the line y = x — so you can see the answers of every case as a single smooth curve.
On this log curve the horizontal axis is now the input x and the vertical axis is the answer log 2 x . Notice both ends: as x slides toward 0 from the right the curve plunges down to − ∞ (the vertical asymptote x = 0 , matching Case F's shrinking input), and as x grows without bound the curve keeps rising toward + ∞ — slowly, but forever. Those two "ends" are the complete story of where log values can go.
Worked example Example 1 — Case A: positive whole-number answer
Evaluate log 2 16 .
Forecast: guess the answer before reading on. 16 is bigger than 1 , and the base 2 is bigger than 1 , so the exponent should be a positive number. How many times do you double from 1 to reach 16 ?
Translate to a question. log 2 16 = ? means "2 to what power is 16 ?"
Why this step? The definition log b y = x ⟺ b x = y tells us the value is literally the answer to that question.
List the powers of the base until we hit the target. 2 1 = 2 , 2 2 = 4 , 2 3 = 8 , 2 4 = 16 .
Why this step? When the target is an exact power of the base, we can match it by inspection — no fancy machinery needed.
Read off the exponent. We reached 16 at exponent 4 , so log 2 16 = 4 .
Why this step? Because log 2 16 was defined as that exponent — once the matching power is found, the log's value is that exponent, nothing more to compute.
log 2 16 = 4
Verify: put it back into exponential form: 2 4 = 16 . ✓ On the figure this is the orange "Case A" dot — its horizontal position is 4 .
Worked example Example 2 — Case B: the answer is exactly zero
Evaluate log 7 1 .
Forecast: what power of anything gives 1 ? Trust that instinct.
Translate. log 7 1 = ? means "7 to what power is 1 ?"
Why this step? Same reflex every time.
Recall the zero-exponent rule. Any nonzero base to the power 0 equals 1 : 7 0 = 1 .
Why this step? This is the one universal fact — b 0 = 1 — that pins down the value y = 1 for every base. It is why every log graph passes through ( 1 , 0 ) .
Read off. The exponent is 0 , so log 7 1 = 0 .
Why this step? The log's value is the exponent found in step 2; having matched 7 0 = 1 , the reported value must be that exponent, 0 .
log 7 1 = 0
Verify: 7 0 = 1 . ✓ On the figure this is the plum "Case B" dot sitting exactly on height 1 — horizontal position 0 , the crossing point.
Worked example Example 3 — Case C: a negative answer
Evaluate log 2 8 1 .
Forecast: 8 1 is less than 1 , but doubling from 1 only ever makes things bigger. So to get below 1 you must go the other way — a negative exponent. Predict the sign, then find the size.
Translate. log 2 8 1 = ? means "2 to what power is 8 1 ?"
Why this step? Reflex.
Rewrite the target as a power of the base. 8 1 = 2 3 1 , and a reciprocal is a negative exponent: 2 3 1 = 2 − 3 .
Why this step? The rule b − n = b n 1 is exactly how the exponential produces numbers below 1 . Recognising it turns the fraction into a clean power.
Read off. The exponent is − 3 , so log 2 8 1 = − 3 .
Why this step? The definition says the log's value equals the matching exponent; step 2 matched 2 − 3 = 8 1 , so that exponent − 3 is the answer.
log 2 8 1 = − 3
Verify: 2 − 3 = 8 1 . ✓ On the s01 figure this is the brown "Case C" dot — below height 1 but above the dashed floor, at horizontal position − 3 , to the left of centre.
Worked example Example 4 — Case D: a fractional answer
Evaluate log 9 3 .
Forecast: 3 is smaller than the base 9 but still bigger than 1 . So the exponent is positive, yet less than 1 — a fraction. Which fraction turns 9 into 3 ?
Translate. log 9 3 = ? means "9 to what power is 3 ?"
Why this step? Reflex — convert to the question the log is asking.
Spot the root relationship. 3 is the square root of 9 , and a square root is the power 2 1 : 9 1/2 = 9 = 3 .
Why this step? Fractional exponents are roots (b 1/ n = n b ). When the target is a root of the base, the answer is a unit fraction.
Read off. log 9 3 = 2 1 .
Why this step? The value of the log is the exponent matched in step 2; since 9 1/2 = 3 , that exponent 2 1 is the answer.
log 9 3 = 2 1
Verify: 9 1/2 = 9 = 3 . ✓ Units check: exponents are pure numbers, and 2 1 is between 0 and 1 as forecast (target between 1 and base).
Worked example Example 5 — Case E: a base between 0 and 1 (decreasing curve)
Evaluate log 1/2 8 .
Forecast: here the base 2 1 is less than 1 (but still legal: 2 1 > 0 and 2 1 = 1 ). Raising a number below 1 to a positive power makes it smaller , so to grow up to 8 we will need a negative exponent. This flips the intuition of Examples 1–3.
Translate. log 1/2 8 = ? means "2 1 to what power is 8 ?"
Why this step? Reflex.
Rewrite the base as a power of 2 . 2 1 = 2 − 1 , so ( 2 1 ) x = 2 − x .
Why this step? Turning the awkward base into a familiar one (2 ) lets us reuse the powers-of-2 we already know.
Set the exponentials equal. We want 2 − x = 8 = 2 3 , so − x = 3 , giving x = − 3 .
Why this step? Once both sides share the same base, equal values force equal exponents — this is the answer because the log's value is exactly the x that solves ( 2 1 ) x = 8 .
log 1/2 8 = − 3
Verify: ( 2 1 ) − 3 = 2 3 = 8 . ✓ Look at the figure: the y = ( 1/2 ) x curve goes downhill , so the height 8 (above 1 ) sits to the left at x = − 3 — the mirror image of the increasing case.
Worked example Example 6 — Case F: degenerate and edge INPUTS
Explain the status of (a) log 2 0 , (b) log 2 ( − 8 ) , and describe what log 2 y does at both ends: (c) as y → 0 + and (d) as y → ∞ .
Forecast: the domain of log b is y > 0 . So (a) and (b) should have no answer at all ; (c) should run off to − ∞ ; and (d) should climb to + ∞ (but slowly). Confirm each with the exponential.
(a) Zero input. Ask "2 to what power is 0 ?" But 2 x is always positive — it can get microscopically close to 0 yet never equals 0 . No exponent works, so log 2 0 is undefined .
Why this step? 0 is the horizontal asymptote of 2 x ; the curve approaches but never lands there.
(b) Negative input. Ask "2 to what power is − 8 ?" Again 2 x > 0 for every real x , so no power is ever negative. log 2 ( − 8 ) is undefined .
Why this step? The sign of an exponent controls size , never the sign of the output — a common trap (see Mistake A in the parent note).
(c) Lower edge y → 0 + . As y shrinks toward 0 (e.g. 2 1 , 4 1 , 8 1 , … ), the exponent runs − 1 , − 2 , − 3 , … downward without bound: log 2 y → − ∞ .
Why this step? This is exactly the vertical asymptote x = 0 of the log graph, mirroring the horizontal asymptote of the exponential.
(d) Upper edge y → ∞ . As y grows huge (e.g. 2 , 4 , 8 , 16 , … ), the exponent runs 1 , 2 , 3 , 4 , … upward without bound: log 2 y → + ∞ . There is no ceiling — but it climbs slowly , since y must double to raise the log by just 1 .
Why this step? The exponential 2 x rises to + ∞ , so its inverse can accept ever-larger inputs and keep returning larger answers — the right-hand end of the s02 log curve.
Verify: for (c), log 2 ( 2 − 10 ) = − 10 and 2 − 10 = 1024 1 — a tiny positive input, large negative output. ✓ For (d), log 2 ( 2 20 ) = 20 while 2 20 = 1 , 048 , 576 — you needed a million-fold input to reach 20 . ✓ On the s01 figure, the black ✕ labelled "Case F" sits on the dashed line y = 0 precisely because no point of the curve matches that height; the s02 figure shows both runaway ends.
Worked example Example 6b — Case G: degenerate BASE
Explain why (a) log 1 5 , (b) log 1 1 , and (c) log − 2 8 are all illegal.
Forecast: the base must satisfy b > 0 and b = 1 . Every part below breaks one of those, so none is a valid logarithm — but for different reasons.
(a) Base = 1 , target = 1 . Ask "1 to what power is 5 ?" Since 1 x = 1 for every x , no power ever reaches 5 . No answer exists ⇒ undefined.
Why this step? 1 x is a flat line at height 1 ; it can never output 5 , so the inverse question is unanswerable.
(b) Base = 1 , target = 1 . Ask "1 to what power is 1 ?" Now every x works: 1 0 = 1 , 1 99 = 1 , … . Infinitely many answers ⇒ still not a well-defined function.
Why this step? An inverse must return one value; a question with infinitely many answers cannot define a function. This is the second reason b = 1 is required.
(c) Base = − 2 (negative). Ask "− 2 to what power is 8 ?" ( − 2 ) 1 = − 2 , ( − 2 ) 2 = 4 , ( − 2 ) 3 = − 8 — the output flails between signs, and ( − 2 ) 1/2 = − 2 isn't even real. There is no smooth one-to-one curve to invert, so log − 2 is not defined .
Why this step? A negative base makes b x jump signs and go complex, destroying the one-to-one property an inverse needs.
log 1 5 , log 1 1 , log − 2 8 are all undefined.
Verify: 1 x = 1 never equals 5 (part a); 1 0 = 1 5 = 1 shows non-uniqueness (part b); ( − 2 ) 1/2 is not a real number (part c). All three fail the legality rules b > 0 , b = 1 . ✓
Worked example Example 7 — Case H: cancellation identities in disguise
Simplify (a) 5 l o g 5 12 , (b) log 3 ( 3 7 ) , and (c) 1 0 2 l o g 10 3 .
Forecast: the two golden identities are b l o g b y = y and log b ( b x ) = x . The first two are direct; the third is dressed up to look scary.
Before part (c) we need one small tool, so here it is self-contained :
(a) 5 l o g 5 12 : the exponent log 5 12 is defined as "the power of 5 that gives 12 ." Raising 5 to it gives 12 .
Why this step? This is b l o g b y = y read straight off.
(b) log 3 ( 3 7 ) : asks "3 to what power is 3 7 ?" The exponent is sitting right there: 7 .
Why this step? This is log b ( b x ) = x .
(c) 1 0 2 l o g 10 3 : use the power rule just derived to pull the 2 inside: 2 log 10 3 = log 10 ( 3 2 ) = log 10 9 . Then 1 0 l o g 10 9 = 9 .
Why this step? We reshaped the exponent so a cancellation identity applies. (This same power rule is developed further in Laws of logarithms — product, quotient, power rules .)
5 l o g 5 12 = 12 , log 3 ( 3 7 ) = 7 , 1 0 2 l o g 10 3 = 9
Verify: (a) 5 l o g 5 12 = 12 ✓; (b) log 3 3 7 = 7 ✓; (c) 3 2 = 9 and 1 0 l o g 10 9 = 9 ✓.
Worked example Example 8 — Case I: a real-world word problem
A colony of bacteria doubles every hour . It starts with 1 cell. After how many whole hours does it first exceed 1000 cells?
Forecast: doubling means base 2 . We want the exponent t with 2 t ≥ 1000 . Since 2 10 = 1024 , guess around 10 hours.
Model the story. After t hours the count is N = 2 t (double each hour, starting from 1 ).
Why this step? "Doubles every hour" is precisely repeated multiplication by 2 — an exponential with base 2 .
Set up the log question. We need the exponent t making 2 t = 1000 , i.e. t = log 2 1000 .
Why this step? We know the answer (1000 ) and the base (2 ) and want the exponent — that is exactly what a log delivers.
Bracket the value between known powers. 2 9 = 512 (too small) and 2 10 = 1024 (just over). So log 2 1000 lies between 9 and 10 .
Why this step? Trapping the target between two clean powers pins the answer without a calculator — the log itself is not a whole number, but the count only jumps at whole hours.
Interpret for whole hours. At t = 9 hours the colony is only 512 cells (below 1000 ); at t = 10 hours it is 1024 cells (above 1000 ). So it first exceeds 1000 at the 10 th hour .
Why this step? The question asks for whole hours, so we report the first integer t whose count clears the threshold.
Cells first exceed 1000 at t = 10 hours.
Verify: 2 9 = 512 < 1000 and 2 10 = 1024 > 1000 . ✓ Units: t is in hours; the exponent of a "per-hour" doubling is a number of hours, as required.
Worked example Example 9 — Case J: exam twist, solve for the base
Find the base b if log b 81 = 4 .
Forecast: here the unknown is the base , not the exponent. The statement says "b to the power 4 is 81 ", so b is the fourth root of 81 . Guess 3 .
Convert to exponential form. log b 81 = 4 ⟺ b 4 = 81 .
Why this step? The definition log b y = x ⟺ b x = y works no matter which slot is unknown — here we solve for b .
Undo the power. Take the positive fourth root: b = 8 1 1/4 = 4 81 .
Why this step? A fourth power is undone by a fourth root, and the base must be positive (b > 0 ), so we keep only the positive root.
Evaluate. 3 4 = 81 , so 4 81 = 3 , giving b = 3 .
Why this step? 4 81 is just the number whose fourth power is 81 ; testing 3 4 = 81 confirms b = 3 (and 3 > 0 , 3 = 1 , so it is a legal base).
b = 3
Verify: check the original statement — log 3 81 = 4 because 3 4 = 81 . ✓ And b = 3 satisfies the legality rules b > 0 , b = 1 .
Common mistake The traps these cases guard against
Sign confusion (Cases C, E, F): a negative answer means input below 1 — it never means a negative input . log 2 ( − 8 ) stays undefined.
Direction confusion (Case E): with a base under 1 the whole graph runs downhill, so the sign of the exponent flips versus the usual "b > 1 " story.
Illegal base (Case G): log 1 y and log − 2 y are not logarithms at all — always check b > 0 , b = 1 before starting.
Identity misuse (Case H): 1 0 2 l o g 10 3 = 6 . You must move the 2 inside first (→ log 10 9 ) before cancelling.
Recall Active recall — cover the answers
log 2 16 ? ::: 4
log 7 1 ? ::: 0
log 2 8 1 ? ::: − 3
log 9 3 ? ::: 2 1
log 1/2 8 ? ::: − 3
Why is log 2 0 undefined? ::: 2 x never equals 0 ; it only approaches it (asymptote).
What does log 2 y do as y → ∞ ? ::: It rises to + ∞ , but slowly (input must double to add 1 ).
Why is log 1 5 undefined? ::: 1 x = 1 always, so no power gives 5 (base 1 is illegal).
Why is log − 2 8 undefined? ::: A negative base flips sign / goes complex, so it is not one-to-one.
Simplify 1 0 2 l o g 10 3 . ::: 9
Solve log b 81 = 4 . ::: b = 3
log_b y asks b to what power is y
Check base legal b greater 0 and b not 1
base under 1 flips the sign