Exponentials and Logarithms

A logarithm undoes an exponent, so it is how you solve for the time in anything that grows or decays.

A spill leaves a lake at 800 ppb of a pollutant with a half-life of 6 days. When does it reach 50 ppb? You can do that on your fingers: 400, 200, 100, 50. Four halvings, 24 days.

Now make the target 37 ppb. The fifth halving overshoots to 25, so the answer is somewhere between 4 and 5 halvings, and no amount of finger counting will say where. The unknown is stuck up in an exponent, where ordinary algebra can't reach it. This Lesson gets it down.

Change that multiplies

Linear change adds the same amount in every step. Exponential change multiplies by the same factor in every step.

A gain of 3% per year is a factor of 1.03 each year, and a loss of 10% per year is a factor of 0.90. Call the fractional change per step rr, so 0.03 or −0.10 here. After tt steps from a start of y0y_0, you've multiplied by the factor tt times:

y=y0(1+r)ty = y_0 (1 + r)^t

A half-life t1/2t_{1/2} is the same idea with the step chosen so the factor comes out to exactly 12\tfrac{1}{2}, and a doubling time is the same idea with a factor of 2. The exponent t/t1/2t/t_{1/2} simply counts halvings:

y=y0(12)t/t1/2y = y_0 \left(\tfrac{1}{2}\right)^{t/t_{1/2}}
0 6 12 18 24 30 t (days) Concentration (ppb) 800 400 200 100 50 25 × 1/2 × 1/2 × 1/2 × 1/2 × 1/2
The pollutant from the opening, in 6-day steps
Each step keeps half of what the last one left, so the same 6 days that remove 400 ppb early on remove only 25 ppb later.

That picture is why a half-life never changes. The multiplier doesn't know how much is there. Falling from 800 to 400 takes the same 6 days as falling from 100 to 50, because both are a factor of 12\tfrac{1}{2}.

One more form shows up everywhere, with a strange-looking base. Suppose something grows 100% over a period. In one step, it multiplies by 2. Split that into two 50% steps and you get 1.52=2.251.5^2 = 2.25, because the second step also grows the first step's gain. Twelve steps give 2.613. A million give 2.71828, and more steps barely move it. Growth smeared out continuously tops out at that number, called ee, so continuous change is written with ee as the base:

y=y0ekty = y_0 e^{kt}

Here kk is the continuous rate: positive grows and negative decays. Many problems state a positive rate and write decay as e−kte^{-kt}, with the minus sign carrying the decay.

A logarithm asks: what exponent?

A logarithm answers one question. log⁡28\log_2 8 asks what power of 2 gives 8, and the answer is 3. That's the definition in the Handbook's Logarithms section:

log⁡bx=cwherebc=x\log_b x = c \quad \text{where} \quad b^c = x

Two bases get their own names. In the Handbook and on your calculator, log⁡x\log x means base 10, the common log, and ln⁡x\ln x means base ee, the natural log. So log⁡1000=3\log 1000 = 3, log⁡0.01=−2\log 0.01 = -2, and ln⁡e=1\ln e = 1.

A positive base raised to any power stays positive. No exponent turns 10 into 0 or into −2, so log⁡0\log 0 and log⁡(−2)\log(-2) don't exist: what's inside a log has to be positive. Hold on to that, because it decides which answers survive later.

Logs are exponents, so they obey the exponent rules. Multiply two powers of 10 and the exponents add, and that fact in log language is the product rule. The Handbook prints all three rules with a plain log, but they hold in any base, ln⁡\ln included.

Each log rule is an exponent rule in disguise
RuleExponent factLog rule
Product10a⋅10b=10a+b10^a \cdot 10^b = 10^{a+b}log⁡xy=log⁡x+log⁡y\log xy = \log x + \log y
Quotient10a/10b=10a−b10^a / 10^b = 10^{a-b}log⁡(x/y)=log⁡x−log⁡y\log (x/y) = \log x - \log y
Power(10a)c=10ac(10^a)^c = 10^{ac}log⁡xc=clog⁡x\log x^c = c \log x

Log rules adapted from the FE Reference Handbook, Logarithms

Notice what's missing: there's no rule for the log of a sum. log⁡(2+8)\log(2 + 8) is log⁡10=1\log 10 = 1, while log⁡2+log⁡8\log 2 + \log 8 is log⁡16=1.204\log 16 = 1.204. A sum inside a log stays there.

The product rule also explains the base-10 log scale, which places each number at its log, so distance on the page measures multiplying instead of adding. Multiplying by 10 adds log⁡10=1\log 10 = 1 to a number's log, so every factor of 10 takes the same length, called one log cycle. The Handbook's soil consolidation curve has a pressure axis like this, though the Handbook doesn't print the term.

× 10 × 10 × 10 one log cycle 1 10 100 1,000 0 1 2 3 2 5 log x
A log scale three cycles long
The 2 sits about 30% of the way across the first cycle because log⁡2=0.301\log 2 = 0.301.

Bringing an exponent down

