Allday Education

Logarithms & Logarithmic Functions

A logarithm answers one question: what exponent do I need? When you see log28\log_2 8, it's asking — 22 raised to what power gives 88? Since 23=82^3 = 8, the answer is 33. That's it. A logarithm is not a new operation you have to build from scratch; it's the exponent itself, pulled out into the open.

Students who struggle with logs are almost always struggling with the notation, not the idea. You already know that 23=82^3 = 8. The statement log28=3\log_2 8 = 3 says the exact same thing, just rearranged so the exponent is the answer. Learn to translate between the two forms and most log problems collapse into exponent problems you can already do.

A logarithm asks: what exponent?

The expression logbx\log_b x reads "log base bb of xx," and it stands for the exponent you'd put on bb to produce xx. So log381=4\log_3 81 = 4 because 34=813^4 = 81, and log101000=3\log_{10} 1000 = 3 because 103=100010^3 = 1000.

The logarithm is the inverse of the exponential with the same base. Exponentials take an exponent and give you the result: 26=642^6 = 64. Logarithms take the result and give you back the exponent: log264=6\log_2 64 = 6. Same relationship between the numbers, read in the opposite direction.

This is why logs matter beyond the classroom. A bacteria population that doubles every hour follows 2t2^t — an exponential. If you're asked how many hours it takes to reach 6464 cells, you're asking for the exponent, so the answer is a logarithm: log264=6\log_2 64 = 6 hours.

Switching between log form and exponential form

The two forms are logbx=y\log_b x = y and by=xb^y = x. Same base bb, same statement. The number sitting as the subscript in log form becomes the base of the power in exponential form, and the answer to the log is the exponent.

When a log problem stumps you, rewrite it in exponential form immediately. "Evaluate log5125\log_5 125" becomes "solve 5y=1255^y = 125" — and since 125=53125 = 5^3, you can read off y=3y = 3. Nearly every intro log problem is one rewrite away from being an exponent problem.

One restriction to know: the base bb must be positive (and not 11), and you can only take the log of a positive number. There's no real answer to log2(8)\log_2(-8), because 22 raised to any real power is always positive — it can never produce a negative number.

Special values worth memorizing

logb1=0\log_b 1 = 0 for every base, because b0=1b^0 = 1. And logbb=1\log_b b = 1, because b1=bb^1 = b. These two facts anchor the whole log scale — every log curve passes through the point (1,0)(1, 0).

Two bases show up so often they get shorthand. A log written with no base, like log100\log 100, means base 1010 — the common log — so log100=2\log 100 = 2. The natural log lnx\ln x means base e2.718e \approx 2.718; it's the version calculus and science use constantly. Both work exactly like every other log: they ask for an exponent.

Worked examples

Example 1: evaluate a basic log

Evaluate log28\log_2 8.

Translate the question: 22 to what power is 88?2y=82^y = 8
Write 88 as a power of 228=238 = 2^3
The exponent is the answerlog28=3\log_2 8 = 3

Answer: log28=3\log_2 8 = 3

Example 2: a bigger base

Evaluate log5125\log_5 125.

Rewrite in exponential form5y=1255^y = 125
Write 125125 as a power of 55125=53125 = 5^3
Read off the exponentlog5125=3\log_5 125 = 3
Check: 53=555=1255^3 = 5 \cdot 5 \cdot 5 = 125

Answer: log5125=3\log_5 125 = 3

Example 3: a fraction inside the log

Evaluate log319\log_3 \dfrac{1}{9}.

Rewrite in exponential form3y=193^y = \dfrac{1}{9}
A fraction like this needs a negative exponent19=132=32\dfrac{1}{9} = \dfrac{1}{3^2} = 3^{-2}
Read off the exponentlog319=2\log_3 \dfrac{1}{9} = -2

Answer: log319=2\log_3 \dfrac{1}{9} = -2

Example 4: a common log (base 10)

Evaluate log10,000\log 10{,}000.

No base written means base 1010log1010,000\log_{10} 10{,}000
Write 10,00010{,}000 as a power of 101010,000=10410{,}000 = 10^4
Read off the exponentlog10,000=4\log 10{,}000 = 4

Answer: log10,000=4\log 10{,}000 = 4

Try one yourself

Common questions

Is a logarithm just an exponent?

Yes — that's the cleanest way to say it. logbx\log_b x is the exponent you put on bb to get xx. The statement log232=5\log_2 32 = 5 and the statement 25=322^5 = 32 contain identical information.

Why can't I take the log of a negative number or zero?

Because a positive base raised to any real power stays positive. 2y2^y can be huge or tiny, but it's never zero and never negative — so there's no real exponent that answers log2(8)\log_2(-8) or log20\log_2 0.

What's the difference between logx\log x and lnx\ln x?

Only the base. logx\log x (no base shown) is base 1010, and lnx\ln x is base e2.718e \approx 2.718. Both ask the same kind of question — what exponent on the base gives xx — they just use different bases.

Want the video version?

Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.

Try it for $1