Logarithmic Equation Calculator

Solve an equation with logarithms of x, and reject answers that do not check.

An equation in x with one = sign.

Try

Result

You enteredlog⁡2(x−5)=log⁡2(−x+3)\log_{2}\left(x - 5\right) = \log_{2}\left(-x + 3\right)

No solution\displaystyle \text{No solution}
Show the work
  1. Collect the logarithms

    Move every logarithm to the left side and every plain number to the right side, so the equation reads: logarithms equal a number.

    log⁡2(x−5)−log⁡2(−x+3)=0\log_{2}\left(x - 5\right) - \log_{2}\left(-x + 3\right) = 0
  2. Quotient rule for logarithms

    A logarithm that is subtracted goes on the bottom of the fraction inside a single logarithm.

    Using log⁡bx−log⁡by=log⁡bxy\log_b x - \log_b y = \log_b\frac{x}{y}

    log⁡2(x−5)−log⁡2(−x+3)=log⁡2(x−5−x+3)\log_{2}\left(x - 5\right) - \log_{2}\left(-x + 3\right) = \log_{2}\left(\frac{x - 5}{-x + 3}\right)
  3. Definition of a logarithm

    Write the equation in exponential form: the argument of the logarithm equals the base raised to the number on the right.

    Using log⁡bx=y  ⟺  by=x\log_b x = y \iff b^y = x

    x−5−x+3=20=1\begin{aligned} \frac{x - 5}{-x + 3} &= 2^{0} \\ &= 1 \end{aligned}
  4. Clear the denominator

    Multiply both sides by the bottom of the fraction, then move everything to one side so the equation equals 0.

    x−5=−x+3⇒2x−8=0\begin{gathered} x - 5 = -x + 3 \\ \Rightarrow \\ 2x - 8 = 0 \end{gathered}
  5. Solve the linear equation

    Collect the terms in xx on one side and divide by the coefficient of xx.

    2x−8=0⇒x=4\begin{gathered} 2x - 8 = 0 \\ \Rightarrow \\ x = 4 \end{gathered}
  6. Check each solution

    A logarithm needs a positive argument, so reject any value that makes one zero or negative. Reject x=4x = 4.

    x=4:x−5=−1≤0, −x+3=−1≤0\begin{gathered} x = 4: \\ x - 5 = -1 \le 0,\ -x + 3 = -1 \le 0 \end{gathered}
  7. Result

    Every candidate was rejected or none existed, so the equation has no solution.

Worked examples