Solving Logarithmic Equations

April 12, 2026

Problem

Solve log₂(x) + log₂(x−2) = 3. Combine logs, convert to exponential, solve, check domain.

Explanation

Strategy for log equations

  1. Combine logs using properties (product rule: loga+logb=log(ab)\log a + \log b = \log(ab)).
  2. Convert to exponential form (logbx=y    by=x\log_b x = y \iff b^y = x).
  3. Solve the resulting equation.
  4. Check domain — you can only take the log of positive numbers!

Step-by-step: Solve log2x+log2(x2)=3\log_2 x + \log_2(x - 2) = 3

Step 1 — Combine using the product rule:

log2[x(x2)]=3\log_2[x(x - 2)] = 3

Step 2 — Convert to exponential form (log2(stuff)=3\log_2(\text{stuff}) = 3 means stuff=23\text{stuff} = 2^3):

x(x2)=23=8x(x - 2) = 2^3 = 8

Step 3 — Expand and solve the quadratic:

x22x=8x^2 - 2x = 8 x22x8=0x^2 - 2x - 8 = 0 (x4)(x+2)=0(x - 4)(x + 2) = 0 x=4orx=2x = 4 \quad \text{or} \quad x = -2

Step 4 — Check domain. Both log2(x)\log_2(x) and log2(x2)\log_2(x-2) require their arguments to be positive:

  • x=4x = 4: log2(4)=2\log_2(4) = 2 ✓ and log2(2)=1\log_2(2) = 1 ✓. Check: 2+1=32 + 1 = 3
  • x=2x = -2: log2(2)\log_2(-2) is undefined ✗. Rejected!

Answer: x=4x = 4 only.

Why checking the domain is essential

Logarithmic equations often produce extraneous solutions — values that satisfy the algebra but violate log(positive only)\log(\text{positive only}). Always plug answers back into the ORIGINAL equation.

Common mistakes

  • Forgetting to check domain. x=2x = -2 makes the algebra work but the log undefined.
  • Splitting log(AB)=logA+logB\log(A \cdot B) = \log A + \log B the wrong way. This only works for multiplication inside the log, not addition.

Try it in the visualization

The graph shows y=log2x+log2(x2)y = \log_2 x + \log_2(x-2) and y=3y = 3. The intersection at x=4x = 4 is the solution. The graph shows the function is undefined for x2x \leq 2, confirming x=2x = -2 is impossible.

Interactive Visualization

Parameters

2.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Solving Logarithmic Equations | MathSpin