Skip to content
Tutorials Center
My learning

Topics

Lesson 26 of 38 · Exponential and Logarithmic Functions

Solving Exponential and Logarithmic Equations

Solve exponential equations by matching bases or taking logs, and solve log equations by condensing and converting to exponential form, checking the domain.

You now have two tools that undo each other. To get a variable out of an exponent, take a logarithm. To get a variable out of a logarithm, rewrite in exponential form. This lesson puts them to work.

Exponential equations, method 1: same base

If both sides can be written with the same base, the exponents must be equal:

Text
bᵘ = bᵛ   →   u = v

Example 1. 2^(x+1) = 32. Since 32 = 2⁵, we get x + 1 = 5, so x = 4.

Example 2. 9^x = 27. Write 9 = 3² and 27 = 3³: 3^(2x) = 3³, so 2x = 3 and x = 3/2.

Example 3. (1/4)^x = 8. Use base 2: 2^(-2x) = 2³, so -2x = 3 and x = -3/2.

Method 2: take a logarithm

When the bases do not match, take the log of both sides and use the power rule to bring the exponent down.

Example 4. 5^x = 40.

Text
ln(5^x) = ln(40)
x·ln(5) = ln(40)
x = ln(40)/ln(5) ≈ 2.292

Check: 5^2.292 ≈ 40.

Example 5. 3·2^(x-1) = 24. Isolate the power first: 2^(x-1) = 8 = 2³, so x - 1 = 3 and x = 4. Always isolate the exponential before taking logs.

Example 6. 7^(2x) = 3^(x+1):

Text
2x·ln7 = (x+1)·ln3
x(2·ln7 - ln3) = ln3
x = ln3 / (2·ln7 - ln3)

Logarithmic equations

Method: get a single log on one side, convert to exponential form, solve, and check the domain (every log argument must be positive).

Example 7. log₂(x + 3) = 4. Convert: x + 3 = 2⁴ = 16, so x = 13. Check: 13 + 3 = 16 > 0. Valid.

Example 8. log(x) + log(x - 3) = 1 (base 10). Condense: log(x(x - 3)) = 1, so x² - 3x = 10, giving x² - 3x - 10 = 0, which factors as (x - 5)(x + 2) = 0.

  • x = 5: log 5 + log 2 = log 10 = 1. Valid.
  • x = -2: log(-2) is undefined. Reject.

So x = 5 only.

Example 9. ln(x) = ln(3x - 6). Since ln is one-to-one, x = 3x - 6, so x = 3. Check: ln 3 = ln 3. Valid.

Extraneous solutions are common here too. Never skip the domain check: the argument of every logarithm in the original equation must be positive.

Equations with e and ln

e^(2x) = 7 → take ln: 2x = ln 7, so x = ln(7)/2 ≈ 0.973.
ln(x) = 2 → x = e² ≈ 7.389.

An equation solver you can run

The program below solves a·b^(cx) = d using logs, and a quadratic-log equation with a domain filter.

Python Solve a*b^(c*x) = d and check

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Check the answers with SymPy

Python Verify with SymPy

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Solve 4^x = 64.

    64 = 4³, so x = 3.
  2. 2. What is the first step to solve 5·3^x = 45?

    Isolate the exponential: 3^x = 9, so x = 2.
  3. 3. Solve log₃(x - 1) = 2.

    Rewrite as x - 1 = 3² = 9, so x = 10.
  4. 4. In log(x) + log(x - 3) = 1, why is x = -2 rejected?

    Logs need positive arguments; for x = -2 both x and x - 3 are negative.

Summary

  • Match bases when you can: equal bases mean equal exponents.
  • Otherwise isolate the exponential and take a log of both sides.
  • For log equations, condense, convert to exponential form, solve, then check the domain.
  • Use ln with e: e^u = v gives u = ln v.

Next: The Number e and Compound Interest