Algebra 2 · Grades 10, 11

Logarithms: Solving for an Exponent

Quick answer

A logarithm answers one question: what power do I raise the base to, to get this number? log₂ 8 = 3 because 2³ = 8. That makes logarithms the inverse of exponential functions, and it is the tool for solving any equation where the unknown sits in an exponent — how long an investment takes to double, or how long a population takes to reach a target.

What you'll learn

  • Rewrite between exponential and logarithmic form
  • Solve an exponential equation by taking a logarithm
  • Evaluate logarithms with a calculator, including change of base

A logarithm is an exponent

23=82^3 = 8

That equation can be read two ways. Given the exponent 33, it says the result is 88. Given the result 88, it says the exponent is 33. The second reading is a logarithm:

log⁡28=3\log_2 8 = 3

Read it as “log base 22 of 88 is 33” — the power 22 must be raised to, to give 88.

log⁡bx=y  ⟺  by=x\log_b x = y \quad\iff\quad b^y = x
Exponential formLogarithmic form
103=100010^3 = 1000log⁡101000=3\log_{10} 1000 = 3
52=255^2 = 25log⁡525=2\log_5 25 = 2
2−2=142^{-2} = \tfrac{1}{4}log⁡214=−2\log_2 \tfrac{1}{4} = -2
b0=1b^0 = 1log⁡b1=0\log_b 1 = 0

Why the logarithm is the inverse of the exponential

The exponential function f(x)=2xf(x) = 2^x takes an exponent and returns a result. log⁡2\log_2 takes the result and returns the exponent. Doing one and then the other gets you back where you started:

log⁡2(2x)=x2log⁡2x=x\log_2\left(2^x\right) = x \qquad 2^{\log_2 x} = x

That is the definition of inverse functions. So the graph of y=log⁡2xy = \log_2 x is the graph of y=2xy = 2^x reflected in the line y=xy = x, and the two swap domain and range:

y=2xy = 2^xy=log⁡2xy = \log_2 x
domainall real numbersx>0x > 0
rangey>0y > 0all real numbers

This is why the logarithm of zero or a negative number does not exist among the reals. A positive base raised to any power is positive, so no exponent produces 00 or −5-5.

Solving for an exponent

This is what logarithms are for. When the unknown sits in an exponent, no amount of adding, subtracting, multiplying or dividing can bring it down. A logarithm can.

Solve 3⋅2t=483 \cdot 2^t = 48.

Isolate the power first:

2t=162^t = 16

Then rewrite in logarithmic form:

t=log⁡216=4t = \log_2 16 = 4

When the answer is not a whole number, a calculator finishes the job.

Solve 2x=202^x = 20.

x=log⁡220x = \log_2 20

Evaluating logarithms with a calculator

Calculators have two logarithm keys:

KeyBaseName
log1010common logarithm
lne≈2.718e \approx 2.718natural logarithm

For any other base, the change-of-base formula converts it:

log⁡bx=log⁡xlog⁡b=ln⁡xln⁡b\log_b x = \frac{\log x}{\log b} = \frac{\ln x}{\ln b} log⁡220=log⁡20log⁡2≈1.30100.3010≈4.32\log_2 20 = \frac{\log 20}{\log 2} \approx \frac{1.3010}{0.3010} \approx 4.32

Check: 24.32≈202^{4.32} \approx 20 ✓ — between 24=162^4 = 16 and 25=322^5 = 32, as it should be.

Real models: how long until…

Exponential models answer “how much after tt years?” Logarithms answer the reverse: “how many years until…?”

$500 grows at 5%5\% a year. How long until it doubles to $1,000?

500⋅1.05t=1000⇒1.05t=2500 \cdot 1.05^t = 1000 \quad\Rightarrow\quad 1.05^t = 2 t=log⁡1.052=log⁡2log⁡1.05≈14.2 yearst = \log_{1.05} 2 = \frac{\log 2}{\log 1.05} \approx 14.2 \text{ years}

A population of 200200 grows as P=200e0.03tP = 200e^{0.03t}. When does it reach 600600?

e0.03t=3⇒0.03t=ln⁡3⇒t=ln⁡30.03≈36.6e^{0.03t} = 3 \quad\Rightarrow\quad 0.03t = \ln 3 \quad\Rightarrow\quad t = \frac{\ln 3}{0.03} \approx 36.6

