Exponentials & Logarithms

Solving Exponential Equations with Logarithms

To solve bx=cb^{x}=c, take a logarithm of both sides and divide: x=ln⁡cln⁡bx=\frac{\ln c}{\ln b} Any log base gives the same value, and if the power has a coefficient or extra terms attached, isolate bxb^{x} before taking the log.

x=ln⁡cln⁡bfor bx=cx = \frac{\ln c}{\ln b} \quad \text{for } b^{x} = c

Try it with your numbers

Show every step

The log is the one tool that can reach a variable stuck in an exponent. Below you will see why that works, how to handle unknowns on both sides, how to spot hidden quadratics, and the cases where logs return nothing at all.

How do you solve exponential equations with logs?

Wrong versus right log of 3 times 5 to the x, showing ln 3 plus x ln 5
The exponent only touches the 5, so isolate 5ˣ before you take any log.

Four moves cover nearly every case, and the order matters.

  1. Isolate the power. Divide away any coefficient and move any added constants so that bsomethingb^{\text{something}} stands alone.
  2. Take ln⁡\ln (or log⁡\log) of both sides.
  3. Use the power rule from the logarithm rules: ln⁡(bu)=uln⁡b\ln(b^{u})=u\ln b. The exponent drops to ground level.
  4. Solve the linear equation that remains, then round only at the very end.

Here is the full process on 3⋅5x=903\cdot 5^{x}=90.

5x=305^{x}=30

ln⁡(5x)=ln⁡30\ln\left(5^{x}\right)=\ln 30

xln⁡5=ln⁡30x\ln 5=\ln 30

x=ln⁡30ln⁡5≈3.40121.6094≈2.113x=\frac{\ln 30}{\ln 5}\approx\frac{3.4012}{1.6094}\approx 2.113

The trap that costs the most points sits in step 1. If the 3 is left in place, ln⁡(3⋅5x)\ln\left(3\cdot 5^{x}\right) equals ln⁡3+xln⁡5\ln 3+x\ln 5. It does not equal xln⁡15x\ln 15, because the exponent belongs only to the 5. Dividing by 3 first removes the temptation.

Quick check

Solve 2⋅10x=702\cdot 10^{x}=70. Round to 3 decimal places.

Why does taking the log of both sides work?

Two equal numbers have equal logarithms, because a log gives exactly one output for each input. So applying ln⁡\ln to both sides of an equation never changes its solutions, as long as both sides are positive. That is the entire legal basis for the move.

The power rule has a clean origin. Every positive base can be written using ee: since b=eln⁡bb=e^{\ln b}, you get bx=(eln⁡b)x=exln⁡b.b^{x}=\left(e^{\ln b}\right)^{x}=e^{x\ln b}. The exponent of ee was xln⁡bx\ln b all along, and ln⁡\ln is the operation that reads off the exponent of ee. Nothing is “brought down” by magic; it was already there. The proofs of the logarithm properties show the same idea for every rule.

This also explains the final formula. By definition (see what a logarithm is), bx=cb^{x}=c means x=log⁡bcx=\log_{b}c. Your calculator has no button for an arbitrary base, so the change of base formula turns that into ln⁡cln⁡b\frac{\ln c}{\ln b}. Solving with logs and evaluating log⁡bc\log_b c are the same act.

Every base hides an e

Because bx=exln⁡bb^{x}=e^{x\ln b}, an exponential with any base is really ee raised to a multiple of xx. This is why ln⁡\ln is the natural tool for all of them.

Log or ln: does the base you choose matter?

No. Change of base guarantees log⁡clog⁡b=ln⁡cln⁡b\frac{\log c}{\log b}=\frac{\ln c}{\ln b}, so the quotient is identical. For 5x=235^{x}=23 you can check both routes:

x=ln⁡23ln⁡5≈3.135491.60944≈1.948x=log⁡23log⁡5≈1.361730.69897≈1.948x=\frac{\ln 23}{\ln 5}\approx\frac{3.13549}{1.60944}\approx 1.948 \qquad x=\frac{\log 23}{\log 5}\approx\frac{1.36173}{0.69897}\approx 1.948

