Exponentials & Logarithms

Natural Log (ln): The Natural Logarithm Explained

The natural log of xx, written ln⁡x\ln x, is the exponent you put on e≈2.71828e \approx 2.71828 to get xx. In symbols, ln⁡x=y\ln x = y means exactly the same thing as ey=xe^{y} = x.

ln⁡x=y  ⟺  ey=x\ln x = y \iff e^{y} = x

Try it with your numbers

Show every step

Everything else about ln⁡\ln follows from that one sentence: why it only accepts positive inputs, why ln⁡1=0\ln 1 = 0, and why it can turn a stubborn exponent into an ordinary multiplication problem.

What does the natural log of a number mean?

Read ln⁡20\ln 20 as a question: “what power of ee gives 20?” Since e3≈20.09e^{3} \approx 20.09, the answer has to be just under 3, and a calculator confirms ln⁡20≈2.9957\ln 20 \approx 2.9957. This is an ordinary logarithm whose base happens to be ee, so ln⁡x\ln x and log⁡ex\log_e x are two spellings of the same thing.

Two anchor values fall straight out of the definition. Because e0=1e^{0} = 1, you get ln⁡1=0\ln 1 = 0. Because e1=ee^{1} = e, you get ln⁡e=1\ln e = 1. The sign of the answer is also predictable: inputs above 1 give positive outputs, and inputs between 0 and 1 give negative outputs, since a negative power of ee is a fraction.

The inverse pair is the workhorse of the whole topic:

ln⁡(ex)=x(all real x),eln⁡x=x(x>0)\ln\left(e^{x}\right) = x \quad (\text{all real } x), \qquad e^{\ln x} = x \quad (x > 0)

The two lines are not symmetric. The first works for any xx. The second only works when xx is positive, because ln⁡x\ln x does not exist otherwise.

Quick check

What is ln⁡(e)\ln\left(\sqrt{e}\right)?

Why is e the base for the natural log?

Any base works for a logarithm, so why ee? The reason is calculus. The curve y=exy = e^{x} is the one exponential whose slope at every point equals its height. That makes ln⁡x\ln x the log with the cleanest possible slope, and you can derive it in two lines. Start with eln⁡x=xe^{\ln x} = x and differentiate both sides with the chain rule:

eln⁡x⋅(ln⁡x)′=1⟹(ln⁡x)′=1xe^{\ln x}\cdot(\ln x)' = 1 \quad\Longrightarrow\quad (\ln x)' = \frac{1}{x}

Every other base picks up an awkward constant factor, such as 1xln⁡10\frac{1}{x \ln 10} for base 10. The same idea can be turned into a definition: ln⁡x\ln x is the area under y=1ty = \frac{1}{t} from t=1t = 1 to t=xt = x. That is why ln⁡x\ln x grows so slowly. The area added by each new unit shrinks as tt gets larger.

The number behind all of this is covered on the page about Euler’s number e, including how continuous compounding produces it.

Small-number shortcut

Near 1, the slope of ln⁡x\ln x is exactly 1, so ln⁡(1+h)≈h\ln(1+h) \approx h for small hh. For example, ln⁡1.03≈0.03\ln 1.03 \approx 0.03 (the true value is 0.02960.0296).

How do you estimate the natural log without a calculator?

You do not need a table. Memorize four values and build everything else with the rules:

  • ln⁡2≈0.693\ln 2 \approx 0.693
  • ln⁡3≈1.099\ln 3 \approx 1.099
  • ln⁡5≈1.609\ln 5 \approx 1.609
  • ln⁡10≈2.303\ln 10 \approx 2.303

Example 1. Estimate ln⁡20\ln 20 and ln⁡0.25\ln 0.25.

Split 20 into factors you know: 20=2⋅1020 = 2 \cdot 10. Then

ln⁡20=ln⁡2+ln⁡10≈0.693+2.303=2.996\ln 20 = \ln 2 + \ln 10 \approx 0.693 + 2.303 = 2.996

Sanity check: e3≈20.09e^{3} \approx 20.09 is just above 20, so ln⁡20\ln 20 should sit just under 3. It does. For the second one, 0.25=140.25 = \frac{1}{4}, so

ln⁡0.25=−ln⁡4=−2ln⁡2≈−1.386\ln 0.25 = -\ln 4 = -2\ln 2 \approx -1.386

A negative answer is right, since 0.25 is between 0 and 1.

A second mental check is bracketing between powers of ee. Since e2≈7.39e^{2} \approx 7.39 and e3≈20.09e^{3} \approx 20.09, any input between 7.39 and 20.09 has a natural log between 2 and 3. If a calculator answer ever lands outside its bracket, you pressed the wrong key.

Try this: Using only the four anchor values, estimate ln⁡40\ln 40 (hint: 40=4⋅1040 = 4 \cdot 10). Then confirm on a calculator. You should land near 3.6893.689.

Why is the natural log of a negative number undefined?

