Home
Notation: log(x) = base 10, ln(x) = base e, log2(x) or log_2(x) or log(x, 2) = base 2. Variable must be x.
Try:

What Is a Logarithmic Equation?

A logarithmic equation is an equation in which the variable appears inside a logarithm. For example:

log(x) + log(x − 3) = 1

The function logb(x) is defined only for x > 0 (with b > 0 and b ≠ 1). This domain restriction is crucial: even if an algebraic step produces a candidate solution, that value must also make every logarithm's argument strictly positive.

The Key Identity

Every logarithm has an equivalent exponential form:

logb(A) = C ⇔ A = bC

This is the crucial step that converts a logarithmic equation into a polynomial equation. For example:

  • log(x) = 2 → x = 10² = 100
  • ln(x) = 1 → x = e¹ ≈ 2.7183
  • log₂(x) = 3 → x = 2³ = 8

The Three Logarithm Laws

Product rule: logb(A · B) = logb(A) + logb(B)

Quotient rule: logb(A / B) = logb(A) − logb(B)

Power rule: logb(An) = n · logb(A)

These rules let us combine multiple logarithms into a single logarithm before converting to exponential form. For example:

  • log(x) + log(x − 3) = log(x(x − 3))
  • log(x) − log(x − 2) = log(x / (x − 2))
  • 2 · log(x) = log(x²)

Extraneous Solutions

Because the algebra of combining and converting logarithms can produce roots that do not satisfy the original equation (usually because they make an argument ≤ 0), every candidate must be tested against the domain restrictions. For example:

Solve log(x) + log(x − 3) = 1.

  • Domain: x > 0 and x − 3 > 0 → x > 3.
  • Combine: log(x(x − 3)) = 1 → x² − 3x = 10.
  • Solve: x² − 3x − 10 = 0 → (x − 5)(x + 2) = 0 → x = 5 or x = −2.
  • Check: x = 5 is valid (5 > 3). x = −2 is rejected (−2 fails both x > 0 and x − 3 > 0).
  • Final answer: x = 5.

How the Calculator Works

  • Extract every logarithm in the equation (log, ln, logb, log b as a second argument), together with its base and argument.
  • Parse the remaining structure as a sum of "log terms" and constants. Only addition, subtraction, multiplication by a constant, and division by a constant are allowed at the outer level.
  • Group log terms by base and require them all to have the same base (a standard restriction for analytical solution).
  • Combine log terms using the product, quotient, and power rules into a single logarithm.
  • Convert the single logarithm into its exponential form, yielding a polynomial equation in x.
  • Solve the polynomial using exact formulas for degree 1–2 and rational-root extraction for degree 3–4.
  • Filter candidates against every original log argument, discarding any that aren't strictly positive.

Supported Input Notation

log(x)base 10
ln(x)base e
log2(x)base 2
log_2(x)base 2
log(x, 5)base 5
log_5(x)base 5

Assumptions and Limitations

  • The variable must be x. Other variable names are not supported.
  • All logarithms in the equation must have the same base. Mixed-base equations require numerical methods.
  • Logarithm arguments must be polynomials in x. Division by a variable inside a log (e.g. log(1/x)) is not supported — use log(x) with a negative coefficient instead.
  • Powers on the logarithm function itself (such as log²(x)) are not supported — only the argument may contain powers.
  • The equation must contain at least one logarithm. Pure polynomial equations should use the Polynomial Equation Solver.
  • Coefficients on log terms must be integers.
  • The polynomial degree after combining is limited to 4.
  • Input length is limited to 500 characters.

❓ Logarithmic Equation Solver FAQ

What is a logarithmic equation?

A logarithmic equation is an equation in which the variable appears inside at least one logarithm. Examples include log(x) = 2, log(x) + log(x − 3) = 1, and ln(x² − 1) = 0. Solving typically involves combining logarithms, converting to exponential form, and checking the domain.

Why do we need to check for extraneous solutions?

Combining logarithms using the product, quotient, or power rule can introduce solutions that satisfy the combined equation but violate the domain of the original one. For example, log(x) + log(x − 3) = 1 has combined form log(x² − 3x) = 1, which gives x = 5 or x = −2. But x = −2 is invalid because log(−2) is undefined. Every candidate must be checked against the original arguments.

What is the domain of a logarithm?

The logarithm log_b(A) is defined only when A > 0, b > 0, and b ≠ 1. So for every logarithm in the equation, the argument must be strictly positive. The calculator lists all these restrictions and applies them when filtering candidate solutions.

What is the change-of-base formula?

log_b(x) = log_c(x) / log_c(b), for any valid base c. This is useful when you want to convert a logarithm to base 10 or base e so you can evaluate it with a standard calculator. It's also why mixed-base equations require numerical handling.

Can the calculator handle equations like ln(x) = log(x)?

No — this calculator requires all logarithms to have the same base. Equations with mixed bases (like ln and log) require conversion to a common base and typically numerical solution. For textbook problems, all logs in one equation almost always share the same base.

How do I enter log base 2?

Any of these forms works: log2(x), log_2(x), or log(x, 2). The first and third are the most common notations. The comma form (log(x, 2)) mirrors how some calculators display log with an explicit base.

What if my equation has no solution?

This happens in two situations: (1) the polynomial equation after conversion has no real roots (for example, x² = −10), or (2) every candidate solution makes a logarithm argument zero or negative. The calculator reports "no real solution" in both cases, and shows the rejected candidates when applicable.

What is the natural logarithm?

The natural logarithm, written ln(x), is the logarithm to base e ≈ 2.71828. It is fundamental in calculus and appears constantly in growth and decay problems. In this calculator, ln(x) and log_e(x) are treated identically.

Can I have a coefficient in front of a logarithm?

Yes. Input like 2*log(x) = 3 or log(x) + 3*log(x − 1) = 2 is supported. The coefficient must be an integer. The calculator applies the power rule (c · log(A) = log(A^c)) to absorb the coefficient.

Why can't I use other variables like y or t?

The calculator is designed for the standard single-variable case with variable x. If your problem uses a different letter, simply rename it to x before entering. Supporting arbitrary variables would add complexity to the parser without practical benefit, since log equations are almost always written in x.

Can the calculator handle equations with logarithms on both sides?

Yes. For example, log(x − 1) + log(x + 1) = log(3) is supported. The calculator moves all log terms to one side, combines them with the appropriate signs, and solves the resulting equation.

What's the relationship between log and exponential equations?

They're inverse operations: log_b(x) = y means b^y = x. Solving a logarithmic equation always involves converting to exponential form at some point. Similarly, solving an exponential equation involves taking a logarithm. The two families of problems are two sides of the same coin.