A practical rule: use log⁡\log when the equation contains a power of 10, and use the natural logarithm when it contains Euler’s number ee, because ln⁡(eu)=u\ln(e^{u})=u cleans up instantly. In every other case the choice is yours.

The classic slip here is turning a quotient of logs into a log of a quotient. ln⁡23ln⁡5\frac{\ln 23}{\ln 5} is not ln⁡235\ln\frac{23}{5}: the first is about 1.9481.948, the second is about 1.5261.526. The division sign in the answer is a true division of two numbers. Also keep five or six digits on each log until the final step, since rounding ln⁡5\ln 5 to 1.61.6 early can shift the third decimal place.

Solving exponential equations with logs when x is on both sides

When the unknown sits in both exponents and the bases differ, the log still handles it. Distribute the exponents, then treat ln⁡2\ln 2 and ln⁡3\ln 3 as ordinary numbers while you gather the xx terms. Solve 2x+1=3x−12^{x+1}=3^{x-1}:

(x+1)ln⁡2=(x−1)ln⁡3(x+1)\ln 2=(x-1)\ln 3

xln⁡2+ln⁡2=xln⁡3−ln⁡3x\ln 2+\ln 2=x\ln 3-\ln 3

ln⁡2+ln⁡3=xln⁡3−xln⁡2\ln 2+\ln 3=x\ln 3-x\ln 2

ln⁡2+ln⁡3=x(ln⁡3−ln⁡2)\ln 2+\ln 3=x(\ln 3-\ln 2)

x=ln⁡2+ln⁡3ln⁡3−ln⁡2=ln⁡6ln⁡1.5≈1.79180.4055≈4.419x=\frac{\ln 2+\ln 3}{\ln 3-\ln 2}=\frac{\ln 6}{\ln 1.5}\approx\frac{1.7918}{0.4055}\approx 4.419

The last simplification uses the rules for condensing logarithms: a sum of logs becomes the log of a product, and a difference becomes the log of a quotient. Going the other way is covered in expanding logarithms. A quick sanity check: at x≈4.419x\approx 4.419 both 25.4192^{5.419} and 33.4193^{3.419} come out near 42.842.8.

Most errors here are sign errors when moving −ln⁡3-\ln 3 across, or forgetting to factor xx out before dividing. Never “cancel” the ln⁡\ln symbols from a sum like ln⁡2+ln⁡3\ln 2+\ln 3; they are numbers being added, and they only merge through the product rule.

Try this: Solve 7x=2x+37^{x}=2^{x+3} on paper, then confirm x≈1.660x\approx 1.660 by computing both sides on a calculator. They should agree to about 3 digits.

Quick check

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

What if the equation looks like a quadratic?

Substitution u equals 2 to the x factors a disguised quadratic and discards the negative root
Of the two roots u = 4 and u = −1, only u = 4 survives, giving x = 2.

If you see 4x4^{x} and 2x2^{x} together, or e2xe^{2x} and exe^{x}, the equation is a quadratic wearing a disguise. Since 4x=(2x)24^{x}=\left(2^{x}\right)^{2}, a substitution u=2xu=2^{x} exposes the structure. Solve 4x−3⋅2x−4=04^{x}-3\cdot 2^{x}-4=0:

u2−3u−4=0⇒(u−4)(u+1)=0u^{2}-3u-4=0 \quad\Rightarrow\quad (u-4)(u+1)=0

So u=4u=4 or u=−1u=-1. Now undo the substitution. 2x=42^{x}=4 gives x=2x=2. But 2x=−12^{x}=-1 is impossible, since a positive base never produces a negative result, so that root is discarded. The only solution is x=2x=2, and checking confirms it: 16−12−4=016-12-4=0.

