FreeMathCamp
Course Articles

Free Math Camp

A free course in the maths you need before calculus. Short lessons, interactive visuals, practice that adapts to you, and a record of progress on your account.

freemathcamp.app

Made by Adam Richard Turner

hello@adamrichardturner.dev

Course

  • Foundations
  • Articles
  • Start free
  • Sign in

Legal

  • Privacy
  • Terms
  • Do not sell or share

Copyright © Adam Richard Turner. All rights reserved.

  1. Articles
  2. /
  3. Exponentials & Logarithms
Exponentials & Logarithms

What Is a Logarithm? Logs Explained Simply

What a logarithm actually asks, how to switch between log form and exponent form, the values every log shares, why you cannot take the log of a negative number, and how the log graph mirrors the exponential.

3 min read Supports 4 lessons
In short

A logarithm is an exponent. log⁡bx\log_b xlogb​x asks: what power of $b$ gives $x$? Since 23=82^3 = 823=8, log⁡28=3\log_2 8 = 3log2​8=3.

You know how to answer 23=?2^3 = {?}23=?. A logarithm answers the opposite question: 2?=82^{?} = 82?=8. The missing exponent is 333, so we write log⁡28=3\log_2 8 = 3log2​8=3, read "log base 2 of 8 is 3".

Key idea

A logarithm is an exponent. Whenever you see log⁡bx\log_b xlogb​x, ask: $b$ to what power gives $x$?

Definition
log⁡bx=y⟺by=x\log_b x = y \quad\Longleftrightarrow\quad b^{y} = xlogb​x=y⟺by=x

Switching forms

Every log statement can be rewritten as an exponent statement and back again. The base stays the base.

  1. log⁡381=  ?\log_3 81 = \;?log3​81=?

    3 to what power gives 81?

1/4
log⁡101000=3log⁡5125=−2log⁡93=12\log_{10} 1000 = 3 \qquad \log_5 \tfrac{1}{25} = -2 \qquad \log_9 3 = \tfrac12log10​1000=3log5​251​=−2log9​3=21​

Logs can be negative or fractional, because exponents can.

Values every log shares

log⁡b1=0\log_b 1 = 0logb​1=0, because b0=1b^0 = 1b0=1. And log⁡bb=1\log_b b = 1logb​b=1, because b1=bb^1 = bb1=b. These hold for every base.

Two bases are so common they get their own shorthand. log⁡x\log xlogx usually means log⁡10x\log_{10} xlog10​x, and ln⁡x\ln xlnx, the natural log, means log⁡ex\log_e xloge​x.

Logs undo exponentials

Taking log⁡b\log_blogb​ undoes raising to the power bbb, and the other way round:

log⁡b ⁣(bx)=xblog⁡bx=x\log_b\!\left(b^x\right) = x \qquad\qquad b^{\log_b x} = xlogb​(bx)=xblogb​x=x

So the log function is the inverse of the exponential function, and its graph is the exponential's reflection in the line y=xy = xy=x.

Inverse functions: reflections in y=xy = xy=x.

Watch out

You cannot take the log of zero or a negative number. No power of a positive base gives 000 or anything negative, so log⁡2(−4)\log_2(-4)log2​(−4) has no real value.

Why logs are useful

Logs turn huge ranges into manageable ones. Earthquake magnitudes, sound levels in decibels and the pH of a solution are all logarithmic scales: one step up means ten times more. And whenever the unknown is an exponent, as in 2x=202^x = 202x=20, a logarithm is the tool that gets it down.

Worked example

Solve 2x=202^x = 202x=20.

  1. 1

    Rewrite in log form.

    x=log⁡220x = \log_2 20x=log2​20

Common questions

What does log base 2 of 8 mean?

It asks what power of 222 gives 888. Since 23=82^3 = 823=8, log⁡28=3\log_2 8 = 3log2​8=3.

Why can't you take the log of a negative number?

A positive base raised to any real power is always positive. No exponent can produce a negative number or zero, so those logs are undefined.

Practise logarithms

The Logarithms lesson has worked examples and unlimited practice that adapts to you.

Open the lesson

On this page

  1. Switching forms
  2. Values every log shares
  3. Logs undo exponentials
  4. Why logs are useful
  5. Common questions
Lessons on this
  • LogarithmsExponentials & Logarithms
  • Laws of LogarithmsExponentials & Logarithms
  • Solving Exponential EquationsExponentials & Logarithms
  • The Number e & Natural LogarithmsExponentials & Logarithms
Related reading7
Ideas this article builds on or leads to.
  • Exponentials & Logarithms
    The Laws of Logarithms: Product, Quotient and Power Rules

    The laws of logarithms turn multiplication into addition: log⁡(MN)=log⁡M+log⁡N\log(MN) = \log M + \log Nlog(MN)=logM+logN, log⁡MN=log⁡M−log⁡N\log\frac{M}{N} = \log M - \log NlogNM​=logM−logN and log⁡(Mk)=klog⁡M\log(M^k) = k\log Mlog(Mk)=klogM. Each is an exponent law in disguise.

  • Exponentials & Logarithms
    Exponential Growth and Decay: Formula, Graphs and Examples

    Exponential growth multiplies a quantity by the same factor every step, giving f(x)=a⋅bxf(x) = a \cdot b^xf(x)=a⋅bx. When the factor bbb is between 000 and 111, the quantity shrinks instead: exponential decay.

  • Exponentials & Logarithms
    The Number e and the Natural Logarithm (ln) Explained

    e≈2.71828e \approx 2.71828e≈2.71828 is the number that compound interest approaches when interest is added ever more often. The natural logarithm ln⁡x\ln xlnx is the logarithm with base eee.

  • Graphs & Functions
    Composite and Inverse Functions: f(g(x)) and f⁻¹(x) Explained

    A composite function f(g(x))f(g(x))f(g(x)) feeds the output of ggg into fff. An inverse function f−1f^{-1}f−1 undoes fff: if f(2)=7f(2) = 7f(2)=7, then f−1(7)=2f^{-1}(7) = 2f−1(7)=2.

  • Powers & Roots
    What Are Exponents? Powers, Bases and Repeated Multiplication

    An exponent (or power) says how many times to multiply a number, the base, by itself: 25=2×2×2×2×2=322^5 = 2 \times 2 \times 2 \times 2 \times 2 = 3225=2×2×2×2×2=32.

  • Graphs & Functions
    What Is a Function? Inputs, Outputs, f(x) and the Vertical Line Test

    A function is a rule that gives exactly one output for each input. Writing f(x)f(x)f(x) means "the output of the function fff when the input is xxx".

  • Number & Arithmetic
    Negative Numbers: Adding, Subtracting, Multiplying and Dividing

    Negative numbers are numbers less than zero, written with a minus sign and placed to the left of zero on the number line. Together with zero and the positive whole numbers they form the integers.