Running Totals and Rates: The Derivative
How fast does a running total grow, and at what distance is the radial density of hydrogen largest?
This page uses the sums, limits and integrals of part 1, and ordinary algebra.
1. A Running Total
In part 1 the radial density of the hydrogen electron was , in electrons per bohr, with the distance from the proton in bohr. Now let the far end of the integral move. Define
the number of electrons (here a fraction of one) within distance . The letter runs through the slices; is where we stop. Each value below is a limit of rectangle sums.
| (bohr) | |
|---|---|
| 0 | 0.000000 |
| 0.5 | 0.080301 |
| 1 | 0.323324 |
| 1.5 | 0.576810 |
| 2 | 0.761897 |
| 3 | 0.938031 |
| 4 | 0.986246 |
| 6 | 0.999478 |
2. How Fast Does the Total Grow?
Step from to , where is a small length. The total rises by . Dividing by the step gives the average rate of growth, in electrons per bohr. At :
| step | rise | rise divided by | |
|---|---|---|---|
| 1 | 0.7618967 | 0.4385731 | 0.438573 |
| 0.5 | 0.5768099 | 0.2534863 | 0.506973 |
| 0.1 | 0.3772863 | 0.0539627 | 0.539627 |
| 0.01 | 0.3287368 | 0.0054132 | 0.541323 |
| 0.001 | 0.3238649 | 0.0005413 | 0.541341 |
The last column closes in on 0.541341, and that is . It is no accident: the rise is the area of one thin slice, about . Part 3 turns this remark into a theorem. First we need to understand “the rate at a point”.
3. The Derivative as a Limit
Take any function . The quotient is the slope of the straight line through two points of the graph, called a secant. As the second point slides toward the first, the secant turns toward the tangent, the line that just follows the curve there.
Here means the number the quotient closes in on as gets close to zero, from either side. We never put , which would give the meaningless 0/0. The derivative is also written . A function that has a derivative is called differentiable.
We use three facts about limits without proof: the limit of a sum is the sum of the limits, the limit of a product is the product of the limits, and a constant factor can be taken outside. (For a reciprocal we also use that the limit of 1/g is 1 divided by the limit of g, when that limit is not zero.)
- A constant never changes, so every quotient is 0 and its derivative is 0.
- The function : the quotient is .
- The square: .
Now the radial density at , where :
| step | secant slope | |
|---|---|---|
| 1 | 0.448084 | 0.080204 |
| 0.5 | 0.541341 | 0.346923 |
| 0.1 | 0.433720 | 0.658402 |
| 0.01 | 0.375163 | 0.728353 |
| 0.001 | 0.368614 | 0.735023 |
The slopes approach 0.735759. Section 6 will produce that number from a formula.
4. Try It: Slide the Slope
Move the point with the first slider (or press and drag on a plot). The second slider shrinks the step from 1 down to 0.001. The lower plot records the tangent slope at every distance. Watch where it crosses zero.
The sliders need JavaScript. The figure above and the tables on this page show the same slopes.
5. Rules That Save the Work
Taking a limit by hand every time would be slow. A few rules do it once and for all. Below, and are differentiable functions of , and is the change in over the step.
A Differentiable Function Has No Jumps
Since , and the first factor tends to while the second tends to 0, the change tends to 0.
Sums and Constant Factors
The change of is , and the change of is . Divide by and take the limit:
The Product Rule
Think of as the area of a rectangle with sides and . When both sides grow, the new area has two thin strips and a tiny corner.
- .
- Divide by : .
- Let . The corner term tends to . What remains is the rule.
The Power Rule
For a whole number the derivative of is . It is true for (derivative 1). Suppose it is true for some . Then by the product rule
That is the same rule for . So it climbs from 1 to 2, from 2 to 3, and so on without end. For it gives , as found above.
The Chain Rule
Often one function is fed into another, with . If changes 3 times as fast as , and changes 2 times as fast as , then changes 6 times as fast as : rates multiply. Here is the argument, written so that it never divides by , which might be zero.
- For a change in , define the leftover when , and . By the definition of , as .
- Rearranged, , and this holds for too.
- Put , call the resulting change in , and divide by : .
- As , , so , and .
The Exponential
For a power with a fixed base , the law of exponents gives . Therefore
The slope of an exponential is proportional to its own height. The proportionality number is its slope at . We take it as given that the limit exists, and estimate it:
| base 2 | base | base 3 | |
|---|---|---|---|
| 0.1 | 0.717735 | 1.051709 | 1.161232 |
| 0.01 | 0.695555 | 1.005017 | 1.104669 |
| 0.001 | 0.693387 | 1.000500 | 1.099216 |
| 0.0001 | 0.693171 | 1.000050 | 1.098673 |
Base 2 gives a number near 0.6931, less than 1; base 3 gives one near 1.0986, more than 1. We also take it as given that this number grows steadily with the base, so that in between there is exactly one base for which it is 1. That base is what the letter means, So
The second formula is the chain rule with : the outer function gives and the inner one gives .
6. Differentiating the Radial Density
Now every tool is ready. Write with and .
- Constant factor and power rule: .
- Exponential and chain rules: .
- Product rule: , which is .
- Take out the common factor . The result is boxed below.
At this is , the number the secants of section 3 were heading for.
7. Where the Radial Density Is Largest
The sign of a derivative says which way the graph goes. Where is positive over a stretch, rises there; where is negative, falls. (This follows from the mean value theorem, which we quote: between two points, some tangent is parallel to the secant joining them. So if every tangent slopes upward, every secant does.)
In the factor is always positive. For the factor is positive. So the sign is the sign of :
| distance | sign of | the curve |
|---|---|---|
| positive | rises | |
| zero | level | |
| negative | falls |
It rises up to 1 bohr and falls ever after, so the largest value is at bohr, where electrons per bohr. This also supplies the fact used in part 1 for the tail.
Note that as well. A zero slope alone does not tell a top from a bottom: at the curve starts out level at its lowest value, 0. Always look at what the sign does on each side.
| (bohr) | ||
|---|---|---|
| 0 | 0.000000 | 0.000000 |
| 0.25 | 0.151633 | 0.909796 |
| 0.5 | 0.367879 | 0.735759 |
| 0.75 | 0.502043 | 0.334695 |
| 1 | 0.541341 | 0.000000 |
| 1.25 | 0.513031 | −0.205212 |
| 1.5 | 0.448084 | −0.298722 |
| 2 | 0.293050 | −0.293050 |
| 3 | 0.089235 | −0.118980 |
| 5 | 0.004540 | −0.007264 |
The distance of 1 bohr is the most likely distance. The density per unit volume, , is largest right at the proton. Both are true: shells near 1 bohr are far roomier than shells near the proton.
The Slope of the Slope
The derivative of the derivative is the second derivative . It tells how the graph bends: negative means bending downward, as at a hilltop. Differentiate by the product rule:
At the top, , negative as it should be. At the start, , positive: a valley floor.
8. Exercises
Exercise 1. Find the derivative of directly from the limit.
Answer to exercise 1
. Dividing by gives , which tends to , as the power rule says.
Exercise 2. Find the derivative of (for ) from the limit.
Answer to exercise 2
. Dividing by gives , which tends to .
Exercise 3. Where is largest for ?
Answer to exercise 3
, positive before 1 and negative after. So the largest value is at and equals .
Exercise 4. Differentiate the density per unit volume, . Is its slope ever zero?
Answer to exercise 4
. It is negative everywhere and never zero. For the largest value is therefore at the end, , where the slope is not zero. A maximum at the edge of a range need not be level.
Exercise 5. At which distances does the bending of change, that is, where is ?
Answer to exercise 5
Solve : , which is 0.2929 and 1.7071 bohr. Between them the curve bends downward.
9. What Comes Next
Part 1 added slices; this page measured rates. The table of section 2 hinted that the rate of the running total is the density itself. Part 3 proves it and uses it to count the electron exactly.
- G. Strang and E. Herman, Calculus, Volume 1, OpenStax, free online: section 3.1, Defining the Derivative, and the sections that follow it [record].
- M. Boelkins and others, Active Calculus, single variable, free online [record].