The Fundamental Theorem: Counting the Electron Exactly
How do slopes and areas undo each other, and how much of the hydrogen electron lies within a given distance of the proton?
This page uses the integral of part 1 and the derivative rules of part 2.
1. Two Operations
We have two machines. The integral takes a density and returns a total: with , the fraction of the hydrogen electron within bohr of the proton. The derivative takes a function and returns its rate of change. The fundamental theorem of calculus says that each undoes the other.
2. First Direction: The Slope of a Running Total
Let be continuous and .
- Neighbouring intervals add, so for : , the area of one thin slice.
- A continuous function on a slice has a smallest value and a largest value there (quoted). Every rectangle sum lies between and , so the area does too.
- Divide by : .
- As the slice shrinks to the point . Because has no jumps, both and close in on . The quotient is trapped between them.
- For the slice runs from to and has width . Its area is . Dividing that by the width gives the same quotient, between the same kind of bounds.
So : the radial density is exactly the rate at which the enclosed fraction grows, as the table in part 2 suggested.
3. Second Direction: Adding Up All the Changes
Suppose we can find a function whose derivative is . Such an is called an antiderivative of .
- By the first direction, also has derivative . So everywhere.
- A function whose slope is zero everywhere on an interval is constant. (Again by the mean value theorem: every secant has the slope of some tangent, hence slope zero.) So .
- At nothing has been added yet: , so .
The right side is often written .
In words: add up all the little changes and you get the total change. You can see it in the sums. Cut the interval into slices and write the total change as the sum of the changes over the slices,
An integral that would take thousands of rectangles now takes two evaluations of , if we can find .
4. Integration by Parts
Integrate the product rule from to . The left side is a total change, , by the second direction. Rearranged:
It trades one integral for another. The art is to choose so that is simpler than .
The picture. Let and both grow as runs from to , and plot the point as it moves. Write for the starting values and for the final ones. Thin upright slices under the curve have area , where . Thin level slices to the left of the curve have area , where . Adding up each kind of slice gives two integrals, written for short without limits: means , and means .
That is integration by parts, seen as two areas that fill the space between two rectangles.
How to Choose and
Integration by parts leaves the choice to you. Write it as , with and . In this box an integral without limits means an antiderivative: a function whose derivative is the thing being integrated. Two antiderivatives of the same function differ by a constant (section 3), so we write one of them and add , which stands for any constant.
Take the integral of the electron, , and try the two natural choices.
A Good Choice
and . Then and .
The power has dropped from to . Apply the rule again, with and the same , so :
The power is gone. Put the two lines together:
A Poor Choice
and . Then and .
This equation is perfectly true. But the power has risen from to : the new integral is harder than the one we started with. Going on in the same way raises it to , and so on.
The good result agrees with section 5: asking that nothing be enclosed at fixes .
A rule of thumb. Choose as a factor that gets simpler when differentiated, and as a factor that you can integrate and that does not get worse when you do. Above, loses a power each time it is differentiated, while integrates to a multiple of itself.
It is a guide, not a theorem. It does not promise that any choice will finish the job, and a good choice may break half of it. Here is an example with the natural logarithm , defined for as the power to which must be raised to give : . Taking as given that it has a derivative, differentiate both sides by the chain rule: , so . To integrate , take and , so and :
Integrating raised the power of from none to one, yet the choice works, because that new cancels the in .
Try it. Find for .
Answer
Take , which gets simpler when differentiated, and . Then and :
Differentiating the result gives back .
5. The Electron, Exactly
We want . Work up from the easiest piece.
Step A: No Power of r
Since the derivative of is ,
Step B: One Power of r
Take and , so and :
Step C: Two Powers of r
Take and the same , so :
Step D: Put It Together
- .
- .
- Multiply by 4.
Check by differentiating. By the product rule,
And . Both are as they must be.
6. Try It: Area and Slope Together
Move the right end of the shaded area. The upper plot shows the area; the lower plot shows the same area as a height, with its tangent. The violet bar above and the violet tangent below carry the same number.
The slider needs JavaScript. The figure above and the table below show the same values.
7. All of It Is One Electron
As grows, does really die away? A power grows while the exponential fades, so we must see who wins.
- For , : it equals 1 at 0, and its slope is never negative.
- A larger function has a larger integral, rectangle by rectangle. Integrating from 0 to gives , so .
- Integrating again: .
- And once more: .
- With : . So , which tends to 0. The terms with and 1 are smaller still once .
Exactly one electron. The sums of part 1 were telling the truth.
| (bohr) | within : | beyond : |
|---|---|---|
| 0.5 | 0.0803014 | 0.9196986 |
| 1 | 0.3233236 | 0.6766764 |
| 2 | 0.7618967 | 0.2381033 |
| 3 | 0.9380312 | 0.0619688 |
| 4 | 0.9862460 | 0.0137540 |
| 5 | 0.9972306 | 0.0027694 |
| 6 | 0.9994777 | 0.0005223 |
| 10 | 0.9999995 | 0.0000005 |
At 1 bohr, the most likely distance, only of the electron is inside. Since only rises, we can find where it reaches a given fraction by repeatedly halving an interval that contains the answer:
| fraction inside | radius (bohr) |
|---|---|
| one half | 1.3370 |
| nine tenths | 2.6612 |
| ninety-nine hundredths | 4.2030 |
The tail beyond 10 bohr is . In part 1 we proved, without this formula, that it is at most .
8. From Slices to Boxes
Space has three directions. Cut it into small boxes with sides and volume . Let (the Greek letter “rho”) be the density in electrons per cubic bohr. For hydrogen, with . A small box holds about electrons, with taken at its centre. To count the electrons in a region of space, called (“omega”), add over the boxes whose centres lie in it, then shrink the boxes:
Here is a cube of side 12 bohr centred on the proton, filled with midpoint boxes. Its limit, computed separately by a more accurate method, is 0.9998714.
| per edge | boxes | side (bohr) | sum of | error |
|---|---|---|---|---|
| 8 | 512 | 1.5 | 0.8800221 | −0.1198493 |
| 16 | 4 096 | 0.75 | 0.9889492 | −0.0109222 |
| 32 | 32 768 | 0.375 | 0.9991167 | −0.0007547 |
| 64 | 262 144 | 0.1875 | 0.9998235 | −0.0000479 |
| 128 | 2 097 152 | 0.09375 | 0.9998685 | −0.0000029 |
Some checks need no box sums. A ball of radius around the proton can be cut into shells instead of boxes, and that is just . The cube contains the ball of radius 6 and fits inside the ball of radius 6, so its value lies between 0.9994777 and 0.9999998. And the half of all space on one side of a flat plane through the proton holds, by symmetry, exactly half an electron.
In the quantum theory of atoms in molecules (QTAIM), the number of electrons belonging to an atom in a molecule, its atomic population, is exactly such an integral, , over a particular region around the atom’s nucleus. The theory draws the boundary of that region from the shape of itself. Finding those regions needs derivatives in three directions, which is the next stretch of the road. Counting inside them is what you have just learned.
9. Exercises
Exercise 1. What fraction of the electron lies farther than 2 bohr from the proton?
Answer to exercise 1
.
Exercise 2. Find the fraction between 1 and 2 bohr.
Answer to exercise 2
.
Exercise 3. Use integration by parts to find .
Answer to exercise 3
Take and . Then .
Exercise 4. The average distance of the electron is : each distance weighted by how much electron sits there. Compute it.
Answer to exercise 4
We need . As in section 5, parts with gives , because the boundary term vanishes at both ends (at the far end because integrating the inequality of section 7 once more gives , so that ). By section 5, letting grow in , the last integral is . So the average is bohr, larger than the most likely distance of 1 bohr because of the long tail.
Exercise 5. What is the derivative of ?
Answer to exercise 5
. By the chain rule and the first direction, .
10. Where to Go from Here
This series is the first step of a longer route. These pages go further; they ask for more mathematics than the three parts give, notably derivatives and integrals in several variables.
- Removing a variable by integration: how the electron density of a molecule comes out of integrals over many variables.
- In Praise of the Calculus of Variations: what integration by parts can do when the unknown is a whole function. It lays out the route onward.
- What makes an action stationary: the same move carried to the boundary of a region.
- G. Strang and E. Herman, Calculus, Volume 1, OpenStax, free online: section 5.3, The Fundamental Theorem of Calculus [record].
- Volume 2 of the same work: section 3.1, Integration by Parts [record].
- G. Strang, Calculus, MIT OpenCourseWare RES.18-001, free textbook [record].
- R. F. W. Bader, Atoms in Molecules: A Quantum Theory (Oxford University Press, 1990), the source of the atomic regions of section 8 [record].