When uu is not a nice power, finish with a log. For e2x−5ex+6=0e^{2x}-5e^{x}+6=0, the factors give ex=2e^{x}=2 or ex=3e^{x}=3, so x=ln⁡2x=\ln 2 or x=ln⁡3x=\ln 3. If the quadratic in uu does not factor, the formula still works; the quadratic formula practice problems are good drills for that stage. The habit to build: always test each value of uu for positivity before taking a log of it.

Using logs to solve growth, decay and interest problems

Real exponential models put the unknown in a time variable, so logs are the only practical way to answer “how long?” Suppose a balance follows 500e0.04t=1500500e^{0.04t}=1500.

e0.04t=3e^{0.04t}=3

0.04t=ln⁡30.04t=\ln 3

t=ln⁡30.04≈1.09860.04≈27.47 yearst=\frac{\ln 3}{0.04}\approx\frac{1.0986}{0.04}\approx 27.47 \text{ years}

Because the base is ee, the ln⁡\ln cancels the exponential directly, with no power rule needed. Geometrically, this answer is where the curve in graphing exponential functions crosses the horizontal line at 1500.

Doubling time is the cleanest special case. For ert=2e^{rt}=2 you get t=ln⁡2rt=\frac{\ln 2}{r}, which is where the rule of 72 comes from: ln⁡2≈0.693\ln 2\approx 0.693, and 72 is a friendlier number with many divisors. For compound interest, 1000(1.05)t=20001000(1.05)^{t}=2000 gives t=ln⁡2ln⁡1.05≈14.21t=\frac{\ln 2}{\ln 1.05}\approx 14.21 years, and the rule of 72 predicts 725=14.4\frac{72}{5}=14.4, a fast mental check.

Decay works the same way with a base below 1. Carbon-14 has a half-life of 5730 years, so with 20% remaining, (12)t/5730=0.2\left(\tfrac12\right)^{t/5730}=0.2 and t=5730⋅ln⁡0.2ln⁡0.5≈5730⋅2.3219≈13,300 years.t=5730\cdot\frac{\ln 0.2}{\ln 0.5}\approx 5730\cdot 2.3219\approx 13{,}300 \text{ years}. Both logs are negative, so their ratio is positive. That is only a worry for inequalities, where dividing by a negative ln⁡b\ln b (when 0<b<10<b<1) flips the inequality sign.

When do logs fail to solve an exponential equation?

The method has firm limits, and knowing them saves time. Three situations come up repeatedly:

  • The isolated side is zero or negative. 3x=−93^{x}=-9 and 3x=03^{x}=0 have no real solution, and ln⁡(−9)\ln(-9) is undefined, which is the signal.
  • The base is 1. 1x=71^{x}=7 has no solution, and 1x=11^{x}=1 is true for every xx. Logs fail because ln⁡1=0\ln 1=0 would put a zero in the denominator.
  • Different exponentials are added. In 2x+3x=102^{x}+3^{x}=10 there is no rule for ln⁡(a+b)\ln(a+b), so the log cannot separate the terms.

That last case tempts students into writing ln⁡(2x+3x)=xln⁡2+xln⁡3\ln\left(2^{x}+3^{x}\right)=x\ln 2+x\ln 3, which is false. The log rules handle products, quotients and powers, never sums. Equations like this need a graph or a numerical method; here the curves meet near x≈1.73x\approx 1.73.

The positivity test

Before taking any log, confirm the isolated side is greater than 0. If it is not, stop: the equation has no real solution.

Quick check

How many real solutions does 3x=−93^{x}=-9 have?

Same base or logarithms: which method should you use?

Both methods are valid whenever both apply, so the choice is about speed. If each side is a power of one common number, matching bases is quicker and gives exact answers. If not, logs are the dependable fallback.

Equation Best first move Result
2x=642^{x}=64 Match bases: 2x=262^{x}=2^{6} x=6x=6
9x=279^{x}=27 Rewrite as 32x=333^{2x}=3^{3} x=32x=\tfrac32
2x=502^{x}=50 Take logs x=ln⁡50ln⁡2≈5.644x=\frac{\ln 50}{\ln 2}\approx 5.644

