Skip to main content
Mathovia

Algebra / Exponential & Logarithmic Functions

Logarithms

A logarithm is an exponent. log₂ 8 = 3 is just another way of writing 2³ = 8 — it answers the question "what power do I raise 2 to, to get 8?" Once you can switch between the two forms, every logarithm problem becomes an exponent problem you already know how to do.

Practice Problems
Written by
MPhil in Mathematics, Founder of Mathovia
Published

Mathematics verification: Mathematical formulas, calculations, worked examples and solutions are reviewed for accuracy before publication. How we check our work

Exponential functions answer “what do I get if I multiply by , times?” Sooner or later you need the reverse question: how many times do I multiply by to reach a given number? How many years until an investment doubles, how many halvings until a drug is gone, how many powers of ten separate two earthquakes? That reverse question is a logarithm, and it is the key that unlocks every exponential equation later in this chapter.

y equals log base b of x if and only if b to the y equals x
The definition of a logarithm

What Is a Logarithm?

For a base , , and a positive number :

The logarithm is the exponent that must be raised to in order to produce . It is the opposite of an exponential: exponentiation takes an exponent and gives a result; a logarithm takes the result and gives back the exponent.

A few examples make the idea concrete:

QuestionExponential factLogarithm
to what power is ?
to what power is ?
to what power is ?
to what power is ?

Logarithmic Notation

In , each position has a name:

PartNameRole
basethe number being raised to a power — the same base as in
argumentthe result of the power; must be positive
logarithm (value)the exponent

Read aloud as “log base of .” Two bases are so common they get shorthand: means , and means . Both are covered in the common and natural logarithms lesson.

Converting a Logarithm to Exponential Form

To change a logarithm to exponential form, keep the base as the base and make the logarithm’s value the exponent:

A reliable way to remember it is to trace a loop: start at the base, go across the equals sign to the value, and come back to the argument — ” to the is .”

Diagram converting log base 2 of 8 equals 3 into 2 cubed equals 8, with the base, exponent and argument colour-coded
The base stays the base; the log's value becomes the exponent

Converting Exponential Form to Logarithmic Form

Going the other way, the exponent is what the logarithm equals, and the result goes inside the log:

This is the move you will use to solve equations where the unknown is an exponent. has no whole-number answer, but in logarithmic form it becomes — an exact value you can then calculate.

Example 1: Logarithmic to Exponential Form (and Back)

Logarithmic formExponential form

Fractions are no different. converts to , which checks out: and .

Evaluating Logarithms by Hand

When the argument is a recognisable power of the base, evaluate the logarithm by asking the exponent question directly:

ExpressionAskResult

The last two rows are true for every base. They, together with two “undo” rules, are the basic properties of logarithms:

PropertyStatementWhy
Log of 1
Log of the base
Inverse propertythe log undoes the power
Inverse propertythe power undoes the log

The product, quotient and power rules that let you break logarithms apart are in the logarithm rules lesson.

The Logarithm Is the Inverse of the Exponential

The inverse properties say that and undo each other — they are inverse functions. That has two consequences:

  • The graph of is the graph of reflected across the line . Every point on the exponential becomes on the logarithm.
  • Domain and range swap. The exponential takes any real input and gives a positive output, so the logarithm takes a positive input and gives any real output.
y = 2^x and y = log base 2 of x as mirror images across the dashed line y = x
y = 2ˣ and y = log₂ x mirror each other across y = x

Worked Example

Evaluate .

Step 1 — call the unknown value and write the logarithm:

Step 2 — convert to exponential form:

Step 3 — write both sides as powers of :

Step 4 — equal bases mean equal exponents:

Step 5 — check by converting back:

So . A base between and turns large arguments into negative logarithms — the mirror image of what a base above does.

Common Mistakes to Avoid

  • Swapping the argument and the exponent. means , not or . The base always stays the base.
  • Taking the log of zero or a negative number. and are undefined — no power of is zero or negative. A negative answer is fine (); a negative argument is not.
  • Treating as division. is , not . A logarithm counts factors; it does not divide.
  • Assuming a missing base is . In algebra, means . The natural log is written .

Practice Problems

Work each one before opening the answer.

Problem 1. Rewrite in exponential form.

Show answer

Step 1 — the base stays the base, and the value becomes the exponent:

Answer:

Problem 2. Rewrite in logarithmic form.

Show answer

Step 1 — the exponent is the value of the log, and is the argument:

Answer:

Problem 3. Evaluate .

Show answer

Step 1 — ask what power of gives :

Answer:

Problem 4. Evaluate .

Show answer

Step 1 — set the log equal to and convert:

Step 2 — write as a power of :

Answer:

Problem 5. Solve .

Show answer

Step 1 — convert to exponential form:

Step 2 — the solutions of are , but a logarithm’s base must be positive:

Answer:

Problem 6. Solve .

Show answer

Step 1 — convert to exponential form:

Step 2 — solve the linear equation:

Step 3 — check the argument is positive: .

Answer:

Two bases dominate real calculations — and — and your calculator has a key for each. The common and natural logarithms lesson explains what and mean and how to move between them.

Frequently Asked Questions

What is a logarithm in simple terms?+

It is the exponent you need. asks what power of gives . Because , ; because , . Logarithms undo exponentials the way square roots undo squaring.

Why can't you take the logarithm of a negative number or zero?+

Because no power of a positive base is negative or zero. would need , and is positive for every real . So the argument of a logarithm must be strictly positive, and the domain of is .

What does log mean when no base is written?+

In algebra and on calculators, with no base means base , the common logarithm. The natural logarithm, base , has its own symbol, . Some computer science and advanced math texts use for base or base , so check the convention when a source switches context.

Related lessons