Algebra guide · 7 min read

How to Solve Logarithmic Equations (Step by Step)

Logarithmic equations look intimidating, but almost all of them come down to two moves: combine the logs into one, then rewrite it as an exponential equation. The one extra step is checking your answers, because some solutions do not work in the original equation. This guide covers the rules and every common type with worked examples.

What a Logarithm Means

A logarithm answers the question "what exponent do I need?"

log⁡bx=y⟺by=x\log_b x = y \quad \Longleftrightarrow \quad b^y = x

For example, log⁡28=3\log_2 8 = 3 because 23=82^3 = 8.

Two notation reminders:

  • log⁡x\log x with no base means base 10.
  • ln⁡x\ln x means base ee, so ln⁡x=y\ln x = y means ey=xe^y = x.

The domain rule: you can only take the log of a positive number. The input of every log in the equation (called the argument) must be greater than 0. This is why you must check your answers.

The Log Rules You Need

For a positive base b≠1b \neq 1 and positive MM and NN:

  • Product rule: log⁡b(MN)=log⁡bM+log⁡bN\log_b(MN) = \log_b M + \log_b N
  • Quotient rule: log⁡b(MN)=log⁡bM−log⁡bN\log_b\left(\frac{M}{N}\right) = \log_b M - \log_b N
  • Power rule: log⁡b(Mk)=klog⁡bM\log_b(M^k) = k\log_b M
  • Special values: log⁡bb=1\log_b b = 1 and log⁡b1=0\log_b 1 = 0
  • Change of base: log⁡bM=ln⁡Mln⁡b\log_b M = \frac{\ln M}{\ln b}

There is no rule for log⁡b(M+N)\log_b(M + N). It is not log⁡bM+log⁡bN\log_b M + \log_b N.

Type 1: One Log Equals a Number

Rewrite the equation in exponential form and solve.

Example 1: Solve log⁡2(x+3)=5\log_2(x + 3) = 5.

  1. Rewrite: the base is 2, the exponent is 5, so 25=x+32^5 = x + 3.
  2. Simplify: 32=x+332 = x + 3, so x=29x = 29.
  3. Check: 29+3=32>029 + 3 = 32 > 0, and log⁡232=5\log_2 32 = 5. It works.

Example 2: Solve ln⁡(2x)=3\ln(2x) = 3.

  1. Rewrite: e3=2xe^3 = 2x.
  2. Solve: x=e32≈10.04x = \frac{e^3}{2} \approx 10.04.
  3. Check: 2x=e3>02x = e^3 > 0. It works.

Type 2: Several Logs Equal a Number

Use the log rules to combine everything into one log, then rewrite in exponential form.

Example: Solve log⁡2x+log⁡2(x−2)=3\log_2 x + \log_2(x - 2) = 3.

  1. Combine with the product rule: log⁡2[x(x−2)]=3\log_2\left[x(x - 2)\right] = 3.
  2. Rewrite in exponential form: x(x−2)=23=8x(x - 2) = 2^3 = 8.
  3. Expand and set to 0: x2−2x−8=0x^2 - 2x - 8 = 0.
  4. Factor: (x−4)(x+2)=0(x - 4)(x + 2) = 0, so x=4x = 4 or x=−2x = -2.
  5. Check x=4x = 4 in the original: log⁡24+log⁡22=2+1=3\log_2 4 + \log_2 2 = 2 + 1 = 3. It works.
  6. Check x=−2x = -2: log⁡2(−2)\log_2(-2) is undefined. Reject it.

Answer: x=4x = 4. The value x=−2x = -2 is an extraneous solution: it solves the combined equation but not the original one.

Type 3: Log Equals Log

If both sides are a single log with the same base, the arguments must be equal:

log⁡bM=log⁡bN⟹M=N\log_b M = \log_b N \quad \Longrightarrow \quad M = N

