Definition of a Logarithm

Use the definition of a logarithm to convert between exponential and logarithmic form when solving for unknown exponents.

logax=y    ay=x\log_a x = y \iff a^y = x

Solve a problem with Definition of a Logarithm

Type the problem. The solver will use Definition of a Logarithm where Definition of a Logarithm is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Definition of a Logarithm takes
aa
xx
yy
Definition of a Logarithm
SymbolMeaning
aaThe base—the number being raised to a power; must be positive and not equal to 1, or the logarithm is undefined.
xxThe argument—the positive result you get after raising the base to some power; must be positive, or the logarithm is undefined.
yyThe exponent or output of the logarithm—the power you raise the base to; can be any real number (positive, negative, or zero).

When to use it

When you need to solve for an exponent in an equation and recognize that conversion between exponential and logarithmic form reveals the answer.

Level

Usually taught in: Algebra II

Worked examples

1. Find the logarithm with integer result

Problem

Solve log327=y\log_3 27 = y for yy.
  1. 3y=273^y = 27

    By the definition of logarithm, log327=y\log_3 27 = y means we need the value of yy such that 3y=273^y = 27.

  2. 27=3327 = 3^3

    Recognize that 27=3327 = 3^3, so we can rewrite the equation.

  3. 3y=333^y = 3^3

    Substitute this into the equation from step 1.

  4. y=3y = 3

    When the bases are equal, the exponents must be equal.

Answer: y=3y = 3

The definition of logarithm instantly converts the question into finding which power of 3 gives 27. Recognizing that 27=3327 = 3^3 makes the exponent obvious by equating exponents on both sides.

2. Solve a logarithm equation with a negative result

Problem

Solve log5125=y\log_5 \frac{1}{25} = y for yy.
  1. 5y=1255^y = \frac{1}{25}

    Apply the definition of logarithm to convert log5125=y\log_5 \frac{1}{25} = y into exponential form.

  2. 125=152=52\frac{1}{25} = \frac{1}{5^2} = 5^{-2}

    Rewrite the fraction using a negative exponent: 525^{-2} means 152\frac{1}{5^2}.

  3. 5y=525^y = 5^{-2}

    Substitute this expression back into the equation from step 1.

  4. y=2y = -2

    Equate the exponents since the bases are equal.

Answer: y=2y = -2

When the argument of a logarithm is a fraction less than 1, the result is negative. Converting to exponential form and rewriting the fraction as a negative power of the base makes it clear that y=2y = -2.

3. Find the time for an investment to double using logarithms

Problem

An investment grows according to A=5001.08tA = 500 \cdot 1.08^t, where AA is the amount in dollars and tt is the number of years. How many years will it take for the account to reach $1000?
  1. 1000=5001.08t1000 = 500 \cdot 1.08^t

    Set up the equation by substituting A=1000A = 1000 into the growth formula.

  2. 2=1.08t2 = 1.08^t

    Divide both sides by 500 to isolate the exponential term.

  3. log1.082=t\log_{1.08} 2 = t

    By the definition of logarithm, log1.082=t\log_{1.08} 2 = t is equivalent to 1.08t=21.08^t = 2.

Answer: t=log1.0829.0 yearst = \log_{1.08} 2 \approx 9.0 \text{ years}

The definition of logarithm converts the exponential equation into a form that directly identifies the exponent tt. Using a calculator or the change of base formula, log1.0829.0\log_{1.08} 2 \approx 9.0 years.

Common mistakes

Where Definition of a Logarithm usually goes wrong
Answer came out wrong
Writing logax=y\log_a x = y and then computing ax=ya \cdot x = y
Always convert using the definition: logax=y\log_a x = y means ay=xa^y = x, where aa is the base being raised to power yy.
Confusing which number is the base and which is the exponent, writing log381=y\log_3 81 = y as y3=81y^3 = 81 instead of 3y=813^y = 81
The base aa goes in the exponent form as the base: ay=xa^y = x. The result yy (what the logarithm equals) becomes the exponent, never the base.
Trying to take the logarithm of a negative number or zero, like log2(4)\log_2(-4) or log30\log_3 0
Always verify that the argument (the number inside the logarithm) is positive before applying the logarithm definition.
The mistakeWhy it is wrongThe fix
Writing logax=y\log_a x = y and then computing ax=ya \cdot x = yThe definition uses exponentiation, not multiplication; the logarithm and exponentiation are inverse operations.Always convert using the definition: logax=y\log_a x = y means ay=xa^y = x, where aa is the base being raised to power yy.
Confusing which number is the base and which is the exponent, writing log381=y\log_3 81 = y as y3=81y^3 = 81 instead of 3y=813^y = 81The base of the logarithm appears as the base of the exponential form, not as the exponent; what you are solving for (yy) becomes the exponent in the exponential form.The base aa goes in the exponent form as the base: ay=xa^y = x. The result yy (what the logarithm equals) becomes the exponent, never the base.
Trying to take the logarithm of a negative number or zero, like log2(4)\log_2(-4) or log30\log_3 0Logarithms are undefined for non-positive arguments because no real exponent yy exists such that ay0a^y \leq 0 when a>0a > 0 and a1a \neq 1.Always verify that the argument (the number inside the logarithm) is positive before applying the logarithm definition.

Tips and when to use something else

  • Always convert logax=y\log_a x = y to its exponential form ay=xa^y = x to check your answer or solve for the unknown.
  • If the base of the logarithm is not an obvious power of the argument, use the change of base formula to evaluate it: logax=logxloga\log_a x = \frac{\log x}{\log a}.
  • Watch the domain: the base must be positive and not 1, and the argument must be positive; otherwise the logarithm is undefined.
  • For solving exponential equations like 2x=72^x = 7 where you cannot easily spot the exponent, convert to logarithmic form using the definition: x=log27x = \log_2 7.

Frequently asked questions

What's the difference between logax\log_a x and lnx\ln x?
The natural logarithm lnx\ln x is a logarithm with base ee (approximately 2.718), and follows the same definition: lnx=y\ln x = y means ey=xe^y = x. Natural logarithms are widely used in science and calculus because ee has special mathematical properties.
Why can't I take the logarithm of a negative number?
By the definition of logarithm, logax=y\log_a x = y means ay=xa^y = x. Since a>0a > 0, any power aya^y is always positive, so xx cannot be negative or zero. The argument must always be positive for the logarithm to be defined.
How do I know if my logarithm answer is right?
Use the definition to check: if you found logax=y\log_a x = y, verify that ay=xa^y = x. For example, if you solved log327=y\log_3 27 = y and got y=3y = 3, check that 33=273^3 = 27, which is true.
When would I actually use logarithms in real life?
Logarithms appear in science, engineering, and finance whenever something grows or shrinks exponentially. For example, if money grows at 5% per year, you use logarithms to find how long it takes to double; if radioactive material decays, you use logarithms to find its half-life.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18