Single-Variable-Calculus ยท Unit 11 ยท Video 2 ยท Interactive Practice

Newton's Method: Tangent Lines That Find the Square Root of Five

IKey Formulas

FormulaNameRole
f(x)=0f(x) = 0Standard formEvery equation can be rewritten this way; x2=5x^2 = 5 becomes x2โˆ’5=0x^2 - 5 = 0
yโˆ’y0=m(xโˆ’x0)y - y_0 = m(x - x_0), with y0=f(x0)y_0 = f(x_0), m=fโ€ฒ(x0)m = f'(x_0)Tangent line at the guessThe linear stand-in for the curve
xn+1=xnโˆ’f(xn)fโ€ฒ(xn)x_{n+1} = x_n - \dfrac{f(x_n)}{f'(x_n)}Newton's methodThe tangent line's xx-intercept is the next guess
xn+1=12xn+52xnx_{n+1} = \tfrac{1}{2}x_n + \dfrac{5}{2x_n}Newton's method for 5\sqrt{5}From f(x)=x2โˆ’5f(x) = x^2 - 5, fโ€ฒ(x)=2xf'(x) = 2x

Key Insight: At the current guess, pretend the function is linear: replace the curve by its tangent line and solve the line instead. Starting from x0=2x_0 = 2, the guesses 94\tfrac{9}{4}, 16172\tfrac{161}{72}, 5184123184\tfrac{51841}{23184} close in on 5\sqrt{5} with the number of correct digits roughly doubling each step.

IIVisualization 1 โ€” Where the Tangent Line Crosses

The tangent line at (x0,f(x0))\big(x_0, f(x_0)\big) on y=x2โˆ’5y = x^2 - 5 crosses the xx-axis at the next guess x1x_1.

IIIVisualization 2 โ€” From the Picture to the Formula

Setting y=0y = 0 in the tangent-line equation turns the crossing point into Newton's formula.

1 ยท Tangent line through (x0,y0)(x_0, y_0) with slope mm

yโˆ’y0=m(xโˆ’x0)y - y_0 = m(x - x_0)

IVVisualization 3 โ€” Iterating Toward โˆš5

Each pass of xn+1=12xn+5/(2xn)x_{n+1} = \tfrac{1}{2}x_n + 5/(2x_n) roughly doubles the number of correct digits of 5=2.2360679774โ€ฆ\sqrt{5} = 2.2360679774\ldots

nxโ‚™decimal|โˆš5 โˆ’ xโ‚™|

๐Ÿ’ก Starting from x0=2x_0 = 2, every later guess xnx_n (nโ‰ฅ1n \ge 1) satisfies p2โˆ’5q2=1p^2 - 5q^2 = 1 when written as p/qp/q (for example 1612โˆ’5โ‹…722=1161^2 - 5 \cdot 72^2 = 1), so its error is exactly 1qโ€‰(p+5โ€‰q)\dfrac{1}{q\,(p + \sqrt{5}\,q)}; why the digits double is the subject of the next video.

VQuiz Questions

Problem 1 ยท One Newton Step

Given: f(x)=x2โˆ’7f(x) = x^2 - 7 and the starting guess x0=3x_0 = 3 โ€” find the next guess x1x_1.

โœ… Correct! x1=3โˆ’26=83โ‰ˆ2.667x_1 = 3 - \tfrac{2}{6} = \tfrac{8}{3} \approx 2.667, much closer to 7โ‰ˆ2.646\sqrt{7} \approx 2.646 than 33 was.
โŒ Wrong sign. Newton's method subtracts the ratio: x1=x0โˆ’f(x0)/fโ€ฒ(x0)x_1 = x_0 - f(x_0)/f'(x_0). Here f(3)=2f(3) = 2 is positive and the curve rises, so the tangent line meets the axis to the left of 33.
โŒ The ratio is upside down. You computed 3โˆ’fโ€ฒ(3)/f(3)=3โˆ’6/23 - f'(3)/f(3) = 3 - 6/2. The step is f(x0)/fโ€ฒ(x0)=2/6f(x_0)/f'(x_0) = 2/6: height divided by slope.
โŒ The slope is missing. x0โˆ’f(x0)=3โˆ’2x_0 - f(x_0) = 3 - 2 forgets to divide by fโ€ฒ(x0)=6f'(x_0) = 6; the run of the tangent triangle is height over slope.
โŒ Not quite. Compute f(3)f(3) and fโ€ฒ(3)f'(3), then apply x1=x0โˆ’f(x0)/fโ€ฒ(x0)x_1 = x_0 - f(x_0)/f'(x_0).
Show solution

With f(x)=x2โˆ’7f(x) = x^2 - 7 we have fโ€ฒ(x)=2xf'(x) = 2x, so f(3)=9โˆ’7=2f(3) = 9 - 7 = 2 and fโ€ฒ(3)=6f'(3) = 6.

x1=x0โˆ’f(x0)fโ€ฒ(x0)=3โˆ’26=3โˆ’13=83โ‰ˆ2.667.x_1 = x_0 - \frac{f(x_0)}{f'(x_0)} = 3 - \frac{2}{6} = 3 - \frac{1}{3} = \frac{8}{3} \approx 2.667.

Equivalently, the simplified rule x1=12x0+72x0=32+76=166=83x_1 = \tfrac{1}{2}x_0 + \tfrac{7}{2x_0} = \tfrac{3}{2} + \tfrac{7}{6} = \tfrac{16}{6} = \tfrac{8}{3} gives the same value. Since 7โ‰ˆ2.6458\sqrt{7} \approx 2.6458, the error fell from about 0.350.35 to about 0.020.02.

Problem 2 ยท A Cubic With No Practical Formula

Given: f(x)=x3โˆ’2xโˆ’5f(x) = x^3 - 2x - 5 and x0=2x_0 = 2 โ€” find the Newton step x1x_1.

โœ… Correct! f(2)=โˆ’1f(2) = -1 and fโ€ฒ(2)=10f'(2) = 10, so x1=2โˆ’โˆ’110=2.1x_1 = 2 - \tfrac{-1}{10} = 2.1.
โŒ Watch the double minus. f(2)=โˆ’1f(2) = -1 is negative, so x0โˆ’f(x0)/fโ€ฒ(x0)=2โˆ’(โˆ’110)=2+0.1x_0 - f(x_0)/f'(x_0) = 2 - (-\tfrac{1}{10}) = 2 + 0.1. The point lies below the axis on a rising curve, so the crossing is to the right.
โŒ Check the derivative. ddx(x3โˆ’2xโˆ’5)=3x2โˆ’2\dfrac{d}{dx}(x^3 - 2x - 5) = 3x^2 - 2, so fโ€ฒ(2)=12โˆ’2=10f'(2) = 12 - 2 = 10, not 1212.
โŒ The ratio is upside down. 2โˆ’fโ€ฒ(2)/f(2)=2โˆ’10/(โˆ’1)=122 - f'(2)/f(2) = 2 - 10/(-1) = 12. The step is f(x0)/fโ€ฒ(x0)f(x_0)/f'(x_0), height over slope.
โŒ Not quite. Evaluate f(2)f(2) and fโ€ฒ(2)f'(2) carefully, then apply x1=x0โˆ’f(x0)/fโ€ฒ(x0)x_1 = x_0 - f(x_0)/f'(x_0).
Show solution

f(2)=8โˆ’4โˆ’5=โˆ’1f(2) = 8 - 4 - 5 = -1 and fโ€ฒ(x)=3x2โˆ’2f'(x) = 3x^2 - 2, so fโ€ฒ(2)=10f'(2) = 10.

x1=2โˆ’f(2)fโ€ฒ(2)=2โˆ’โˆ’110=2+0.1=2.1.x_1 = 2 - \frac{f(2)}{f'(2)} = 2 - \frac{-1}{10} = 2 + 0.1 = 2.1.

The two minus signs combine into a plus: the point (2,โˆ’1)(2, -1) is below the axis and the tangent line rises with slope 1010, so it reaches the axis 1/101/10 to the right.

Problem 3 ยท Newton's Method for โˆš10

Given: f(x)=x2โˆ’10f(x) = x^2 - 10 and x0=3x_0 = 3 โ€” find the simplified Newton recurrence and the second guess x2x_2.

What is the simplified recurrence?

What is x2x_2?

โœ… Correct! x1=196x_1 = \tfrac{19}{6} and x2=721228โ‰ˆ3.162281x_2 = \tfrac{721}{228} \approx 3.162281, while 10โ‰ˆ3.162278\sqrt{10} \approx 3.162278.
โŒ Only half of the constant survives. The term is 102xn=5xn\dfrac{10}{2x_n} = \dfrac{5}{x_n}: the 22 from fโ€ฒ(xn)=2xnf'(x_n) = 2x_n divides the 1010 as well.
โŒ The derivative is 2xn2x_n, not xnx_n. With the correct slope the ratio is xn2โˆ’102xn\dfrac{x_n^2 - 10}{2x_n}.
โŒ Sign slip. โˆ’xn2โˆ’102xn=โˆ’xn2+102xn-\dfrac{x_n^2 - 10}{2x_n} = -\dfrac{x_n}{2} + \dfrac{10}{2x_n}: the minus in front of the fraction and the minus in front of 1010 combine into a plus.
โŒ That is x1x_1. Apply the recurrence once more, starting from 196\tfrac{19}{6}.
โŒ The factor 12\tfrac{1}{2} is missing. 196+6019=721114\tfrac{19}{6} + \tfrac{60}{19} = \tfrac{721}{114} is twice x2x_2; the recurrence averages x1x_1 and 10/x110/x_1.
โŒ This comes from 12xn+10/xn\tfrac{1}{2}x_n + 10/x_n. That rule sends 33 to 296\tfrac{29}{6}, farther from 10\sqrt{10}; the correct term is 10/(2xn)10/(2x_n).
โŒ Check the recurrence. Start from xnโˆ’xn2โˆ’102xnx_n - \dfrac{x_n^2 - 10}{2x_n} and split the fraction into two terms.
โŒ Check x2x_2. Compute x1x_1 first, then apply the recurrence to x1x_1.
Show solution

With fโ€ฒ(x)=2xf'(x) = 2x:

xn+1=xnโˆ’xn2โˆ’102xn=xnโˆ’xn2+102xn=12xn+5xn.x_{n+1} = x_n - \frac{x_n^2 - 10}{2x_n} = x_n - \frac{x_n}{2} + \frac{10}{2x_n} = \frac{1}{2}x_n + \frac{5}{x_n}.

From x0=3x_0 = 3:

x1=32+53=9+106=196,x_1 = \frac{3}{2} + \frac{5}{3} = \frac{9 + 10}{6} = \frac{19}{6}, x2=1912+3019=361+360228=721228โ‰ˆ3.1622807.x_2 = \frac{19}{12} + \frac{30}{19} = \frac{361 + 360}{228} = \frac{721}{228} \approx 3.1622807.

Since 10โ‰ˆ3.1622777\sqrt{10} \approx 3.1622777, the error of x2x_2 is only about 3ร—10โˆ’63 \times 10^{-6}.

Problem 4 ยท Transfer: the Cube Root of 2

Given: we want 23\sqrt[3]{2} by Newton's method starting from x0=1x_0 = 1 โ€” choose the function to solve and find x2x_2.

Which equation f(x)=0f(x) = 0 should Newton's method solve?

What is x2x_2?

โœ… Correct! x2=9172โ‰ˆ1.2639x_2 = \tfrac{91}{72} \approx 1.2639, against 23โ‰ˆ1.2599\sqrt[3]{2} \approx 1.2599.
โŒ That equation's root is 2\sqrt{2}. The cube root solves x3=2x^3 = 2.
โŒ This needs the answer to set it up. The point is a function you can evaluate without knowing 23\sqrt[3]{2}: x3โˆ’2x^3 - 2.
โŒ Its root is โˆ’23-\sqrt[3]{2}. Move the 22 across: x3=2x^3 = 2 becomes x3โˆ’2=0x^3 - 2 = 0.
โŒ That is x1x_1. One more step: apply the rule to x1=43x_1 = \tfrac{4}{3}.
โŒ The derivative of x3x^3 is 3x23x^2. Using fโ€ฒ(x)=x2f'(x) = x^2 sends 1โ†’2โ†’121 \to 2 \to \tfrac{1}{2}; the factor 33 matters.
โŒ Check the power. The second term is 23x12=23โ‹…16/9=38\dfrac{2}{3x_1^2} = \dfrac{2}{3 \cdot 16/9} = \dfrac{3}{8}; using 23x1=12\dfrac{2}{3x_1} = \dfrac{1}{2} gives 2518\tfrac{25}{18}.
โŒ Check the equation. Write x=23x = \sqrt[3]{2} as a polynomial equation set equal to zero.
โŒ Check x2x_2. Simplify the recurrence first, then apply it twice.
Show solution

Solve f(x)=x3โˆ’2=0f(x) = x^3 - 2 = 0, with fโ€ฒ(x)=3x2f'(x) = 3x^2:

xn+1=xnโˆ’xn3โˆ’23xn2=23xn+23xn2.x_{n+1} = x_n - \frac{x_n^3 - 2}{3x_n^2} = \frac{2}{3}x_n + \frac{2}{3x_n^2}.

From x0=1x_0 = 1:

x1=23+23=43,x_1 = \frac{2}{3} + \frac{2}{3} = \frac{4}{3}, x2=23โ‹…43+23โ‹…169=89+38=64+2772=9172โ‰ˆ1.2639.x_2 = \frac{2}{3}\cdot\frac{4}{3} + \frac{2}{3 \cdot \frac{16}{9}} = \frac{8}{9} + \frac{3}{8} = \frac{64 + 27}{72} = \frac{91}{72} \approx 1.2639.

Since 23โ‰ˆ1.2599\sqrt[3]{2} \approx 1.2599, the error dropped from about 0.260.26 at x0x_0 to about 0.070.07 at x1x_1 and 0.0040.004 at x2x_2.

Solved: 0 / 4