Math 2.0

Numerical analysis Nonlinear equations Theorem

Secant method

Builds on Root-finding algorithmContinuously differentiable functionSecond derivativeDerivative

Statement

Let II be an open interval, let f ⁣:I→ℝf \colon I \to \R be twice continuously differentiable, and let r∈Ir \in I with f(r)=0f(r) = 0 and derivative f′(r)≠0f'(r) \ne 0. The secant method starts from two points x0≠x1x_0 \ne x_1 in II and sets xk+1=xk−f(xk) xk−xk−1f(xk)−f(xk−1),k≥1,x_{k+1} = x_k - f(x_k) \, \frac{x_k - x_{k-1}}{f(x_k) - f(x_{k-1})}, \qquad k \ge 1, stopping if f(xk)=0f(x_k) = 0. Then there is δ>0\delta > 0 with J=[r−δ,r+δ]⊆IJ = [r - \delta, r + \delta] \subseteq I such that for all distinct x0,x1∈Jx_0, x_1 \in J:

  1. all iterates are defined and lie in JJ, and xk→rx_k \to r;
  2. the errors ek=xk−re_k = x_k - r satisfy ek+1=f′′(ξk)2f′(ηk) ek ek−1e_{k+1} = \frac{f''(\xi_k)}{2 f'(\eta_k)} \, e_k \, e_{k-1} for some points ξk,ηk\xi_k, \eta_k in the smallest interval containing xk−1x_{k-1}, xkx_k and rr.

Remarks

The error formula comes from writing xk+1−rx_{k+1} - r with divided differences: ek+1=ekek−1f[xk−1,xk,r]/f[xk−1,xk]e_{k+1} = e_k e_{k-1} f[x_{k-1}, x_k, r] / f[x_{k-1}, x_k], and the mean value theorem for divided differences turns these into f′′(ξk)/2f''(\xi_k)/2 and f′(ηk)f'(\eta_k). Let MM be the maximum of ∣f′′∣\abs{f''} over JJ divided by twice the minimum of ∣f′∣\abs{f'} over JJ. Choose δ\delta so that f′≠0f' \ne 0 on JJ and Mδ<1M \delta < 1; then ∣ek+1∣≤Mδ∣ek∣\abs{e_{k+1}} \le M \delta \abs{e_k}, which gives clause 1. Example: for f(x)=x2−2f(x) = x^2 - 2, x0=1x_0 = 1, x1=2x_1 = 2, the iterates are 4/34/3, 1.41.4, 1.414631.41463, 1.414211.41421, approaching 2\sqrt{2}. The condition f′(r)≠0f'(r) \ne 0 matters. At a double zero such as that of f(x)=x2f(x) = x^2, the method still converges from nearby points on the same side of 00, but only linearly, with ratio tending to (5−1)/2(\sqrt{5} - 1)/2. Far from a zero the method can fail, for example when f(xk)=f(xk−1)f(x_k) = f(x_{k-1}) and the step is undefined.

Going deeper

For a student

The error recursion ek+1≈Cekek−1e_{k+1} \approx C e_k e_{k-1} with C=f′′(r)/(2f′(r))C = f''(r)/(2f'(r)) is the source of the superlinear convergence of the secant method, with order the golden ratio (1+5)/2≈1.618(1 + \sqrt{5})/2 \approx 1.618. Newton's method has order 22 but needs f′f' at each step; per function evaluation, the secant method is often faster. Keeping a bracket instead of the last two points gives regula falsi, which is safe but can be slow.

Reading path

To understand this page from the ground up, read these 5 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Continuously differentiable function concept
  2. Derivative concept
  3. Root-finding algorithm concept
  4. Second derivative concept
  5. Secant method statement

Where this leads

5 pages build on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Secant_method
About this page
Tag9ZC177PVPC
URIm2://9ZC177PVPC
Kindstatement, theorem
WritingW0 stub
MSC65H05
StatusThis copy of the site has no build data. Run m2 status 9ZC177PVPC.
AboutRoot-finding algorithm
UsesRoot-finding algorithm, Continuously differentiable function, Second derivative, Derivative
Same as

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

Used by

Results about this