Because no real power of ee is zero or negative. The function eye^{y} is positive for every real yy: large negative powers give tiny positive fractions, and large positive powers give huge numbers, but the output never crosses zero. So the equation ey=−5e^{y} = -5 has no real solution, which means ln⁡(−5)\ln(-5) has no real value. The same reasoning kills ln⁡0\ln 0.

The picture makes this concrete. The graph of y=ln⁡xy = \ln x is the mirror image of y=exy = e^{x} across the line y=xy = x, so it lives entirely to the right of the yy-axis and hugs the vertical line x=0x = 0 without touching it. If you want to see both curves side by side, practice with graphing exponential functions and graphing logarithmic functions.

In practice, this means every expression inside a ln⁡\ln sets a condition. For ln⁡(4−x)\ln(4 - x) you need 4−x>04 - x > 0, so x<4x < 4. For ln⁡(x2−9)\ln(x^{2} - 9) you need x2>9x^{2} > 9, which gives x<−3x < -3 or x>3x > 3. Writing that condition down first is the cheapest way to avoid fake solutions later. (Complex numbers do give ln⁡(−1)=iπ\ln(-1) = i\pi, but that belongs to a different course.)

Quick check

For which values of xx is ln⁡(4−x)\ln(4 - x) defined?

Natural log rules and the ln(x²) trap

Wrong versus right solving of ln(x²) = ln 9, showing the power rule slip loses x = -3
Dropping the logs directly keeps both solutions, while pulling the 2 out front silently loses x = -3.

The three working rules are the standard logarithm rules with base ee:

ln⁡(ab)=ln⁡a+ln⁡b,ln⁡ab=ln⁡a−ln⁡b,ln⁡(ak)=kln⁡a\ln(ab) = \ln a + \ln b, \qquad \ln\frac{a}{b} = \ln a - \ln b, \qquad \ln\left(a^{k}\right) = k\ln a

They are exponent rules in disguise: logs are exponents, and multiplying powers of the same base adds their exponents. The proofs of the logarithm properties show this in a few lines. One thing to remember is that there is no rule for ln⁡(a+b)\ln(a + b). For instance, ln⁡2+ln⁡3=ln⁡6\ln 2 + \ln 3 = \ln 6, not ln⁡5\ln 5.

The trap that costs the most points is the power rule applied to an even power. The correct statement is

ln⁡(x2)=2ln⁡∣x∣\ln\left(x^{2}\right) = 2\ln|x|

with the absolute value, because x2x^{2} is positive even when xx is negative, while ln⁡x\ln x itself needs x>0x > 0.

Example 2. Solve ln⁡(x2)=ln⁡9\ln\left(x^{2}\right) = \ln 9.

The careless route is 2ln⁡x=ln⁡92\ln x = \ln 9, so ln⁡x=ln⁡3\ln x = \ln 3 and x=3x = 3. That loses a solution. The safe route is to drop the logs directly: x2=9x^{2} = 9, so x=3x = 3 or x=−3x = -3. Both are valid, since ln⁡((−3)2)=ln⁡9\ln\left((-3)^{2}\right) = \ln 9 is perfectly defined. Moving a power in front is fine only when you know the base is positive.

To go the other way, collapsing several logs into one, see condensing logarithms.

How do you solve equations with the natural log?

The plan is always “apply the inverse.” To free a variable from an exponent on ee, take ln⁡\ln of both sides. To free it from a ln⁡\ln, raise ee to both sides. Each side then loses its outer function cleanly.

  1. Isolate the ee-term (or the ln⁡\ln-term) by itself first.
  2. Apply the inverse: ln⁡\ln for an ee-term, e ⋅ e^{\,\cdot\,} for a ln⁡\ln-term.
  3. Solve the remaining equation.
  4. Check every answer against the domain, and substitute back.

Example 3. Solve 3e2x=213e^{2x} = 21.

Divide by 3: e2x=7e^{2x} = 7. Take ln⁡\ln of both sides: 2x=ln⁡72x = \ln 7. Then

x=ln⁡72≈1.94592≈0.9730x = \frac{\ln 7}{2} \approx \frac{1.9459}{2} \approx 0.9730

Check: e2(0.9730)=e1.946≈7e^{2(0.9730)} = e^{1.946} \approx 7, and 3⋅7=213 \cdot 7 = 21. This is the same method taught in solving exponential equations using logarithms, where ln⁡\ln is the standard choice because the final step is just division.

Example 4. Solve ln⁡x+ln⁡(x−2)=ln⁡3\ln x + \ln(x - 2) = \ln 3.

Condense the left side: ln⁡(x(x−2))=ln⁡3\ln\big(x(x-2)\big) = \ln 3. Drop the logs: x2−2x=3x^{2} - 2x = 3, so x2−2x−3=0x^{2} - 2x - 3 = 0, which factors as (x−3)(x+1)=0(x - 3)(x + 1) = 0. That gives x=3x = 3 or x=−1x = -1. Now apply the domain: x=−1x = -1 would put ln⁡(−1)\ln(-1) in the original equation, so it is rejected. Checking x=3x = 3: ln⁡3+ln⁡1=ln⁡3+0=ln⁡3\ln 3 + \ln 1 = \ln 3 + 0 = \ln 3. The only solution is x=3x = 3.

