Logarithmic Equation Solver
log_b(x)=c · Sum of Logs · Linear in Log · Natural ln · Same-base equality
Solve equations where the variable appears inside a logarithm. Full step-by-step solution, domain check, and extraneous solution detection.
Quick Examples
Equation Type
Equation form: log_b(x) = c → x = bc
Equation form: a·log_b(x) + c = d
Note: enter d as a decimal (e.g. for 2log(x) = log(25), enter d = 1.39794 for log₁₀ or d = log(25) ≈ 1.39794). Or use the quick example button above.
Equation form: log_b(ax+p) + log_b(cx+q) = log_b(k) or = N
First log argument: (a·x + p)
Second log argument: (c·x + q)
RHS: log_b(k) = N means k = bN
Equation form: ln(a·x + b) = c → x = (ec − b) / a
Equation form: log_b(Ax² + Bx + C) = N → Ax² + Bx + C = bN, solve quadratic
Domain & Extraneous Solution Check
Step-by-Step Solution
Verification
Log Rules Reference Card
What Are Logarithmic Equations?
A logarithmic equation is an equation in which the unknown variable appears as the argument of a logarithm. Examples range from the simple log(x) = 3 to more complex forms like log₂(x+3) + log₂(x−1) = 5. Solving these equations requires systematically applying logarithm rules to isolate the log, then using the inverse relationship between logarithms and exponentiation to recover x.
Logarithmic equations appear in many branches of science and engineering, from chemistry (pH calculation) to seismology (Richter scale) to acoustics (sound intensity in decibels) to finance (compound interest and time value of money).
Types of Logarithmic Equations
| Type | Form | Method |
|---|---|---|
| Basic | log_b(x) = c | Exponentiate: x = b^c |
| Linear in log | a·log_b(x) + c = d | Isolate log, then exponentiate |
| Sum of logs | log(f(x)) + log(g(x)) = N | Product rule, then solve polynomial |
| Natural log | ln(ax+b) = c | Exponentiate with e: ax+b = e^c |
| Same-base equality | log_b(quadratic) = N | Set quadratic = b^N, solve, check domain |
The Five Core Logarithm Rules
Mastering logarithm rules is essential for solving log equations:
- Product rule: log_b(xy) = log_b(x) + log_b(y). Use this to combine a sum of logs into a single log.
- Quotient rule: log_b(x/y) = log_b(x) − log_b(y). Use this to combine a difference of logs.
- Power rule: log_b(x^n) = n·log_b(x). Use this to bring coefficients in front of logs inside as exponents.
- Change-of-base formula: log_b(x) = ln(x)/ln(b). Converts any base to natural log for numerical calculation.
- Inverse property: b^(log_b(x)) = x. The fundamental tool for removing the logarithm once isolated.
Domain Restrictions and Extraneous Solutions
The most critical aspect of solving logarithmic equations is the domain restriction: log_b(u) is only defined when u > 0. This requirement applies to every logarithm argument in the equation simultaneously. When solving a sum-of-logs equation that leads to a quadratic, both roots must be checked individually — a root is extraneous if substituting it back makes any argument zero or negative.
For example, solving log(x) + log(x−3) = 1 yields x = 5 and x = −2. Substituting x = −2: log(−2) is undefined, so x = −2 is discarded. Only x = 5 is a valid solution.
Natural Logarithm vs Common Logarithm
The natural logarithm (ln) uses Euler's number e ≈ 2.71828 as its base. It appears naturally in calculus, differential equations, and growth/decay models. The common logarithm (log₁₀, often written simply as "log") uses base 10 and is used in pH measurement, the Richter scale, and decibel calculations. Both satisfy the same algebraic rules; they differ only in their base and the constant relating them: log(x) = ln(x) / ln(10) ≈ ln(x) / 2.3026.
Real-World Applications
- pH calculation: pH = −log[H⁺]. Solving for hydrogen ion concentration from a known pH requires exponentiating: [H⁺] = 10^(−pH).
- Richter scale: Earthquake magnitude M = log(I/I₀). Finding intensity ratio from magnitude: I/I₀ = 10^M.
- Decibels: Sound level L = 10·log(P/P₀). Solving for power ratio from decibel level is a direct logarithmic equation.
- Finance: Compound interest A = P(1+r)^t. Solving for time t requires taking logarithms: t = log(A/P) / log(1+r).
- Information theory: Shannon entropy H = −∑ p·log₂(p). Solving for probabilities from entropy values involves logarithmic equations.
- Radioactive decay: N(t) = N₀·e^(−λt). Solving for time uses the natural logarithm: t = ln(N/N₀) / (−λ).
Worked Example: log₂(x+3) + log₂(x−1) = 5
Step 1 — Combine using product rule: log₂((x+3)(x−1)) = 5
Step 2 — Exponentiate both sides (base 2): (x+3)(x−1) = 2⁵ = 32
Step 3 — Expand: x² + 2x − 3 = 32 → x² + 2x − 35 = 0
Step 4 — Factor/quadratic formula: (x+7)(x−5) = 0 → x = −7 or x = 5
Step 5 — Domain check: x = −7: log₂(−7+3) = log₂(−4) — undefined. x = 5: log₂(8) and log₂(4) — both valid.
Answer: x = 5 (x = −7 is extraneous)