Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Logarithmic Equations






Isolating the Variable Inside the Logarithm

Equations containing logarithms require techniques that exploit the definition and properties of logarithmic functions. Converting to exponential form, applying the one-to-one property, and using logarithm rules to combine expressions — these methods reduce logarithmic equations to algebraic ones. Every solution must be verified against domain restrictions, as the solving process can introduce extraneous values.

Key Terms

Equation Concepts

Logarithmic Equation— an equation where the variable appears inside a logarithm
One-to-One Property— if log⁡a(M)=log⁡a(N)\log_a(M) = \log_a(N) then M=NM = N
Argument (of a Logarithm)— all arguments must be positive; solutions violating this are extraneous

Rules Used

Product Rule (Logarithms)— combining sums of logarithms
Power Rule (Logarithms)— moving coefficients into exponents
Change of Base Formula— solving exponential equations via logarithms

See All Algebra Definitions →


Basic Form: Logarithm Equals a Constant

When the unknown sits inside a logarithm, the usual moves cannot reach it.
In log⁡2(x)=5\log_2(x) = 5, adding, subtracting, multiplying or dividing both sides leaves xx locked inside the logarithm. It is like a box that only one key opens: the key here is the exponential with the same base.
The definition
A logarithmic equation is an equation in which the unknown appears inside the argument of a logarithm; the simplest kind sets one logarithm equal to a constant.
The simplest logarithmic equation has the form log⁡a(x)=k\log_a(x) = k, where kk is a constant.
Convert to exponential form using the definition: log⁡a(x)=k\log_a(x) = k means ak=xa^k = x.
y = log2 x meets the level y = 5 at x = 32xy816243240−2−11234567y = log₂ xy = 5(32, 5)the solution of log₂(x) = 5 is where the curve reaches height 5
log⁡2(x)=5\log_2(x) = 5 asks where the graph of y=log⁡2xy = \log_2 x reaches the height 55: at x=32x = 32.
So log⁡2(x)=5\log_2(x) = 5 means 25=x2^5 = x, and x=32x = 32.
It is an equation in which one conversion removes the logarithm and leaves plain arithmetic.
In each of these examples the conversion uses the same three numbers: the base, the value of the logarithm, and the argument. The base of the logarithm becomes the base of the power, the value kk becomes the exponent, and the argument is what that power equals.
Once the equation is in exponential form, the logarithm is gone and only arithmetic remains. For ln⁡(x)=4\ln(x) = 4 the base is ee, so the answer is a power of ee.
The same conversion settles each case, whatever the base or the sign of the constant.
Example
Solve log⁡2(x)=5\log_2(x) = 5.
x=25=32x = 2^5 = 32
Example
Solve log⁡3(x)=−2\log_3(x) = -2.
x=3−2=19x = 3^{-2} = \frac{1}{9}
Example
Solve ln⁡(x)=4\ln(x) = 4.
x=e4≈54.598x = e^4 \approx 54.598
Pitfall: Swapping the base and the exponent
Rewriting log⁡2(x)=5\log_2(x) = 5 as x=52=25x = 5^2 = 25 raises the wrong number to the wrong power, and log⁡2(25)≈4.64\log_2(25) \approx 4.64, not 55. The correct answer is x=25=32x = 2^5 = 32.
When the argument is an expression, solve the resulting equation:
Example
Solve log⁡5(2x−1)=2\log_5(2x - 1) = 2.
2x−1=52=252x - 1 = 5^2 = 25
2x=262x = 26
x=13x = 13
The definition promised that converting gives the solution — putting each answer back confirms it.
equationsolutionput it backholds?
log₂(x) = 5x = 32log₂(32) = 5, since 2⁵ = 32yes
log₃(x) = −2x = 1/9log₃(1/9) = −2, since 3⁻² = 1/9yes
log₅(2x − 1) = 2x = 13log₅(25) = 2, since 5² = 25yes
Scope: this is the simplest form, and harder forms bring a new danger.
When logarithms appear on both sides or have to be combined first, solving can produce numbers that make some argument zero or negative — values the original equation never allowed. The section on domain restrictions shows how to catch them.
To solve your own logarithmic equation with each step shown, use the logarithmic equation solver.
The rest of the page covers logarithms on both sides, combining logarithms, domain restrictions, extraneous solutions, substitution, and solving exponential equations with logarithms.

Logarithms on Both Sides

RULEOne-to-one property
When the same logarithm base appears on both sides, apply the one-to-one property: if log⁡a(M)=log⁡a(N)\log_a(M) = \log_a(N), then M=NM = N.

