30% off your first 3 months

Get the deal

Logarithms

A logarithm answers the question: what power do I raise the base to, to get this number? log⁡28=3\log_2 8 = 3 because 23=82^3 = 8.

Guide 7 of 8
Two handwritten lines: 2 to the power 3 equals 8, with the power 3 in blue; then log base 2 of 8 equals 3, with the 3 circled. The log is the power.
log₂ 8 = 3 because 2³ = 8. The log is the power.

Why it works. Logs and exponents are two ways of writing the same fact. 23=82^3 = 8 says that raising 2 to the power 3 gives 8, and log⁡28=3\log_2 8 = 3 says that 3 is the power that does it. That is why a log undoes an exponent, and why logs solve equations with x up in the power.


Move it yourself

Slide the power: two to that power is the height, and the log of the height gives the power back.

Two handwritten lines: 2 to the power 3 equals 8, with the power 3 in blue; then log base 2 of 8 equals 3, with the 3 circled. The log is the power.

Your turn

Solve 5x−2=1255^{x - 2} = 125.

Or just show the answer

x=5x = 5

125=53125 = 5^3, so x−2=3x - 2 = 3 and x=5x = 5. As a log: x−2=log⁡5125=3x - 2 = \log_5 125 = 3. Check: 55−2=53=1255^{5 - 2} = 5^3 = 125.


Watch out for

  • Mistake 1. Struck through: log2 8 = 8 over 2 = 4; written over it: log2 8 = 3.

    Dividing: log⁡28=82=4\log_2 8 = \frac{8}{2} = 4.

    A log asks for a power: 23=82^3 = 8, so log⁡28=3\log_2 8 = 3.

  • Mistake 2. Struck through: log(a + b) = log a + log b; written over it: log(ab) = log a + log b.

    Splitting the log of a sum: log⁡(a+b)=log⁡a+log⁡b\log(a + b) = \log a + \log b.

    That rule is for a product: log⁡(ab)=log⁡a+log⁡b\log(ab) = \log a + \log b.

  • Mistake 3. Struck through: log2 1 over 8: none; written over it: log2 1 over 8 = −3.

    Thinking log⁡218\log_2 \frac{1}{8} cannot be worked out because the answer would be negative.

    It is −3-3, since 2−3=182^{-3} = \frac{1}{8}. Only the number inside a log must be positive.


Stuck on your own homework?

Open DuckyHelper and say it out loud. It sees your screen, so it works through your own problem with you and draws it, like the board above.

“Explain what this log means in words, then help me solve my equation with it.”

Plus is $14 a month for your first 3 months. DuckyHelper is an app for Mac (Apple silicon, macOS 14 or later), Windows and Linux.


Read the whole guide as text

A logarithm answers the question: what power do I raise the base to, to get this number? log⁡28=3\log_2 8 = 3 because 23=82^3 = 8. So every log statement is an exponent statement turned around. To solve an equation like 2x+1=322^{x+1} = 32, match the powers: 32=2532 = 2^5, so x+1=5x + 1 = 5 and x=4x = 4.

Worked example

Solve 2x+1=322^{x+1} = 32.

  1. Write 32 as a power of 2: 2, 4, 8, 16, 32 is five doublings.
    25=322^5 = 32
  2. The bases match, so the powers match.
    x+1=5x + 1 = 5
  3. Take away 1.
    x=4x = 4
  4. The log says the same: the power that turns 2 into 32 is 5.
    log⁡232=5\log_2 32 = 5
  5. Check in the first equation.
    24+1=322^{4+1} = 32

Answer: x=4x = 4

Algebra 2: all 8 guides
Questions and jobs

Do anything

Ask it a question or hand it a job, in any app.

Doing jobs for you is in the Mac app. Asking works on Mac, Windows and Linux.