When the quadratic does not factor, use the formula from the quadratic formula practice problems. For more equations of this type, see solving logarithmic equations.

Natural log vs log: what is the difference?

The difference is the base. ln⁡\ln always means base ee. A bare log⁡\log means base 10 on calculators and in most algebra and chemistry classes, but it often means base ee in calculus and in programming languages (Python’s math.log and JavaScript’s Math.log both compute the natural log). When a source does not say, check the context.

The two are locked together by a constant. Since ln⁡10≈2.3026\ln 10 \approx 2.3026,

ln⁡x≈2.3026 log⁡x\ln x \approx 2.3026\,\log x

This is a special case of the change of base formula, which is also how you evaluate a log in any base on a calculator with only ln⁡\ln and log⁡\log keys:

log⁡bx=ln⁡xln⁡b\log_b x = \frac{\ln x}{\ln b}

Example 5. Evaluate log⁡220\log_{2} 20.

log⁡220=ln⁡20ln⁡2≈2.99570.6931≈4.32\log_{2} 20 = \frac{\ln 20}{\ln 2} \approx \frac{2.9957}{0.6931} \approx 4.32

Check: 24=162^{4} = 16 and 25=322^{5} = 32, so the answer must be between 4 and 5, and 20 is a bit above 16. It fits.

The pH trap

pH uses log⁡10\log_{10}. Pressing LN instead gives an answer 2.3026 times too large, and the error looks plausible enough to slip through.

Where is the natural log used in real life?

Anywhere something grows or decays at a rate proportional to its size, ee appears, and ln⁡\ln is the tool that solves for time. With continuous growth A=PertA = Pe^{rt}, taking ln⁡\ln gives the time needed to reach a target:

t=ln⁡(A/P)rt = \frac{\ln(A/P)}{r}

For doubling, A/P=2A/P = 2, so t=ln⁡2r≈0.693rt = \frac{\ln 2}{r} \approx \frac{0.693}{r}. At a 5% continuous rate, that is 0.69310.05≈13.9\frac{0.6931}{0.05} \approx 13.9 years. This is where the “rule of 70” comes from: 0.6930.693 rounds to 0.70, so dividing 70 by the percentage rate gives the doubling time.

Decay works the same way. If a substance follows N=N0e−ktN = N_0 e^{-kt} and has half-life TT, then 12=e−kT\frac{1}{2} = e^{-kT}, so k=ln⁡2Tk = \frac{\ln 2}{T}. Carbon-14 has a half-life of 5730 years, so k≈0.69315730≈1.21×10−4k \approx \frac{0.6931}{5730} \approx 1.21 \times 10^{-4} per year. Beyond growth and decay, ln⁡\ln shows up in chemical reaction rates, entropy in physics, and in statistics, where taking logs turns products of probabilities into sums that a computer can handle without rounding to zero.

Quick check

Money grows continuously at 4% per year, so A=Pe0.04tA = Pe^{0.04t}. About how many years does it take to double?

Practice problems

0 of 5 solved

  1. Evaluate ln⁡(e7)\ln\left(e^{7}\right).

  2. Write ln⁡12−ln⁡3\ln 12 - \ln 3 as a single natural log and evaluate it.

  3. Solve ex=15e^{x} = 15. Give an exact answer and a decimal.

  4. Solve 5ln⁡x−2=85\ln x - 2 = 8.

  5. Solve ln⁡(x2)=4\ln\left(x^{2}\right) = 4. Find every solution.

Common questions

What is the natural log of e?

It is 1, because e1=ee^{1} = e. More generally, ln⁡(ek)=k\ln\left(e^{k}\right) = k for any real number kk.

What is ln 0?

It is undefined, because no power of ee equals 0. As xx gets closer to 0 from the right, ln⁡x\ln x drops without bound toward negative infinity.

Is ln the same as log?

Not always. On most calculators and in many algebra classes, log means base 10 and ln means base ee. In calculus, computer science and many college texts, log can mean the natural log, so check the course convention.

Can the natural log be negative?

Yes. ln⁡x\ln x is negative whenever 0<x<10 < x < 1, for example ln⁡0.5≈−0.693\ln 0.5 \approx -0.693. It is zero at x=1x = 1 and positive for x>1x > 1.

What is the derivative of ln x?

The derivative is 1x\frac{1}{x} for x>0x > 0. The antiderivative runs the other way: ∫1x dx=ln⁡∣x∣+C\int \frac{1}{x}\,dx = \ln|x| + C.

How do you type ln on a calculator?

Press the LN key, then enter the number and close the bracket if your calculator needs one. To undo it, press the exe^{x} key (usually the second function of LN).

Up next