A logarithm tells you which exponent turns one number into another. For example, log2(8)=3\log_2(8) = 3 because 23=82^3 = 8.

In general, if

logb(x)=y\log_b(x) = y

then

by=xb^y = x

That is the whole idea. A logarithm is the inverse of exponentiation.

For real-valued logarithms, the conditions matter: the base must satisfy b>0b > 0 and b1b \ne 1, and the input must satisfy x>0x > 0.

What a logarithm means

Read logb(x)\log_b(x) as "the power on bb that gives xx." That plain-language version is often easier to remember than the notation.

For example,

log10(100)=2\log_{10}(100) = 2

because

102=10010^2 = 100

The pattern is always the same. If the notation feels abstract, rewrite it as an exponential equation first.

Why Logarithms Are Useful

Exponents describe repeated multiplication and fast growth. Logarithms run that idea backward.

That makes them useful when the output is known but the exponent is not. They also turn multiplicative changes into additive ones, which is why they show up in growth models, sound levels, acidity scales, and algorithms.

Worked example: why a logarithm can be negative

Find

log2(18)\log_2\left(\frac{1}{8}\right)

Rewrite it in exponential form:

2y=182^y = \frac{1}{8}

Now ask what power of 22 gives 18\frac{1}{8}. Since

23=182^{-3} = \frac{1}{8}

the answer is

log2(18)=3\log_2\left(\frac{1}{8}\right) = -3

This clears up a common confusion. A logarithm can have a negative output even though its input must stay positive.

Common logarithm mistakes

  1. Mixing up the input and the output. In logb(x)=y\log_b(x) = y, the input is xx and the result is the exponent yy.
  2. Forgetting the domain. For real logarithms, logb(x)\log_b(x) is defined only when x>0x > 0.
  3. Thinking a negative logarithm means the input is negative. It does not. It means the needed exponent is negative.
  4. Ignoring the base. log2(8)=3\log_2(8) = 3, but log10(8)\log_{10}(8) is not 33.
  5. Reading the notation as ordinary division. logb(x)\log_b(x) is defined by the exponent relationship by=xb^y = x. The identity logb(x)=log(x)log(b)\log_b(x) = \frac{\log(x)}{\log(b)} is a separate change-of-base rule.

When logarithms are used

You will see logarithms when:

  1. Solving exponential equations
  2. Measuring quantities that span many scales, such as decibels or pH
  3. Analyzing growth, decay, or doubling time
  4. Simplifying formulas in algebra, calculus, statistics, and computer science

Translate every log into an exponent

If the notation feels abstract, translate it immediately:

logb(x)=y    by=x\log_b(x) = y \iff b^y = x

That one rewrite handles most beginner confusion.

Try your own version

Take one exponential statement like 34=813^4 = 81 and rewrite it as a logarithm. Then reverse the process with something like log10(0.01)\log_{10}(0.01) and check which exponent makes the statement true.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →