Adding Up Slices: Counting One Electron
How can an electron that is spread through space be counted by adding up thin slices?
This series is for a chemistry student who may have passed a calculus course without ever feeling what it does. It starts from adding numbers. All you need is algebra, powers, and the idea of the graph of a function.
1. What We Are Counting
A hydrogen atom is one proton and one electron. Quantum mechanics, in the one sentence we need, says that for hydrogen in its lowest energy state the electron has no single distance from the proton; instead, the chance of finding it at a distance between and is very nearly when is small, with
Read the symbols one at a time.
- is the distance from the proton, measured in bohr. One bohr is about 52.9 pm. It is the natural ruler of atoms, the unit of length in what are called atomic units, and using it keeps stray constants out of the formulas.
- is a fixed number, and means . It starts at 1 when and fades quickly as grows.
- (“delta r”) is a small step in distance, one symbol, not a product.
- is called the radial density. Its unit is “electrons per bohr”. It is a rate: multiply it by a length in bohr to get a number of electrons. (A fraction of one electron means a probability.)
Why the shape? A thin spherical shell of radius and thickness has a volume of about area times thickness, . The electron’s density per unit volume at distance is . Multiply the two and the factors of cancel: . Near the proton the shells are tiny; far away the density has faded. In between, has a hump.
| (bohr) | (electrons per bohr) |
|---|---|
| 0 | 0.000000 |
| 0.25 | 0.151633 |
| 0.5 | 0.367879 |
| 1 | 0.541341 |
| 1.5 | 0.448084 |
| 2 | 0.293050 |
| 3 | 0.089235 |
| 4 | 0.021470 |
| 6 | 0.000885 |
| 10 | 0.000001 |
Our question for this page: if we add up the electron over all distances, do we get exactly one electron?
2. One Slice, Then Many
If were constant, say 0.5 electrons per bohr over a stretch 2 bohr long, the stretch would hold electron. On a graph that is the area of a rectangle: height times width.
Our is not constant. But over a short stretch it does not change much. So cut the distance axis into slices, pretend is constant on each slice, and add the rectangles. Let us do it by hand from 0 to 10 bohr with five slices of width , taking each height at the middle of its slice.
| slice (bohr) | midpoint | height | height × 2 |
|---|---|---|---|
| 0 to 2 | 1 | 0.541341 | 1.082682 |
| 2 to 4 | 3 | 0.089235 | 0.178470 |
| 4 to 6 | 5 | 0.004540 | 0.009080 |
| 6 to 8 | 7 | 0.000163 | 0.000326 |
| 8 to 10 | 9 | 0.000005 | 0.000010 |
The five heights add to 0.635284, and twice that is 1.270568 electrons. More than one electron: the pretence of constant height was too crude. We need thinner slices, and a short way to write long sums.
The summation sign. means: let run through and add the numbers . For example .
Cut the interval from to into equal slices of width . Slice number runs from to . Three natural choices of height give three sums:
3. Try It: Slide the Number of Slices
Choose where each height is taken, how many slices to use (the slider stops at 200 slices), and a cutoff , the distance where you stop adding. The sliders work with a mouse, a finger or the arrow keys; while the axis is not stretched, you can also press or drag on the plot to move the cutoff. “Area from 0 to b” is the number the sums settle to as the slices get thinner, which the rest of this page explains.
The sliders need JavaScript. The figure above and the tables below show the same sums.
Things to try: with , go from 5 slices to 10, 20, 40. With , switch between left and right. With 200 slices, pull the cutoff down from 10 and watch how little changes until about 6.
4. Refining the Slices
Here are all three sums from 0 to 10 bohr.
| width | left | midpoint | right | |
|---|---|---|---|---|
| 5 | 2 | 0.630867 | 1.270568 | 0.630868 |
| 10 | 1 | 0.950718 | 1.041576 | 0.950718 |
| 20 | 0.5 | 0.996147 | 1.003342 | 0.996147 |
| 40 | 0.25 | 0.999744 | 1.000222 | 0.999744 |
| 80 | 0.125 | 0.999983 | 1.000014 | 0.999983 |
| 160 | 0.0625 | 0.999999 | 1.000000 | 0.999999 |
All three columns head for a number very close to 1. The midpoint sums come down from above; the left and right sums come up from below.
Left and right agree almost perfectly here, and there is a simple reason. Both add the heights at the interior cut points. The left sum also has the height at the start, the right sum the height at the end, and nothing else differs:
Between 0 and 10 we have and is less than 0.000001, so the two sums nearly coincide. Do not expect that in general.
5. Trapping the Area
Look only at 0 to 1 bohr, where the curve rises all the way (the table in section 1 suggests it, and part 2 proves it). On a rising slice the left height is the smallest height and the right height is the largest. So the left rectangle lies under the curve and the right rectangle covers it:
The gap between the two bounds is, by section 4,
We can make this gap as small as we like by taking large. The area has nowhere to hide.
| (too small) | (too large) | gap | ||
|---|---|---|---|---|
| 5 | 0.269079 | 0.377348 | 0.108268 | 0.323420 |
| 10 | 0.296250 | 0.350384 | 0.054134 | 0.323330 |
| 20 | 0.309790 | 0.336857 | 0.027067 | 0.323324 |
| 100 | 0.320617 | 0.326030 | 0.005413 | 0.323324 |
| 1000 | 0.323053 | 0.323594 | 0.000541 | 0.323324 |
| 10000 | 0.323297 | 0.323351 | 0.000054 | 0.323324 |
With 10 000 slices the area is certainly between 0.323297 and 0.323351. The midpoint column settles much sooner, on 0.323324. A curve that falls all the way works the same, with left and right swapping roles. A curve with a hump can be cut at the top into a rising piece and a falling piece.
6. Limits and the Integral
A limit is the number a process closes in on. Writing means: name any tolerance, however small, and from some onward every is within that tolerance of . For example : to get within 0.001 of zero, take any larger than 1000.
The area under the curve from to is defined as the limit of rectangle sums, and it gets its own symbol:
with , where is any point you like in slice .
Read it as a sentence. The sign is a stretched S for “sum”. is one rectangle, height times a very thin width. The numbers and say where the adding starts and stops. A theorem, used here without proof, says that for a function whose graph has no breaks (a continuous function) this limit exists and is the same wherever in each slice you take the height. Where a function is negative its rectangles count as negative.
Three rules follow directly from the sums, and we will use them in the next two parts.
- Sums split. Rectangles of height are a rectangle of height plus one of height , so .
- Constants come out. Making every height times taller makes the total times larger: .
- Neighbouring intervals add. For , .
The letter inside is a label only: and are the same number.
7. How Good Is a Sum?
The error of a sum is the sum minus the limit. Here are the errors from 0 to 2 bohr, where the limit is 0.761897.
| width | error of | error of | error of | |
|---|---|---|---|---|
| 10 | 0.2 | −0.030388 | 0.028222 | 0.000581 |
| 20 | 0.1 | −0.014903 | 0.014402 | 0.000128 |
| 40 | 0.05 | −0.007388 | 0.007265 | 0.000031 |
| 80 | 0.025 | −0.003678 | 0.003648 | 0.000008 |
| 160 | 0.0125 | −0.001835 | 0.001828 | 0.000002 |
Read down the columns. Each time the width is halved, the left and right errors are roughly halved, but the midpoint error is divided by about four.
Picture one narrow slice, where the curve is nearly a slanted straight line. The left rectangle misses a whole thin triangle between its flat top and the slant. Its area is about (slope × width) × width / 2. There are slices and is proportional to 1/width, so the total error is proportional to the width. The midpoint rectangle crosses the slant in the middle: it has a little triangle too much on one side and an equal one too little on the other. They cancel, and only the bending of the curve is left over. That is why the midpoint rule is so much better for the same work.
You may notice that the sums from 0 to 10 in section 4 improve even faster than this: for the thinner slices in that table, halving the width divides all three errors by roughly sixteen. That is a special gift of this interval. The curve has very nearly the same height, zero, at 0 and at 10, and it is level at 0 and very nearly level at 10. The errors that would come from a difference between the two ends therefore almost cancel.
8. The Tail Beyond a Cutoff
A computer cannot add slices forever. Stopping at throws away the tail, the area to the right of . Here is what is kept.
| cutoff (bohr) | area from 0 to |
|---|---|
| 1 | 0.3233236 |
| 2 | 0.7618967 |
| 3 | 0.9380312 |
| 4 | 0.9862460 |
| 6 | 0.9994777 |
| 8 | 0.9999837 |
| 10 | 0.9999995 |
The numbers crowd up toward 1. But a table cannot show that nothing large hides far out. We can prove how small the tail beyond 10 bohr is, using only the formula. We use one fact proved in part 2: beyond the curve only falls.
- Move out by one bohr and compare: .
- For the bracket is at most , so the ratio is at most .
- The curve falls, so on the one-bohr slice from to it is nowhere higher than , which is at most . (Apply step 2 once for each of the k moves.) The slice is one bohr wide, so its area is at most the same number.
- Call . Then . Subtracting, , so however large is.
- Hence the whole tail is at most , less than one millionth of an electron.
The integral all the way out is written and means . The symbol is not a number; it says that the cutoff is pushed out without end.
With and the midpoint sum is 1.000222. The area from 0 to 10 is 0.9999995 (part 3 derives it exactly). So the slice error is 0.000223, curable by thinner slices, while the cutoff error is only , curable only by moving outward. Thinner slices never repair a short cutoff.
The evidence says : one electron. In part 3 we prove it with no slices at all.
9. Exercises
Exercise 1. Compute the midpoint sum for from 0 to 2 bohr with two slices.
Answer to exercise 1
The width is 1 and the midpoints are 0.5 and 1.5. and . The sum is 0.815963. The limit is 0.761897, so two slices are already within about 0.05.
Exercise 2. Find from right sums, using .
Answer to exercise 2
The width is and the right end of slice is . So . As this tends to , the area of the triangle.
Exercise 3. How many slices from 0 to 1 bohr make sure that the gap is below 0.001?
Answer to exercise 3
We need , so . Take or more.
Exercise 4. About how many electrons lie between 0.99 and 1.01 bohr? Divide by the volume of that shell, about , and compare with at .
Answer to exercise 4
One slice: electrons. The shell volume is cubic bohr. The quotient is 0.04308 electrons per cubic bohr, which is .
Exercise 5. Using the table of section 8, how many electrons (what fraction of one) lie between 1 and 3 bohr?
Answer to exercise 5
Neighbouring intervals add, so . That is , or 0.6147076.
10. What Comes Next
We can now total a density. Part 2 asks how fast that running total grows, and finds the distance where the radial density is largest.
- G. Strang and E. Herman, Calculus, Volume 1, OpenStax, free online: section 5.1, Approximating Areas [record].
- M. Boelkins and others, Active Calculus, single variable, free online, built around activities [record].
- G. Strang, Calculus, MIT OpenCourseWare RES.18-001, free textbook [record].
- The length of the bohr is from the 2022 CODATA adjustment of the constants: NIST table [record].