Prerequisites: lines, exponents, logs, trig

Definition of the logarithm

The logarithm log⁡ab\log_a b is an exponent: aa to what power gives bb?

log⁡ab=c  ⟺  ac=b,log⁡axy=log⁡ax+log⁡ay\begin{gathered} \log_a b=c \iff a^c=b, \\[4pt] \log_a xy=\log_a x+\log_a y \end{gathered}

The logarithm log⁡ab\log_a b answers one question: aa to what power gives bb? The definition is log⁡ab=c  ⟺  ac=b\log_a b=c \iff a^c=b, so log⁡28=3\log_2 8=3 is just 23=82^3=8 rewritten.

Translating the exponent rules into logarithms gives three rules.

log⁡axy=log⁡ax+log⁡ay,log⁡axy=log⁡ax−log⁡ay,log⁡axk=klog⁡ax\begin{gathered} \log_a xy=\log_a x+\log_a y, \\[4pt] \log_a \frac{x}{y}=\log_a x-\log_a y, \\[4pt] \log_a x^k=k\log_a x \end{gathered}

In calculus, log⁡x\log x means the natural logarithm (base ee). The rule (log⁡x)′=1x(\log x)'=\dfrac{1}{x} follows from this definition and the derivative of exe^x.

xyy = 2ˣy = log₂ x
log₂ x is the inverse of 2ˣ: the two graphs are mirror images across y=x.Drag the dot

Examples

  1. 01Given log⁡5125=3\log_{5}125 = 3, evaluate:log⁡5625−log⁡5125\displaystyle \log_{5}625 - \log_{5}125AnswerHide
    Answer1\displaystyle 1

    Steps

    1. 54\displaystyle 5^{4}=625\displaystyle = 625
    2. Subtracting exponents means dividing
    3. 625125\displaystyle \frac{625}{125}=51\displaystyle = 5^{1}
    4. In logarithmic form
    5. log⁡5625125\displaystyle \log_{5}\frac{625}{125}=1\displaystyle = 1
  2. 02Write in exponential form:log⁡28=3\displaystyle \log_{2}8 = 3AnswerHide
    Answer23=8\displaystyle 2^{3} = 8

    Steps

    1. log⁡28\displaystyle \log_{2}8=3\displaystyle = 3
    2. In exponential form
    3. 23\displaystyle 2^{3}=8\displaystyle = 8
  3. 03What number goes in □?log⁡a1=□\displaystyle \log_{a}1 = \squareAnswerHide
    Answer0\displaystyle 0

    Steps

    1. a0\displaystyle a^{0}=1\displaystyle = 1
    2. In logarithmic form
    3. log⁡a1\displaystyle \log_{a}1=0\displaystyle = 0
  4. 04What is the value?log⁡327\displaystyle \log_{3}27AnswerHide
    Answer3\displaystyle 3

    Steps

    1. 33\displaystyle 3^{3}=27\displaystyle = 27
    2. In logarithmic form
    3. log⁡327\displaystyle \log_{3}27=3\displaystyle = 3
  5. 05Write in logarithmic form:53=125\displaystyle 5^{3} = 125AnswerHide
    Answerlog⁡5125=3\displaystyle \log_{5}125 = 3

    Steps

    1. 53\displaystyle 5^{3}=125\displaystyle = 125
    2. In logarithmic form
    3. log⁡5125\displaystyle \log_{5}125=3\displaystyle = 3
  6. 06Given log⁡24=2\log_{2}4 = 2, evaluate:log⁡22+log⁡24\displaystyle \log_{2}2 + \log_{2}4AnswerHide
    Answer3\displaystyle 3

    Steps

    1. 21\displaystyle 2^{1}=2\displaystyle = 2
    2. Adding exponents means multiplying
    3. 2×4\displaystyle 2 \times 4=23\displaystyle = 2^{3}
    4. In logarithmic form
    5. log⁡2(2×4)\displaystyle \log_{2}(2 \times 4)=3\displaystyle = 3

FAQ

What is the base of log x?
In this app and in calculus, log⁡x\log x with no base means the natural logarithm (base ee). The common logarithm is written log⁡10x\log_{10} x.

Published 2026-09-04 · Updated 2026-10-14