Example
Solve log⁡4(3x+2)=log⁡4(x+10)\log_4(3x + 2) = \log_4(x + 10).
3x+2=x+103x + 2 = x + 10
2x=82x = 8
x=4x = 4
Verification: log⁡4(3(4)+2)=log⁡4(14)\log_4(3(4) + 2) = \log_4(14) and log⁡4(4+10)=log⁡4(14)\log_4(4 + 10) = \log_4(14). Both arguments are positive, and the equation holds.

Example
Solve ln⁡(x2)=ln⁡(9)\ln(x^2) = \ln(9).
x2=9x^2 = 9
x=±3x = \pm 3
Check both: ln⁡((−3)2)=ln⁡(9)\ln((-3)^2) = \ln(9) works, and ln⁡((3)2)=ln⁡(9)\ln((3)^2) = \ln(9) works. Both solutions are valid.

Pitfall: Rejecting the negative root
Dropping x=−3x = -3 because it is negative, or because ln⁡(x2)\ln(x^2) was first rewritten as 2ln⁡(x)2\ln(x), leaves only x=3x = 3. But (−3)2=9>0(-3)^2 = 9 > 0, so both x=3x = 3 and x=−3x = -3 solve the equation.

In both examples the logarithms have the same base, so they are removed in one step and the equation becomes a statement about the arguments alone. What remains is ordinary algebra: a linear equation in the first case and a quadratic one in the second.

The domain check is then made on the arguments as they appear in the original equation. In the second example the argument is x2x^2, not xx, and its sign is what decides which roots stand.

Combining Logarithms

When multiple logarithms appear, use the rules to condense them into a single logarithm, then apply previous techniques.

Example
Solve log⁡2(x)+log⁡2(x−2)=3\log_2(x) + \log_2(x - 2) = 3.
Condense using the product rule:
log⁡2(x(x−2))=3\log_2(x(x - 2)) = 3
log⁡2(x2−2x)=3\log_2(x^2 - 2x) = 3
Convert to exponential form:
x2−2x=23=8x^2 - 2x = 2^3 = 8
x2−2x−8=0x^2 - 2x - 8 = 0
(x−4)(x+2)=0(x - 4)(x + 2) = 0
x=4 or x=−2x = 4 \text{ or } x = -2
Check domain: x=4x = 4 gives log⁡2(4)+log⁡2(2)\log_2(4) + \log_2(2), both defined. x=−2x = -2 gives log⁡2(−2)\log_2(-2), undefined. Reject x=−2x = -2.
Solution: x=4x = 4.

Pitfall: Turning a sum of logarithms into the logarithm of a sum
Condensing log⁡2(x)+log⁡2(x−2)\log_2(x) + \log_2(x - 2) to log⁡2(2x−2)\log_2(2x - 2) gives 2x−2=82x - 2 = 8, so x=5x = 5, but log⁡2(5)+log⁡2(3)=log⁡2(15)≠3\log_2(5) + \log_2(3) = \log_2(15) \neq 3. The product rule gives x(x−2)=8x(x - 2) = 8, so x=4x = 4.

The condensing step is what makes the equation solvable: two logarithms with the same base become one, and the equation takes the basic form of the first section. The rule used here is the product rule, which joins the arguments xx and x−2x - 2 into a single expression.

After the conversion to exponential form the equation is a quadratic in xx, and a quadratic can have two roots. Each root is then checked in the original equation, where both logarithms still stand separately.
log2 x + log2(x - 2) = 3 only at x = 4; the curve exists for x > 2xy−3−2−1123456789−3−2−1123456log₂ x + log₂(x − 2)y = 3x = 4domain: x > 2x = −2 is rejected:log₂(−2) is undefinedOnly x = 4 survives: the left side exists only for x > 2
Why x = −2 is thrown out

The section's log₂ x + log₂(x − 2) = 3. The left side only exists for x > 2, where both arguments are positive, so its graph starts at the dashed line. It meets the level 3 once, at x = 4. Condensing to x² − 2x = 8 also produces x = −2, but no part of the graph lives there: log₂(−2) is undefined, so the candidate is rejected.

Checking each candidate against the domain is the step that cannot be skipped.
The example of this section, one step at a time. Press Next to carry out each step.
DownloadPNG2×PDF
log⁡2(x)+log⁡2(x−2)=3\log_2(x) + \log_2(x - 2) = 3Step 1 of 4
Step
log⁡2(x)+log⁡2(x−2)=3\log_2(x) + \log_2(x - 2) = 3
1
Condense into a single logarithmProduct rule
log⁡2(x2−2x)=3\log_2(x^2 - 2x) = 3
2
Convert to exponential form
x2−2x=23=8x^2 - 2x = 2^3 = 8
3
Solve the resulting equation
(x−4)(x+2)=0(x - 4)(x + 2) = 0, so x=4x = 4 or x=−2x = -2
✓
Check each root against the domain
x=4x = 4 is valid; x=−2x = -2 gives log⁡2(−2)\log_2(-2), so it is rejected
Condense, convert, solve, checkLearn Math Class

