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

The logarithm from an integral, and areas between curves

Define L(x) = ∫₁ˣ dt/t. From L′ = 1/x and L(1) = 0 alone come the whole graph of the natural logarithm, the number e (where L = 1), and the rule L(ab) = L(a) + L(b), proved by a change of variables. The same approach sketches the area function of e^(−t²), which levels off at √π/2. Then integrals as answers to geometric questions: the area between two curves, sliced vertically or, often more easily, horizontally.

You need this first

Full reading path (16 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)
  6. Exponentials and logarithms: the number e and its derivatives (18.01)
  7. Linear and quadratic approximations (18.01)
  8. Curve sketching with the first and second derivative (18.01)
  9. Sketching strategy and maximum–minimum problems (18.01)
  10. More max–min, and related rates (18.01)
  11. A ring on a string, and Newton's method (18.01)
  12. The mean value theorem and inequalities (18.01)
  13. Differentials and antiderivatives (18.01)
  14. Definite integrals and Riemann sums (18.01)
  15. The first fundamental theorem of calculus (18.01)
  16. The second fundamental theorem of calculus (18.01)
On this page · 6 sections
  1. The logarithm, from its integral
  2. Products become sums
  3. Sketching a new function
  4. Areas between curves
  5. Example: a parabola and a line
  6. Summary

The lecture opens with a correction to the last one: in the discrete average, the Riemann sum must be divided by nn, the number of terms (transcript, p. 1). Then it finishes the second fundamental theorem by using integrals to build functions, before turning to integrals as the answers to geometric questions.

The logarithm, from its integral#

The differential equation y′=1/xy' = 1/x is solved by an integral (transcript, p. 1); the notes introduce it as the missing antiderivative of 1/x1/x (notes, p. 1):

The logarithm as an integral
L(x)=∫1xdtt(x>0)L(x) = \int_1^x \frac{dt}{t} \quad (x > 0)
In words

L(x) equals the integral from 1 to x of d t over t (x greater than 0)

Take this as the definition of the logarithm and derive everything from it. That is easier than the earlier route through axa^x and the number ee (notes, p. 1). It is defined only for x>0x > 0, since 1/t1/t blows up at t=0t = 0. Two facts come straight from the definition (transcript, pp. 1–2; notes, p. 1):

Derivative and starting value
L′(x)=1x,L(1)=∫11dtt=0L'(x) = \frac{1}{x}, \qquad L(1) = \int_1^1 \frac{dt}{t} = 0
In words

L prime (x) equals 1 over x, L(1) equals the integral from 1 to 1 of d t over t equals 0

Source: 18.01 Lecture 21 transcript, pp. 1–2

Together they fix LL completely. Differentiate once more: L′′(x)=−1/x2<0L''(x) = -1/x^2 < 0, so LL is concave down; and L′>0L' > 0, so it is increasing. At x=1x = 1 it passes through 0 with slope 1 (p. 2). Since it increases, it crosses the level y=1y = 1 exactly once, and that point defines ee: L(e)=1L(e) = 1 (p. 2).

Why is L(x)<0L(x) < 0 for 0<x<10 < x < 1? Two reasons (p. 3): LL is increasing and L(1)=0L(1) = 0, so it is negative before 1. Or reverse the limits: L(x)=−∫x1dttL(x) = -\int_x^1 \frac{dt}{t}, and for x<1x < 1 that integral is an ordinary positive area. At the ends, L→−∞L \to -\infty as x→0+x \to 0^+ and L→∞L \to \infty as x→∞x \to \infty (p. 3; the notes prove both from the rule L(ab)=L(a)+L(b)L(ab) = L(a) + L(b) below, notes, p. 2).

The function L(x)=∫1xdt/tL(x) = \int_1^x dt/t, which is ln⁡x\ln x, computed from the formula: increasing, concave down, through (1,0)(1, 0) with slope 1. It reaches the level y=1y = 1 at x=e≈2.718x = e \approx 2.718.

Products become sums#

