Skip to content
Family Table Math
Auto

Introduction to Logarithms

How many 22s do you multiply together to get 3232? The answer, 55, has a name: it’s the logarithm of 3232 with base 22. Logarithms answer the question “what exponent do I need?”, which is exactly what you need to solve equations like 3x=103^x = 10, where the unknown is stuck in the exponent. In Grade 11 you could only guess and check; logarithms give you a real method.

For a base b>0b \gt 0 with b≠1b \ne 1, and a number x>0x \gt 0:

log⁡bx=y⟺by=x\log_b x = y \quad \Longleftrightarrow \quad b^y = x

Read log⁡bx\log_b x as “log base bb of xx”. It means the exponent you put on bb to get xx. For example, log⁡28=3\log_2 8 = 3 because 23=82^3 = 8.

The same fact can be written two ways. The base stays the base, and the logarithm is the exponent.

Exponential formLogarithmic form
53=1255^3 = 125log⁡5125=3\log_5 125 = 3
10−2=0.0110^{-2} = 0.01log⁡100.01=−2\log_{10} 0.01 = -2
912=39^{\frac{1}{2}} = 3log⁡93=12\log_9 3 = \tfrac{1}{2}
by=xb^y = xlog⁡bx=y\log_b x = y

Taking a logarithm is the inverse operation of raising to a power, the same way a square root undoes squaring. If you raise bb to a power and then take log⁡b\log_b, you get the power back:

log⁡b(bx)=xandblog⁡bx=x  (x>0)\log_b\left(b^x\right) = x \qquad \text{and} \qquad b^{\log_b x} = x \ \ (x \gt 0)

For example, log⁡3(37)=7\log_3\left(3^7\right) = 7 and 10log⁡1042=4210^{\log_{10} 42} = 42. The logarithmic functions page shows what this looks like on a graph.

Why you can’t take the log of zero or a negative number

Section titled “Why you can’t take the log of zero or a negative number”

A positive base raised to any power gives a positive answer: 23=82^3 = 8, 20=12^0 = 1, 2−3=182^{-3} = \tfrac{1}{8}. No exponent makes 2y2^y equal to 00 or a negative number. So:

  • log⁡20\log_2 0 is undefined, because 2y=02^y = 0 has no solution.
  • log⁡10(−3)\log_{10}(-3) is undefined, because no power of 1010 is negative.

The answer to a logarithm can be negative (log⁡100.01=−2\log_{10} 0.01 = -2), but the number you take the log of must be positive.

The base has rules too. It must be positive (powers of a negative number jump between positive and negative), and it can’t be 11 (every power of 11 is 11, so log⁡17\log_1 7 would have no answer).

A logarithm with base 1010 is called a common logarithm, and it’s usually written without the base:

log⁡xmeanslog⁡10x\log x \quad \text{means} \quad \log_{10} x

So log⁡1000=3\log 1000 = 3 and log⁡0.1=−1\log 0.1 = -1. This is the LOG key on your calculator.

Most logarithms aren’t whole numbers. To estimate one, find the powers of the base on either side.

For log⁡250\log_2 50: since 25=322^5 = 32 and 26=642^6 = 64, and 32<50<6432 \lt 50 \lt 64, the value is between 55 and 66. Then narrow it down by systematic trial on a calculator (Example 3).

For base 1010, the LOG key gives the value directly: log⁡50≈1.699\log 50 \approx 1.699. For other bases, there’s a shortcut called the change of base formula, which you’ll meet with the laws of logarithms.

Evaluate each logarithm.

  • (a) log⁡264\log_2 64
  • (b) log⁡319\log_3 \dfrac{1}{9}
  • (c) log⁡0.001\log 0.001
  • (d) log⁡255\log_{25} 5
  • (e) log⁡71\log_7 1

Solution. For each one, ask “what power of the base gives this number?”

(a) 26=642^6 = 64, so log⁡264=6\log_2 64 = 6.

(b) 3−2=132=193^{-2} = \dfrac{1}{3^2} = \dfrac{1}{9}, so log⁡319=−2\log_3 \dfrac{1}{9} = -2.

(c) 0.001=10−30.001 = 10^{-3}, so log⁡0.001=−3\log 0.001 = -3.

(d) 2512=25=525^{\frac{1}{2}} = \sqrt{25} = 5, so log⁡255=12\log_{25} 5 = \dfrac{1}{2}.

(e) 70=17^0 = 1, so log⁡71=0\log_7 1 = 0. (In fact, log⁡b1=0\log_b 1 = 0 for every base.)

(a) Write in logarithmic form: 43=644^3 = 64 and 823=48^{\frac{2}{3}} = 4.

(b) Write in exponential form: log⁡6216=3\log_6 216 = 3 and log⁡1 000 000=6\log 1\,000\,000 = 6.

