Practice / Precalculus

Exponential and logarithmic equations

Ten exponential and logarithmic equations solved step by step: matching bases, taking logs of both sides, isolating the exponential first, unknowns in both exponents, a quadratic in eˣ, log equations with an extraneous root and with no solution, the time for savings to reach a target, carbon dating, and Newton's law of cooling, with worked solutions and the mistakes of canceling ln from a quotient, taking the log of a sum term by term, taking logs before isolating, keeping a root outside the domain, and treating a half-life as a straight line.

Before you start

When the unknown is in an exponent, a logarithm brings it down; when the unknown is inside a logarithm, an exponential lets it out. These ten problems use those two moves on equations of every common shape, and then on the questions exponential models are used for: how long until the savings reach a target, how old is the sample, when is the coffee cool enough to drink. Two things go wrong more than any others: taking logs before the exponential is alone on its side, and keeping a solution that makes a logarithm undefined. Both are in the mistakes at the end.

  • Definition. log⁡bx=y\log_b x = y means by=xb^y = x, for b>0b > 0, b≠1b \neq 1 and x>0x > 0. ln⁡\ln is log⁡e\log_e and log⁡\log is log⁡10\log_{10}.
  • One-to-one. If bu=bvb^u = b^v then u=vu = v, and if log⁡bu=log⁡bv\log_b u = \log_b v then u=vu = v (with u,v>0u, v > 0). Equal outputs force equal inputs, which is what lets you drop a matching base or a matching log from both sides.
  • Laws used. log⁡bMN=log⁡bM+log⁡bN\log_b MN = \log_b M + \log_b N, log⁡bMN=log⁡bM−log⁡bN\log_b\dfrac MN = \log_b M - \log_b N, log⁡bMp=plog⁡bM\log_b M^p = p\log_b M, and ln⁡ex=x\ln e^x = x.
  • Taking logs of both sides is allowed when both sides are positive. To solve bx=cb^x = c with c>0c > 0: ln⁡bx=ln⁡c\ln b^x = \ln c, so xln⁡b=ln⁡cx\ln b = \ln c and x=ln⁡cln⁡bx = \dfrac{\ln c}{\ln b}.
  • Domain. Every expression inside a logarithm must be positive. Solving a log equation can produce numbers that break this rule, so substitute each candidate into the original equation and discard any that make a log undefined.
  • Models. Compound interest A=P(1+rn)ntA = P\left(1 + \tfrac rn\right)^{nt}; half-life N=N0(12)t/hN = N_0\left(\tfrac12\right)^{t/h}; Newton's law of cooling T=Troom+(T0−Troom)e−ktT = T_{\text{room}} + (T_0 - T_{\text{room}})e^{-kt}.
  • Decimal answers are rounded to four places unless the problem says otherwise. Keep full calculator precision until the last step.

Builds on: Logarithms and their laws

Problems

  1. ·

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

  2. ·

    Solve 5x=205^x = 20. Give the exact answer and a decimal to four places.

  3. ··

    Solve 3e0.4x+7=253e^{0.4x} + 7 = 25.

  4. ··

    Solve 32x−1=5x3^{2x-1} = 5^x.

  5. ··

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

  6. ··

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

  7. ··

    Solve each equation, or show it has no solution: (a) ln⁡(x+2)−ln⁡(x−1)=ln⁡4\ln(x + 2) - \ln(x - 1) = \ln 4, (b) log⁡3(x−5)=log⁡3(2x+1)\log_3(x - 5) = \log_3(2x + 1).

  8. ··

    You deposit 4 0004\,000 dollars at 5%5\% a year, compounded monthly. How long until the balance reaches 10 00010\,000 dollars? Give the time in years to two decimal places, and the first month-end at which the balance is at least 10 00010\,000.

  9. ···

    Carbon-14 has a half-life of 5 7305\,730 years. A piece of charcoal from an old campfire has 62%62\% of the carbon-14 that living wood has. How old is it, to the nearest 1010 years?

  10. ···

    A cup of coffee at 90 ∘C90\,^\circ\text{C} is left in a room at 20 ∘C20\,^\circ\text{C}. After 55 minutes it is at 70 ∘C70\,^\circ\text{C}. By Newton's law of cooling its temperature after tt minutes is T=20+70e−ktT = 20 + 70e^{-kt}. Find kk to four decimal places, then find when the coffee reaches 50 ∘C50\,^\circ\text{C}, to the nearest tenth of a minute.