Domain Restrictions

Every argument of every logarithm in the original equation must be positive. Identify these restrictions before solving.

For log⁡a(f(x))\log_a(f(x)) to be defined, f(x)>0f(x) > 0.

Example
In log⁡3(x−5)+log⁡3(x+1)=2\log_3(x - 5) + \log_3(x + 1) = 2, the restrictions are:
x−5>0  ⟹  x>5x - 5 > 0 \implies x > 5
x+1>0  ⟹  x>−1x + 1 > 0 \implies x > -1
The intersection is x>5x > 5. Any solution must satisfy x>5x > 5.

Solving:
Domain Restrictions
log⁡3((x−5)(x+1))=2\log_3((x-5)(x+1)) = 2
Domain Restrictions
(x−5)(x+1)=9(x-5)(x+1) = 9
Domain Restrictions
x2−4x−5=9x^2 - 4x - 5 = 9
Domain Restrictions
x2−4x−14=0x^2 - 4x - 14 = 0
Domain Restrictions
x=4±16+562=4±722=2±32x = \frac{4 \pm \sqrt{16 + 56}}{2} = \frac{4 \pm \sqrt{72}}{2} = 2 \pm 3\sqrt{2}

Since 32≈4.243\sqrt{2} \approx 4.24, we have x≈6.24x \approx 6.24 or x≈−2.24x \approx -2.24. Only x=2+32x = 2 + 3\sqrt{2} satisfies x>5x > 5.
The restriction is set before solving and applied after. The card shows the page’s example on both sides of the line.
DownloadPNG2×PDF
Logarithmic equations

Domain restrictions

Every argument of every logarithm in the original equation must be positive.
Defined when
log⁡a(f(x))\log_a(f(x)) is defined
f(x)>0f(x) > 0, for every logarithm in the equation
✓Admissible
x>5x > 5 for log⁡3(x−5)+log⁡3(x+1)=2\log_3(x - 5) + \log_3(x + 1) = 2
x−5>0x - 5 > 0 gives x>5x > 5 and x+1>0x + 1 > 0 gives x>−1x > -1; the intersection is x>5x > 5.
x=2+32≈6.24x = 2 + 3\sqrt{2} \approx 6.24
Satisfies x>5x > 5: the solution.
✗Rejected
x=2−32≈−2.24x = 2 - 3\sqrt{2} \approx -2.24
A root of x2−4x−14=0x^2 - 4x - 14 = 0, but it fails x>5x > 5: an argument would be negative.
Order of work
beforeIdentify the restrictions before solving: condense to log⁡3((x−5)(x+1))=2\log_3((x - 5)(x + 1)) = 2, solve (x−5)(x+1)=9(x - 5)(x + 1) = 9, then test each root against x>5x > 5.
Domain restrictions for logarithmic equations·/algebra/logarithms/equationsLearn Math Class
Of the two roots the algebra produces, only the one inside the domain is a solution.

Extraneous Solutions

Extraneous solutions arise when algebraic manipulation produces values that violate the original equation's domain. Always substitute back into the original equation.

Example
Solve log⁡(x)+log⁡(x−3)=1\log(x) + \log(x - 3) = 1.
log⁡(x(x−3))=1\log(x(x-3)) = 1
x(x−3)=10x(x-3) = 10
x2−3x−10=0x^2 - 3x - 10 = 0
(x−5)(x+2)=0(x-5)(x+2) = 0
x=5 or x=−2x = 5 \text{ or } x = -2
Check x=5x = 5: log⁡(5)+log⁡(2)\log(5) + \log(2) — both defined, sum equals log⁡(10)=1\log(10) = 1. Valid.
Check x=−2x = -2: log⁡(−2)\log(-2) — undefined. Extraneous.

Pitfall: Checking roots in the condensed equation
Testing x=−2x = -2 in log⁡(x(x−3))=1\log(x(x-3)) = 1 gives log⁡((−2)(−5))=log⁡(10)=1\log((-2)(-5)) = \log(10) = 1, so it seems to pass. In the original, log⁡(−2)\log(-2) is undefined, so the only solution is x=5x = 5.

The squaring, factoring, or combining steps do not "create" these solutions — they were always algebraic solutions to the transformed equation. The domain restrictions eliminate them.