The page on exponential equations with the same base covers the matching technique in detail. A useful mental habit: before reaching for a calculator, bracket the answer. Since 25=322^{5}=32 and 26=642^{6}=64, the solution of 2x=502^{x}=50 must sit between 5 and 6, and it should lean toward 6 because 50 is closer to 64 (by ratio) than to 32. The calculator’s 5.6445.644 fits.

Logs also produce an exact answer even when the decimal is messy. Writing x=ln⁡50ln⁡2x=\frac{\ln 50}{\ln 2} is exact, while 5.6445.644 is an approximation. Unless the problem asks for a decimal, leave the exact form, or give both.

How do you check an exponential equation answer?

Substitute the unrounded value back into the original equation. Store the full calculator result rather than retyping 2.1132.113, then evaluate the left side. For 3⋅5x=903\cdot 5^{x}=90 with x≈2.11328x\approx 2.11328, you get 3⋅52.11328≈90.03\cdot 5^{2.11328}\approx 90.0. If you test the rounded 2.1132.113 you will land at about 89.9989.99, which is normal rounding drift, not an error.

Bracketing gives a second, calculator-free check: your answer must lie between the two integers whose powers surround the target. For 5x=305^{x}=30, since 52=255^{2}=25 and 53=1255^{3}=125, the answer must be slightly above 2. An answer of 2.1132.113 passes, while a swapped quotient like ln⁡5ln⁡30≈0.473\frac{\ln 5}{\ln 30}\approx 0.473 fails at once.

You can also verify by reversing the problem. The statement x=log⁡530x=\log_{5}30 is a logarithmic equation, and the methods in solving logarithmic equations convert it straight back to 5x=305^{x}=30. Visually, the same number is a point on the curve from graphing logarithmic functions: the height of y=log⁡5xy=\log_{5}x at x=30x=30.

Practice problems

0 of 5 solved

  1. Solve 7x=507^{x}=50. Round to 3 decimal places.

  2. Solve 3⋅4x−1=603\cdot 4^{x-1}=60. Round to 3 decimal places.

  3. Solve 52x=3x+45^{2x}=3^{x+4}. Round to 3 decimal places.

  4. Solve e2x−7ex+10=0e^{2x}-7e^{x}+10=0.

  5. Solve 1000(1.005)12t=30001000(1.005)^{12t}=3000 for tt. Round to 2 decimal places.

Common questions

How do you solve an exponential equation with logarithms?

Isolate the power, take the log or ln of both sides, use the power rule to bring the exponent down, and solve the resulting linear equation. For bx=cb^{x}=c the answer is x=ln⁡cln⁡bx=\frac{\ln c}{\ln b}.

Should you use log or ln to solve an exponential equation?

Either one gives the same answer, because the ratio ln⁡cln⁡b\frac{\ln c}{\ln b} equals log⁡clog⁡b\frac{\log c}{\log b}. Pick ln⁡\ln when the equation contains ee and log⁡\log when it contains 10, otherwise use whichever you like.

Why can you bring the exponent down in front of the log?

Because bxb^{x} can be written as exln⁡be^{x\ln b}, so the exponent of ee is already xln⁡bx\ln b. The natural log simply reads that exponent off. This is the power rule of logarithms.

What do you do when the variable is in the exponent on both sides?

Take the log of both sides, bring both exponents down, and distribute. Then gather every xx term on one side, factor out xx, and divide by the leftover log expression.

Can an exponential equation have no solution?

Yes. After isolating the power, if the other side is zero or negative, there is no real solution, because bxb^{x} is always positive when b>0b>0. A base of 1 also breaks the method.

Do you isolate the exponential before taking the log?

Yes, whenever a coefficient or a added constant sits next to the power. Taking the log of 3⋅5x3\cdot 5^{x} gives ln⁡3+xln⁡5\ln 3+x\ln 5, not xln⁡15x\ln 15, so isolating first avoids the most common slip.

Up next