Worked solutions

Problem 1

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

  1. 4=224 = 2^2 and 8=238 = 2^3, so the equation is (22)x+1=(23)x−1(2^2)^{x+1} = (2^3)^{x-1}.Both bases are powers of 22. Writing them over one base makes the two sides comparable.
  2. 22x+2=23x−32^{2x+2} = 2^{3x-3}.A power of a power multiplies the exponents: 2(x+1)=2x+22(x + 1) = 2x + 2 and 3(x−1)=3x−33(x - 1) = 3x - 3. Multiply the whole exponent, not just the xx.
  3. 2x+2=3x−32x + 2 = 3x - 3.One-to-one: equal powers of the same base have equal exponents.
  4. x=5x = 5Subtract 2x2x and add 33. Check: 46=40964^6 = 4096 and 84=40968^4 = 4096.

Problem 2

Solve 5x=205^x = 20. Give the exact answer and a decimal to four places.

  1. ln⁡5x=ln⁡20\ln 5^x = \ln 20.2020 is not a whole power of 55, so matching bases will not work. Take the natural log of both sides; both are positive.
  2. xln⁡5=ln⁡20x\ln 5 = \ln 20.Power law: the exponent comes down as a multiplier. This is the step that frees xx.
  3. x=ln⁡20ln⁡5≈2.9957321.609438≈1.8614x = \dfrac{\ln 20}{\ln 5} \approx \dfrac{2.995732}{1.609438} \approx 1.8614.Divide by the number ln⁡5\ln 5. The quotient of two logs does not simplify (mistake 1); compute each and divide.
  4. x=ln⁡20ln⁡5≈1.8614x = \dfrac{\ln 20}{\ln 5} \approx 1.8614Step 3. Sanity check: 51=55^1 = 5 and 52=255^2 = 25, and 2020 is between them, nearer 2525.

Problem 3

Solve 3e0.4x+7=253e^{0.4x} + 7 = 25.

  1. 3e0.4x=183e^{0.4x} = 18.Subtract 77. Isolate the exponential before taking any log: a log cannot be taken term by term across the sum on the left.
  2. e0.4x=6e^{0.4x} = 6.Divide by 33. Now the exponential is alone.
  3. 0.4x=ln⁡60.4x = \ln 6.Take ln⁡\ln of both sides; ln⁡e0.4x=0.4x\ln e^{0.4x} = 0.4x.
  4. x=ln⁡60.4≈1.7917590.4≈4.4794x = \dfrac{\ln 6}{0.4} \approx \dfrac{1.791759}{0.4} \approx 4.4794.Divide by 0.40.4.
  5. x=ln⁡60.4=2.5ln⁡6≈4.4794x = \dfrac{\ln 6}{0.4} = 2.5\ln 6 \approx 4.4794Step 4. Check: e0.4×4.4794≈6.000e^{0.4 \times 4.4794} \approx 6.000, and 3(6)+7=253(6) + 7 = 25.

Problem 4

