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⁡(x)+log⁡(x−3)=1\log\left(x\right) + \log\left(x - 3\right) = 1

x=5\displaystyle x = 5

Decimal

x=5\displaystyle x = 5
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⁡(x)+log⁡(x−3)=1\log\left(x\right) + \log\left(x - 3\right) = 1
  2. Product rule for logarithms

    Logarithms with the same base that are added combine into one logarithm of the product.

    Using log⁡bx+log⁡by=log⁡b(xy)\log_b x + \log_b y = \log_b(xy)

    log⁡(x)+log⁡(x−3)=log⁡(x(x−3))\log\left(x\right) + \log\left(x - 3\right) = \log\left(x\left(x - 3\right)\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(x−3)=101=10\begin{aligned} x\left(x - 3\right) &= 10^{1} \\ &= 10 \end{aligned}
  4. Rearrange to zero

    Multiply out and move everything to one side so the equation equals 0.

    x(x−3)=10⇒x2−3x−10=0\begin{gathered} x\left(x - 3\right) = 10 \\ \Rightarrow \\ x^{2} - 3x - 10 = 0 \end{gathered}
  5. Quadratic formula

    Here a=1a = 1, b=−3b = -3 and c=−10c = -10, so the discriminant is b2−4ac=49b^2 - 4ac = 49.

    Using x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^{2} - 4ac}}{2a}

    x=3±492⇒x=−2, x=5\begin{gathered} x = \frac{3 \pm \sqrt{49}}{2} \\ \Rightarrow \\ x = -2,\ x = 5 \end{gathered}
  6. Check each solution

    A logarithm needs a positive argument, so reject any value that makes one zero or negative. Reject x=−2x = -2 and keep the rest.

    x=−2:x=−2≤0, x−3=−5≤0x=5:x=5>0, x−3=2>0\begin{array}{l} x = -2:\quad x = -2 \le 0,\ x - 3 = -5 \le 0 \\ x = 5:\quad x = 5 > 0,\ x - 3 = 2 > 0 \end{array}
  7. Result

    Only this value keeps every logarithm defined, so the solution is x=5x = 5.

Worked examples