BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Exponentials and logarithms: the number e and its derivatives

The derivative of aˣ is aˣ times a mystery number M(a), the slope of aˣ at 0. Choosing the base e so that M(e) = 1 makes eˣ its own derivative; its inverse, the natural logarithm, has derivative 1/x. Writing aˣ = e^(x ln a) shows M(a) = ln a. Logarithmic differentiation, (ln u)′ = u′/u, handles moving exponents such as xˣ, and gives e = lim (1 + 1/n)ⁿ.

You need this first

Full reading path (5 pages)
  1. The derivative: slope of the tangent line and rate of change (18.01)
  2. Limits and continuity (18.01)
  3. Derivatives of sine and cosine, and the product and quotient rules (18.01)
  4. The chain rule and higher derivatives (18.01)
  5. Implicit differentiation and the derivatives of inverse functions (18.01)
On this page · 8 sections
  1. Exponentials
  2. The derivative of aˣ, up to one number
  3. Begging the question: the number e
  4. The natural logarithm
  5. Any base: M(a) = ln a
  6. Moving exponents: xˣ
  7. Closing the loop: e as a limit
  8. Summary

Lecture 6 brings in the last standard functions, the exponentials and logarithms, as fundamental as the trigonometric ones. The derivation follows the same plan as for sine and cosine: find the slope at one point, and let a law of algebra carry it everywhere. The new twist is that the slope at that one point is at first unknown, and the lecture deliberately "begs the question" to get round it.

Exponentials#

Start with a positive number aa, the base. The exponential function obeys these rules (the lecture deduces the last one from the first three):

Rules of exponents
a0=1,a1=a,ax1+x2=ax1 ax2,(ax1)x2=ax1x2a^0 = 1, \quad a^1 = a, \quad a^{x_1 + x_2} = a^{x_1}\,a^{x_2}, \quad \bigl(a^{x_1}\bigr)^{x_2} = a^{x_1 x_2}
In words

a to the power 0 equals 1, a to the power 1 equals a, a to the power x one plus x two, end of power, equals a to the power x one a to the power x two, (a to the power x one ) to the power x two equals a to the power x one x two

A rational power am/na^{m/n} is the nn-th root of ama^m; every other power, such as a2a^{\sqrt2} or aπa^\pi, is "filled in" by continuity, which is what a calculator does with a long decimal. The graph of 2x2^x passes through (−1,12)(-1, \tfrac12), (0,1)(0, 1) and (1,2)(1, 2), and rises very fast to the right.

The derivative of aˣ, up to one number#

Put the rule ax+Δx=axaΔxa^{x + \Delta x} = a^x a^{\Delta x} into the difference quotient. The factor axa^x does not change as Δx→0\Delta x \to 0 (here xx is fixed and Δx\Delta x moves), so it comes out of the limit:

Derivative of an exponential
ddxax=lim⁡Δx→0ax+Δx−axΔx=axlim⁡Δx→0aΔx−1Δx\frac{d}{dx}a^x = \lim_{\Delta x\to 0}\frac{a^{x+\Delta x} - a^x}{\Delta x} = a^x \lim_{\Delta x\to 0}\frac{a^{\Delta x} - 1}{\Delta x}
In words

d over d x a to the power x equals the limit as capital delta x goes to 0 of the quantity a to the power x plus capital delta x, end of power, minus a to the power x, all over the quantity capital delta x, equals a to the power x the limit as capital delta x goes to 0 of the quantity a to the power capital delta x minus 1, all over the quantity capital delta x

Call the remaining limit the mystery number M(a)M(a):

The mystery number
M(a)=lim⁡Δx→0aΔx−1Δx,ddxax=M(a) axM(a) = \lim_{\Delta x\to 0}\frac{a^{\Delta x} - 1}{\Delta x}, \qquad \frac{d}{dx}a^x = M(a)\,a^x
In words

capital M (a) equals the limit as capital delta x goes to 0 of the quantity a to the power capital delta x minus 1, all over the quantity capital delta x, d over d x a to the power x equals capital M (a) a to the power x

Setting x=0x = 0 shows what it means: M(a)M(a) is the slope of the graph of axa^x at x=0x = 0. Know that one slope, and the slope everywhere follows. But unlike sine, where radians gave the slope 1 at 0, there is no obvious way yet to find M(2)M(2).

Begging the question: the number e#

Instead of computing M(a)M(a), define a base ee by the property we want:

Definition of e
M(e)=1⟹ddxex=exM(e) = 1 \qquad\Longrightarrow\qquad \frac{d}{dx}e^x = e^x
In words

