Math Core

Lesson 5.5 · Exponential and Logarithmic Functions

Solving exponential equations

An exponential equation has the variable in an exponent, like 5x=405^x = 40 or 6e0.4x=456e^{0.4x} = 45. These equations answer "when?" questions: when will an investment reach a goal, when will a population hit a target. There are two main strategies: rewrite both sides with the same base, or take a logarithm of both sides.

Strategy 1: Rewrite with a common base

Exponential functions are one-to-one: different inputs give different outputs. So if two powers of the same base are equal, their exponents must be equal.

Equal bases, equal exponents

For b>0b > 0 and b≠1b \ne 1: if bm=bnb^m = b^n, then m=nm = n.

This works whenever both sides can be written as powers of the same number.

Worked example: Common base

Solve each equation.

  1. 4x+1=8x4^{x + 1} = 8^x
  2. 9x=1279^x = \dfrac{1}{27}

Solution.

  1. Both 44 and 88 are powers of 22: 4=224 = 2^2 and 8=238 = 2^3. Then
(22)x+1=(23)x  ⟹  22x+2=23x  ⟹  2x+2=3x  ⟹  x=2.\left(2^2\right)^{x + 1} = \left(2^3\right)^x \;\Longrightarrow\; 2^{2x + 2} = 2^{3x} \;\Longrightarrow\; 2x + 2 = 3x \;\Longrightarrow\; x = 2.

Check: 43=644^3 = 64 and 82=648^2 = 64. ✓

  1. Write both sides as powers of 33: 9x=32x9^x = 3^{2x} and 127=3−3\dfrac{1}{27} = 3^{-3}. So 2x=−32x = -3 and x=−32x = -\dfrac{3}{2}.

Common mistake

Put parentheses around the whole exponent when you substitute. (22)x+1\left(2^2\right)^{x + 1} is 22x+22^{2x + 2}, not 22x+12^{2x + 1}. The power rule multiplies 22 by the entire exponent x+1x + 1.

Strategy 2: Take a logarithm of both sides

Most equations don't have a common base. There is no nice power of 55 equal to 4040. Instead, take the logarithm of both sides (any base works, but ln⁡\ln or log⁡\log is what your calculator has), then use the power rule to bring the exponent down.

5x=40  ⟹  ln⁡5x=ln⁡40  ⟹  xln⁡5=ln⁡40  ⟹  x=ln⁡40ln⁡5≈2.292.5^x = 40 \;\Longrightarrow\; \ln 5^x = \ln 40 \;\Longrightarrow\; x \ln 5 = \ln 40 \;\Longrightarrow\; x = \frac{\ln 40}{\ln 5} \approx 2.292.

You could also go straight to x=log⁡540x = \log_5 40 by the definition of a logarithm and then use change of base. It's the same answer.

Solving by logarithms

  1. Isolate the exponential expression (get bsomethingb^{\text{something}} alone on one side).
  2. Take ln⁡\ln (or log⁡\log) of both sides.
  3. Bring down the exponent with the power rule, then solve the resulting linear equation.

Worked example: Isolate first

Solve 3⋅2x+4=703 \cdot 2^x + 4 = 70. Round to 33 decimal places.

Solution. Isolate the power:

3⋅2x=66  ⟹  2x=22.3 \cdot 2^x = 66 \;\Longrightarrow\; 2^x = 22.

Take ln⁡\ln of both sides:

xln⁡2=ln⁡22  ⟹  x=ln⁡22ln⁡2≈3.0910420.693147≈4.459.x \ln 2 = \ln 22 \;\Longrightarrow\; x = \frac{\ln 22}{\ln 2} \approx \frac{3.091042}{0.693147} \approx 4.459.

That's reasonable, since 24=162^4 = 16 and 25=322^5 = 32 bracket 2222.

Don't take the log before isolating. ln⁡(3⋅2x+4)\ln\left(3 \cdot 2^x + 4\right) can't be simplified, because there's no rule for the log of a sum.

Base e, and variables on both sides

When the base is ee, use ln⁡\ln, because ln⁡eu=u\ln e^{u} = u removes the base in one step.

Worked example: Natural base; two different bases

Solve each equation. Round to 33 decimal places.

  1. 6e0.4x=456e^{0.4x} = 45
  2. 3x+1=5x3^{x + 1} = 5^x

Solution.

  1. Divide by 66: e0.4x=7.5e^{0.4x} = 7.5. Take ln⁡\ln: 0.4x=ln⁡7.50.4x = \ln 7.5, so x=ln⁡7.50.4≈2.0149030.4≈5.037x = \dfrac{\ln 7.5}{0.4} \approx \dfrac{2.014903}{0.4} \approx 5.037.

  2. Take ln⁡\ln of both sides and bring down both exponents:

(x+1)ln⁡3=xln⁡5xln⁡3+ln⁡3=xln⁡5ln⁡3=xln⁡5−xln⁡3ln⁡3=x(ln⁡5−ln⁡3)x=ln⁡3ln⁡5−ln⁡3≈1.0986120.510826≈2.151\begin{aligned} (x + 1)\ln 3 &= x \ln 5 \\ x\ln 3 + \ln 3 &= x \ln 5 \\ \ln 3 &= x\ln 5 - x \ln 3 \\ \ln 3 &= x(\ln 5 - \ln 3) \\ x &= \frac{\ln 3}{\ln 5 - \ln 3} \approx \frac{1.098612}{0.510826} \approx 2.151 \end{aligned}

Treat ln⁡3\ln 3 and ln⁡5\ln 5 as ordinary constants: gather the xx-terms on one side and factor out xx.

Equations in quadratic form

Some exponential equations are quadratics in disguise. Since e2x=(ex)2e^{2x} = \left(e^x\right)^2, substitute u=exu = e^x.

Worked example: Quadratic form

Solve e2x−5ex+6=0e^{2x} - 5e^x + 6 = 0.

Solution. Let u=exu = e^x. The equation becomes u2−5u+6=0u^2 - 5u + 6 = 0, which factors as (u−2)(u−3)=0(u - 2)(u - 3) = 0. So u=2u = 2 or u=3u = 3:

ex=2  ⟹  x=ln⁡2≈0.693ex=3  ⟹  x=ln⁡3≈1.099.e^x = 2 \;\Longrightarrow\; x = \ln 2 \approx 0.693 \qquad e^x = 3 \;\Longrightarrow\; x = \ln 3 \approx 1.099.

If a factor had given ex=−4e^x = -4, you would reject it: exe^x is always positive.

Tip

Keep answers exact, like ln⁡22ln⁡2\dfrac{\ln 22}{\ln 2}, until the last step, then round once. To check, substitute the rounded answer back in; you should land very close to the other side.

Practice

For rounded answers, round to 33 decimal places.

Practice 1

Solve 2x=1282^x = 128.

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

Practice 2

Solve 25x=12525^x = 125.

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

Practice 3

Solve 8x−1=16x+28^{x - 1} = 16^{x + 2}.

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

Practice 4

Solve 7x=307^x = 30.

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

Practice 5

Solve 4ex−3=174e^x - 3 = 17.

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

Practice 6

Solve 2(1.5)x=502(1.5)^x = 50.

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

Practice 7

Solve 2x+3=3x2^{x + 3} = 3^x.

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

Practice 8

Solve e2x−7ex+12=0e^{2x} - 7e^x + 12 = 0. Give all solutions.

Separate answers with commas, e.g. 2, -5