Skip to content

Logarithms explained: what they are and how to use them

TutorAura guide · Updated

A logarithm answers the question: what power do I need? log⁡28=3\log_2 8 = 3 because 23=82^3 = 8. In general:

log⁡ax=y⟺ay=x\log_a x = y \quad \Longleftrightarrow \quad a^y = x

The small number aa is the base. Logs undo powers, in the same way that square roots undo squaring, which is why they're used to solve equations where the unknown is in the power. They're taught in A level Maths, the IB, and US Algebra 2 and Precalculus.

Key takeaways

  • log_a x is the power you raise a to, to get x.
  • log(ab) = log a + log b; log(a/b) = log a − log b; log(aⁿ) = n log a.
  • ln means log base e (about 2.718).
  • Use logs to solve equations with the unknown in the power.

Examples to build intuition

LogBecauseValue
log⁡101000\log_{10} 1000103=100010^3 = 10003
log⁡232\log_2 3225=322^5 = 325
log⁡51\log_5 150=15^0 = 10
log⁡319\log_3 \tfrac{1}{9}3−2=193^{-2} = \tfrac{1}{9}−2-2

log⁡aa=1\log_a a = 1 and log⁡a1=0\log_a 1 = 0 for any base.

The laws of logarithms

log⁡a+log⁡b=log⁡(ab)log⁡a−log⁡b=log⁡(ab)log⁡(an)=nlog⁡a\log a + \log b = \log(ab) \qquad \log a - \log b = \log\left(\frac{a}{b}\right) \qquad \log(a^n) = n\log a

These follow from the laws of indices: multiplying powers means adding the indices, so multiplying numbers means adding their logs. (All the logs must have the same base.) Revise indices with our laws of indices questions.

Solving exponential equations

Example: 2x=102^x = 10.

Take logs of both sides: log⁡2x=log⁡10\log 2^x = \log 10, so xlog⁡2=log⁡10x \log 2 = \log 10, and x=log⁡10log⁡2≈3.32x = \dfrac{\log 10}{\log 2} \approx 3.32.

Check: 23.32≈102^{3.32} \approx 10. The same method finds how long an investment takes to double, or how long a radioactive sample takes to decay.

Natural logs and e

e≈2.718e \approx 2.718 is a special base that appears in growth and decay. The log to base ee is the natural log, written ln⁡\ln: ln⁡e=1\ln e = 1 and ln⁡1=0\ln 1 = 0. Equations like e2x=7e^{2x} = 7 are solved with ln: 2x=ln⁡72x = \ln 7, so x≈0.973x \approx 0.973.

Changing the base

Calculators usually have log (base 10) and ln (base ee) buttons. For any other base:

log⁡ax=log⁡xlog⁡a\log_a x = \frac{\log x}{\log a}

So log⁡210=log⁡10÷log⁡2≈3.32\log_2 10 = \log 10 \div \log 2 \approx 3.32, matching the example above.

Common mistakes

  • Thinking log⁡(a+b)=log⁡a+log⁡b\log(a + b) = \log a + \log b (only products split).
  • Dividing logs instead of subtracting: log⁡alog⁡b\tfrac{\log a}{\log b} is not log⁡ab\log\tfrac{a}{b}.
  • Taking the log of a negative number or zero: it's undefined.

Logs connect to compound growth: see our compound interest calculator and exponential growth and decay questions.

Where logarithms are used

Logarithmic scales compress huge ranges into manageable numbers:

  • pH: pH=−log⁡10[H+]\text{pH} = -\log_{10}[\text{H}^+], so each pH unit is a tenfold change in hydrogen ion concentration.
  • Sound: decibels are logarithmic: 10 dB more means ten times the sound intensity.
  • Earthquakes: each step up on a magnitude scale is about ten times the ground movement.

Logs also solve growth and decay problems, such as how long a population takes to double.

Practice questions

  1. Find log⁡381\log_3 81.
  2. Simplify log⁡4+log⁡25\log 4 + \log 25 (base 10).
  3. Solve 3x=203^x = 20, to 3 significant figures.
  4. Find log⁡218\log_2 \tfrac{1}{8}.

Answers: 1. 4 (because 34=813^4 = 81). 2. log⁡100=2\log 100 = 2. 3. x=log⁡20÷log⁡3≈2.73x = \log 20 \div \log 3 \approx 2.73. 4. −3-3.

Logs and indices side by side

Index formLog form
25=322^5 = 32log⁡232=5\log_2 32 = 5
10−2=0.0110^{-2} = 0.01log⁡100.01=−2\log_{10} 0.01 = -2
e0=1e^0 = 1ln⁡1=0\ln 1 = 0

Frequently asked questions

What is a logarithm?

The power you need to raise the base to, to get a number: log₂ 8 = 3 because 2³ = 8.

What are the laws of logarithms?

log a + log b = log(ab), log a − log b = log(a/b), and log(aⁿ) = n log a, all with the same base.

What is ln?

The natural logarithm: the log to base e, where e is about 2.718.

Sources

  1. Cambridge International AS & A Level Mathematics 9709. Cambridge International.