Solve 32x−1=5x3^{2x-1} = 5^x.

  1. (2x−1)ln⁡3=xln⁡5(2x - 1)\ln 3 = x\ln 5.33 and 55 share no common base, so take ln⁡\ln of both sides and bring each exponent down. Keep the brackets: the whole exponent 2x−12x - 1 multiplies ln⁡3\ln 3.
  2. 2xln⁡3−ln⁡3=xln⁡52x\ln 3 - \ln 3 = x\ln 5.Distribute ln⁡3\ln 3. From here on ln⁡3\ln 3 and ln⁡5\ln 5 are just numbers, and the equation is linear in xx.
  3. 2xln⁡3−xln⁡5=ln⁡32x\ln 3 - x\ln 5 = \ln 3.Collect the terms with xx on one side and the rest on the other.
  4. x(2ln⁡3−ln⁡5)=ln⁡3x(2\ln 3 - \ln 5) = \ln 3, so x=ln⁡32ln⁡3−ln⁡5x = \dfrac{\ln 3}{2\ln 3 - \ln 5}.Factor out xx and divide.
  5. x=ln⁡3ln⁡95≈1.0986120.587787≈1.8691x = \dfrac{\ln 3}{\ln\frac95} \approx \dfrac{1.098612}{0.587787} \approx 1.8691.2ln⁡3−ln⁡5=ln⁡9−ln⁡5=ln⁡952\ln 3 - \ln 5 = \ln 9 - \ln 5 = \ln\tfrac95, by the power and quotient laws.
  6. x=ln⁡32ln⁡3−ln⁡5≈1.8691x = \dfrac{\ln 3}{2\ln 3 - \ln 5} \approx 1.8691Step 5. Check: 32(1.8691)−1=32.7382≈20.253^{2(1.8691) - 1} = 3^{2.7382} \approx 20.25 and 51.8691≈20.255^{1.8691} \approx 20.25.

Problem 5

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

  1. Let u=exu = e^x; then e2x=(ex)2=u2e^{2x} = (e^x)^2 = u^2 and the equation is u2−u−6=0u^2 - u - 6 = 0.The equation is a quadratic in exe^x. Taking logs straight away fails, because the log of a sum or difference has no law (mistake 2).
  2. (u−3)(u+2)=0(u - 3)(u + 2) = 0, so u=3u = 3 or u=−2u = -2.Factor: −3×2=−6-3 \times 2 = -6 and −3+2=−1-3 + 2 = -1.
  3. ex=−2e^x = -2 has no solution.exe^x is positive for every real xx, so it can never equal −2-2. This root of the quadratic gives no xx.
  4. ex=3e^x = 3 gives x=ln⁡3≈1.0986x = \ln 3 \approx 1.0986.Take ln⁡\ln of both sides.
  5. x=ln⁡3≈1.0986x = \ln 3 \approx 1.0986Steps 3 and 4. Check: e2ln⁡3−eln⁡3−6=9−3−6=0e^{2\ln 3} - e^{\ln 3} - 6 = 9 - 3 - 6 = 0.

Problem 6

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

  1. The equation needs x>0x > 0 and x−6>0x - 6 > 0, so x>6x > 6.Find the domain first: both expressions inside the logs must be positive.
  2. log⁡2(x(x−6))=4\log_2\big(x(x - 6)\big) = 4.Product law, right to left, to get a single log.
  3. x(x−6)=24=16x(x - 6) = 2^4 = 16.Rewrite in exponential form: log⁡2(something)=4\log_2(\text{something}) = 4 means the something is 242^4.
  4. x2−6x−16=0x^2 - 6x - 16 = 0, so (x−8)(x+2)=0(x - 8)(x + 2) = 0 and x=8x = 8 or x=−2x = -2.Expand, move 1616 across and factor.
  5. x=−2x = -2 is rejected.It fails x>6x > 6: the original equation would contain log⁡2(−2)\log_2(-2), which is undefined. Step 2 created this root: x(x−6)x(x - 6) is positive when both factors are negative, but the two separate logs are not defined there.
  6. x=8x = 8Check: log⁡28+log⁡22=3+1=4\log_2 8 + \log_2 2 = 3 + 1 = 4.

Problem 7

