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)−log⁡2(x−2)=3\log_{2}\left(x\right) - \log_{2}\left(x - 2\right) = 3

x=167\displaystyle x = \frac{16}{7}

Decimal

x=2.285714\displaystyle x = 2.285714
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)−log⁡2(x−2)=3\log_{2}\left(x\right) - \log_{2}\left(x - 2\right) = 3
  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)−log⁡2(x−2)=log⁡2(xx−2)\log_{2}\left(x\right) - \log_{2}\left(x - 2\right) = \log_{2}\left(\frac{x}{x - 2}\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

    xx−2=23=8\begin{aligned} \frac{x}{x - 2} &= 2^{3} \\ &= 8 \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=8(x−2)⇒−7x+16=0\begin{gathered} x = 8\left(x - 2\right) \\ \Rightarrow \\ -7x + 16 = 0 \end{gathered}
  5. Solve the linear equation

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

    −7x+16=0⇒x=167\begin{gathered} -7x + 16 = 0 \\ \Rightarrow \\ x = \frac{16}{7} \end{gathered}
  6. Check each solution

    A logarithm needs a positive argument. Every argument is positive for this value, so it is kept.

    x=167:x=167>0, x−2=27>0\begin{gathered} x = \frac{16}{7}: \\ x = \frac{16}{7} > 0,\ x - 2 = \frac{2}{7} > 0 \end{gathered}
  7. Result

    This value keeps every logarithm defined, so the solution is x=167x = \frac{16}{7}.

Worked examples