Solve log2(x) + log2(x − 4) = 5

Logarithmic equation, worked out line by line the way a teacher would write it.

Answer

Solutionx = 8

Step-by-step solution

15 steps
  1. 1 Given
    \log_{2}{\left(x \right)} + \log_{2}{\left(x - 4 \right)} = 5

    Solve for x.

  2. 2 Domain: the argument of every logarithm must be positive
    x > 0,\quad x - 4 > 0\quad\Longrightarrow\quad x > 4
  3. 3 Combine the logarithms: log a + log b = log(ab), log a − log b = log(a/b), k·log a = log(aᵏ)
    \log_{2}{\left(x \left(x - 4\right) \right)} = 5
  4. 4 Rewrite in exponential form: log_2(g) = d means g = 2^d
    x \left(x - 4\right) = 2^{5} = 32
  5. 5 Expand the brackets and collect like terms
    x^{2} - 4 x = 32
  6. 6 Move every term to the left side so the right side is 0
    x^{2} - 4 x - 32 = 0
  7. 7 This is a quadratic in standard form ax² + bx + c = 0
    a = 1,\quad b = -4,\quad c = -32
  8. 8 Factor the trinomial: find two numbers whose product is c = -32 and whose sum is b = -4
    (-8) \cdot 4 = -32,\qquad (-8) + 4 = -4
  9. 9 Write the factored form
    \left(x - 8\right) \left(x + 4\right) = 0
  10. 10 Zero product property: a product is 0 only when one of its factors is 0
    x - 8 = 0\quad \text{or} \quad x + 4 = 0
  11. 11 Add 8 to both sides
    x = 8

    Move the constant terms to the right.

  12. 12 Subtract 4 from both sides
    x = -4

    Move the constant terms to the right.

  13. 13 Reject x = -4: it makes a logarithm argument non-positive (extraneous)
  14. 14 Remaining solution
    x = 8
  15. 15 Check
    \begin{aligned}x = 8:\quad 5 = 5\quad\checkmark\end{aligned}

    Substituting each solution back makes both sides equal.

Check by substitution

xLeft sideRight side
855✓
Open this problem in the solver

Change a number or try your own problem: the solver works it out the same way, with a graph and hint mode.