Solve each equation, or show it has no solution: (a) ln⁡(x+2)−ln⁡(x−1)=ln⁡4\ln(x + 2) - \ln(x - 1) = \ln 4, (b) log⁡3(x−5)=log⁡3(2x+1)\log_3(x - 5) = \log_3(2x + 1).

  1. (a) Domain: x+2>0x + 2 > 0 and x−1>0x - 1 > 0, so x>1x > 1.Both logs must be defined.
  2. ln⁡x+2x−1=ln⁡4\ln\dfrac{x + 2}{x - 1} = \ln 4, so x+2x−1=4\dfrac{x + 2}{x - 1} = 4.Quotient law, then one-to-one: equal logs have equal inputs.
  3. x+2=4(x−1)=4x−4x + 2 = 4(x - 1) = 4x - 4, so 3x=63x = 6 and x=2x = 2.Multiply both sides by x−1x - 1 and solve. 2>12 > 1, so it is in the domain. Check: ln⁡4−ln⁡1=ln⁡4\ln 4 - \ln 1 = \ln 4.
  4. (b) Domain: x−5>0x - 5 > 0 and 2x+1>02x + 1 > 0, so x>5x > 5.The stricter of x>5x > 5 and x>−12x > -\tfrac12.
  5. x−5=2x+1x - 5 = 2x + 1, so x=−6x = -6.One-to-one, then solve the linear equation.
  6. x=−6x = -6 is not in the domain, so (b) has no solution.At x=−6x = -6 the equation reads log⁡3(−11)=log⁡3(−11)\log_3(-11) = \log_3(-11), and neither side exists. The only candidate fails, so nothing is left.
  7. (a) x=2x = 2. (b) No solutionSteps 3 and 6.

Problem 8

You deposit 4 0004\,000 dollars at 5%5\% a year, compounded monthly. How long until the balance reaches 10 00010\,000 dollars? Give the time in years to two decimal places, and the first month-end at which the balance is at least 10 00010\,000.

  1. 10 000=4 000(1+0.0512)12t10\,000 = 4\,000\left(1 + \dfrac{0.05}{12}\right)^{12t}.Compound interest with P=4 000P = 4\,000, r=0.05r = 0.05, n=12n = 12, and the time tt unknown.
  2. 2.5=(1+0.0512)12t2.5 = \left(1 + \dfrac{0.05}{12}\right)^{12t}.Divide by 4 0004\,000 to isolate the exponential. The balance must grow by a factor of 2.52.5, whatever the deposit.
  3. ln⁡2.5=12t ln⁡(1+0.0512)\ln 2.5 = 12t\,\ln\left(1 + \dfrac{0.05}{12}\right).Take ln⁡\ln of both sides and bring the exponent 12t12t down.
  4. 12t=ln⁡2.5ln⁡(1+0.05/12)≈0.9162910.00415801≈220.3712t = \dfrac{\ln 2.5}{\ln(1 + 0.05/12)} \approx \dfrac{0.916291}{0.00415801} \approx 220.37 months.Divide by the log of the monthly factor. Keep at least six significant digits in the small denominator; rounding it to 0.00420.0042 would move the answer by two months.
  5. t≈220.3712≈18.36t \approx \dfrac{220.37}{12} \approx 18.36 years.Convert months to years.
  6. Interest is added at the end of each month, so the balance first reaches 10 00010\,000 at the end of month 221221.Round up: after 220220 months the balance is about 9 984.739\,984.73, still short, and after 221221 it is about 10 026.3310\,026.33.
  7. About 18.3618.36 years; the balance first passes 10 00010\,000 dollars at the end of month 221221 (1818 years and 55 months)Steps 5 and 6.

Problem 9

Carbon-14 has a half-life of 5 7305\,730 years. A piece of charcoal from an old campfire has 62%62\% of the carbon-14 that living wood has. How old is it, to the nearest 1010 years?

  1. 0.62 N0=N0(12)t/57300.62\,N_0 = N_0\left(\tfrac12\right)^{t/5730}.The half-life model with 62%62\% of the original amount left after tt years.
  2. 0.62=(12)t/57300.62 = \left(\tfrac12\right)^{t/5730}.Divide by N0N_0. The age depends only on the fraction left, not on how much carbon-14 there was.
  3. ln⁡0.62=t5730ln⁡12\ln 0.62 = \dfrac{t}{5730}\ln\tfrac12.Take ln⁡\ln of both sides and bring the exponent down.
  4. t=5730⋅ln⁡0.62ln⁡0.5≈5730×−0.478036−0.693147≈5730×0.689660t = 5730\cdot\dfrac{\ln 0.62}{\ln 0.5} \approx 5730 \times \dfrac{-0.478036}{-0.693147} \approx 5730 \times 0.689660.Divide by ln⁡12\ln\tfrac12 and multiply by 57305730. Both logs are negative, since both numbers are below 11, and the quotient is positive.
  5. t≈3 951.75t \approx 3\,951.75.So about 0.690.69 of a half-life has passed.
  6. About 3 9503\,950 years oldStep 5 rounded. Sanity check: more than half remains, so the age is under one half-life of 5 7305\,730 years.