Example 1: Solve log⁡(3x−1)=log⁡(x+7)\log(3x - 1) = \log(x + 7).

  1. Set the arguments equal: 3x−1=x+73x - 1 = x + 7.
  2. Solve: 2x=82x = 8, so x=4x = 4.
  3. Check: 3(4)−1=11>03(4) - 1 = 11 > 0 and 4+7=11>04 + 7 = 11 > 0. It works.

Example 2: Solve log⁡3(x2−4)=log⁡3(3x)\log_3(x^2 - 4) = \log_3(3x).

  1. Set the arguments equal: x2−4=3xx^2 - 4 = 3x.
  2. Rearrange: x2−3x−4=0x^2 - 3x - 4 = 0.
  3. Factor: (x−4)(x+1)=0(x - 4)(x + 1) = 0, so x=4x = 4 or x=−1x = -1.
  4. Check x=4x = 4: 16−4=12>016 - 4 = 12 > 0 and 3(4)=12>03(4) = 12 > 0. It works.
  5. Check x=−1x = -1: (−1)2−4=−3(-1)^2 - 4 = -3, which is negative. Reject it.

Answer: x=4x = 4.

Example 3 (quotient rule): Solve ln⁡(x+6)−ln⁡x=ln⁡4\ln(x + 6) - \ln x = \ln 4.

  1. Combine the left side: ln⁡(x+6x)=ln⁡4\ln\left(\frac{x + 6}{x}\right) = \ln 4.
  2. Set the arguments equal: x+6x=4\frac{x + 6}{x} = 4.
  3. Multiply by xx: x+6=4xx + 6 = 4x, so x=2x = 2.
  4. Check: ln⁡8−ln⁡2=ln⁡82=ln⁡4\ln 8 - \ln 2 = \ln\frac{8}{2} = \ln 4. It works.

How to Check for Extraneous Solutions

Combining logs can create answers that do not work in the original equation, because log⁡bx+log⁡b(x−2)\log_b x + \log_b(x - 2) requires both x>0x > 0 and x−2>0x - 2 > 0, while log⁡b[x(x−2)]\log_b[x(x - 2)] only needs their product to be positive.

Checking routine:

  1. Go back to the original equation, not your simplified one.
  2. Plug each candidate into the argument of every log.
  3. If any argument is zero or negative, reject that candidate.
  4. Optionally, evaluate both sides to confirm they match.

Watch the power rule too. For 2log⁡5x=log⁡5162\log_5 x = \log_5 16, rewriting the left side as log⁡5(x2)\log_5(x^2) gives x2=16x^2 = 16, so x=±4x = \pm 4. But the original equation contains log⁡5x\log_5 x, so x=−4x = -4 is extraneous. The answer is x=4x = 4.

Paste an equation into the VeilGPT solver to check your steps and your domain checks.

Common mistakes

  • Splitting log(x + 2) into log x + log 2. The product rule works on multiplication, not addition.
  • Skipping the domain check and keeping an extraneous solution that makes a log argument negative.
  • Checking candidates in the combined equation instead of the original one, which hides extraneous solutions.
  • Rewriting log_2(x + 3) = 5 as x + 3 = 5^2 instead of x + 3 = 2^5. The base is what gets raised to a power.

Try one yourself

Solve log_3(x) + log_3(x - 8) = 2

Work it out, then check every step with the VeilGPT algebra solver.

Check it with VeilGPT

Questions about this topic

What is an extraneous solution in a log equation?

It is a value that solves your simplified equation but makes at least one log in the original equation undefined. You find it by plugging each answer back into the original equation.

Can the solution to a log equation be negative?

Yes. Only the arguments must be positive, not x itself. For log_2(x + 5) = 1, the solution x = -3 works because the argument x + 5 = 2 is positive.

How do I solve an equation with logs of different bases?

Use the change of base formula to rewrite every log in the same base, often ln. Then combine and solve as usual.

More study guides