Newton's method squares the error at each step, provided the start is close and the slope is not too small. Then the mean value theorem: over any interval, the average rate of change equals the derivative at some point in between. Its real use is three consequences: a positive derivative means increasing, a negative one decreasing, and a zero derivative constant. From these come inequalities such as eˣ > 1 + x.
Recall the method from the previous lecture: from a guess xn, follow the tangent line down to the axis, xn+1=xn−f(xn)/f′(xn), and repeat (transcript, p. 1). Call the distance from the n-th guess to the root x the error, En=∣x−xn∣ (p. 2).
Near the root, a curve and its tangent line separate quadratically, so the next error is roughly the square of the one before (p. 2):
Error of Newton's method
En+1≈En2
In words
capital E sub n plus 1 is approximately capital E sub n to the power 2
Start at E0≈10−1 and the errors run 10−2, 10−4, 10−8, 10−16: the number of correct digits doubles at each step, which soon outruns a calculator (p. 2). (The sign "≈" hides a constant factor, here and in the lecture.)
xn+1=xn−(xn2−7)/(2xn) gives x1≈2.6667, x2≈2.645833, x3≈2.6457513, while 7≈2.6457513.
Errors
E0≈0.35, E1≈0.021, E2≈8.2×10−5, E3≈1.3×10−9. Each is a fixed fraction of the square of the one before: 0.17 at the first step, then about 0.19 times the square, settling at the constant factor 1/(27).
This works when f′ is not too small, f′′ is not too large (the curve does not bend far away from its tangent line), and x0 starts near the root (pp. 2–3). The ways it goes wrong (pp. 3–4):
The wrong root. For y=x2−5, a start on the left of the axis leads to −5 instead of 5. The method only knows where you started. And if the first error is large, the quadratic behaviour works against you.
A horizontal tangent. If f′(x0)=0, the tangent line never meets the axis and x1 is undefined: f′ is in the denominator. (The transcript has "f(x0)=0"; the condition is on f′.)
A cycle. For a wiggly curve, x0 can lead to x1 and x1 straight back to x0, forever: "the grass is always greener".
For example, f(x)=x3−2x+2 started at x0=0 gives x1=0−2/(−2)=1, and then x2=1−1/1=0 again. Even so, Newton's method solves almost any equation numerically (p. 4).
In words: drive 3000 miles from Boston to Los Angeles in 6 hours and your average speed is 3000/6=500 miles per hour. Some of the time you went faster, some of the time slower, so at some moment you were going exactly 500 miles per hour (transcript, pp. 4–5). (The transcript says "3,000 miles times 6 hours"; it is divided by.) "Mean" means average. The notes make the same point with a 1000-mile, 3-hour drive from Boston to Chicago: at some moment the speed was exactly 1000/3 mph (notes, p. 2).
The graph of f(x)=x3 on [0,2], with the secant from a=0 to b=2 (slope 4) and the tangent line at c=2/3≈1.15, where f′(c)=3c2=4. All three are computed from the formulas; the tangent is parallel to the secant.
The proof is a picture (transcript, pp. 5–6; notes, p. 1). Draw the secant line. Take a line parallel to it, below the graph, and slide it up, keeping it parallel, until it first touches the graph between a and b (ignore the graph outside). Where it touches, it is a tangent line, so its slope f′(c) equals the secant's slope. If the graph lies entirely above the secant, so that nothing is touched from below, bring the parallel line down from above instead (p. 6).
The line may touch at several points; then there are several good values of c, and any one will do (p. 8). That a touching point always exists is a geometric fact whose full proof needs more analysis than the course covers (p. 8).
Every hypothesis matters. Take a graph made of two straight pieces meeting at a corner, like y=∣x∣. The sliding line touches at the corner, where there is no tangent line and no derivative (transcript, p. 6). The notes add that for ∣x∣ the line touches first at x=0 whatever its slope, and f′(0) does not exist (notes, p. 1). One bad point is enough to break the theorem. Continuity matters too: let f(x)=0 for 0≤x<1 but f(1)=1. The secant from x=0 to x=1 has slope 1, yet f′=0 everywhere in between, because the end value has nothing to do with the rest of the graph.
Renaming b as x gives a third form, f(x)=f(a)+f′(c)(x−a) for some c between a and x; c depends on f, a and x (notes, p. 2). Compare it with the linear approximation (notes, pp. 2–3; transcript, pp. 8–9):
Linear approximation, for comparison
f(x)≈f(a)+f′(a)(x−a)(x near a)
In words
f(x) is approximately f(a) plus f prime (a) the quantity x minus a, (x near a)
The approximation uses a definite slope, f′(a), and is only approximate. The mean value theorem is exact, but hides what it does not know in c, which could be any point between a and x.
What you can always say is that f′(c) lies between the smallest value m and the largest value M of f′ on the whole intervala≤x≤b, ends included (transcript, p. 9):
Average rate between min and max
m≤b−af(b)−f(a)≤M
In words
m is less than or equal to the quantity f(b) minus f(a), all over the quantity b minus a, is less than or equal to capital M
The average speed lies between the minimum and maximum speed. Nobody doubted it, though it was not properly proved in Newton's and Leibniz's time (p. 9). The linear approximation instead uses the speed at one end, which is close on a short interval because the maximum and minimum are then close together.
Worked example
Pinning down √101
Without a calculator, how big is 101−10?
Apply the theorem
For f(x)=x on [100,101]: 101−100=f′(c)×1=2c1 for some c between 100 and 101.
Bound f′(c)
10<c<11 (since 112=121), so 221<2c1<201, that is 0.045<101−10<0.05. (In fact it is 0.04988.)
Worked example
Average-speed cameras
Two cameras 12 km apart on a motorway time a car at exactly 6 minutes between them. The limit is 100 km/h. Can the driver argue they never broke it?
Average speed
12km/0.1h=120 km/h.
Mean value theorem
Position is a differentiable function of time, so at some moment the speed was exactly 120 km/h, above the limit, even if no camera saw it.
The lecture's main point is not finding c (problem-set questions that ask for one are only there to make you read the statement, p. 10) but three consequences, which you will use far more than the theorem itself (transcript, pp. 6, 10–11; notes, p. 3):
Proof. Take a<b, so b−a>0, and use the second form f(b)=f(a)+f′(c)(b−a) (transcript, p. 7; notes, p. 3). If f′>0, the last term is positive, so f(b)>f(a). If f′<0, it is negative, so f(b)<f(a). If f′=0, it is zero, so f(b)=f(a); true for every pair of points, so f never changes value. (The notes' definition of decreasing has a slip: it should read a<b⇒f(a)>f(b).)
These look obvious, but they are not: the derivative is defined by a limit, a statement about infinitesimally small changes, and it is not automatic that it controls how the function changes over a finite interval (notes, p. 3). The mean value theorem is that link: the difference quotient is not just approximately a derivative, it equals one, at some point in between (transcript, p. 7).
The step ex−1>0 for x>0 is itself proved the same way from ex>0 (notes, p. 4). So f is increasing, f(x)>f(0)=0, and that says ex>1+x. Repeat with g(x)=ex−(1+x+x2/2): g(0)=0 and g′(x)=ex−(1+x), positive by the previous step, so ex>1+x+x2/2 (p. 11). Keep going and
Ever better lower bounds
ex>1+x+2x2+3⋅2x3+4⋅3⋅2x4(x>0)
In words
e to the power x greater than 1 plus x plus x squared over 2 plus x cubed over the quantity 3 times 2, plus x to the power 4 over the quantity 4 times 3 times 2, (x greater than 0)
Like the tortoise and the hare, ex stays ahead of every finite sum, but the infinite sum catches it exactly: this is the Taylor series, near the end of the course (p. 11; notes, p. 4). At x=0.5: e0.5≈1.6487, against 1.5 and 1.625 for the first two bounds.
Worked example
ln(1 + x) < x
Show that ln(1+x)<x for x>0.
The difference
Let f(x)=x−ln(1+x). Then f(0)=0−ln1=0.
Its derivative
f′(x)=1−1+x1=1+xx>0 for x>0. So f is increasing, f(x)>0, and ln(1+x)<x. Check: ln1.5≈0.405<0.5.
Newton's method: near the root, En+1≈En2, so correct digits double. It needs a start near the root, f′ not too small and f′′ not too large; it can find the wrong root, stop at a horizontal tangent, or cycle.
Inequalities: to show one function stays above another for x>0, check that their difference starts at 0 and has a positive derivative. Henceex>1+x>… and ln(1+x)<x.
The left end of the interval a ≤ x ≤ b; in the third form of the theorem and in the linear approximation, the base point. In the cosmology note, a(t) is the scale factor of the universe. Say it: “a”.
The point between a and b (or between a and x) where the tangent slope f′(c) equals the secant slope; in the cosmology note, an earlier time. Say it: “c”.
Today: the present time, about 13.8 billion years after the Big Bang in the real universe (simple models on some pages give other ages). Unit: s (usually billions of years).Say it: “t nought”.
A function: in Newton's method, the one whose zero is sought; in the mean value theorem, any function differentiable between a and b and continuous at the ends. Say it: “f”.
A way to solve f(x) = 0: make a guess, follow the tangent line to where it crosses zero, and repeat from there. Explained in A ring on a string, and Newton's method.
A straight line through two points of a curve; its slope is the average rate of change between them. Explained in Rates of change and area under a graph.
How fast one quantity changes compared with another, often time: the change in the first divided by the change in the second. Explained in Rates of change and area under a graph.
Without breaks, gaps or jumps: a continuous graph can be drawn without lifting the pen; a continuous quantity can take every value in a range. Explained in The rocket equation.
Replacing a function near a point by the straight line, or flat plane, that best matches it there, using its first derivatives. Explained in Change of variables in double integrals.
A power series built from a function's derivatives at one point; its first few terms, a Taylor polynomial, approximate the function near that point. Explained in Stacking blocks and Taylor series.
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.
A universe with exactly the critical density, whose space has no curvature and which expands forever, ever more slowly. Explained in Open, closed and flat universes.
For this reason; as a result of what was just said.
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).