The average of a function over an interval is its integral divided by the length of the interval: the continuous version of adding n numbers and dividing by n. An average depends on the variable you average over, and a weighted average divides by the total weight. Probability is a weighted average too: the part divided by the whole. The Gaussian integral, worth √π, is found by computing one volume in two ways.
Despite its title on OCW, this lecture has no work in the physicist's sense. It puts off boiling the witches' cauldron for a moment to take up one of the most important uses of integrals: averages (transcript, p. 1). The cauldron then returns as an example of a weighted average, and averages lead straight to probability.
Sample f at equally spaced points x1,…,xn in [a,b], with spacing Δx=(b−a)/n, and average the values yi=f(xi) (transcript, p. 1; notes, p. 1). The Riemann sum(y1+⋯+yn)Δx tends to the integral; dividing both by b−a, and noting Δx/(b−a)=1/n:
Continuous average
n→∞limny1+⋯+yn=b−a1∫abf(x)dx
In words
the limit as n goes to infinity of the quantity y one plus and so on plus y sub n, all over n equals 1 over the quantity b minus a, times the integral from a to b of f(x) d x
The average and the integral differ only by the division by the length of the interval (p. 1). That factor is exactly what makes the average of a constant equal to the constant: b−a1∫abcdx=c (p. 2; notes, p. 2).
Average height of a point on the upper unit semicircle, y=1−x2, with respect tox (transcript, p. 2; notes, p. 2): the integral is the area of the half-disk, π/2, so
Average height, with respect to x
21∫−111−x2dx=21⋅2π=4π
In words
one half the integral from minus 1 to 1 of the square root of 1 minus x squared, end of root, d x equals one half times pi over 2 equals pi over 4
A different answer, and smaller, since π2>8. Near the ends of the semicircle a short step in x is a long step along the arc, so averaging over θ gives more weight to the low parts (pp. 3–5). "The average" means nothing until you say what you average over: picking x at random or picking a point on the arc at random are different experiments (p. 4).
Divide by the total weight, so that again the average of a constant c is c (p. 5). The discrete version: shares bought at 10, 20 and 30 dollars in different amounts; the average price is the total spent divided by the total number of shares (p. 6). Unlike a constant, a general f cannot be pulled out, so a weighted average needs two integrals (p. 6).
The cauldron. Heat the 1 m cauldron y=x2 to a final temperature T=100−30y °C (transcript, pp. 6–9; notes, p. 3). T is constant on horizontal layers, so slice into disks of volume πx2dy=πydy. The total heat, in degrees × cubic metres, is ∫01(100−30y)πydy=40π, about 500 candy bars' worth, as in Lecture 22 (pp. 7–8). The average final temperature is a weighted average with weightπy, the volume at each height (pp. 8–9):
Average temperature of the cauldron
Tˉ=∫01πydy∫01Tπydy=π/240π=80∘C
In words
T bar equals the integral from 0 to 1 of T pi y d y over the quantity the integral from 0 to 1 of pi y d y, equals 40 pi over the quantity pi over 2, equals 80 degrees coulombs
That is lower than the plain average of the hottest and coolest water, (100+70)/2=85 °C, because the cauldron is widest at the top, where the water is cooler (p. 9; notes, pp. 3–4).
Worked example
A weighted average price
You buy 100 shares at 12 dollars each, then 50 at 18 dollars and 50 at 30 dollars. What did you pay per share on average? Compare with the average of the three prices.
Probability is a special weighted average, where the "function" is 1 on the part you care about and 0 elsewhere (transcript, pp. 9–11). Pick a point at random, uniformly by area, under y=1−x2 for −1≤x≤1. The probability that x>21 is the part divided by the whole (p. 10):
P (x greater than one half ) equals the integral from one half to 1 of the quantity 1 minus x squared, d x over the quantity the integral from minus 1 to 1 of the quantity 1 minus x squared, d x, equals the quantity 5 over 24, all over the quantity four thirds, equals 5 over 32
(The lecture quotes 185, then doubts it, since the answer should be less than 41; it is 325≈0.16, pp. 10–11.) In general, for a point chosen with weightw on [a,b] (p. 11):
Probability with a weight
P(x1<x<x2)=∫abw(x)dx∫x1x2w(x)dx
In words
P( x one less than x less than x two ) equals the integral from x one to x two of w(x) d x over the quantity the integral from a to b of w(x) d x
The lecture ends by announcing a darts problem; the notes work it out (notes, pp. 4–10). Darts land at distance r from the centre with weightce−r2 per unit area, so a thin ring of radius r and width dr has weightce−r22πrdr, the shells of the last lecture. Someone standing in a sixth of the ring 2r1<r<3r1, for a player who hits the board (r<r1) half the time, gets hit by about 1% of the darts (notes, pp. 5–6).
The notes then compute one of the most important integrals of all (notes, pp. 7–10). Let Q=∫−∞∞e−x2dx. The volume under the surface e−r2, with r2=x2+y2, is ∫0∞e−r22πrdr=π by shells. By slices at fixed y, each cross-section has area e−y2Q, so the volume is Q2. Hence
The Gaussian integral
∫−∞∞e−x2dx=π
In words
the integral from minus infinity to infinity of e to the power minus x squared d x equals the square root of pi
Height: on the semicircle, y = √(1 − x²); in the cauldron, height above the bottom (in metres). In the Gaussian volume, the second horizontal coordinate (r² = x² + y²). Say it: “y”.
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.
An average in which some values count more: each is multiplied by its weight, and the total divided by the sum of the weights. Explained in Centre of mass and its motion.
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.
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.
The bell-shaped probability curve, highest at the average and falling off equally on both sides; it describes many sums of random effects. Explained in Differential equations and separation of variables.
How much of something (mass, charge, energy, particles or probability) there is in each unit of volume, area, length or other variable. Explained in Density and pressure.
A departure of a quantity from its average value, usually small and random, from moment to moment or from place to place. Explained in Zero-point energy, fluctuations and surprises.
A simple method for predicting how many dark matter halos of each mass exist, from the statistics of the smoothed early density ripples. Explained in How many halos? The Press–Schechter mass function.
Close to, but not exactly, the true value; an approximation is such a value or formula, chosen because it is simpler.
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).