5.5 KB · commit a9602da
This is the oldest method for finding the real root of a nonlinear equation f(x)=0 and closely resembles the bisection method. In this method, also known as regula–falsi or the method of chords, we choose two points a and b such that f(a) and f(b) are of opposite signs. Hence, a root must lie in between these points. Now, the equation of the chord joining the two points [a,f(a)] and [b,f(b)] is given by x−ay−f(a)=b−af(b)−f(a).(2.6) The method consists in replacing the part of the curve between the points [a,f(a)] and [b,f(b)] by means of the chord joining these points, and taking the point of intersection of the chord with the x-axis as an approximation to the root. The point of intersection in the present case is obtained by putting y=0 in Eq. (2.6). Thus, we obtain x1=a−f(b)−f(a)f(a)(b−a)=f(b)−f(a)af(b)−bf(a),(2.7) which is the first approximation to the root of f(x)=0. If now f(x1) and f(a) are of opposite signs, then the root lies between a and x1, and we replace b by x1 in Eq. (2.7), and obtain the next approximation. Otherwise, we replace a by x1 and generate the next approximation. The procedure is repeated till the root is obtained to the desired accuracy. Figure 2.2 gives a graphical representation of the method. The error criterion Eq. (2.5) can be used in this case also.
Figure 2.2 — Method of false position.
x1=16−(−1)2(16)−3(−1)=1735=2.058823529. Now, f(x1)=−0.390799917 and hence the root lies between 2.058823529 and 3.0. Using formula (2.7), we obtain x2=16.3907999172.058823529(16)−3(−0.390799917)=2.08126366. Since f(x2)=−0.147204057, it follows that the root lies between 2.08126366 and 3.0. Hence, we have x3=16.1472040572.08126366(16)−3(−0.147204057)=2.089639211. Proceeding in this way, we obtain successively:
x4x6=2.092739575,=2.094305452,x5x7=2.09388371,=2.094460846,…The correct value is 2.0945…, so that x7 is correct to five significant figures. ◀
Hence
x1=f(b)−f(a)af(b)−bf(a)=0.3979+1.47713(0.3979)−4(−1.4771)=1.87507.1021=3.7878.Therefore, the root lies between 3 and 3.7878. Now, we take a=3 and b=3.7878. Then, f(b)=2(3.7878)−log103.7878−7=−0.002787 Hence,
x2=−0.002787+1.47713(−0.002787)−3.7878(−1.4771)=3.7893,and
f(x2)=2(3.7893)−log10(3.7893)−7=0.000041,which shows that x=3.789 is the root correct to three decimal places. ◀
Hence x3=1.0389190(0.038919)−0.39636(−1)=0.381512, and f(x3)=0.016934 Taking a=0 and b=0.381512, we obtain x4=1.0169340(0.016934)−0.381512(−1)=0.375159, and f(x4)=0.0071873 Proceeding as above, we obtain
x5x7=0.37248,=0.37089,x6x8=0.37136,=0.370697It follows that the required root is 0.371, correct to three decimal places. ◀