The same discipline applies across every equation that combines logarithms. The table below collects four equations from this page that produce extra algebraic candidates and shows the domain check that eliminates the extraneous ones.
DownloadPNG2×PDF
Layout
EquationAlgebraic solutionsDomain requirementVerdict after check
log₂(x) + log₂(x − 2) = 3x = 4 or x = −2x > 0 and x − 2 > 0 → x > 2keep x = 4; reject x = −2 (extraneous)
log(x) + log(x − 3) = 1x = 5 or x = −2x > 0 and x − 3 > 0 → x > 3keep x = 5; reject x = −2
log₃(x − 5) + log₃(x + 1) = 2x = 2 ± 3√2 ≈ 6.24 or −2.24x − 5 > 0 and x + 1 > 0 → x > 5keep x = 2 + 3√2; reject the other
ln(x²) = ln(9)x = 3 or x = −3x² > 0 → x ≠ 0 (both candidates fine)keep both x = 3 and x = −3
Extraneous SolutionsLearn Math Class
Algebra solves the transformed equation; only the domain of the original equation decides which roots are answers.

Equations Requiring Substitution

Some equations have a quadratic structure in the logarithm. Substitution simplifies the algebra.

Example
Solve (log⁡2(x))2−5log⁡2(x)+6=0(\log_2(x))^2 - 5\log_2(x) + 6 = 0.
Let u=log⁡2(x)u = \log_2(x):
u2−5u+6=0u^2 - 5u + 6 = 0
(u−2)(u−3)=0(u - 2)(u - 3) = 0
u=2 or u=3u = 2 \text{ or } u = 3
Back-substitute:
log⁡2(x)=2  ⟹  x=4\log_2(x) = 2 \implies x = 4
log⁡2(x)=3  ⟹  x=8\log_2(x) = 3 \implies x = 8
Both satisfy x>0x > 0. Solutions: x=4x = 4 and x=8x = 8.

Example
Solve ln⁡(x)+6ln⁡(x)=5\ln(x) + \frac{6}{\ln(x)} = 5.
Let u=ln⁡(x)u = \ln(x):
u+6u=5u + \frac{6}{u} = 5
u2+6=5uu^2 + 6 = 5u
u2−5u+6=0u^2 - 5u + 6 = 0
(u−2)(u−3)=0(u-2)(u-3) = 0
Back-substitute: x=e2x = e^2 or x=e3x = e^3.
(log2 x)^2 - 5 log2 x + 6 = 0 at x = 4 and x = 8xy12345678910−112345678(log₂ x)² − 5 log₂ x + 6u = log₂ x: u² − 5u + 6 = 0, so u = 2 or 3x = 2² = 4 or x = 2³ = 8Quadratic in log₂ x: zeros at x = 4 and x = 8
A quadratic hiding inside a logarithm

The section's (log₂ x)² − 5 log₂ x + 6 = 0. In terms of u = log₂ x it is u² − 5u + 6 = 0, with u = 2 or u = 3, so x = 4 or x = 8. The graph confirms both: it reaches zero exactly there, dipping slightly below the axis between them.

Each value of u gives one x, because log₂ x is one-to-one.

Solving Exponential Equations via Logarithms

When an exponential equation cannot be solved by matching bases, take the logarithm of both sides.

Example
Solve 3x=73^x = 7.
No integer power of 33 equals 77. Take logarithms:
log⁡(3x)=log⁡(7)\log(3^x) = \log(7)
x⋅log⁡(3)=log⁡(7)x \cdot \log(3) = \log(7)
x=log⁡(7)log⁡(3)≈0.8450.477≈1.771x = \frac{\log(7)}{\log(3)} \approx \frac{0.845}{0.477} \approx 1.771

Pitfall: Turning the quotient into a difference
Rewriting log⁡(7)log⁡(3)\frac{\log(7)}{\log(3)} as log⁡(7)−log⁡(3)=log⁡(73)\log(7) - \log(3) = \log\left(\frac{7}{3}\right) gives x≈0.368x \approx 0.368, and 30.368≈1.53^{0.368} \approx 1.5, not 77. The correct value is x≈1.771x \approx 1.771.

The power rule is what moves the unknown out of the exponent: log⁡(3x)\log(3^x) becomes x⋅log⁡(3)x \cdot \log(3), a product of xx and a fixed number. Dividing both sides by that number isolates xx.

The answer is therefore a fraction with one logarithm on top and another underneath. Each is a plain decimal, log⁡(7)≈0.845\log(7) \approx 0.845 and log⁡(3)≈0.477\log(3) \approx 0.477, and the final value comes from dividing one by the other.

Either log⁡\log or ln⁡\ln works — the ratio is identical.