capital M (e) equals 1 which gives d over d x e to the power x equals e to the power x

exe^x is its own derivative, with slope 1 at x=0x = 0. Why should such a base exist? Stretch the graph of f(x)=2xf(x) = 2^x horizontally: f(kx)=2kx=(2k)x=bxf(kx) = 2^{kx} = (2^k)^x = b^x with b=2kb = 2^k. By the chain rule its slope at 0 is k M(2)k\,M(2), so choosing k=1/M(2)k = 1/M(2) gives slope exactly 1, and that base bb is ee (pp. 4–5). The notes add a geometric check that ee lies between 2 and 4 (notes, p. 2): the graph of 2x2^x curves up, so its slope at 0 is less than that of the secant from (0,1)(0, 1) to (1,2)(1, 2), which is 1; and the slope of 4x4^x at 0 is more than that of the secant from (−12,12)(-\tfrac12, \tfrac12) to (0,1)(0, 1), also 1. [The notes print that second point as (1,0)(1, 0); it is (0,1)(0, 1).]

Stretching 2x2^x: the curve 2kx2^{kx} is the exponential with base 2k2^k, computed from its formula, with its tangent at x=cx = c (slider). At c=0c = 0 the tangent's slope is kln⁡2k\ln 2. At k≈1.443=1/ln⁡2k \approx 1.443 = 1/\ln 2 that slope is exactly 1 and the curve coincides with the dashed exe^x: the base 21.4432^{1.443} is ee.

The natural logarithm#

The natural logarithm ln⁡x\ln x is the inverse of exe^x: if y=exy = e^x, then ln⁡y=x\ln y = x. It inherits the laws of exponents:

Properties of the logarithm
ln⁡(x1x2)=ln⁡x1+ln⁡x2,ln⁡1=0,ln⁡e=1\ln(x_1 x_2) = \ln x_1 + \ln x_2, \qquad \ln 1 = 0, \qquad \ln e = 1
In words

log ( x one x two ) equals log x one plus log x two, log 1 equals 0, log e equals 1

Its graph is that of exe^x reflected in the line y=xy = x; it passes through (1,0)(1, 0) with slope 1, and is defined only for x>0x > 0, because exe^x is always positive. Its derivative comes from implicit differentiation, as for every inverse function in Lecture 5. Write w=ln⁡xw = \ln x as ew=xe^w = x and differentiate:

Derivative of ln x
ew dwdx=1⟹dwdx=1ew=1x,ddxln⁡x=1xe^w\,\frac{dw}{dx} = 1 \quad\Longrightarrow\quad \frac{dw}{dx} = \frac{1}{e^w} = \frac{1}{x}, \qquad \frac{d}{dx}\ln x = \frac1x
In words

e to the power w d w over d x equals 1 which gives d w over d x equals 1 over e to the power w equals 1 over x, d over d x log x equals 1 over x

Source: 18.01 Lecture 6 transcript, pp. 6–7

Any base: M(a) = ln a#

Now the mystery number can be found. Method 1 converts to base ee: since a=eln⁡aa = e^{\ln a}, ax=exln⁡aa^x = e^{x\ln a}. Here ln⁡a\ln a is just a constant, like the 3 in e3xe^{3x}, so the chain rule gives

Derivative of aˣ
ddxax=ddxexln⁡a=(ln⁡a) exln⁡a=(ln⁡a) ax\frac{d}{dx}a^x = \frac{d}{dx}e^{x\ln a} = (\ln a)\,e^{x\ln a} = (\ln a)\,a^x
In words

d over d x a to the power x equals d over d x e to the power x log a equals ( log a) e to the power x log a equals ( log a) a to the power x

The mystery number was the natural logarithm all along: M(a)=ln⁡aM(a) = \ln a. So even someone who insists on base 2 or base 10 meets natural logarithms, ddx2x=(ln⁡2) 2x\frac{d}{dx}2^x = (\ln 2)\,2^x and ddx10x=(ln⁡10) 10x\frac{d}{dx}10^x = (\ln 10)\,10^x (p. 8). That is one sense in which they are "natural": they do not depend on our choice of base.

Method 2, logarithmic differentiation, differentiates the logarithm of a function instead of the function. By the chain rule and dduln⁡u=1u\dfrac{d}{du}\ln u = \dfrac1u:

Logarithmic derivative
ddxln⁡u=1u dudx,(ln⁡u)′=u′u\frac{d}{dx}\ln u = \frac{1}{u}\,\frac{du}{dx}, \qquad (\ln u)' = \frac{u'}{u}
In words

