Unit 5, lesson 43

Solving Exponential and Logarithmic Equations

How to solve an equation with the unknown in an exponent or inside a logarithm by choosing the right inverse step, and why every candidate must be checked in the original equation.

  • Theory part 85
  • Practice part 86
  • Equations

A savings balance that grows by a fixed percentage each year raises a natural question. When will it double? The unknown sits in the exponent, so ordinary algebra cannot reach it. The cure is to look at where the unknown is and apply the operation that undoes what is wrapped around it, exponentials undoing logarithms and logarithms undoing exponentials. Some of those steps can produce numbers that do not solve the original equation, so the last step is always a check.

Key terms

Exponential equation

Definition An exponential equation is an equation in which the unknown appears in an exponent, as in ag(x)=ca^{g(x)} = c with a base a>0a > 0, a≠1a \ne 1. Because ag(x)>0a^{g(x)} > 0 for every input, the equation ag(x)=ca^{g(x)} = c has no solution when c≤0c \le 0.

In plain words The unknown is up in the exponent. First isolate the exponential part, then bring the unknown down.

Example To solve 3⋅2x=483 \cdot 2^x = 48, divide by 33 to isolate the power, which gives 2x=16=242^x = 16 = 2^4, so x=4x = 4. In contrast, the equation e2x=−5e^{2x} = -5 has no solution at all, since e2xe^{2x} is positive for every real xx.

One-to-one exponential

Definition For a fixed base a>0a > 0 with a≠1a \ne 1, the function x↦axx \mapsto a^x is one-to-one. So for real numbers uu and vv,

au=avexactly whenu=v.a^u = a^v \quad \text{exactly when} \quad u = v.

The condition a≠1a \ne 1 is needed, because 1u=11^u = 1 for every uu.

In plain words Two powers of the same valid base are equal only when the exponents are equal, so you may set the exponents equal.

Example The equation 5x2=545^{x^2} = 5^4 gives x2=4x^2 = 4, so x=2x = 2 or x=−2x = -2. Both work, since each makes the exponent 44. With base 11 the reasoning fails, because 12=151^2 = 1^5 even though 2≠52 \ne 5.

Common base

Definition The common base method rewrites both sides of an exponential equation as powers of one base a>0a > 0, a≠1a \ne 1, and then uses the one-to-one property to equate the exponents. It works when both sides are known powers of the same number.

In plain words If 44 and 88 are both powers of 22, write everything with base 22 and compare exponents.

Example Solve 4x+1=8x4^{x + 1} = 8^x. Since 4=224 = 2^2 and 8=238 = 2^3,

22(x+1)=23x,so2x+2=3xandx=2.\begin{gathered} 2^{2(x + 1)} = 2^{3x}, \\[0.4em] \text{so} \quad 2x + 2 = 3x \quad \text{and} \quad x = 2. \end{gathered}

Check in the original equation. The left side is 43=644^3 = 64 and the right side is 82=648^2 = 64.

Taking logarithms

Definition If P>0P > 0 and Q>0Q > 0, then for any valid base bb,

P=Qexactly whenlog⁡bP=log⁡bQ,\begin{gathered} P = Q \\[0.4em] \text{exactly when} \\[0.4em] \log_b P = \log_b Q, \end{gathered}

because log⁡b\log_b is one-to-one on (0,∞)(0, \infty). Taking a real logarithm of both sides is allowed only when both sides are positive. The answer is usually written exactly with logarithms, and a decimal is given afterward and marked with ≈\approx as an approximation.

In plain words When the two sides cannot be written with a common base, apply a logarithm to both sides and use the power law to bring the exponents down.

Example Solve 3x=203^x = 20. Both sides are positive, so take natural logarithms. The power law gives xln⁡3=ln⁡20x \ln 3 = \ln 20, hence

x=ln⁡20ln⁡3≈2.727.x = \frac{\ln 20}{\ln 3} \approx 2.727.

The exact answer is the fraction of logarithms. The decimal is only close, and substituting it does not give exactly 2020. For instance 32.73≈20.073^{2.73} \approx 20.07. A harder case has the unknown on both sides. To solve 2x+1=3x2^{x + 1} = 3^x, take logarithms and collect the xx terms.

(x+1)ln⁡2=xln⁡3,sox=ln⁡2ln⁡3−ln⁡2≈1.710.\begin{gathered} (x + 1) \ln 2 = x \ln 3, \\[0.4em] \text{so} \quad x = \frac{\ln 2}{\ln 3 - \ln 2} \approx 1.710. \end{gathered}

Logarithmic equation

Definition A logarithmic equation is an equation in which the unknown appears inside the argument of a logarithm. For a valid base aa and any real number cc,

log⁡au=cexactly whenu=ac,\begin{gathered} \log_a u = c \\[0.4em] \text{exactly when} \\[0.4em] u = a^c, \end{gathered}

and any uu found this way is automatically positive.

In plain words The unknown is trapped inside a logarithm. Rewrite the equation in exponential form to free it.

Example Solve log⁡2(x+3)=5\log_2(x + 3) = 5. In exponential form x+3=25=32x + 3 = 2^5 = 32, so x=29x = 29. Check that log⁡232=5\log_2 32 = 5, which is true.

Argument restriction

