4.1 KB · commit a9602da
In this method, the given function f(x) is approximated by a second degree curve in the vicinity of a root. The roots of the quadratic are then assumed to be the approximations to the roots of the equation f(x)=0. The method is iterative and can be used to compute complex roots. It has quadratic convergence [see, Muller (1956)].
Let (xi−2,yi−2), (xi−1,yi−1) and (xi,yi) be three distinct points on the curve y=f(x) where xi−2,xi−1 and xi are approximations to a root of f(x)=0. Now, a second degree curve passing through the three points is given by Lagrange’s formula (see Section 3.9.1) L(x)=(xi−2−xi−1)(xi−2−xi)(x−xi−1)(x−xi)yi−2+(xi−1−xi−2)(xi−1−xi)(x−xi−2)(x−xi)yi−1+(xi−xi−2)(xi−xi−1)(x−xi−2)(x−xi−1)yi(2.38) Let hi=xi−xi−1,hi−1=xi−1−xi−2(2.39) Then
x−xi−1x−xi−2xi−2−xi−1xi−2−xi=x−xi+xi−xi−1=(x−xi)+hi,=x−xi+xi−xi−2=(x−xi)+(hi−1+hi)=−hi−1,=−(hi−1+hi)andΔi=yi−yi−1.⎭⎬⎫(2.40)Hence L(x)=hi−1(hi−1+hi)(x−xi+hi)(x−xi)yi−2+−hi−1hi(x−xi+hi−1+hi)(x−xi)yi−1+hi(hi−1+hi)(x−xi+hi+hi−1)(x−xi+hi)yi(2.41)
After simplification, the preceding equation can be written as L(x)=A(x−xi)2+B(x−xi)+yi, where
AandB=(hi−1+hi)1(hiΔi−hi−1Δi−1)=hiΔi+Ahi⎭⎬⎫(2.42)With these values of A and B, the quadratic Eq. (2.38) gives the next approximation xi+1 xi+1=xi+2A−B±B2−4Ayi(2.43) Since Eq. (2.43) leads to inaccurate results, we take the equivalent form xi+1=xi−B±B2−4Ayi2yi(2.44) In Eq. (2.44), the sign in the denominator should be chosen so that the denominator will be largest in magnitude. With this choice, Eq. (2.44) gives the next approximation to the root.