The key property of a logarithm also follows from the definition (transcript, pp. 3–4; notes, pp. 1–2). Split the integral at aa:

Splitting the integral
L(ab)=∫1abdtt=∫1adtt+∫aabdtt=L(a)+∫aabdttL(ab) = \int_1^{ab}\frac{dt}{t} = \int_1^{a}\frac{dt}{t} + \int_a^{ab}\frac{dt}{t} = L(a) + \int_a^{ab}\frac{dt}{t}
In words

L(a b) equals the integral from 1 to a b of d t over t equals the integral from 1 to a of d t over t plus the integral from a to a b of d t over t equals L(a) plus the integral from a to a b of d t over t

In the last integral substitute t=aut = au, dt=a dudt = a\,du. The limits change too: t=at = a becomes u=1u = 1, and t=abt = ab becomes u=bu = b (p. 4):

Change of variables
∫aabdtt=∫1ba duau=∫1bduu=L(b)  ⇒  L(ab)=L(a)+L(b)\int_a^{ab}\frac{dt}{t} = \int_1^{b}\frac{a\,du}{au} = \int_1^b \frac{du}{u} = L(b) \;\Rightarrow\; L(ab) = L(a) + L(b)
In words

the integral from a to a b of d t over t equals the integral from 1 to b of a d u over the quantity a u, equals the integral from 1 to b of d u over u equals L(b) which gives L(a b) equals L(a) plus L(b)

The name of the dummy variable, tt or uu, does not matter (p. 4). The notes go on to L(2n)=nL(2)L(2^n) = nL(2), which shows L→∞L \to \infty, and L(1/x)=−L(x)L(1/x) = -L(x), which gives the left end (notes, p. 2; the lecture sets this one as homework, transcript, p. 3). From LL one can then define ee, exe^x as the inverse of LL, and ax=exL(a)a^x = e^{xL(a)} (notes, p. 2).

Worked example

Logarithms without a calculator

Given ln⁡2≈0.693\ln 2 \approx 0.693, find ln⁡8\ln 8 and ln⁡12\ln \tfrac12.

Products

ln⁡8=ln⁡(2⋅2⋅2)=3ln⁡2≈2.079\ln 8 = \ln(2\cdot2\cdot2) = 3\ln 2 \approx 2.079.

Reciprocals

0=L(1)=L(2⋅12)=L(2)+L(12)0 = L(1) = L(2\cdot\tfrac12) = L(2) + L(\tfrac12), so ln⁡12=−ln⁡2≈−0.693\ln\tfrac12 = -\ln 2 \approx -0.693.

Sketching a new function#

The same method works for a function that is genuinely new, F(x)=∫0xe−t2 dtF(x) = \int_0^x e^{-t^2}\,dt (transcript, pp. 4–6). From FTC 2, F′(x)=e−x2>0F'(x) = e^{-x^2} > 0, so FF increases; F(0)=0F(0) = 0 and F′(0)=1F'(0) = 1. The second derivative, F′′(x)=−2x e−x2F''(x) = -2x\,e^{-x^2}, makes FF concave down for x>0x > 0 and concave up for x<0x < 0, with an inflection point at 0 (pp. 4–5). FF is odd, F(−x)=−F(x)F(-x) = -F(x): it is the integral of an even function starting at 0, and area to the left of 0 counts negatively (p. 5). And it levels off at an asymptote (p. 6):

The limit of the area under the bell curve
lim⁡x→∞∫0xe−t2 dt=π2\lim_{x\to\infty}\int_0^x e^{-t^2}\,dt = \frac{\sqrt\pi}{2}
In words

the limit as x goes to infinity of the integral from 0 to x of e to the power minus t squared d t equals the square root of pi over 2

