Math Core

Lesson 5.6 · Exponential and Logarithmic Functions

Solving logarithmic equations

A logarithmic equation has the variable inside a logarithm, like log⁡2(3x−1)=5\log_2(3x - 1) = 5. You'll see these when a formula is written with logs (the Richter and decibel scales, pH in chemistry) or when solving an exponential model backward. The good news: every method comes down to getting rid of the log. The catch: logs only accept positive inputs, so some "solutions" you find won't actually work.

Method 1: Rewrite in exponential form

When the equation has a single logarithm equal to a number, rewrite it as an exponential equation using the definition log⁡bx=y  ⟺  by=x\log_b x = y \iff b^y = x.

Worked example: One log equals a number

Solve each equation.

  1. log⁡2(3x−1)=5\log_2(3x - 1) = 5
  2. ln⁡(x+2)=3\ln(x + 2) = 3

Solution.

  1. In exponential form, 3x−1=25=323x - 1 = 2^5 = 32. So 3x=333x = 33 and x=11x = 11. Check: log⁡2(33−1)=log⁡232=5\log_2(33 - 1) = \log_2 32 = 5. ✓

  2. The base of ln⁡\ln is ee, so x+2=e3x + 2 = e^3 and x=e3−2≈20.085537−2≈18.086x = e^3 - 2 \approx 20.085537 - 2 \approx 18.086.

Think of it as exponentiating both sides: raise the base to each side, and blog⁡b(…)b^{\log_b(\ldots)} collapses to what's inside.

Method 2: Set the arguments equal

Logarithmic functions are one-to-one, just like exponentials. If two logs with the same base are equal, their arguments are equal.

One-to-one property of logarithms

For b>0b > 0, b≠1b \ne 1, and positive MM and NN: if log⁡bM=log⁡bN\log_b M = \log_b N, then M=NM = N.

Worked example: Log equals log

Solve log⁡5(2x+3)=log⁡5(x+7)\log_5(2x + 3) = \log_5(x + 7).

Solution. Set the arguments equal: 2x+3=x+72x + 3 = x + 7, so x=4x = 4.

Check that both arguments are positive: 2(4)+3=112(4) + 3 = 11 and 4+7=114 + 7 = 11. ✓

Method 3: Condense first

When there are several logs, use the properties of logarithms to combine them into one, then use Method 1 or Method 2.

Worked example: Condense, then solve

Solve log⁡2x+log⁡2(x−2)=3\log_2 x + \log_2(x - 2) = 3.

Solution. Use the product property to condense the left side:

log⁡2(x(x−2))=3.\log_2\left(x(x - 2)\right) = 3.

Rewrite in exponential form and solve the quadratic:

x(x−2)=23  ⟹  x2−2x−8=0  ⟹  (x−4)(x+2)=0.x(x - 2) = 2^3 \;\Longrightarrow\; x^2 - 2x - 8 = 0 \;\Longrightarrow\; (x - 4)(x + 2) = 0.

So x=4x = 4 or x=−2x = -2. Now check both in the original equation:

  • x=4x = 4: log⁡24+log⁡22=2+1=3\log_2 4 + \log_2 2 = 2 + 1 = 3. ✓
  • x=−2x = -2: log⁡2(−2)\log_2(-2) is undefined. ✗

The only solution is x=4x = 4. The value x=−2x = -2 is an extraneous solution.

Why extraneous solutions appear

The original equation needs x>0x > 0 and x−2>0x - 2 > 0. After condensing, the equation log⁡2(x(x−2))=3\log_2\left(x(x - 2)\right) = 3 only needs the product x(x−2)x(x - 2) to be positive, which is also true when both factors are negative. Condensing widened the domain, and the extra solution slipped in through the gap.

Common mistake

Always check each solution in the original equation, not the condensed one. Every argument of every log must be positive. A negative solution isn't automatically wrong (for example, x=−1x = -1 works in log⁡(x+5)=log⁡4\log(x + 5) = \log 4), and a positive one isn't automatically right. Substitute and look.

Worked example: A quotient

Solve log⁡(x+9)−log⁡x=1\log(x + 9) - \log x = 1.

Solution. Use the quotient property, then remember that log⁡\log means base 1010:

log⁡x+9x=1  ⟹  x+9x=101  ⟹  x+9=10x  ⟹  x=1.\log\frac{x + 9}{x} = 1 \;\Longrightarrow\; \frac{x + 9}{x} = 10^1 \;\Longrightarrow\; x + 9 = 10x \;\Longrightarrow\; x = 1.

Check: log⁡10−log⁡1=1−0=1\log 10 - \log 1 = 1 - 0 = 1. ✓

Tip

Before solving, write down the domain of the original equation. For log⁡2x+log⁡2(x−2)=3\log_2 x + \log_2(x - 2) = 3, the domain is x>2x > 2. Then any answer outside it, like x=−2x = -2, can be crossed out immediately.

Practice

Practice 1

Solve log⁡3x=4\log_3 x = 4.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

Solve log⁡4(2x)=3\log_4(2x) = 3.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

Solve log⁡(x−5)=2\log(x - 5) = 2.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 4

Solve ln⁡x=2.5\ln x = 2.5. Round to 33 decimal places.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

Solve log⁡6(x+4)+log⁡6(x−1)=2\log_6(x + 4) + \log_6(x - 1) = 2.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

Solve ln⁡x+ln⁡(x+3)=ln⁡10\ln x + \ln(x + 3) = \ln 10.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

Solve 2log⁡3x=log⁡3(x+12)2\log_3 x = \log_3(x + 12).

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 8

Solve log⁡2(x+1)−log⁡2(x−2)=2\log_2(x + 1) - \log_2(x - 2) = 2.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.