The method is always the same: isolate the power, then take the logarithm whose base matches. With base ee, that is ln; with base 1010, log; with anything else, change of base.

Worked examples

Common mistakes

Practice problems

  1. Find log⁡232\log_2 32.

    Answer

    55

    Full solution

    25=322^5 = 32.

  2. Find log⁡1010,000\log_{10} 10{,}000.

    Answer

    44

    Full solution

    104=10,00010^4 = 10{,}000.

  3. Write 53=1255^3 = 125 in logarithmic form.

    Answer

    log⁡5125=3\log_5 125 = 3

    Full solution

    The exponent 33 is the logarithm.

  4. Find log⁡71\log_7 1.

    Answer

    00

    Full solution

    Any base to the power 00 is 11.

  5. Find log⁡218\log_2 \tfrac{1}{8}.

    Answer

    −3-3

    Full solution

    2−3=182^{-3} = \tfrac{1}{8}.

  6. Solve 2x=642^x = 64.

    Answer

    x=6x = 6

    Full solution

    x=log⁡264=6x = \log_2 64 = 6.

  7. Use change of base to find log⁡320\log_3 20, to two decimal places.

    Answer

    About 2.732.73

    Full solution

    log⁡20log⁡3≈1.30100.4771≈2.73\tfrac{\log 20}{\log 3} \approx \tfrac{1.3010}{0.4771} \approx 2.73.

  8. Solve 4x=1004^x = 100, to two decimal places.

    Hint

    Rewrite as a logarithm, then use change of base.

    Answer

    About 3.323.32

    Full solution

    x=log⁡4100=log⁡100log⁡4=20.6021≈3.32x = \log_4 100 = \tfrac{\log 100}{\log 4} = \tfrac{2}{0.6021} \approx 3.32.

    Check: 43=644^3 = 64 and 44=2564^4 = 256, so an answer between 33 and 44 fits.

  9. $2,000 grows at 8%8\% a year. To the nearest tenth of a year, how long until it reaches $4,000?

    Answer

    About 9.09.0 years

    Full solution

    2000⋅1.08t=40002000 \cdot 1.08^t = 4000, so 1.08t=21.08^t = 2.

    t=log⁡2log⁡1.08≈0.30100.0334≈9.0t = \tfrac{\log 2}{\log 1.08} \approx \tfrac{0.3010}{0.0334} \approx 9.0 years.

  10. To solve 3⋅2t=483 \cdot 2^t = 48, Aiden writes t=log⁡248≈5.58t = \log_2 48 \approx 5.58. Find his error.

    Hint

    What must be done before rewriting as a logarithm?

    Answer

    He did not isolate the power. The answer is t=4t = 4.

    Full solution

    The logarithm undoes 2t2^t, and only 2t2^t. The 33 multiplying it has to be removed first.

    Divide both sides by 33: 2t=162^t = 16.

    Then t=log⁡216=4t = \log_2 16 = 4.

    Checking Aiden’s answer shows the problem: 3⋅25.58≈3×48=1443 \cdot 2^{5.58} \approx 3 \times 48 = 144, not 4848.

Frequently asked questions

What is a logarithm?

The exponent you need. log_b(x) = y means b^y = x. For example, log₁₀ 1000 = 3 because 10³ = 1000.

Why is a logarithm the inverse of an exponential?

An exponential takes an exponent and gives a result. A logarithm takes the result and gives back the exponent. Applying one after the other returns where you started.

What are log and ln on a calculator?

log is base 10 and ln is base e, the natural logarithm. Any other base can be computed from either with the change-of-base formula.

How do I solve 2^x = 20?

Rewrite it as x = log₂ 20, then evaluate with change of base: log 20 ÷ log 2 ≈ 4.32.

Can you take the log of a negative number?

Not with real numbers. A positive base raised to any power is positive, so no exponent gives a negative result.

What to learn next

Standards alignment

This lesson covers the following Common Core State Standards for Mathematics.

  • CCSS.MATH.CONTENT.HSF.LE.A.4Linear, Quadratic, and Exponential ModelsFor exponential models, express as a logarithm the solution to ab<sup>ct</sup> = d where a, c, and d are numbers and the base b is 2, 10, or e; evaluate the logarithm using technology.
  • CCSS.MATH.CONTENT.HSF.BF.B.5Building Functions(+) Understand the inverse relationship between exponents and logarithms and use this relationship to solve problems involving logarithms and exponents.