Math Core

Lesson 3.4 · Exponential and Logarithmic Functions

Exponential and logarithmic equations

How long until an investment doubles? When will a cooling cup of coffee reach drinking temperature? Questions like these ask for an unknown exponent, and the tool for pulling an exponent down is the logarithm. This lesson collects the strategies for solving exponential and logarithmic equations, along with the checks that keep you from reporting solutions that don't exist.

The one-to-one property

Both bxb^x and log⁡bx\log_b x are one-to-one functions: different inputs give different outputs. So for b>0b > 0, b≠1b \ne 1:

bu=bv  ⟺  u=v,log⁡bu=log⁡bv  ⟺  u=v(u,v>0).b^{u} = b^{v} \iff u = v, \qquad\qquad \log_b u = \log_b v \iff u = v \quad (u, v > 0).

If you can write both sides of an equation with the same base, you can simply set the exponents (or the arguments) equal.

Worked example: Rewrite with a common base

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

Solution. Both 88 and 44 are powers of 22:

(23)x−1=(22)x+2⟹23x−3=22x+4.\left(2^3\right)^{x - 1} = \left(2^2\right)^{x + 2} \quad\Longrightarrow\quad 2^{3x - 3} = 2^{2x + 4}.

Set the exponents equal: 3x−3=2x+43x - 3 = 2x + 4, so x=7x = 7.

Check: 86=262,1448^{6} = 262{,}144 and 49=262,1444^{9} = 262{,}144. ✓

Taking the log of both sides

Most equations don't have a convenient common base. Then the strategy is: isolate the exponential expression, take a logarithm of both sides, and use the power property to bring the exponent down.

Solving exponential equations

  1. Isolate the exponential expression, like b(…)=cb^{(\ldots)} = c.
  2. Take ln⁡\ln (or log⁡\log) of both sides.
  3. Use ln⁡(bu)=uln⁡b\ln\left(b^{u}\right) = u\ln b and solve the resulting linear equation.
  4. Give the exact answer in terms of logs, then a decimal approximation.

If the base is ee, use ln⁡\ln: since ln⁡eu=u\ln e^{u} = u, the exponent comes down with no extra factor.

Worked example: Isolate, then take ln

Solve 3e2x+1=253e^{2x} + 1 = 25. Give an exact answer and a decimal to three places.

Solution. Isolate the exponential:

3e2x=24⟹e2x=8.3e^{2x} = 24 \quad\Longrightarrow\quad e^{2x} = 8.

Take ln⁡\ln of both sides: 2x=ln⁡82x = \ln 8, so

x=ln⁡82≈1.040.x = \frac{\ln 8}{2} \approx 1.040.

Since ln⁡8=3ln⁡2\ln 8 = 3\ln 2, you could also write x=3ln⁡22x = \dfrac{3\ln 2}{2}.

Common mistake

Isolate the exponential before taking logs. Writing ln⁡(3e2x+1)=ln⁡25\ln\left(3e^{2x} + 1\right) = \ln 25 is true but useless, because there is no property for the log of a sum. And don't "take the log" of just one term: ln⁡(3e2x)+ln⁡1\ln\left(3e^{2x}\right) + \ln 1 is not the log of the left side.

When the variable appears in exponents on both sides with different bases, take logs and collect the xx-terms.

Worked example: Different bases on each side

Solve 2x+1=5x2^{x + 1} = 5^{x}.

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

(x+1)ln⁡2=xln⁡5.(x + 1)\ln 2 = x\ln 5.

This is a linear equation in xx; ln⁡2\ln 2 and ln⁡5\ln 5 are just constants. Distribute and collect:

xln⁡2+ln⁡2=xln⁡5⟹ln⁡2=x(ln⁡5−ln⁡2)⟹x=ln⁡2ln⁡5−ln⁡2=ln⁡2ln⁡2.5≈0.756.x\ln 2 + \ln 2 = x\ln 5 \quad\Longrightarrow\quad \ln 2 = x(\ln 5 - \ln 2) \quad\Longrightarrow\quad x = \frac{\ln 2}{\ln 5 - \ln 2} = \frac{\ln 2}{\ln 2.5} \approx 0.756.

Check: 21.756≈3.382^{1.756} \approx 3.38 and 50.756≈3.385^{0.756} \approx 3.38. ✓

Equations of quadratic type

An equation such as e2x−5ex+6=0e^{2x} - 5e^{x} + 6 = 0 contains e2x=(ex)2e^{2x} = \left(e^{x}\right)^2. Substituting u=exu = e^x turns it into a quadratic.

Worked example: Substitution

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

Solution. Let u=exu = e^{x}. Then 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.693,ex=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.

Both are valid. If one of the uu-values had been zero or negative, it would give no solution, since ex>0e^{x} > 0 for every xx.

Solving logarithmic equations

For equations with logarithms, the idea runs the other way: get a single logarithm on one side, then rewrite in exponential form.

Solving logarithmic equations

  1. Use the properties to condense each side to a single log.
  2. If the equation is log⁡b(…)=c\log_b(\ldots) = c, rewrite it as (…)=bc(\ldots) = b^{c}. If it is log⁡b(…)=log⁡b(…)\log_b(\ldots) = \log_b(\ldots), set the arguments equal.
  3. Solve the resulting algebraic equation.
  4. Check every solution in the original equation. Reject any value that makes an argument zero or negative.

Step 4 is not optional. Condensing log⁡bu+log⁡bv\log_b u + \log_b v into log⁡b(uv)\log_b(uv) enlarges the domain: uvuv can be positive when uu and vv are both negative, even though the original logs are undefined there. That is how extraneous solutions appear.

Worked example: An extraneous solution

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

Solution. Condense, then convert to exponential form:

log⁡2(x(x−2))=3⟹x(x−2)=23=8.\log_2\left(x(x - 2)\right) = 3 \quad\Longrightarrow\quad x(x - 2) = 2^3 = 8.

Solve the quadratic: x2−2x−8=0x^2 - 2x - 8 = 0, so (x−4)(x+2)=0(x - 4)(x + 2) = 0 and x=4x = 4 or x=−2x = -2.

Check: x=4x = 4 gives log⁡24+log⁡22=2+1=3\log_2 4 + \log_2 2 = 2 + 1 = 3. ✓ But x=−2x = -2 makes log⁡2(−2)\log_2(-2) undefined, so it is extraneous.

The only solution is x=4x = 4.

Tip

Before solving a log equation, write down its domain (every argument positive). Here that was x>2x > 2. Then you can reject extraneous answers at a glance.

Practice

Practice 1

Solve 9x=27x−19^{x} = 27^{x - 1}.

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

Practice 2

Solve 5ex−3=125e^{x} - 3 = 12. Round to three decimal places.

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

Practice 3

Solve 42x−1=114^{2x - 1} = 11. Round to three decimal places.

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

Practice 4

Solve 3x=2x+23^{x} = 2^{x + 2}. Round to three decimal places.

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

Practice 5

Solve e2x−7ex+12=0e^{2x} - 7e^{x} + 12 = 0. Give all solutions, rounded to three decimal places.

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

Practice 6

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

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

Practice 7

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

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

Practice 8

Solve 2ln⁡x=ln⁡(x+6)2\ln x = \ln(x + 6).

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