Example
Solve 52x+1=125^{2x+1} = 12.
ln⁡(52x+1)=ln⁡(12)\ln(5^{2x+1}) = \ln(12)
(2x+1)ln⁡(5)=ln⁡(12)(2x+1)\ln(5) = \ln(12)
2x+1=ln⁡(12)ln⁡(5)2x + 1 = \frac{\ln(12)}{\ln(5)}
2x=ln⁡(12)ln⁡(5)−12x = \frac{\ln(12)}{\ln(5)} - 1
x=12(ln⁡(12)ln⁡(5)−1)≈0.272x = \frac{1}{2}\left(\frac{\ln(12)}{\ln(5)} - 1\right) \approx 0.272

Did you know: No fraction solves 3x=73^x = 7
The answer log⁡3(7)≈1.771\log_3(7) \approx 1.771 is irrational. If it were a fraction pq\frac{p}{q}, raising 3p/q=73^{p/q} = 7 to the power qq would give 3p=7q3^p = 7^q, but no power of 33 is divisible by 77.

In both examples the answer is left as a quotient of logarithms or rounded to a decimal, not written as an exact fraction. An exact value appears only when the right side is a recognizable power of the base: 3x=813^x = 81 gives x=4x = 4, and 8x=28^x = 2 gives x=13x = \frac{1}{3} because 81/3=28^{1/3} = 2. For 3x=73^x = 7 the logarithm does the work, and a calculator supplies the digits.

To evaluate the final logarithm numerically, use the log calculator.

Taking logarithms of both sides brings an unknown exponent down into an ordinary product that algebra can solve.
The first example of this section. Press Next to carry out one step at a time.
DownloadPNG2×PDF
3x=73^x = 7Step 1 of 4
Step
3x=73^x = 7
1
Take the logarithm of both sides
log⁡(3x)=log⁡(7)\log(3^x) = \log(7)
2
Use the power rule to move the exponent in front
x⋅log⁡(3)=log⁡(7)x \cdot \log(3) = \log(7)
3
Divide by the logarithm of the base
x=log⁡(7)log⁡(3)x = \dfrac{\log(7)}{\log(3)}
4
Evaluate the two logarithms and divide
x≈0.8450.477≈1.771x \approx \dfrac{0.845}{0.477} \approx 1.771
Bringing the exponent down, step by step·/algebra/logarithms/equationsLearn Math Class

Exponentials on Both Sides

When exponential expressions with different bases appear on both sides, logarithms bring down both exponents.

Example
Solve 2x+3=5x−12^{x+3} = 5^{x-1}.
Take logarithms:
ln⁡(2x+3)=ln⁡(5x−1)\ln(2^{x+3}) = \ln(5^{x-1})
(x+3)ln⁡(2)=(x−1)ln⁡(5)(x+3)\ln(2) = (x-1)\ln(5)
Expand:
xln⁡(2)+3ln⁡(2)=xln⁡(5)−ln⁡(5)x\ln(2) + 3\ln(2) = x\ln(5) - \ln(5)
Collect xx terms:
xln⁡(2)−xln⁡(5)=−ln⁡(5)−3ln⁡(2)x\ln(2) - x\ln(5) = -\ln(5) - 3\ln(2)
x(ln⁡(2)−ln⁡(5))=−ln⁡(5)−3ln⁡(2)x(\ln(2) - \ln(5)) = -\ln(5) - 3\ln(2)
x=−ln⁡(5)−3ln⁡(2)ln⁡(2)−ln⁡(5)=ln⁡(5)+3ln⁡(2)ln⁡(5)−ln⁡(2)x = \frac{-\ln(5) - 3\ln(2)}{\ln(2) - \ln(5)} = \frac{\ln(5) + 3\ln(2)}{\ln(5) - \ln(2)}
Numerically: x=1.609+2.0791.609−0.693=3.6880.916≈4.026x = \frac{1.609 + 2.079}{1.609 - 0.693} = \frac{3.688}{0.916} \approx 4.026.
2^(x + 3) = 5^(x - 1) at x approximately 4.026xy12345501001502002503002ˣ⁺³5ˣ⁻¹x ≈ 4.026x = (ln 5 + 3 ln 2)/(ln 5 − ln 2) ≈ 4.0262ˣ⁺³ = 5ˣ⁻¹: the faster-growing 5ˣ⁻¹ overtakes at x ≈ 4.026
Two exponentials with different bases

The section's 2ˣ⁺³ = 5ˣ⁻¹. The left side starts higher, but base 5 grows faster, so the two curves cross exactly once. Taking logarithms of both sides brings the exponents down and gives x = (ln 5 + 3 ln 2)/(ln 5 − ln 2) ≈ 4.026, the crossing in the graph.

Either ln or log gives the same crossing; only the arithmetic differs.

