Skip to content
Tutorials Center
My learning

Topics

Lesson 18 of 37 · Exponential and Logarithmic Functions

Exponential and Logarithmic Equations

Solve equations with variable exponents and logarithms using same-base matching, taking logs and log laws, and check for extraneous solutions in Python.

Equations such as 3ˣ = 20 or log₂(x) + log₂(x - 2) = 3 cannot be solved by the techniques of earlier chapters. The unknown is trapped in an exponent or inside a logarithm. Because exponentials and logarithms are inverses, you can free it by applying the right inverse. This lesson organizes the methods and the checks that keep your answers honest.

Exponential equations

Method 1: write both sides with the same base

If you can make the bases equal, the exponents must be equal: bᵐ = bⁿ means m = n.

Solve 4^(x + 1) = 32. Write both as powers of 2: (2²)^(x + 1) = 2⁵, so 2^(2x + 2) = 2⁵. Then 2x + 2 = 5, so x = 3/2.

Method 2: take a logarithm of both sides

When the bases cannot be matched, take log (or ln) of both sides and use the power law to bring the exponent down.

Solve 3ˣ = 20: ln(3ˣ) = ln 20, so x·ln 3 = ln 20, so x = ln 20 / ln 3 ≈ 2.727.

Solve 5·2^(3x) = 100: divide first, 2^(3x) = 20, so 3x·ln 2 = ln 20, so x = ln 20 / (3 ln 2) ≈ 1.441.

Isolate the exponential part before taking logs.

Python Solving a^x = c with logs

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.

Quadratic in disguise

Some equations are quadratic in u = bˣ. Solve 4ˣ - 6·2ˣ + 8 = 0. Since 4ˣ = (2ˣ)², let u = 2ˣ: u² - 6u + 8 = 0, so (u - 2)(u - 4) = 0, so u = 2 or u = 4. Then 2ˣ = 2 gives x = 1, and 2ˣ = 4 gives x = 2.

If a solution for u is zero or negative, discard it: 2ˣ is always positive.

Logarithmic equations

Method: combine, then rewrite as an exponential

Use the log laws to get a single logarithm on one side, then convert with log_b(A) = c ⟺ A = bᶜ.

Solve log₂(x) + log₂(x - 2) = 3:

  1. Combine: log₂(x(x - 2)) = 3.
  2. Convert: x(x - 2) = 2³ = 8.
  3. Solve: x² - 2x - 8 = 0, so (x - 4)(x + 2) = 0, so x = 4 or x = -2.
  4. Check the domain. The original has log₂(x) and log₂(x - 2), so we need x > 2. Reject x = -2.

The solution is x = 4.

Logarithm laws apply only when every argument is positive. Squaring or combining logs can introduce extraneous solutions, so always substitute back into the original equation.

Equal logarithms

If log_b(A) = log_b(B), then A = B (and both must be positive). Solve ln(2x + 1) = ln(x + 5): 2x + 1 = x + 5, so x = 4; check: ln 9 = ln 9. ✓.

Python Solve and check 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.

Applications

When does an investment triple? If a balance grows by 6% a year, 1.06ᵗ = 3, so t = ln 3 / ln 1.06 ≈ 18.9 years.

Radioactive decay. If A(t) = A₀·(1/2)^(t/T) and you want the time to fall to 10% of the start: (1/2)^(t/T) = 0.1, so t = T · ln 0.1 / ln 0.5 ≈ 3.32 T.

The same pattern appears every time: isolate the exponential, take a log, divide.

Python Time to reach a target

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 2^(x - 1) = 16.

    16 = 2⁴, so x - 1 = 4 and x = 5.
  2. 2. Which is the exact solution of 5ˣ = 12?

    Take ln of both sides: x ln 5 = ln 12, so x = ln 12 / ln 5.
  3. 3. Solve log₃(x) = 4.

    Rewrite as x = 3⁴ = 81.
  4. 4. Why must you check solutions of log equations?

    Combining logs can produce candidates outside the domain, which are extraneous.

Summary

  • Exponential equations: match bases, or isolate the exponential and take a log.
  • Spot equations that are quadratic in u = bˣ, and discard non-positive u.
  • Log equations: combine with the laws, rewrite as an exponential, solve, then check the domain.
  • Always substitute back to remove extraneous solutions.

Next: Compound Interest and the Number e