8.8 KB · commit a9602da
This method is generally used to improve the result obtained by one of the previous methods. Let x0 be an approximate root of f(x)=0 and let x1=x0+h be the correct root so that f(x1)=0. Expanding f(x0+h) by Taylor's series, we obtain f(x0)+hf′(x0)+2!h2f′′(x0)+⋯=0.
Neglecting the second and higher-order derivatives, we have f(x0)+hf′(x0)=0, which gives h=−f′(x0)f(x0). A better approximation than x0 is, therefore, given by x1, where x1=x0−f′(x0)f(x0).(2.24a) Successive approximations are given by x2,x3,…,xn+1, where xn+1=xn−f′(xn)f(xn),(2.24b) which is the Newton–Raphson formula.
If we compare Eq. (2.24b) with the relation xn+1=ϕ(xn) of the iterative method [see Eq. (2.9)], we obtain ϕ(x)=x−f′(x)f(x), which gives ϕ′(x)=[f′(x)]2f(x)f′′(x).(2.25) To examine the convergence we assume that f(x), f′(x) and f′′(x) are continuous and bounded on any interval containing the root x=ξ of the equation f(x)=0. If ξ is a simple root, then f′(x)=0. Further since f′(x) is continuous, ∣f′(x)∣≥ε for some ε>0 in a suitable neighbourhood of ξ. Within this neighbourhood we can select an interval such that ∣f(x)f′′(x)∣<ε2 and this is possible since f(ξ)=0 and since f(x) is continuously twice differentiable. Hence, in this interval we have ∣ϕ′(x)∣<1.(2.26) Therefore, Newton–Raphson formula given in Eq. (2.24b) converges, provided that the initial approximation x0 is chosen sufficiently close to ξ. When ξ is a multiple root, the Newton–Raphson method still converges but slowly. Convergence can, however, be made faster by modifying Eq. (2.24b). This will be discussed later.
To obtain the rate of convergence of the method, we note that f(ξ)=0 so that Taylor's expansion gives f(xn)+(ξ−xn)f′(xn)+21(ξ−xn)2f′′(xn)+⋯=0,
from which we obtain −f′(xn)f(xn)=(ξ−xn)+21(ξ−xn)2f′(xn)f′′(xn)(2.27) From Eqs. (2.24b) and (2.27), we have xn+1−ξ=21(xn−ξ)2f′(xn)f′′(xn)(2.28) Setting εn=xn−ξ,(2.29) Equation (2.28) gives εn+1≈21εn2f′(ξ)f′′(ξ),(2.30) so that the Newton–Raphson process has a second-order or quadratic convergence.
Geometrically, the method consists in replacing the part of the curve between the point [x0,f(x0)] and the x-axis by means of the tangent to the curve at the point, and is described graphically in Fig. 2.3. It can be used for solving both algebraic and transcendental equations and it can also be used when the roots are complex.
Figure 2.3 — Newton–Raphson method.
Choosing x0=2, we obtain f(x0)=−1 and f′(x0)=10. Putting n=0 in Eq. (i), we obtain x1=2−(−101)=2.1 Now, f(x1)=(2.1)3−2(2.1)−5=0.061, and f′(x1)=3(2.1)2−2=11.23. Hence x2=2.1−11.230.061=2.094568. This example demonstrates that Newton–Raphson method converges more rapidly than the methods described in the previous sections, since this requires fewer iterations to obtain a specified accuracy. But since two function evaluations are required for each iteration, Newton–Raphson method requires more computing time. ◀
Now f(x1)=0.3553424,andf′(x1)=3.337012, so that x2=0.6839397−3.3370120.3553424=0.5774545 Proceeding in this way, we obtain x3=0.5672297andx4=0.5671433. ◀
Now, f(x1)=−0.056587 and
f′(x1)=1.753305735=1.75330Therefore, x2=0.33653+1.753300.056587=0.36880 For the next approximation, we find f(x2)=−0.00277514755 and f′(x2)=1.583028705. This gives x3=0.36880−0.00175=0.37055 since f(x3)=−0.000001274, it follows that the required root is given by x=0.370. ◀
If ξ is a root of f(x)=0 with multiplicity p, then the iteration formula corresponding to Eq. (2.24) is taken as xn+1=xn−pf′(xn)f(xn),(2.31) which means that (1/p)f′(xn) is the slope of the straight line passing through (xn,yn) and intersecting the x-axis at the point (xn+1,0).
Equation (2.31) is called the generalized Newton's formula and reduces to Eq. (2.24) for p=1. Since ξ is a root of f(x)=0 with multiplicity p, it follows that ξ is also a root of f′(x)=0 with multiplicity (p−1), of f′′(x)=0 with multiplicity (p−2), and so on. Hence the expressions x0−pf′(x0)f(x0),x0−(p−1)f′′(x0)f′(x0),x0−(p−2)f′′′(x0)f′′(x0) must have the same value if there is a root with multiplicity p, provided that the initial approximation x0 is chosen sufficiently close to the root.
The closeness of these values indicates that there is a double root near to unity. For the next approximation, we choose x1=1.01 and obtain x1−2f′(x1)f(x1)=1.01−0.0099=1.0001, and x1−f′′(x1)f′(x1)=1.01−0.0099=1.0001. We conclude, therefore, that there is a double root at x=1.0001 which is sufficiently close to the actual root unity.
On the other hand, if we apply Newton–Raphson method with x0=0.8, we obtain x1=0.8+0.106≈0.91,andx2=0.91+0.046≈0.96. It is clear that the generalized Newton's method converges more rapidly than the Newton–Raphson procedure. ◀