The Regula-Falsi method can be considered a hybrid of the Bisection method with the Secant method.
The formula for computing the next iteration with the secant method is
In regula-falsi method, the next point is
$$c = b - f(b)\frac{b-a}{f(b)-f(a)}=\frac{b f(b)-b f(a)-b f(b)+a f(b)}{f(b)-f(a)}=\frac{a\,f(b)-b\,f(a)}{f(b)-f(a)}$$
- Given $a_1=a$, $b_1=b$.
- For $k=1,2,\ldots,\mathrm{MaxNumIter}$
- Compute the point $x_k=\dfrac{a_k\,f(b_k)-b_k\,f(a_k)}{f(b_k)-f(a_k)}$.
- If the point $x_k$ meets stopping conditions, stop.
- Else,
- if $f(a_k)f(x_k)<0$ then:
$ a_{k+1}=a_{k},$ $ b_{k+1}=x_k,$
- else, if $f(x_k)f(b_k)<0$ then:
$ a_{k+1}=x_{k},$ $ b_{k+1}=b_k.$
- else:
stop.
Approximate, using the Regula-Falsi method, $r=\sqrt{3}.$ Use as initial interval $[1,2].$ Perform three iterations. Compute the residual. Give an error bound for the approximation. Is it a good error bound? Why?
The equation is
$$x=\sqrt{3} \quad \Rightarrow \quad x^2=3 \quad \Rightarrow \quad x^2-3=0$$And the function $f(x)=x^2-3$
The sequence generated by Regula-Falsi uses the formula
$$x_k=\dfrac{a_k\,f(b_k)-b_k\,f(a_k)}{f(b_k)-f(a_k)}$$Iteration 1
The interval is $[1,2]$ and the next point is
$$c = \frac{a\,f(b)-b\,f(a)}{f(b)-f(a)}= \frac{1(2^2-3)-2\,(1^2-3)}{(2^2-3)-(1^2-3)}=\frac{1+4}{1+2}= \frac{5}{3}=1.666667$$As the signs of $f(1.666667)=-0.22$ and $f(2)=1$ are different, the next interval is $[1.666667,2]$.
Iteración 2
The interval is $[1.666667,2]$ and the next point is
$$c = \frac{1.666667(2^2-3)-2\,(1.666667^2-3)}{(2^2-3)-(1.666667^2-3)}=1.727273$$As the signs of $f(1.727273)=-0.02$ and $f(2)=1$ are different, the next interval is $[1.727273,2]$.
Iteración 3
The interval is $[1.727273,2]$ and the next point is
$$c = \frac{1.727273(2^2-3)-2\,(1.727273^2-3)}{(2^2-3)-(1.727273^2-3)}=1.731707$$The value of the function at the root is zero. The value of the function in the approximation is called residual and, if it is a good approximation, it is a small
Also, the residual in step $k$ is known, while the error is unknown (we need the exact solution, which is what we are looking for).
Como $\alpha= 1.732051$ el error absoluto es
In the table, we have calculated an error boundary. This, as in the Bisection method, is given by the length of the last interval. But in the case of Regula-Falsi, it is not very useful because, in many cases (like this one) the length of the interval does not decrease significantly as we approach the zero because the method creates a sequence that, from a certain point, approaches the zero always from the left or always from the right.
Thus, the final boundary is approximately 0.28, which is very different from the 0.0003 error and, therefore, does not provide relevant information.
Taking into account that the zero we are looking for is $\alpha= 1.732051,$ let's compare the three methods that we have used to solve this problem
In this case, we have obtained the same results with Newton's and Secant methods. Regula-Falsi is only slightly worse.