Problem 10

A cup of coffee at 90 ∘C90\,^\circ\text{C} is left in a room at 20 ∘C20\,^\circ\text{C}. After 55 minutes it is at 70 ∘C70\,^\circ\text{C}. By Newton's law of cooling its temperature after tt minutes is T=20+70e−ktT = 20 + 70e^{-kt}. Find kk to four decimal places, then find when the coffee reaches 50 ∘C50\,^\circ\text{C}, to the nearest tenth of a minute.

  1. 70=20+70e−5k70 = 20 + 70e^{-5k}.Use the measurement: T=70T = 70 at t=5t = 5. (The 7070 multiplying the exponential is the starting gap, 90−2090 - 20; that it equals the measured temperature is a coincidence.)
  2. e−5k=5070=57e^{-5k} = \dfrac{50}{70} = \dfrac57.Subtract 2020, then divide by 7070: isolate the exponential.
  3. −5k=ln⁡57-5k = \ln\tfrac57, so k=−15ln⁡57=15ln⁡75≈0.3364725≈0.0673k = -\tfrac15\ln\tfrac57 = \tfrac15\ln\tfrac75 \approx \dfrac{0.336472}{5} \approx 0.0673 per minute.Take ln⁡\ln of both sides. −ln⁡57=ln⁡75-\ln\tfrac57 = \ln\tfrac75, because ln⁡1a=−ln⁡a\ln\tfrac1a = -\ln a.
  4. 50=20+70e−kt50 = 20 + 70e^{-kt}, so e−kt=3070=37e^{-kt} = \dfrac{30}{70} = \dfrac37.Now set T=50T = 50 and isolate the exponential again. The gap to room temperature has to fall from 7070 degrees to 3030.
  5. −kt=ln⁡37-kt = \ln\tfrac37, so t=ln⁡73k=5ln⁡73ln⁡75≈5×0.8472980.336472≈12.59t = \dfrac{\ln\frac73}{k} = \dfrac{5\ln\frac73}{\ln\frac75} \approx \dfrac{5 \times 0.847298}{0.336472} \approx 12.59.Take ln⁡\ln and divide by −k-k. Using the exact kk from step 3, not the rounded 0.06730.0673, keeps the last digit right.
  6. k=15ln⁡75≈0.0673k = \tfrac15\ln\tfrac75 \approx 0.0673 per minute; the coffee reaches 50 ∘C50\,^\circ\text{C} after about 12.612.6 minutesSteps 3 and 5. The first 2020 degrees took 55 minutes and the next 2020 take about 7.67.6: cooling slows as the coffee nears room temperature.

Where this goes wrong

1. Canceling ln from a quotient

The answer to 5x=205^x = 20 is a fraction with ln⁡\ln on top and bottom, which looks like it should simplify.

  1. 5x=205^x = 20, so x=ln⁡20ln⁡5x = \dfrac{\ln 20}{\ln 5}Right so far: Problem 2.
  2. “The ln⁡\ln cancels,” or “a quotient of logs is the log of the quotient.”The habit that causes the mistake: ln⁡\ln is a function, not a factor, so it cannot be canceled, and the quotient law is ln⁡MN=ln⁡M−ln⁡N\ln\tfrac MN = \ln M - \ln N, a statement about a difference of logs.
  3. x=ln⁡20ln⁡5=ln⁡205=ln⁡4≈1.386x = \dfrac{\ln 20}{\ln 5} = \ln\dfrac{20}{5} = \ln 4 \approx 1.38651.386≈9.35^{1.386} \approx 9.3, not 2020. Compute the two logs separately and divide: 2.99571.6094≈1.8614\tfrac{2.9957}{1.6094} \approx 1.8614.