(c) Solve log⁡2x=5\log_2 x = 5 and log⁡x49=2\log_x 49 = 2.

Solution.

(a) The exponent becomes the value of the log: log⁡464=3\log_4 64 = 3 and log⁡84=23\log_8 4 = \dfrac{2}{3}.

(b) The value of the log becomes the exponent: 63=2166^3 = 216 and 106=1 000 00010^6 = 1\,000\,000.

(c) Rewrite each in exponential form.

log⁡2x=5⇒x=25=32\log_2 x = 5 \quad\Rightarrow\quad x = 2^5 = 32 log⁡x49=2⇒x2=49⇒x=7\log_x 49 = 2 \quad\Rightarrow\quad x^2 = 49 \quad\Rightarrow\quad x = 7

We reject x=−7x = -7 because a base must be positive. Check: 72=497^2 = 49. ✓

Estimate log⁡250\log_2 50 to two decimal places.

Solution. We want the exponent yy with 2y=502^y = 50. From the powers 25=322^5 = 32 and 26=642^6 = 64, yy is between 55 and 66. Since 5050 is a bit closer to 6464 (in ratio), try a value past the middle.

Try yy2y2^yToo big or too small?
5.65.648.5048.50too small
5.75.751.9851.98too big
5.645.6449.8749.87too small
5.655.6550.2150.21too big

So yy is between 5.645.64 and 5.655.65, and 25.642^{5.64} is closer to 5050. To two decimal places, log⁡250≈5.64\log_2 50 \approx 5.64.

Example 4: Solving by rewriting in log form

Section titled “Example 4: Solving by rewriting in log form”

Solve 3x=103^x = 10. Give an exact answer, then an approximation to two decimal places.

Solution. Rewrite in logarithmic form. The base is 33 and the exponent is xx:

3x=10⟺x=log⁡3103^x = 10 \quad\Longleftrightarrow\quad x = \log_3 10

That’s the exact answer. To estimate it: 32=93^2 = 9 and 33=273^3 = 27, so xx is a little more than 22.

Try xx3x3^x
2.12.110.0510.05 (too big)
2.092.099.949.94 (too small)
2.0952.0959.999.99 (too small)

So xx is between 2.0952.095 and 2.12.1, which rounds to x≈2.10x \approx 2.10. Check: 32.10≈10.05≈103^{2.10} \approx 10.05 \approx 10. ✓

Mixing up which number is the exponent. log⁡28\log_2 8 is not 282^8 or 828^2. It asks ”22 to what power is 88?”, so the answer is 33. Say the question out loud until it’s automatic.

Taking the log of zero or a negative number. log⁡(−100)\log(-100) and log⁡50\log_5 0 don’t exist, because a positive base raised to any power is positive. A calculator will show an error.

Thinking a log can’t be negative. It can. log⁡0.01=−2\log 0.01 = -2 because 10−2=0.0110^{-2} = 0.01. Logs of numbers between 00 and 11 are negative (for bases bigger than 11).

Forgetting what “log” with no base means. log⁡x\log x is base 1010. So log⁡100=2\log 100 = 2, not 100100 or 5050.

Treating the log like multiplication. log⁡250\log_2 50 is not 502\dfrac{50}{2} or 2×502 \times 50. It’s the exponent that turns 22 into 5050, about 5.645.64.

Getting fractional logs backwards. log⁡93=12\log_9 3 = \tfrac{1}{2} (because 912=39^{\frac{1}{2}} = 3), but log⁡39=2\log_3 9 = 2. When the number is smaller than the base (and bigger than 11), the log is between 00 and 11.

1. (Warm-up) Evaluate.

  • (a) log⁡525\log_5 25
  • (b) log⁡218\log_2 \dfrac{1}{8}
  • (c) log⁡10 000\log 10\,000
Solution

(a) 52=255^2 = 25, so log⁡525=2\log_5 25 = 2.

(b) 2−3=182^{-3} = \dfrac{1}{8}, so log⁡218=−3\log_2 \dfrac{1}{8} = -3.

(c) 104=10 00010^4 = 10\,000, so log⁡10 000=4\log 10\,000 = 4.

2. (Warm-up) Write in logarithmic form.

  • (a) 34=813^4 = 81
  • (b) 10−3=0.00110^{-3} = 0.001
  • (c) 1614=216^{\frac{1}{4}} = 2
Solution

(a) log⁡381=4\log_3 81 = 4

(b) log⁡0.001=−3\log 0.001 = -3

(c) log⁡162=14\log_{16} 2 = \dfrac{1}{4}

3. (Warm-up) Write in exponential form.

  • (a) log⁡7343=3\log_7 343 = 3
  • (b) log⁡4116=−2\log_4 \dfrac{1}{16} = -2
  • (c) log⁡1=0\log 1 = 0
