
William W. answered 12/01/22
Experienced Tutor and Retired Engineer
Newton's Method is a linear estimation of a function, i.e., instead of thinking of the function as a curved line, you consider it as a straight line at points very close to your point in question. It starts with the point-slope form of a line:
y - y1 = m(x - x1) but uses a few special replacements.
1) We use the point (x1, f(x1) as the point (x1, y1), 2) We use the derivative at x = x1 as the slope, and 3) We will be looking for the value of "x" that yields a y-value of zero.
That makes the point-slope form turn into: 0 - f(x1) = f '(x1)•(x - x1) or, solving for "x", we get:
x = x1 - f(x1)/f '(x1) where "x" is the next iteration. So, you could make it generic by making it:
xn+1 = xn - f(xn)/f '(xn)
At any rate, we first need a function instead of an equation. So, we turn x3 - 3x = 1 into 0 = x3 - 3x - 1 and then into:
f(x) = x3 - 3x - 1 in which we are looking for the "zero"
This makes f '(x) = 3x2 - 3
We start with x1 = xn = 0, which means f(xn) = f(x1) = f(0) = -1 and f '(xn) = f '(x1) = f '(0) = -3
So xn+1 = xn - f(xn)/f '(xn) becomes x2 = 0 - (-1)/(-3) = -1/3
So x2 = -0.333333
Then we iterate.
For n = 2, the equation becomes x3 = x2 - f(x2)/f '(x2) with x2 = -1/3, f(x2) = -1/27, and f '(x2) = -8/3
So xn+1 = xn - f(xn)/f '(xn) becomes x3 = -1/3 - (-1/27)/(-8/3) = -25/72
So x3 = -0.347222
For n = 3, the equation becomes x4 = x3 - f(x3)/f '(x3) with x3 = -0.347222, f(x3) = -0.000196, and f '(x3) = -2.638310
So xn+1 = xn - f(xn)/f '(xn) becomes x4 = -0.347222 - (-0.000196)/(-2.638310) = -0.347296
So x4 = -0.347296