That value is far from obvious, and the course promises to prove it later (pp. 6–7). Rescaling by 2/π2/\sqrt\pi gives the error function erf⁡(x)\operatorname{erf}(x), which tends to 1 (p. 6). Others of the same kind: the Fresnel integrals, and the logarithmic integral Li⁡(x)\operatorname{Li}(x), which approximates the number of primes below xx; how good that approximation is, is the subject of the Riemann hypothesis (pp. 6–7). The lecturer calls this part cultural: what you need is to handle such functions through their derivatives (p. 7).

Areas between curves#

Now back to integrals as the answer to a question, closer to the first fundamental theorem (transcript, pp. 7–8). For a region between a top curve f(x)f(x) and a bottom curve g(x)g(x), from x=ax = a to x=bx = b, a thin vertical strip has height f(x)−g(x)f(x) - g(x) and width dxdx (p. 8; notes, p. 3):

Area between two curves
A=∫ab(f(x)−g(x)) dxA = \int_a^b \big(f(x) - g(x)\big)\,dx
In words

capital A equals the integral from a to b of the quantity f(x) minus g(x), d x

Every such problem comes down to finding three things: the integrand and the two limits. Leave any one out and the region is not specified (p. 8). And first, draw a picture (p. 9).

Example: a parabola and a line#

Find the area between x=y2x = y^2 and y=x−2y = x - 2 (transcript, pp. 9–12; notes, pp. 3–4). The first is a parabola opening to the right, the second a line of slope 1 through (2,0)(2, 0). They meet where y+2=y2y + 2 = y^2, that is (y−2)(y+1)=0(y - 2)(y + 1) = 0: at (1,−1)(1, -1) and (4,2)(4, 2) (p. 10).

The hard way: vertical slices. The top is always y=xy = \sqrt x, but the bottom changes: the lower half of the parabola, y=−xy = -\sqrt x, for 0≤x≤10 \le x \le 1, then the line for 1≤x≤41 \le x \le 4. So the area needs two integrals (pp. 10–11):

Vertical slices
A=∫01(x−(−x)) dx+∫14(x−(x−2)) dxA = \int_0^1 \big(\sqrt x - (-\sqrt x)\big)\,dx + \int_1^4 \big(\sqrt x - (x - 2)\big)\,dx
In words

capital A equals the integral from 0 to 1 of the quantity the square root of x minus (- the square root of x ), d x plus the integral from 1 to 4 of the quantity the square root of x minus the quantity x minus 2, d x

The easy way: horizontal slices. Slice horizontally instead: a strip of height dydy runs from the parabola x=y2x = y^2 on the left to the line x=y+2x = y + 2 on the right, for −1≤y≤2-1 \le y \le 2 (pp. 11–12):

Horizontal slices
A=∫−12((y+2)−y2) dy=[y22+2y−y33]−12=92A = \int_{-1}^{2}\big((y + 2) - y^2\big)\,dy = \left[\frac{y^2}{2} + 2y - \frac{y^3}{3}\right]_{-1}^{2} = \frac{9}{2}
In words

capital A equals the integral from minus 1 to 2 of the quantity the quantity y plus 2, all minus y squared, d y equals the quantity y squared over 2 plus 2 y minus y cubed over 3, sub minus 1 squared equals nine halves

Always right minus left, so that the integrand is positive; as a check, it vanishes at the crossing points y=−1y = -1 and y=2y = 2 (p. 12). (The transcript says "the right-hand is y2y^2" at this point, meaning the left; the notes write "xleft−xrightx_\text{left} - x_\text{right}" and "subtract the right curve from the left one" while computing right minus left, and put dxdx where dydy is meant, notes, p. 4.)

Worked example

Two areas

(a) Find the area between y=xy = x and y=x2y = x^2. (b) Find the area between x=y2x = y^2 and the line x=4x = 4.

(a) Vertical slices

They cross at x=0x = 0 and x=1x = 1, and x≥x2x \ge x^2 in between: A=∫01(x−x2) dx=12−13=16A = \int_0^1 (x - x^2)\,dx = \tfrac12 - \tfrac13 = \tfrac16.

(b) Horizontal slices

