# Secant and Bisection Method

What would be the example of a function for which a Secant Method fails but Bisection Method converges (to the root). In particular, if we are checking the interval $[a,b]$, then starting points for the Secant Method are $a$ and $b$.

• Both methods converge. Do they not? I took starting points for the Secant Method as (0,-1) and (1,1). Feb 27, 2018 at 23:26
• it is the same as (0,-1) and (1,1) (for the Secant Method). Bisection converges for sure, since the function is continuous and changes sign in the interval [0,1]. But, Secant Method converges as well, there is no reason why it shouldn't. I don't see how it diverges with these starting points. Feb 27, 2018 at 23:43

• $f(a)$ and $f(b)$ have opposite signs and
• $f'(\xi) = 0$ for a $\xi \in [a,b]$
The first point ensures that the bisection methods converges. Whereas if $f'(\xi)=0$, the secant method can fail. See these lecture notes (page 101) for an example.
• Do you mean $f'(a)$ or $f'(r)$?
• I mean $f'(a)=0$ (or $f'(b)=0$). Functions where the derivative vanishes at the border can cause problems for the secant method. But any $f'(y)=0$ for $y \in [a,b]$ can cause problems. Feb 28, 2018 at 16:03
• Look at the figure from the lectures notes for example. There we have $f'(x_0)=0$, which in this case causes the secant method to go into the opposite direction of where the root is Feb 28, 2018 at 16:07