Algebra & Equation Solvers

Logarithmic Equation Solver

Solve single-logarithm equations, one-to-one same-base equalities, and two-term product or quotient logarithmic equations—complete with quadratic root extraction, automatic extraneous-root filtering, and intersection graphing.

Reviewed by Sanjay Samanta & Academic Review Board
Last Updated:
Verified Accurate: Automated Domain Guard & Intersection Graph
Examples:

Solve log_b(c*x + d) = k

b:
Valid Real Solution(s)
x = 51.5
Domain: x > 1.5
Extraneous Check
None rejected
LHS(51.5) = 2 = RHS
Algebraic Solution & Domain Check

    Graph of Equation Intersections & Domain Boundary

    Emerald markers show valid roots inside the domain; amber markers indicate rejected extraneous candidates.

    1 Valid Root
    Active Equation
    log10(2x - 3) = 2
    Exponential Step
    2x - 3 = 100
    Domain Threshold
    x > 1.5
    Direct Answer & Overview
    Verified Educational Guide

    Solving a logarithmic equation isolates a single log_b(u) = k to exponentiate (u = b^k) or equates two same-base logs via one-to-one property (log_b(A) = log_b(B) implies A = B), followed unconditionally by verifying every candidate root keeps all original log arguments strictly > 0.

    Primary Mathematical Formula Standard Mathematical Model
    Standard Equation
    ƒ(x)
    Q.E.D.
    logb(u)=kiffu=bkquad(u>0),qquadlogb(A)=logb(B)iffA=B>0log_b(u) = k iff u = b^k quad (u > 0), qquad log_b(A) = log_b(B) iff A = B > 0
    Evaluated with exact mathematical formulation • Rigorously verified
    Exact Formula
    Input Parameters
    Required
    1
    Equation Structure — Single Log (cx+d=k), Same-Base Equality, or Product/Quotient Sum
    2
    Logarithm Base (b) — Positive base != 1 (10, e, 2, or arbitrary positive real)
    3
    Linear / Shift Coefficients — Real constants inside arguments plus RHS constant k
    Expected Outputs
    Calculated
    Validated Solution Set — All real roots passing strict positivity of every original argument
    Extraneous Root Filter — Explicit isolation & rejection of false algebraic candidates
    Intersection Plot — Visual LHS(x) vs RHS(x) curves with root and rejected-root markers
    Worked Numerical Example
    Instant Verification
    Solve log_10(x) + log_10(x - 3) = 1 cleanly with domain check
    → x(x - 3) = 10^1 => x^2 - 3x - 10 = 0 => (x - 5)(x + 2) = 0; check x > 3
    Result: x = 5 (x = -2 rejected as extraneous)

    Classification of Logarithmic Equations and Solution Strategies

    Almost every algebraic logarithmic equation in precalculus, calculus, chemistry equilibrium problems, and engineering acoustics belongs to one of three canonical archetypes. Recognizing the archetype immediately tells you whether to exponentiate directly, apply one-to-one cancellation, or condense multiple terms first:

    Equation Archetype Canonical Form Primary Algebraic Mechanism
    Type 1: Single Logarithm log⁡b(cx+d)=k\log_b(cx + d) = k Convert to exponential form cx+d=bkcx + d = b^k; unique solution whenever c≠0c \neq 0 because bk>0b^k > 0 automatically.
    Type 2: Same-Base Equality log⁡b(A(x))=log⁡b(B(x))\log_b(A(x)) = \log_b(B(x)) Cancel matching injective logs to get A(x)=B(x)A(x) = B(x); must check A(x)>0A(x) > 0 (extraneous roots possible!).
    Type 3: Multi-Term Sum/Diff log⁡b(x+p)±log⁡b(x+q)=k\log_b(x+p) \pm \log_b(x+q) = k Condense via Product or Quotient Rule, exponentiate to quadratic/rational, then prune extraneous roots!

    Unlike exponential equations whose exponential expressions accept every real number cleanly, logarithmic equations operate strictly inside open half-lines where every inner argument exceeds zero.

    Type 1 & Type 2: Exponential Conversion vs. One-to-One Matching

    In a Type 1 equation a⋅log⁡b(cx+d)+m=na \cdot \log_b(cx + d) + m = n, never exponentiate while additive constants or multipliers remain outside the logarithm! First isolate the logarithm completely on one side so log⁡b(cx+d)=(n−m)/a=k\log_b(cx + d) = (n - m)/a = k, then apply the inverse exponentiation bridge:

    log⁡b(cx+d)=k  ⟹  cx+d=bk  ⟹  x=bk−dc\log_b(cx + d) = k \implies cx + d = b^k \implies x = \frac{b^k - d}{c}

    Notice an interesting mathematical bonus for Type 1 equations with linear arguments: because bk>0b^k > 0 for every positive base bb and every real kk, the solution x=(bk−d)/cx = (b^k - d)/c automatically guarantees cx+d=bk>0cx + d = b^k > 0!

    By contrast, a Type 2 equation log⁡b(ax+c)=log⁡b(dx+f)\log_b(ax + c) = \log_b(dx + f) contains NO exponential safeguard! Applying one-to-one injectivity sets ax+c=dx+fax + c = dx + f, which can easily yield a root where both sides equal a negative number (for example ax+c=−4=dx+fax + c = -4 = dx + f). When that happens, neither side is a real logarithm, and the equation has No Real Solution.

    Type 3: Condensing Sums & Quotients and Catching Extraneous Roots

    Whenever two or more logarithms share the same base on one side of an equation, condense them into a single logarithm before exponentiating. Suppose log⁡b(x+p)+log⁡b(x+q)=k\log_b(x + p) + \log_b(x + q) = k:

    1. Lock in the Original Domain: Require BOTH x+p>0x + p > 0 AND x+q>0x + q > 0, forcing x>max⁡(−p,−q)x > \max(-p, -q).
    2. Apply Product Rule: Condense into log⁡b((x+p)(x+q))=k\log_b((x+p)(x+q)) = k.
    3. Convert to Quadratic Form: Exponentiate to (x+p)(x+q)=bk(x+p)(x+q) = b^k, expanding cleanly to x2+(p+q)x+(pq−bk)=0x^2 + (p+q)x + (pq - b^k) = 0.
    4. Extract Both Roots & Filter Domain: Compute x1,2=−(p+q)±(p+q)2−4(pq−bk)2x_{1,2} = \frac{-(p+q) \pm \sqrt{(p+q)^2 - 4(pq - b^k)}}{2} and discard any root failing x>max⁡(−p,−q)x > \max(-p, -q).

    Why did condensing inject an extra fake root? Mathematically, f(x)=log⁡b(x+p)+log⁡b(x+q)f(x) = \log_b(x+p) + \log_b(x+q) is defined strictly when both factors are positive, whereas g(x)=log⁡b((x+p)(x+q))g(x) = \log_b((x+p)(x+q)) widens its domain to allow both factors negative simultaneously (whose product is positive!). That extra negative branch almost always crosses height kk, creating an algebraically tempting yet invalid extraneous candidate.

    Advanced Methods: Mixed Bases and Quadratic Substitution (log x)^2

    Two higher-tier patterns require extra care before standard condensing or exponentiation applies:

    Mixed Bases (log⁡2(x)+log⁡4(x)=6\log_2(x) + \log_4(x) = 6): Because bases 22 and 44 differ, you cannot add them via the product rule yet. Convert log⁡4(x)=log⁡2(x)/log⁡2(4)=12log⁡2(x)\log_4(x) = \log_2(x)/\log_2(4) = \frac{1}{2}\log_2(x) using our Arbitrary-Base Theorem. Now matching bases combine immediately: 32log⁡2(x)=6  ⟹  log⁡2(x)=4  ⟹  x=16\frac{3}{2}\log_2(x) = 6 \implies \log_2(x) = 4 \implies x = 16.

    Quadratic-in-Logarithm ((log⁡10x)2−5log⁡10x+6=0(\log_{10} x)^2 - 5\log_{10} x + 6 = 0): Do NOT pull the exponent 2 outside here—the power rule moves exponents off the argument log⁡(x2)\log(x^2), never off the entire (log⁡x)2(\log x)^2! Instead substitute u=log⁡10(x)u = \log_{10}(x) to factor (u−2)(u−3)=0(u - 2)(u - 3) = 0, returning x=102=100x = 10^2 = 100 and x=103=1000x = 10^3 = 1000—both valid positive solutions!

    Step-by-Step Worked Logarithmic Equations (With Extraneous Traps)

    Example 1: Linear Single-Logarithm Equation

    Solve log⁡10(2x−3)=2\log_{10}(2x - 3) = 2.

    2x−3=102=100  ⟹  2x=103  ⟹  x=51.5(Check: 2(51.5)−3=100>0)2x - 3 = 10^2 = 100 \implies 2x = 103 \implies x = 51.5 \quad (\text{Check: } 2(51.5)-3 = 100 > 0)

    Example 2: Same-Base Equality With No Extraneous Root

    Solve log⁡2(5x−6)=log⁡2(2x+9)\log_2(5x - 6) = \log_2(2x + 9).

    5x−6=2x+9  ⟹  3x=15  ⟹  x=5(Check: 25−6=19>0)5x - 6 = 2x + 9 \implies 3x = 15 \implies x = 5 \quad (\text{Check: } 25-6 = 19 > 0)

    Example 3: The Classic Extraneous Root Trap

    Solve log⁡10(x)+log⁡10(x−3)=1\log_{10}(x) + \log_{10}(x - 3) = 1.

    x(x−3)=101  ⟹  x2−3x−10=0  ⟹  (x−5)(x+2)=0x(x - 3) = 10^1 \implies x^2 - 3x - 10 = 0 \implies (x - 5)(x + 2) = 0

    Domain requires x>3x > 3. Testing both candidates keeps x=5x = 5 (log⁡105+log⁡102=1\log_{10} 5 + \log_{10} 2 = 1) and strictly rejects x=−2x = -2 as extraneous.

    Example 4: Quotient-Rule Equation With Empty Domain Case

    Consider log⁡2(x−1)−log⁡2(x+3)=1\log_2(x - 1) - \log_2(x + 3) = 1:

    x−1x+3=21=2  ⟹  x−1=2x+6  ⟹  x=−7\frac{x - 1}{x + 3} = 2^1 = 2 \implies x - 1 = 2x + 6 \implies x = -7

    Substituting x=−7x = -7 back into log⁡2(−7−1)=log⁡2(−8)\log_2(-7 - 1) = \log_2(-8) violates positivity (x>1x > 1 required), proving the apparent algebraic root is extraneous and leaving No Real Solution.

    Five Domain and Algebraic Traps That Break Log Solutions

    • Exponentiating Term-by-Term: Turning log⁡b(A)+log⁡b(B)=k\log_b(A) + \log_b(B) = k into A+B=bkA + B = b^k is invalid because bu+v=bu⋅bvb^{u+v} = b^u \cdot b^v, NOT bu+bvb^u + b^v. Condense into A⋅B=bkA \cdot B = b^k.
    • Skipping the Domain Test When All Logs Disappear: Dropping logs to obtain x=−2x = -2 looks harmless inside polynomials until substituted back into ln⁡(−2)\ln(-2).
    • Dropping Coefficients Before Condensing: Convert 2log⁡b(x)+log⁡b(y)2\log_b(x) + \log_b(y) into log⁡b(x2y)\log_b(x^2 y) before exponentiating.
    • Neglecting Negative Right-Hand Constants: Having log⁡3(x)=−2\log_3(x) = -2 is completely valid (x=1/9x = 1/9); never discard equations just because the right side is negative!
    • Forgetting 0<b<10 < b < 1 Inequality Flips: Remember that solving logarithmic inequalities under bases between 0 and 1 reverses the comparison sign.

    Intersection Geometry & Automated Domain Validator

    Every equation solved in our interactive calculator executes two independent checks: algebraic root solving (linear or quadratic discriminant formula) followed by strict positivity auditing against every uncondensed argument inside the original equation. Any candidate violating strict positivity (>0> 0) is separated explicitly into the Extraneous Check card and marked with an amber cross on the x-axis of the interactive <canvas> plot.

    Visually, valid solutions appear as emerald intersection markers where the continuous curve y=LHS(x)y = \text{LHS}(x) genuinely meets the dashed target curve y=RHS(x)y = \text{RHS}(x) inside its real domain. If you need standardized common-log outputs for your solution checks, switch over to our Logarithm to Base 10 Converter or Base-10 Logarithm Solver.

    Fact-Checked & Verified • Computational Accuracy Standards
    Updated November 2026 • Editorial Policy
    Authored By
    Sanjay Samanta

    Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.

    Reviewed & Verified By
    Academic Review Board

    Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.

    Found an error or have an improvement suggestion? Report a calculation issue

    Frequently Asked Questions

    What are the exact steps to solve a logarithmic equation?
    First determine the domain restriction so every logarithm argument stays strictly positive (> 0). Second, isolate a single logarithm on one side (or match one-to-one logs on both sides) using product, quotient, or power rules. Third, convert to exponential form b^k = arg and solve the resulting algebraic equation. Fourth, substitute every candidate root back into the ORIGINAL equation to discard extraneous solutions.
    Why do logarithmic equations produce extraneous roots?
    When you condense two logarithms—such as log_10(x) + log_10(x - 3) into log_10(x(x - 3))—the new domain permits two negative factors whose product is positive (x < 0), even though the original separate logs require x > 3. Therefore one quadratic root often fails the original > 0 domain check and must be rejected.
    How do you solve log_b(M) = log_b(N)?
    Because real logarithms are strictly one-to-one functions, matching bases on opposite sides allow you to set arguments equal: M = N. Solve that algebraic equation, then confirm that BOTH M > 0 and N > 0 hold at each solution.
    Can a logarithmic equation have zero real solutions?
    Yes. If every candidate produced by exponentiation or one-to-one matching falls outside the valid positive domain of one or more original logarithms (or if a quadratic equation has a negative discriminant b^2 - 4ac < 0), the real solution set is empty (No Real Solution).
    How do you solve a logarithmic equation with different bases on each side?
    Use the Change-of-Base formula to convert one logarithm into the other base (or rewrite both in natural log ln). For linear cases where bases are powers of a shared root, such as log_2(x) and log_4(x + 6), rewrite log_4(u) = (1/2) log_2(u) first.
    Why can log_b(x) equal a negative number even though x cannot be negative?
    The output range of log_b(x) spans all real numbers (-infinity, +infinity). A negative right-hand side k simply corresponds to a positive fraction argument between 0 and 1: for example, log_10(x) = -2 solves cleanly to x = 10^(-2) = 0.01 > 0.
    Do you check extraneous roots against the condensed equation or the original equation?
    ALWAYS check candidate roots against the unsimplified ORIGINAL equation given in the problem. Checking against the condensed form misses sign violations where two negative arguments multiply to a positive product.
    What is the difference between a logarithmic equation and an exponential equation?
    In a logarithmic equation, the variable x sits inside a log argument such as log_b(cx + d) = k and is solved by exponentiating. In an exponential equation, x sits in the exponent such as b^(cx + d) = k and is solved by taking logarithms.