Solve log(x) + log(x − 21) = 2

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

Answer

Solutionx = 25

Step-by-step solution

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

    Solve for x.

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

    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 = 25
  15. 15 Check
    \begin{aligned}x = 25:\quad \log_{10}{\left(4 \right)} + \log_{10}{\left(25 \right)} = 2\quad\checkmark\end{aligned}

    Substituting each solution back makes both sides equal.

Check by substitution

xLeft sideRight side
25log_10(4) + log_10(25)2✓
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.