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.



Basic Form: Logarithm Equals a Constant

The simplest logarithmic equation has the form loga(x)=k\log_a(x) = k, where kk is a constant.

Convert to exponential form using the definition: loga(x)=k\log_a(x) = k means ak=xa^k = x.

Example: Solve log2(x)=5\log_2(x) = 5.
x=25=32x = 2^5 = 32


Example: Solve log3(x)=2\log_3(x) = -2.
x=32=19x = 3^{-2} = \frac{1}{9}


Example: Solve ln(x)=4\ln(x) = 4.
x=e454.598x = e^4 \approx 54.598


When the argument is an expression, solve the resulting equation:

Example: Solve log5(2x1)=2\log_5(2x - 1) = 2.
2x1=52=252x - 1 = 5^2 = 25

2x=262x = 26

x=13x = 13

Logarithms on Both Sides

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

Example: Solve log4(3x+2)=log4(x+10)\log_4(3x + 2) = \log_4(x + 10).
3x+2=x+103x + 2 = x + 10

2x=82x = 8

x=4x = 4


Verification: log4(3(4)+2)=log4(14)\log_4(3(4) + 2) = \log_4(14) and log4(4+10)=log4(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.

Combining Logarithms

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

Example: Solve log2(x)+log2(x2)=3\log_2(x) + \log_2(x - 2) = 3.

Condense using the product rule:
log2(x(x2))=3\log_2(x(x - 2)) = 3

log2(x22x)=3\log_2(x^2 - 2x) = 3


Convert to exponential form:
x22x=23=8x^2 - 2x = 2^3 = 8

x22x8=0x^2 - 2x - 8 = 0

(x4)(x+2)=0(x - 4)(x + 2) = 0

x=4 or x=2x = 4 \text{ or } x = -2


Check domain: x=4x = 4 gives log2(4)+log2(2)\log_2(4) + \log_2(2), both defined. x=2x = -2 gives log2(2)\log_2(-2), undefined. Reject x=2x = -2.

Solution: x=4x = 4.

Domain Restrictions

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

For loga(f(x))\log_a(f(x)) to be defined, f(x)>0f(x) > 0.

Example: In log3(x5)+log3(x+1)=2\log_3(x - 5) + \log_3(x + 1) = 2, the restrictions are:
x5>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:
log3((x5)(x+1))=2\log_3((x-5)(x+1)) = 2

(x5)(x+1)=9(x-5)(x+1) = 9

x24x5=9x^2 - 4x - 5 = 9

x24x14=0x^2 - 4x - 14 = 0

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 324.243\sqrt{2} \approx 4.24, we have x6.24x \approx 6.24 or x2.24x \approx -2.24. Only x=2+32x = 2 + 3\sqrt{2} satisfies x>5x > 5.

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(x3)=1\log(x) + \log(x - 3) = 1.

log(x(x3))=1\log(x(x-3)) = 1

x(x3)=10x(x-3) = 10

x23x10=0x^2 - 3x - 10 = 0

(x5)(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.

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.

Equations Requiring Substitution

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

Example: Solve (log2(x))25log2(x)+6=0(\log_2(x))^2 - 5\log_2(x) + 6 = 0.

Let u=log2(x)u = \log_2(x):
u25u+6=0u^2 - 5u + 6 = 0

(u2)(u3)=0(u - 2)(u - 3) = 0

u=2 or u=3u = 2 \text{ or } u = 3


Back-substitute:
log2(x)=2    x=4\log_2(x) = 2 \implies x = 4

log2(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

u25u+6=0u^2 - 5u + 6 = 0

(u2)(u3)=0(u-2)(u-3) = 0


Back-substitute: x=e2x = e^2 or x=e3x = e^3.

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)

xlog(3)=log(7)x \cdot \log(3) = \log(7)

x=log(7)log(3)0.8450.4771.771x = \frac{\log(7)}{\log(3)} \approx \frac{0.845}{0.477} \approx 1.771


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.271x = \frac{1}{2}\left(\frac{\ln(12)}{\ln(5)} - 1\right) \approx 0.271

Exponentials on Both Sides

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

Example: Solve 2x+3=5x12^{x+3} = 5^{x-1}.

Take logarithms:
ln(2x+3)=ln(5x1)\ln(2^{x+3}) = \ln(5^{x-1})

(x+3)ln(2)=(x1)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.6090.693=3.6880.9164.026x = \frac{1.609 + 2.079}{1.609 - 0.693} = \frac{3.688}{0.916} \approx 4.026.

Choosing Common or Natural Logarithm

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

    For 3x=73^x = 7:
    x=log(7)log(3)=ln(7)ln(3)=log3(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:

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

  • 1010, use log\log: solving 10x1=5010^{x-1} = 50 gives x1=log(50)x - 1 = \log(50).


  • The expressions log(7)/log(3)\log(7)/\log(3) and ln(7)/ln(3)\ln(7)/\ln(3) compute to identical decimal values.