They cross at y=±2y = \pm 2; the line is on the right: A=∫−22(4−y2) dy=16−163=323≈10.7A = \int_{-2}^{2} (4 - y^2)\,dy = 16 - \tfrac{16}{3} = \tfrac{32}{3} \approx 10.7.

The notes add volumes of solids of revolution, such as a ball, which the next lecture takes up (notes, pp. 5–6).

Summary#

  • L(x)=∫1xdt/tL(x) = \int_1^x dt/t: L′=1/xL' = 1/x, L(1)=0L(1) = 0, increasing, concave down, L<0L < 0 for x<1x < 1; L(e)=1L(e) = 1; L(ab)=L(a)+L(b)L(ab) = L(a) + L(b) by the substitution t=aut = au. This is ln⁡x\ln x.
  • New functions such as ∫0xe−t2dt\int_0^x e^{-t^2}dt (odd, tending to π/2\sqrt\pi/2), erf and Li are studied through their derivatives.
  • Area between curves: ∫ab(ytop−ybottom) dx\int_a^b (y_\text{top} - y_\text{bottom})\,dx, or ∫cd(xright−xleft) dy\int_c^d (x_\text{right} - x_\text{left})\,dy. Draw a picture, find the crossing points, and choose the slicing that needs fewer pieces.

Symbols on this page

Show the 40 symbols used here
π\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”.
≤\le less than or equal.
Is less than or equal to. Say it: “is less than or equal to”.
≥\ge greater than or equal.
Is greater than or equal to. Say it: “is greater than or equal 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”.
±\pm plus or minus.
Plus or minus: both signs, or an uncertainty (67.3 ± 1.2). Say it: “plus or minus”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
∫\int integral.
Integral: the sum of infinitely many small pieces, such as the area under a curve. Say it: “the integral of”.
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.
A positive number in L(ab) = L(a) + L(b); also the left end of an interval of integration. In the cosmology note, a is the scale factor of the universe. Say it: “a”.
HH H.
In the cosmology note, the Hubble rate ȧ/a. Say it: “H”.
xx x.
The variable (the horizontal coordinate in the area problems). Say it: “x”.
yy y.
The vertical coordinate; in y′ = 1/x, the unknown function. Say it: “y”.
tt t.
The dummy variable of integration; in the cosmology note, cosmic time. Say it: “t”.
dd d.
As in dt, du, dx and dy: the variable of integration (the width of a strip). Say it: “d”.
nn n.
A whole number (the number of terms in an average; the power in 2ⁿ). Say it: “n”.
ee e.
Euler's number, defined here by L(e) = 1; e ≈ 2.718. Say it: “e”.
ff f.
The top curve, y = f(x). Say it: “f”.
gg g.
The bottom curve, y = g(x). Say it: “g”.
FF F.
The area function F(x) = ∫₀ˣ e^(−t²) dt. Say it: “capital F”.
AA A.
An area between curves. Say it: “capital A”.
bb b.
A positive number in L(ab) = L(a) + L(b); also the right end of an interval of integration. Say it: “b”.
LL L.
The logarithm defined as an integral, L(x) = ∫₁ˣ dt/t (that is, ln x). Say it: “L”.
NN N.
In the cosmology note, the number of e-foldings, ln(a₂/a₁). Say it: “capital N”.
y′y' y prime.
The derivative of y. Say it: “y prime”.
a1a_{1} a one.
In the cosmology note, the scale factor at the start of a stage of expansion. Say it: “a one”.
a2a_{2} a two.
In the cosmology note, the scale factor at the end of that stage. Say it: “a two”.
uu u.
The new variable in the substitution t = au. Say it: “u”.
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”.
F′F' F prime.
The derivative of F, equal to e^(−x²). Say it: “capital F prime”.
L′L' L prime.
The derivative of L, equal to 1/x. Say it: “L prime”.
L′′L'' L double prime.
The second derivative of L, equal to −1/x². Say it: “L double prime”.
F′′F'' F double prime.
The second derivative of F, equal to −2x e^(−x²). Say it: “capital F double prime”.
xleftx_{\text{left}} x left.
The x value of the left boundary of a horizontal strip. Say it: “x left”.
xrightx_{\text{right}} x right.
The x value of the right boundary of a horizontal strip. Say it: “x right”.
ytopy_{\text{top}} y top.
The y value of the top boundary of a vertical strip. Say it: “y top”.
ybottomy_{\text{bottom}} y bottom.
The y value of the bottom boundary of a vertical strip. Say it: “y bottom”.

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