Choosing Common or Natural Logarithm

    When taking logarithms to solve exponential equations, either base produces the same answer.

    For 3x=73^x = 7:
    Choosing Common or Natural Logarithm
    x=log⁡(7)log⁡(3)=ln⁡(7)ln⁡(3)=log⁡3(7)x = \frac{\log(7)}{\log(3)} = \frac{\ln(7)}{\ln(3)} = \log_3(7)

    All three expressions are equal by the change of base formula.

    Practical considerations:

  • If the base is ee, use ln⁡\ln: solving e2x=5e^{2x} = 5 gives 2x=ln⁡(5)2x = \ln(5), no division needed.

  • If the base is 1010, use log⁡\log: solving 10x−1=5010^{x-1} = 50 gives x−1=log⁡(50)x - 1 = \log(50).

  • Otherwise, either works. Choose based on calculator availability or notational preference.

  • The expressions log⁡(7)/log⁡(3)\log(7)/\log(3) and ln⁡(7)/ln⁡(3)\ln(7)/\ln(3) compute to identical decimal values.
DownloadPNG2×PDF
Layout
Exponential formRecommended logarithmResulting expression for x
aˣ = B (any positive base a)either log or lnx = log(B) ⁄ log(a) = ln(B) ⁄ ln(a)
eˣ = B (base e)ln (cleaner — no division)x = ln(B)
10ˣ = B (base 10)log (cleaner — no division)x = log(B)
aᵐˣ⁺ⁿ = bᵖˣ⁺ʳ (different bases)either; ln conventionalexpand (mx+n)·ln(a) = (px+r)·ln(b), then solve a linear equation in x
Choosing Common or Natural LogarithmLearn Math Class

Summary of Solving Methods

The page covers two related families of equations: equations whose unknown sits inside a logarithm, and exponential equations solved by taking a logarithm of both sides. The same toolkit — convert, condense, apply the one-to-one property, substitute, and check the domain — handles every form. The table below collects each equation form with its method and a worked example, in the order the page introduces them.
DownloadPNG2×PDF
Layout
Equation formMethodWorked example
logₐ(x) = kconvert to exponential form: x = aᵏlog₂(x) = 5 → x = 32
logₐ(M) = logₐ(N)apply the one-to-one property: M = Nlog₄(3x+2) = log₄(x+10) → x = 4
Sum or difference of logs = kcondense with logarithm rules, then convertlog₂(x) + log₂(x−2) = 3 → x = 4
Quadratic in logₐ(x)substitute u = logₐ(x), solve, back-substitute(log₂x)² − 5log₂x + 6 = 0 → x = 4 or 8
aˣ = B (no matching bases)take log or ln of both sides, then divide3ˣ = 7 → x = log(7) ⁄ log(3) ≈ 1.771
aᵐˣ⁺ⁿ = bᵖˣ⁺ʳtake logs, expand, collect x terms, solve linear equation2ˣ⁺³ = 5ˣ⁻¹ → x ≈ 4.026
Summary of Solving MethodsLearn Math Class
The same six forms as a map. The first question splits the page in two, logarithmic equations on one side and exponential equations on the other.
DownloadPNG2×PDF
every route at once
logarithmic and exponential equations

Which method?

Where the unknown sits decides the family; the form of the equation decides the method.
inside a logone log = klog = logsum or differencequadratic in login an exponentnoyes
Convert to exponential form
logₐ(x) = k gives x = aᵏ→ Basic form
log₂(x) = 5 → x = 32
One-to-one property
logₐ(M) = logₐ(N) gives M = N→ Logs on both sides
log₄(3x + 2) = log₄(x + 10) → x = 4
Condense, then convert
combine with the logarithm rules into one log→ Combining logarithms
log₂(x) + log₂(x − 2) = 3 → x = 4
Substitute u = logₐ(x)
solve the quadratic in u, then back-substitute→ Substitution
(log₂x)² − 5log₂x + 6 = 0 → x = 4 or 8
What form?
Take a log of both sides
aˣ = B: take log or ln, then divide→ Exponential equations
3ˣ = 7 → x = log(7)/log(3) ≈ 1.771
Take logs, collect x
expand both sides and solve the linear equation in x→ Exponentials on both sides
2ˣ⁺³ = 5ˣ⁻¹ → x ≈ 4.026
Exponentials on both sides?
StartWhere is the unknown?
Log sideCheck every answer against the domain: the argument of each logarithm must be positive.
Which method for a log or exponential equation?·/algebra/logarithms/equationsLearn Math Class
On the logarithmic side the last step is always the same. Converting, condensing and substituting can all produce values that make a logarithm's argument zero or negative, so each answer goes back into the original equation; extraneous solutions shows how they arise.

Common Pitfalls

Five mistakes come up again and again in logarithmic equations. Each one is marked where it happens in the sections above; here each is worked through in full, with the wrong and the right working side by side.
DownloadPNG2×PDF
1Swapping the base and the exponent
A logarithm is converted to exponential form, but the base and the value of the logarithm trade places, so the value is raised to the power of the base.
Start
log⁡2(x)=5\log_2(x) = 5
Wrong turn
Error here
  ⟹  x=52=25\implies x = 5^2 = 25