d over d x log u equals 1 over u, times d u over d x, ( log u) prime equals u prime over u

For u=axu = a^x, ln⁡u=xln⁡a\ln u = x\ln a has derivative ln⁡a\ln a, so u′=uln⁡au' = u\ln a: the same answer, without converting to base ee (pp. 8–9).

Moving exponents: xˣ#

Logarithmic differentiation shines when both the base and the exponent move. For v=xxv = x^x, ln⁡v=xln⁡x\ln v = x\ln x; the product rule gives its derivative, and multiplying back by vv:

Derivative of xˣ
ln⁡v=xln⁡x,v′v=ln⁡x+x⋅1x=1+ln⁡x,ddxxx=xx(1+ln⁡x)\ln v = x\ln x, \qquad \frac{v'}{v} = \ln x + x\cdot\frac1x = 1 + \ln x, \qquad \frac{d}{dx}x^x = x^x(1 + \ln x)
In words

log v equals x log x, v prime over v equals log x plus x times 1 over x equals 1 plus log x, d over d x x to the power x equals x to the power x the quantity 1 plus log x

Worked example

Three derivatives with the new rules

Find (a) the slope of 3x3^x at x=2x = 2; (b) the slope of xxx^x at x=2x = 2; (c) the derivative of ln⁡(x2+1)\ln(x^2 + 1) at x=1x = 1.

(a) Any base

(ln⁡3) 32≈1.0986×9≈9.89(\ln 3)\,3^2 \approx 1.0986 \times 9 \approx 9.89.

(b) Moving exponent

22(1+ln⁡2)≈4×1.693≈6.772^2(1 + \ln 2) \approx 4 \times 1.693 \approx 6.77.

(c) Logarithmic derivative

(ln⁡u)′=u′/u(\ln u)' = u'/u with u=x2+1u = x^2 + 1: 2xx2+1=22=1\dfrac{2x}{x^2 + 1} = \dfrac{2}{2} = 1 at x=1x = 1.

Closing the loop: e as a limit#

We still have not said what ee is numerically. Take the limit lim⁡n→∞(1+1/n)n\lim_{n\to\infty}(1 + 1/n)^n, which has a moving exponent, and work with its logarithm. With Δx=1/n\Delta x = 1/n and ln⁡1=0\ln 1 = 0 subtracted in:

The logarithm of (1 + 1/n)ⁿ
ln⁡(1+1n)n=nln⁡(1+1n)=ln⁡(1+Δx)−ln⁡1Δx  →  ddxln⁡x∣x=1=1\ln\Bigl(1 + \frac1n\Bigr)^n = n\ln\Bigl(1 + \frac1n\Bigr) = \frac{\ln(1 + \Delta x) - \ln 1}{\Delta x} \;\to\; \left.\frac{d}{dx}\ln x\right|_{x=1} = 1
In words

log of the quantity 1 plus 1 over n, to the power n equals n log of the quantity 1 plus 1 over n, equals the quantity log of the quantity 1 plus capital delta x, minus log 1, all over the quantity capital delta x, goes to d over d x log x evaluated at x equals 1 equals 1

The logarithm tends to 1, so the quantity itself tends to e1e^1:

e as a limit
lim⁡n→∞(1+1n)n=e\lim_{n\to\infty}\Bigl(1 + \frac1n\Bigr)^n = e
In words

the limit as n goes to infinity of the quantity 1 plus 1 over n, all to the power n equals e

Source: 18.01 Lecture 6 transcript, pp. 10–11

This gives an honest way to compute ee: n=100n = 100 gives 1.01100≈2.7051.01^{100} \approx 2.705, n=1000n = 1000 gives about 2.7172.717, closing in on e≈2.71828e \approx 2.71828. The notes end with a remark on why logarithms matter in every science: a change f′f' means little without the size ff it changes, and the relative rate f′/ff'/f is exactly (ln⁡f)′(\ln f)' (notes, p. 7).

Summary#

  • ddxax=M(a) ax\dfrac{d}{dx}a^x = M(a)\,a^x, where M(a)=lim⁡ (aΔx−1)/ΔxM(a) = \lim\,(a^{\Delta x} - 1)/\Delta x is the slope of axa^x at 0.
  • ee is defined by M(e)=1M(e) = 1, so ddxex=ex\dfrac{d}{dx}e^x = e^x; stretching 2x2^x shows such a base exists, between 2 and 4.
  • ln⁡x\ln x is the inverse of exe^x: ln⁡(x1x2)=ln⁡x1+ln⁡x2\ln(x_1x_2) = \ln x_1 + \ln x_2, ln⁡1=0\ln 1 = 0, ln⁡e=1\ln e = 1, and ddxln⁡x=1x\dfrac{d}{dx}\ln x = \dfrac1x.
  • ax=exln⁡aa^x = e^{x\ln a} gives ddxax=(ln⁡a) ax\dfrac{d}{dx}a^x = (\ln a)\,a^x: M(a)=ln⁡aM(a) = \ln a.
  • Logarithmic differentiation: (ln⁡u)′=u′/u(\ln u)' = u'/u; for example (xx)′=xx(1+ln⁡x)(x^x)' = x^x(1 + \ln x).
  • e=lim⁡n→∞(1+1/n)n≈2.718e = \lim_{n\to\infty}(1 + 1/n)^n \approx 2.718.

Symbols on this page

Show the 35 symbols used here
Δ\Delta capital delta.
A change or difference in a quantity, e.g. Δx = x₂ − x₁. Say it: “capital delta”.
π\pi pi.
The ratio of a circle's circumference to its diameter, π ≈ 3.14159. Say it: “pi”.
∞\infty infinity.
Infinity: larger than any number. Say it: “infinity”.
≈\approx approximately equal.
Is approximately equal to. Say it: “is approximately”.
∝\propto proportional to.
Is proportional to: doubling one doubles the other. Say it: “is proportional to”.
→\to arrow.
Goes to (tends to), or becomes. Say it: “goes to”.
⇒\Rightarrow implies.
Implies: what follows is a consequence of what came before. Say it: “which gives”.
×\times times.
Times (multiplication). Between two vectors: the cross product. Say it: “times”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
lim⁡\lim limit.
Limit: the value approached as the variable written below approaches its target. Say it: “the limit”.
ln⁡\ln natural logarithm.
Natural logarithm (base e ≈ 2.718). Say it: “log”.
aa a.
The base of the exponential aˣ, a positive number; in the cosmology note, the scale factor. Say it: “a”.
HH H.
In the cosmology note, the Hubble expansion rate, constant during exponential expansion. Unit: 1/s. Say it: “H”.
cc c.
The point (set with the slider) where the tangent line touches the graph. Say it: “c”.
kk k.
The stretching factor in f(kx) = 2^(kx); with k = 1/M(2) the base 2ᵏ is e. Say it: “k”.
xx x.
The variable: the exponent in aˣ and eˣ, the argument of ln x. Say it: “x”.
yy y.
A value of the exponential, y = eˣ, whose logarithm is x. Say it: “y”.
tt t.
In the cosmology note, cosmic time. Unit: s. Say it: “t”.
dd d.
The d of a derivative, as in d/dx aˣ and dw/dx. Say it: “d”.
nn n.
A whole number: the root in a^(m/n), and the number that grows without limit in (1 + 1/n)ⁿ. Say it: “n”.
ee e.
Euler's number, e ≈ 2.718: the base whose exponential has slope 1 at 0, so that eˣ is its own derivative. Say it: “e”.
mm m.
The integer power in a^(m/n), the n-th root of aᵐ. Say it: “m”.
ff f.
A function: f(x) = 2ˣ in the stretching argument; any positive function in the relative rate f′/f. Say it: “f”.
vv v.
The function v = xˣ, differentiated by logarithms. Say it: “v”.
bb b.
The base of the stretched exponential, b = 2ᵏ. Say it: “b”.
MM M.
The mystery number M(a): the slope of aˣ at x = 0, which turns out to be ln a. Say it: “capital M”.
f′f' f prime.
The derivative of f; f′/f is the relative rate of change. Say it: “f prime”.
uu u.
A positive function of x in the logarithmic derivative (ln u)′ = u′/u; in the examples u = aˣ and u = x² + 1. Say it: “u”.
ww w.
The natural logarithm w = ln x, written as eʷ = x for implicit differentiation. Say it: “w”.
x1x_{1} x 1.
A first exponent (or a first positive number for the logarithm) in the laws of exponents and logarithms. Say it: “x one”.
x2x_{2} x 2.
A second exponent (or a second positive number) in the laws of exponents and logarithms. Say it: “x two”.
a˙\dot{a} a dot.
The rate of change of a with time, ȧ = da/dt: how fast the scale factor grows. Say it: “a dot”.
u′u' u prime.
The derivative of u, du/dx. Say it: “u prime”.
v′v' v prime.
The derivative of v = xˣ. Say it: “v prime”.
w′w' w prime.
The derivative of w = ln x with respect to x, dw/dx. Say it: “w prime”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 28 words used here

New here

logarithmic differentiation.
Finding a derivative by first taking the natural logarithm of the function, which turns products and powers into sums.
logarithmic derivative.
The derivative of ln f, equal to f′/f: the rate of change of a quantity as a fraction of its size.

Also used

logarithm.
The power to which a fixed base must be raised to give a number: log₁₀ 1000 = 3 because 10³ = 1000. Explained in Exponentials and logarithms.
continuous.
Without breaks, gaps or jumps: a continuous graph can be drawn without lifting the pen; a continuous quantity can take every value in a range. Explained in The rocket equation.
graph.
The picture of a function: the curve y = f(x) for one variable, or the surface z = f(x, y) for two. Explained in Graphs, straight lines and slope.
difference quotient.
The change in a function divided by the change in its input, the slope of a secant line: [f(x + Δx) − f(x)]/Δx. Explained in The derivative: slope of the tangent line and rate of change.
limit.
The value a quantity gets closer and closer to, as near as we like, as its input approaches some value, without having to reach it. Explained in Rates of change and area under a graph.
radian.
The natural unit of angle: the angle whose arc on a circle is as long as the radius. A full turn is 2π radians. Explained in Angles, radians and trigonometry.
derivative.
The rate at which a function changes as its input changes: the slope of its graph at a point. Explained in Position and velocity in one dimension.
chain rule.
The rule for the derivative of a function of a function: multiply the derivative of the outer one by that of the inner one. Explained in Circular motion: polar coordinates, position and velocity.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
secant.
A straight line through two points of a curve; its slope is the average rate of change between them. Explained in Rates of change and area under a graph.
natural logarithm.
The logarithm to base e, about 2.718, written ln x: the power to which e must be raised to give x. Explained in Exponentials and logarithms.
inverse.
The thing that undoes another: a matrix times its inverse gives the identity matrix, as a function followed by its inverse gives back the start. Explained in Planes through three points, and matrices.
implicit differentiation.
Finding dy/dx from an equation that links x and y, by differentiating both sides and solving for dy/dx, without first solving for y. Explained in Implicit differentiation and the derivatives of inverse functions.
inverse function.
The function that undoes another: if f turns x into y, its inverse turns y back into x. Explained in Implicit differentiation and the derivatives of inverse functions.
differentiation.
Finding a derivative: working out how fast a function changes. Explained in The derivative: slope of the tangent line and rate of change.
product rule.
The rule for the derivative of a product of two functions: (fg)′ = f′g + fg′. Explained in Circular motion: tangential acceleration and angular acceleration.
vacuum energy.
Energy that empty space itself carries, the same everywhere and unchanged as the universe expands. Explained in Dark energy and the accelerating universe.
false vacuum.
A state of a field stuck at a raised energy for a long time, like a ball in a high valley, before it decays. Explained in The false vacuum and the mechanism of inflation.
inflation.
A proposed burst of enormously fast expansion in the first tiny fraction of a second, which made the universe smooth and flat. Explained in Inflation.
dark energy.
The unknown cause of the speeding up of the universe's expansion, acting like an energy of empty space that does not thin out. Explained in Dark energy and the accelerating universe.
scale factor.
The number a(t) that tells how much distances in the universe have stretched: when it doubles, every distance between galaxies doubles. Explained in Towards the universe: an expanding gas cools.
e-fold.
A growth by a factor of e, about 2.718; the number of e-folds in a growth is the natural logarithm of the total factor. Explained in The logarithm from an integral, and areas between curves.

Academic

derive.
To obtain a result by reasoning or calculation from other known results.
deduce.
To reach a conclusion by reasoning from what is already known.
numerically.
In terms of actual numbers rather than symbols; often worked out step by step, by computer, instead of from an exact formula.
dominate.
To be the largest contribution, so that the others hardly matter.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).

Where this leads

In cosmology

34 more cosmology pages that build on this

Pages that build on this

Practise

Check your understanding

  1. What is ddxe5x\dfrac{d}{dx}e^{5x}?
  2. What is ddxln⁡x\dfrac{d}{dx}\ln x?
  3. The mystery number M(a)M(a), the slope of axa^x at x=0x = 0, turns out to be…
  4. What is the derivative of xxx^x?
  5. What is lim⁡n→∞(1+1/n)n\lim_{n\to\infty}(1 + 1/n)^n?
0 of 5 answered

Flashcards

1 / 4