2. Taking the log of a sum term by term

Taking logs of both sides is the standard move, so it gets applied to each term.

  1. e2x−ex=6e^{2x} - e^x = 6Right so far: Problem 5, rearranged.
  2. “Take ln⁡\ln of everything.”The habit that causes the mistake: ln⁡\ln of a side is the log of the whole side. There is no law for ln⁡(M−N)\ln(M - N), so the log cannot be handed out to each term.
  3. ln⁡e2x−ln⁡ex=ln⁡6\ln e^{2x} - \ln e^x = \ln 6, so 2x−x=ln⁡62x - x = \ln 6 and x≈1.79x \approx 1.79At x=1.79x = 1.79 the left side is about 35.9−6.0=29.935.9 - 6.0 = 29.9, not 66. Treat the equation as a quadratic in exe^x: (ex−3)(ex+2)=0(e^x - 3)(e^x + 2) = 0, so x=ln⁡3≈1.0986x = \ln 3 \approx 1.0986.

3. Taking logs before isolating the exponential

The log is the tool that brings the exponent down, so it is reached for first.

  1. 3e0.4x+7=253e^{0.4x} + 7 = 25Right so far: Problem 3.
  2. “Take ln⁡\ln now and bring down the exponent.”The habit that causes the mistake: the power law works on a lone power. Here the exponential is still multiplied by 33 and has 77 added to it.
  3. 0.4x+ln⁡7=ln⁡250.4x + \ln 7 = \ln 25, so x≈3.18x \approx 3.18This treats ln⁡(3e0.4x+7)\ln(3e^{0.4x} + 7) as 0.4x+ln⁡70.4x + \ln 7, losing the 33 and splitting a sum. At x=3.18x = 3.18 the left side is about 17.717.7, not 2525. Subtract 77 and divide by 33 first: e0.4x=6e^{0.4x} = 6, so x≈4.4794x \approx 4.4794.

4. Keeping a root outside the domain

The quadratic gives two roots, and both look like answers.

  1. log⁡2x+log⁡2(x−6)=4\log_2 x + \log_2(x - 6) = 4 leads to x2−6x−16=0x^2 - 6x - 16 = 0, so x=8x = 8 or x=−2x = -2Right so far: Problem 6, step 4.
  2. “Both roots solve the quadratic, so both solve the equation.”The half-truth that causes the mistake: every solution of the log equation solves the quadratic, but not the other way around. Combining the logs enlarged the domain.
  3. x=8x = 8 or x=−2x = -2At x=−2x = -2 the original equation contains log⁡2(−2)\log_2(-2) and log⁡2(−8)\log_2(-8), which do not exist. Check every candidate in the original equation: only x=8x = 8 survives.

5. Treating a half-life as a straight line

Half gone in 5 7305\,730 years suggests a steady rate of loss.

  1. 62%62\% of the carbon-14 is left, so 38%38\% has decayedRight so far: Problem 9.
  2. “50%50\% takes 5 7305\,730 years, so 38%38\% takes 3850\tfrac{38}{50} of that.”The habit that causes the mistake: proportional reasoning, which assumes the same amount decays every year. Decay removes the same fraction every year, so it is fastest at the start.
  3. t=3850×5 730≈4 355t = \dfrac{38}{50}\times 5\,730 \approx 4\,355 yearsThe model is 0.62=(12)t/57300.62 = \left(\tfrac12\right)^{t/5730}, which gives t≈3 952t \approx 3\,952 years. The straight line overestimates by about 400400 years, because the early decay is faster than the line allows.

Print this set: exponential-and-logarithmic-equations.pdf (problems, answers, and worked solutions on separate pages).

Read the guide: Solving exponential equations: same base, or take a log