Here's the standard form to spot: an unknown up in an exponent. Take the log of both sides, and the power rule brings it down where algebra can reach it. For 2x=502^x = 50:

xlog⁡2=log⁡50⇒x=log⁡50log⁡2=1.6990.301=5.64x \log 2 = \log 50 \quad \Rightarrow \quad x = \frac{\log 50}{\log 2} = \frac{1.699}{0.301} = 5.64

That checks out, since 25=322^5 = 32 and 26=642^6 = 64 bracket 50. Either log works, because ln⁡50/ln⁡2\ln 50 / \ln 2 is also 5.64. Just use the same one on top and bottom. The answer is a ratio of two logs and not the log of a ratio: ln⁡(50/2)=3.22\ln(50/2) = 3.22 misses the bracket entirely.

A growing or decaying quantity takes one step first: get the exponential alone by dividing out the starting value. Then take the log. When the base is ee, reach for ln⁡\ln, since ln⁡eu=u\ln e^u = u. Setting e−kt=12e^{-kt} = \tfrac{1}{2} gives the half-life that the Handbook prints in its Radiation section, t1/2=0.693/kt_{1/2} = 0.693/k, where 0.693 is ln⁡2\ln 2.

Worked Example The pollutant, down to 37 ppb
1 of 4

The spill from the opening starts at 800 ppb and has a half-life of 6 days. When does it reach 37 ppb?

Logarithmic equations: combine, undo, check

Now the unknown sits inside a log. Three moves handle it:

  1. Combine. Use the rules to get a single log on a side.
  2. Undo. Apply the definition: log⁡u=c\log u = c becomes u=10cu = 10^c, and ln⁡u=c\ln u = c becomes u=ecu = e^c. If each side is a single log in the same base, their insides are equal.
  3. Check. Put every root back into the original equation, and throw out any that makes a log's inside zero or negative.

The check isn't a formality, because combining opens a door. log⁡x+log⁡(x−3)\log x + \log(x - 3) needs both xx and x−3x - 3 to be positive. Its combined form, log⁡[x(x−3)]\log[x(x - 3)], only needs their product to be positive, and two negatives make a positive. That's how an impostor gets in.

Worked Example A root that has to go
1 of 3

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

Changing base

Your calculator has log⁡\log and ln⁡\ln, so what about log⁡250\log_2 50? Read what it asks: what power of 2 gives 50? You already solved that, and it came out as log⁡50/log⁡2\log 50 / \log 2. Written in general, that's the change-of-base formula in the Handbook's Logarithms section:

log⁡bx=log⁡axlog⁡ab\log_b x = \frac{\log_a x}{\log_a b}

Here aa is whichever base you have a button for. The case you'll use most connects the two buttons. The Handbook prints the factor as 2.302585, and 2.303 is plenty:

ln⁡x=log⁡xlog⁡e=2.303log⁡x\ln x = \frac{\log x}{\log e} = 2.303 \log x

The picture is simple. Since ee is a smaller base than 10, it takes a bigger exponent to reach the same number, and always by the same ratio. To reach 10, it's 10110^1 or e2.303e^{2.303}.

−2 −1 0 1 2 3 2 4 6 8 10 12 y x y = ln x y = log x ln 10 = 2.303 log 10 = 1 (1, 0)
The same curve, stretched
At every xx, ln⁡x\ln x is 2.303 times log⁡x\log x. Both pass through (1,0)(1, 0) and neither exists at or left of x=0x = 0.

Exponentials convert the same way. Any positive base is ee to some power, namely b=eln⁡bb = e^{\ln b}, so:

bt=e(ln⁡b) tb^t = e^{(\ln b)\, t}

That turns 2t2^t into e0.693te^{0.693t} and 10at10^{at} into e2.303ate^{2.303at}. Going from ee back to base 10, divide the exponent by 2.303 instead.

The same conversion shows that the two growth forms are one curve, with k=ln⁡(1+r)k = \ln(1 + r), so 1.03t=e0.0296t1.03^t = e^{0.0296t}. The Handbook's Population Projection Equations print both forms and call both rates kk, so watch which one you have.

Checkpoint
1 of 3

You're given log⁡x=1.70\log x = 1.70. What is ln⁡x\ln x?

Recap

  • Exponential change multiplies by the same factor in every equal step, which is why a half-life never changes.
  • A logarithm answers "what exponent?" log⁡\log is base 10, ln⁡\ln is base ee, and what's inside a log has to be positive. On a log scale, each factor of 10 is one log cycle.
  • To solve for an exponent, get the exponential alone and take the log of both sides: 2x=502^x = 50 gives x=ln⁡50/ln⁡2x = \ln 50 / \ln 2, not ln⁡(50/2)\ln(50/2).
  • To solve a log equation: combine, undo, check. Discard any root that makes a log's inside zero or negative, and never split log⁡(a+b)\log(a + b).
  • To change base: log⁡bx=log⁡ax/log⁡ab\log_b x = \log_a x / \log_a b, ln⁡x=2.303log⁡x\ln x = 2.303 \log x, and bt=e(ln⁡b)tb^t = e^{(\ln b)t}.