Right path
log⁡a(x)=k\log_a(x) = k means ak=xa^k = x, so the base 22 is raised to the power 55.
  ⟹  x=25=32\implies x = 2^5 = 32
Why it happensThe equation holds two small numbers, and the conversion is remembered as "one number to the power of the other" without which one is the base.
How to checkRaise the base to the value of the logarithm and compare with the answer. 25=322^5 = 32, not 2525; indeed log⁡2(25)≈4.64\log_2(25) \approx 4.64, while log⁡2(32)=5\log_2(32) = 5.
2Rejecting the negative root
An equation such as ln⁡(x2)=ln⁡(9)\ln(x^2) = \ln(9) produces a negative root, and it is thrown out on the belief that logarithmic equations never have negative solutions. The same loss happens when ln⁡(x2)\ln(x^2) is rewritten as 2ln⁡(x)2\ln(x) before solving.
Start
ln⁡(x2)=ln⁡(9)\ln(x^2) = \ln(9)
Wrong turn
Error here
  ⟹  2ln⁡(x)=ln⁡(9)\implies 2\ln(x) = \ln(9)
  ⟹  ln⁡(x)=ln⁡(3)\implies \ln(x) = \ln(3)
  ⟹  x=3\implies x = 3
Right path
The one-to-one property gives x2=9x^2 = 9, so x=3x = 3 or x=−3x = -3. The argument is x2x^2, which equals 99 for both values, so both solutions stand.
Why it happensThe rule "the argument must be positive" is remembered as "xx must be positive". The power rule log⁡a(Mp)=plog⁡a(M)\log_a(M^p) = p\log_a(M) needs M>0M > 0, so using it with M=xM = x quietly adds the condition x>0x > 0.
How to checkSubstitute the negative root into the original equation. x=−3x = -3 gives ln⁡((−3)2)=ln⁡(9)\ln((-3)^2) = \ln(9), which is true.
3Turning a sum of logarithms into the logarithm of a sum
Two logarithms with the same base are added, and the sum is condensed by adding the arguments instead of multiplying them.
Start
log⁡2(x)+log⁡2(x−2)=3\log_2(x) + \log_2(x - 2) = 3
Wrong turn
Error here
  ⟹  log⁡2(2x−2)=3\implies \log_2(2x - 2) = 3
  ⟹  2x−2=8\implies 2x - 2 = 8
  ⟹  x=5\implies x = 5
Right path
The product rule gives log⁡2(x(x−2))=3\log_2(x(x - 2)) = 3, so x2−2x=8x^2 - 2x = 8 and (x−4)(x+2)=0(x - 4)(x + 2) = 0. Of x=4x = 4 and x=−2x = -2, only x=4x = 4 keeps both arguments positive.
Why it happensThe plus sign between the logarithms looks as if it should carry over to the arguments. The product rule turns a product inside into a sum outside, not a sum into a sum.
How to checkSubstitute the answer into the original equation. x=5x = 5 gives log⁡2(5)+log⁡2(3)=log⁡2(15)≈3.907\log_2(5) + \log_2(3) = \log_2(15) \approx 3.907, not 33. x=4x = 4 gives log⁡2(4)+log⁡2(2)=2+1=3\log_2(4) + \log_2(2) = 2 + 1 = 3.
4Checking roots in the condensed equation
The roots of the quadratic are tested, but in the condensed equation rather than in the original one, so an extraneous root passes the test.
Wrong turn
Error here
log⁡(x)+log⁡(x−3)=1\log(x) + \log(x - 3) = 1 is condensed to log⁡(x(x−3))=1\log(x(x - 3)) = 1, with roots x=5x = 5 and x=−2x = -2. In the condensed form x=−2x = -2 gives log⁡((−2)(−5))=log⁡(10)=1\log((-2)(-5)) = \log(10) = 1, so both roots are kept.
Right path
In the original equation x=−2x = -2 gives log⁡(−2)\log(-2), which is undefined, so it is rejected. x=5x = 5 gives log⁡(5)+log⁡(2)=log⁡(10)=1\log(5) + \log(2) = \log(10) = 1. The only solution is x=5x = 5.
Why it happensThe condensed equation is the last line written before the quadratic, so it is the one at hand. But it is defined on a larger set: the product x(x−3)x(x - 3) is also positive when both factors are negative.
How to checkWrite the domain from the original terms before solving. Here x>0x > 0 and x−3>0x - 3 > 0 give x>3x > 3, and any root outside it is rejected at once.
5Turning the quotient into a difference
The answer to an exponential equation is a quotient of two logarithms, and it is mistaken for the quotient rule, so the division is replaced by a subtraction.
Start
x=log⁡(7)log⁡(3)x = \frac{\log(7)}{\log(3)}
Wrong turn
Error here
=log⁡(7)−log⁡(3)=log⁡(73)≈0.368= \log(7) - \log(3) = \log\left(\frac{7}{3}\right) \approx 0.368
Right path
The two logarithms are separate numbers, divided as they stand.
≈0.8450.477≈1.771\approx \frac{0.845}{0.477} \approx 1.771
Why it happensThe quotient rule log⁡(MN)=log⁡(M)−log⁡(N)\log\left(\frac{M}{N}\right) = \log(M) - \log(N) also has a fraction and a difference in it. There the fraction is inside one logarithm; here it is a fraction of two logarithms. The only rule that applies to it is the change of base formula, which turns it into log⁡3(7)\log_3(7), not into a difference.
How to checkSubstitute the answer into the original equation. 30.368≈1.503^{0.368} \approx 1.50, far from 77, while 31.771≈7.003^{1.771} \approx 7.00.
Common pitfalls in logarithmic equations·/algebra/logarithms/equationsLearn Math Class
Four of the five slips apply a logarithm rule where it does not hold: the definition read backwards, the power rule used on an argument that can be negative, the logarithm of a product replaced by the logarithm of a sum, and the quotient rule applied to a quotient of two logarithms. The fifth checks the roots too late: condensing can widen the domain, so the domain has to come from the original equation. Substituting each answer into the original equation catches every case above.