Solution

(a) 73=3437^3 = 343

(b) 4−2=1164^{-2} = \dfrac{1}{16}

(c) 100=110^0 = 1

4. (Core) Evaluate.

  • (a) log⁡82\log_8 2
  • (b) log⁡279\log_{27} 9
  • (c) log⁡128\log_{\frac{1}{2}} 8
  • (d) log⁡55\log_5 \sqrt{5}
Solution

(a) 813=83=28^{\frac{1}{3}} = \sqrt[3]{8} = 2, so log⁡82=13\log_8 2 = \dfrac{1}{3}.

(b) 2723=(273)2=32=927^{\frac{2}{3}} = \left(\sqrt[3]{27}\right)^2 = 3^2 = 9, so log⁡279=23\log_{27} 9 = \dfrac{2}{3}.

(c) (12)−3=23=8\left(\dfrac{1}{2}\right)^{-3} = 2^3 = 8, so log⁡128=−3\log_{\frac{1}{2}} 8 = -3.

(d) 5=512\sqrt{5} = 5^{\frac{1}{2}}, so log⁡55=12\log_5 \sqrt{5} = \dfrac{1}{2}.

5. (Core) Solve each equation by rewriting it in exponential form.

  • (a) log⁡3x=4\log_3 x = 4
  • (b) log⁡x64=3\log_x 64 = 3
  • (c) log⁡2(x−1)=5\log_2 (x - 1) = 5
  • (d) log⁡x=−2\log x = -2
Solution

(a) x=34=81x = 3^4 = 81

(b) x3=64x^3 = 64, so x=643=4x = \sqrt[3]{64} = 4.

(c) x−1=25=32x - 1 = 2^5 = 32, so x=33x = 33. Check: log⁡232=5\log_2 32 = 5. ✓

(d) x=10−2=0.01x = 10^{-2} = 0.01

6. (Core) Between which two consecutive integers is each logarithm? Explain.

  • (a) log⁡450\log_4 50
  • (b) log⁡0.05\log 0.05
  • (c) log⁡6200\log_6 200
Solution

(a) 42=164^2 = 16 and 43=644^3 = 64. Since 16<50<6416 \lt 50 \lt 64, log⁡450\log_4 50 is between 22 and 33.

(b) 10−2=0.0110^{-2} = 0.01 and 10−1=0.110^{-1} = 0.1. Since 0.01<0.05<0.10.01 \lt 0.05 \lt 0.1, log⁡0.05\log 0.05 is between −2-2 and −1-1.

(c) 62=366^2 = 36 and 63=2166^3 = 216. Since 36<200<21636 \lt 200 \lt 216, log⁡6200\log_6 200 is between 22 and 33 (and close to 33).

7. (Core) Solve 2x=202^x = 20 by rewriting it in logarithmic form. Then estimate xx to two decimal places by systematic trial.

Solution

x=log⁡220x = \log_2 20. Since 24=162^4 = 16 and 25=322^5 = 32, xx is between 44 and 55.

Try xx2x2^x
4.34.319.7019.70 (too small)
4.44.421.1121.11 (too big)
4.324.3219.9719.97 (too small)
4.334.3320.1120.11 (too big)

24.322^{4.32} is much closer to 2020, so x≈4.32x \approx 4.32.

8. (Challenge) Explain why each of these is undefined.

  • (a) log⁡50\log_5 0
  • (b) log⁡17\log_1 7
  • (c) log⁡10(−10)\log_{10}(-10)
Solution

(a) We’d need 5y=05^y = 0. But every power of 55 is positive (for example, 5−105^{-10} is tiny but still positive), so there’s no such yy.

(b) We’d need 1y=71^y = 7. But 11 to any power is 11, so there’s no such yy. That’s why the base can’t be 11.

(c) We’d need 10y=−1010^y = -10. Every power of 1010 is positive, so there’s no such yy.

9. (Challenge) Evaluate.

  • (a) log⁡2(log⁡381)\log_2\left(\log_3 81\right)
  • (b) 5log⁡5125^{\log_5 12}
  • (c) log⁡3(94)\log_3\left(9^4\right)
Solution

(a) Work from the inside out. log⁡381=4\log_3 81 = 4, because 34=813^4 = 81. Then log⁡24=2\log_2 4 = 2.

(b) log⁡512\log_5 12 is the exponent that turns 55 into 1212. Putting that exponent on 55 gives 1212. So 5log⁡512=125^{\log_5 12} = 12.

(c) 94=(32)4=389^4 = \left(3^2\right)^4 = 3^8, so log⁡3(94)=log⁡3(38)=8\log_3\left(9^4\right) = \log_3\left(3^8\right) = 8.