Math

How to Solve Logarithmic Equations Step by Step

Solve logarithmic equations by condensing the logs, rewriting as an exponent, solving, and rejecting answers outside the domain.

· 5 min read

Most log questions on a problem set follow one pattern. You condense the logs into one, rewrite the equation as an exponent, solve the algebra, then throw out any answer that makes a log argument zero or negative. Learn that order and you can solve logarithmic equations on a midterm without guessing which rule to try next.

Find the domain before you touch anything

A log is only defined when its argument is positive. log_b(u) needs u > 0. Write down that condition for every log in the original equation before you start.

Take log_2(x) + log_2(x - 2) = 3. You need:

  • x > 0 from the first log
  • x - 2 > 0, so x > 2, from the second

Both conditions must hold, so the domain is x > 2. Box it in the margin. You will use it at the end.

Do this step on the original equation. After you condense, the domain can look bigger than it really is. That is how wrong answers sneak through.

Condense with the three log rules

You want one log on one side, or one log on each side. Three rules get you there. They only work when the logs share a base.

  • Product rule: log_b(M) + log_b(N) = log_b(MN)
  • Quotient rule: log_b(M) - log_b(N) = log_b(M/N)
  • Power rule: k * log_b(M) = log_b(M^k)

Apply the power rule first. Move every coefficient up into an exponent. Then combine sums into products and differences into quotients.

For example, 2 log_3(x) - log_3(x + 6) = 1 becomes log_3(x^2) - log_3(x + 6) = 1. That becomes log_3(x^2 / (x + 6)) = 1.

If a plain number sits on the same side as the logs, move it across first. If the bases differ, use the change-of-base formula log_b(M) = ln(M) / ln(b), or rewrite one base as a power of the other. Most course problems keep the bases the same.

Rewrite as an exponent

Once you have a single log equal to a number, use the definition of a log:

log_b(u) = c means b^c = u.

The log disappears and you get an ordinary algebra equation.

  • log_2(x(x - 2)) = 3 becomes x(x - 2) = 2^3 = 8
  • ln(5x) = 2 becomes 5x = e^2
  • log(x) = 4 becomes x = 10^4, since log with no base means base 10

If you end up with a log on each side with the same base, skip the exponent. Set the arguments equal. log_b(A) = log_b(B) means A = B, because a log function is one-to-one.

Solve, then throw out bad answers

Now solve the algebra. It is usually linear or quadratic. Then test each answer against the domain you wrote down at the start.

Example 1: a sum of logs

Solve log_2(x) + log_2(x - 2) = 3.

  1. Domain: x > 2.
  2. Condense: log_2(x(x - 2)) = 3.
  3. Rewrite: x^2 - 2x = 8.
  4. Solve: x^2 - 2x - 8 = 0, so (x - 4)(x + 2) = 0. That gives x = 4 or x = -2.
  5. Check the domain: 4 > 2, so it stays. -2 fails, so throw it out.

Answer: x = 4.

Example 2: base 10 with a bigger quadratic

Solve log(x) + log(x - 21) = 2.

  1. Domain: x > 0 and x > 21, so x > 21.
  2. Condense: log(x(x - 21)) = 2.
  3. Rewrite: x^2 - 21x = 100.
  4. Solve: x^2 - 21x - 100 = 0, so (x - 25)(x + 4) = 0. That gives x = 25 or x = -4.
  5. Check: keep 25, reject -4.

Answer: x = 25.

Example 3: a log on each side

Solve ln(x + 1) - ln(x - 1) = ln(3).

  1. Domain: x > -1 and x > 1, so x > 1.
  2. Condense: ln((x + 1)/(x - 1)) = ln(3).
  3. Set the arguments equal: (x + 1)/(x - 1) = 3.
  4. Solve: x + 1 = 3x - 3, so 4 = 2x and x = 2.
  5. Check: 2 > 1, so it stays.

Answer: x = 2.

Example 4: where the domain trap bites

Solve 2 log_3(x) = log_3(2x + 3).

  1. Domain: x > 0 and 2x + 3 > 0. Together that means x > 0.
  2. Condense: log_3(x^2) = log_3(2x + 3).
  3. Set the arguments equal: x^2 = 2x + 3.
  4. Solve: x^2 - 2x - 3 = 0, so (x - 3)(x + 1) = 0. That gives x = 3 or x = -1.
  5. Check: x = -1 works in log_3(x^2), since (-1)^2 = 1. It fails in the original log_3(x), so reject it.

Answer: x = 3.

This example shows why you take the domain from the original equation. The power rule hid the sign of x inside a square.

Mistakes that cost points

  • Splitting a log of a sum. log(x + 2) is not log(x) + log(2). The product rule goes the other way: a sum of logs becomes the log of a product.
  • Dividing logs. log(A) / log(B) is not log(A/B). Only a difference of logs condenses to a quotient.
  • Mixing bases. You can't combine log_2 and log_3 until you apply change of base.
  • Forgetting the default base. log usually means base 10 and ln means base e. Check your lecture notes, since some texts write log for the natural log.
  • Rejecting too much. A negative answer is not automatically wrong. Reject only answers that make an argument zero or negative. In log(x + 5) = 0, the answer x = -4 is fine because -4 + 5 = 1.
  • Skipping the domain on an exam. Graders often give the rejected root its own point. Write a short line such as x = -2 rejected, outside domain so the grader sees the check.

Check your work

Plug each kept answer back into the original equation. For Example 1, log_2(4) + log_2(2) = 2 + 1 = 3. That matches.

When the numbers aren't clean, use a calculator with change of base. For Example 3, ln(3) - ln(1) = ln(3), which holds because ln(1) = 0.

Run this checklist on every problem:

  1. Did you write the domain from the original equation?
  2. Is everything condensed to one log per side, with matching bases?
  3. Did you rewrite with b^c = u, or set the arguments equal?
  4. Did you solve the algebra fully, including both roots of a quadratic?
  5. Did you test each root against the domain and reject the ones that fail?
  6. Does each kept answer satisfy the original equation when you plug it in?

For more practice, work through the log and exponent topics on the math help page. If a specific problem has you stuck, paste it into chat and go through the steps one at a time.

Try it on your own work.

Each one opens the chat with the question in the box. Change it to yours.

Questions.

Something else? Email hello@nerdly.us

Condensing logs can widen the domain. A root that fits the condensed equation may still make an argument in the original equation zero or negative, so you reject it.

Yes. A negative x is valid as long as every log argument in the original equation stays positive.

Rewrite one base as a power of the other, or use change of base, log_b(M) = ln(M) / ln(b), before you condense.

Condense each side to a single log with the same base, then set the arguments equal and solve.

Stuck on a problem right now?

5 questions a day, free. No account, no card, nothing to install.

Ask a question
Join on TelegramHelp