Skills You Should Learn

Each skill opens its step-by-step method page. Skills marked "On this page" are taught above.
Taught on this page
More algebra methods
Equation methods

Logarithmic Equations FAQ

Do you always reject negative solutions in logarithmic equations?

+
No. What has to be positive is each argument, not the value of xx itself. Solving ln⁡(x2)=ln⁡(9)\ln(x^2) = \ln(9) gives x=±3x = \pm 3, and both are valid because (−3)2=9(-3)^2 = 9 is positive. Contrast log⁡(x)+log⁡(x−3)=1\log(x) + \log(x - 3) = 1, where x=−2x = -2 fails only because it makes log⁡(−2)\log(-2) undefined.Read more →

Where do extraneous solutions in logarithmic equations come from?

+
Condensing widens the domain. In log⁡3(x−5)+log⁡3(x+1)=2\log_3(x - 5) + \log_3(x + 1) = 2 the original requires x>5x > 5, but the condensed form log⁡3((x−5)(x+1))=2\log_3((x-5)(x+1)) = 2 only requires the product to be positive, which also permits x<−1x < -1. The algebra invents nothing; the extra root genuinely solves the condensed equation, and the original domain is what rules it out.Read more →

Do substitution problems like (log⁡2x)2−5log⁡2x+6=0(\log_2 x)^2 - 5\log_2 x + 6 = 0 need a domain check?

+
Rarely, because back-substitution takes care of it. Solving log⁡2x=u\log_2 x = u gives x=2ux = 2^u, which is positive for every real uu, so the domain condition holds automatically and nothing is rejected. Substitution does not widen the domain the way condensing does. The exception is a substitution that divides, as in ln⁡x+6ln⁡x=5\ln x + \frac{6}{\ln x} = 5, which needs ln⁡x≠0\ln x \neq 0.Read more →

Why does rewriting ln⁡(x2)\ln(x^2) as 2ln⁡(x)2\ln(x) lose a solution?

+
Because the power rule log⁡a(Mp)=plog⁡a(M)\log_a(M^p) = p\log_a(M) needs M>0M > 0. Writing ln⁡(x2)\ln(x^2) as 2ln⁡(x)2\ln(x) quietly adds the condition x>0x > 0, which the original never had: ln⁡(x2)\ln(x^2) is defined for every x≠0x \neq 0. Solving ln⁡(x2)=ln⁡(9)\ln(x^2) = \ln(9) that way gives only x=3x = 3, while the one-to-one property gives x2=9x^2 = 9 and keeps x=−3x = -3 as well.Read more →

Can log⁡3(7)\log_3(7) be written as a fraction?

+
No, it is irrational. If log⁡3(7)\log_3(7) equalled a fraction pq\frac{p}{q} of positive whole numbers, then 3p/q=73^{p/q} = 7, and raising both sides to the power qq gives 3p=7q3^p = 7^q. That is impossible: 3p3^p has no factor 77, while 7q7^q does. This is why the answer to 3x=73^x = 7 is left as log⁡(7)log⁡(3)\frac{\log(7)}{\log(3)} or rounded to 1.7711.771.Read more →