Definition The domain of an equation with logarithms is the set of inputs at which every logarithm appearing in the original equation has a positive argument. A solution must lie in this set. Combining logarithms with the product or quotient law can produce an expression defined on a larger set, so the restriction comes from the original terms, not from the combined form.

In plain words Before you combine anything, write down where each logarithm is defined. That list is the only place a solution can live.

Example Solve ln⁡x+ln⁡(x−3)=ln⁡10\ln x + \ln(x - 3) = \ln 10. The original terms need x>0x > 0 and x−3>0x - 3 > 0, so any solution must satisfy x>3x > 3. On that set the product law gives

ln⁡(x(x−3))=ln⁡10,sox2−3x−10=0.\begin{gathered} \ln\left(x(x - 3)\right) = \ln 10, \\[0.4em] \text{so} \quad x^2 - 3x - 10 = 0. \end{gathered}

This factors as (x−5)(x+2)=0(x - 5)(x + 2) = 0, with roots 55 and −2-2. Only x=5x = 5 satisfies x>3x > 3, and indeed ln⁡5+ln⁡2=ln⁡10\ln 5 + \ln 2 = \ln 10.

Candidate solution

Definition A candidate solution is a number produced by a chain of solving steps in which each new equation follows from the one before, so every solution of the earlier equation also solves the new one. Combining logarithms with the product law and squaring both sides are steps of this kind, but they are not always reversible, so the new equation may have extra solutions. Under these conditions every true solution appears among the candidates, and a candidate becomes a solution only after it is shown to satisfy the original equation. A step that can lose solutions, such as dividing both sides by an expression that might be zero or replacing ln⁡(x2)\ln\left(x^2\right) with 2ln⁡x2 \ln x, breaks this guarantee and should be avoided.

In plain words The algebra hands you suspects. Each one still has to pass a check before it counts.

Example Solve e2x−ex−6=0e^{2x} - e^x - 6 = 0. Put u=exu = e^x, so e2x=u2e^{2x} = u^2 and the equation becomes

u2−u−6=0,so(u−3)(u+2)=0.\begin{gathered} u^2 - u - 6 = 0, \\[0.4em] \text{so} \quad (u - 3)(u + 2) = 0. \end{gathered}

Every solution xx of the original gives a root u=exu = e^x of this quadratic, so the candidates for uu are 33 and −2-2. Since u=exu = e^x must be positive, u=−2u = -2 is rejected. From ex=3e^x = 3 the single solution is x=ln⁡3x = \ln 3. Checking, e2ln⁡3−eln⁡3−6=9−3−6=0e^{2 \ln 3} - e^{\ln 3} - 6 = 9 - 3 - 6 = 0.

Checking the original equation

Definition To check a candidate, substitute it into the original equation, as it was first written, and confirm that every expression is defined and that the two sides are equal. A check in a rewritten form is not enough, because the rewritten form may be defined where the original is not. When the solution is exact, check it exactly, not with a rounded decimal.

In plain words Go all the way back to the first line of the problem and test each candidate there.

Example Solve log⁡3x+log⁡3(x−8)=2\log_3 x + \log_3(x - 8) = 2. Combining gives log⁡3(x(x−8))=2\log_3\left(x(x - 8)\right) = 2, so x(x−8)=9x(x - 8) = 9 and x2−8x−9=0x^2 - 8x - 9 = 0. The candidates are x=9x = 9 and x=−1x = -1.

At x=9x = 9 the original reads log⁡39+log⁡31=2+0=2\log_3 9 + \log_3 1 = 2 + 0 = 2, so it is a solution. At x=−1x = -1 the combined form gives log⁡39=2\log_3 9 = 2, which looks fine, but the original contains log⁡3(−1)\log_3(-1), which is undefined. So x=−1x = -1 is rejected and the only solution is x=9x = 9.

Check yourself

  1. Solve 9x=27x−19^x = 27^{x - 1} with a common base.
Show the answer

Write both sides with base 33.

32x=33(x−1),so2x=3x−3andx=3.\begin{gathered} 3^{2x} = 3^{3(x - 1)}, \\[0.4em] \text{so} \quad 2x = 3x - 3 \quad \text{and} \quad x = 3. \end{gathered}

Check with 93=7299^3 = 729 and 272=72927^2 = 729.

  1. Solve 4e3x=104e^{3x} = 10. Give the exact answer and a decimal approximation.
Show the answer

Isolating the exponential gives e3x=52e^{3x} = \frac{5}{2}, which is positive, so taking natural logarithms is allowed.

3x=ln⁡52,sox=13ln⁡52≈0.305.\begin{gathered} 3x = \ln \frac{5}{2}, \\[0.4em] \text{so} \quad x = \frac{1}{3} \ln \frac{5}{2} \approx 0.305. \end{gathered}
  1. Solve log⁡2x+log⁡2(x+2)=3\log_2 x + \log_2(x + 2) = 3.
Show the answer

The original terms require x>0x > 0. Combining gives x(x+2)=23=8x(x + 2) = 2^3 = 8, so x2+2x−8=0x^2 + 2x - 8 = 0 and the candidates are x=2x = 2 and x=−4x = -4. At x=2x = 2 the original reads log⁡22+log⁡24=1+2=3\log_2 2 + \log_2 4 = 1 + 2 = 3. The candidate x=−4x = -4 makes log⁡2(−4)\log_2(-4) undefined, so the only solution is x=2x = 2.

How this lesson connects