Words on this page

Show the 33 words used here

New here

concave.
Of a graph: bending, either upwards like a cup (concave up) or downwards like a cap (concave down).
integrand.
The function being integrated: the f(x) in ∫ f(x) dx.
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.

Also used

Riemann sum.
An estimate of an integral: cut the interval into strips, multiply each strip's width by a value of the function in it, and add. Explained in Definite integrals and Riemann sums.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
theorem.
A statement that has been proved true, step by step, from definitions and earlier results. Explained in Limits and continuity.
integral.
A sum of very many very small pieces, such as the area under a graph; it undoes taking a derivative. Explained in Rates of change and area under a graph.
differential equation.
An equation that links an unknown function to its derivatives; solving it means finding the function. Explained in Circular motion dynamics: worked problems.
antiderivative.
A function whose derivative is the given function; any two antiderivatives differ only by a constant. Explained in Differentials and antiderivatives.
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.
differentiation.
Finding a derivative: working out how fast a function changes. Explained in The derivative: slope of the tangent line and rate of change.
dummy variable.
The variable inside an integral or sum, which could be renamed without changing the result, like the t in ∫ f(t) dt. Explained in The second fundamental theorem of calculus.
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.
second derivative.
The derivative of a derivative: how fast a rate of change itself is changing. Explained in Acceleration in one dimension.
inflection point.
A point where a graph changes the way it bends, from bending up to bending down or the other way. Explained in Curve sketching with the first and second derivative.
even function.
A function with the same value at x and −x, such as x² or cos x; its graph is mirror-symmetric about the vertical axis.
asymptote.
A straight line that a graph gets closer and closer to, without reaching it, as the graph heads off to infinity.
error function.
The function erf(x): the area under a bell curve from 0 to x, scaled so that it tends to 1; it has no simpler formula. Explained in The second fundamental theorem of calculus.
logarithmic integral.
The function Li(x), the integral of 1/ln t from 2 to x, which estimates how many prime numbers there are below x. Explained in The second fundamental theorem of calculus.
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.
parabola.
The U-shaped curve of y = ax² + bx + c, also the path of a thrown ball when air resistance is ignored. Explained in Quadratics and power laws.
solid of revolution.
A solid made by spinning a flat region about an axis, like a vase shaped on a potter's wheel. Explained in Volumes by disks and shells.
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.
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.
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.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
derive.
To obtain a result by reasoning or calculation from other known results.
blow up.
In maths, to grow without limit; to become infinite.
levels off.
Stops rising or falling and settles at a steady value.
approximation.
Close to, but not exactly, the true value; an approximation is such a value or formula, chosen because it is simpler.
hypothesis.
In mathematics, a condition a theorem assumes; or a statement not yet proved, such as the Riemann hypothesis.
comes down to.
Is, in the end, simply a matter of.
vanish.
To become zero; sometimes, of a fixed point or solution, to stop existing.

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

1 more cosmology pages that build on this

Pages that build on this

Practise

Check your understanding

  1. From the definition L(x)=∫1xdt/tL(x) = \int_1^x dt/t alone, which pair of facts follows directly?
  2. Why is L(x)<0L(x) < 0 for 0<x<10 < x < 1?
  3. Given ln⁡2≈0.693\ln 2 \approx 0.693, what is ln⁡8\ln 8?
  4. The area between y=xy = x and y=x2y = x^2 for 0≤x≤10 \le x \le 1 is…
0 of 4 answered

Flashcards

1 / 3