Secant method: Difference between revisions

From Calculus
No edit summary
No edit summary
Line 10: Line 10:
<math>x_n = \frac{x_{n-2}f(x_{n-1}) - x_{n-1}f(x_{n-2})}{f(x_{n-1}) - f(x_{n-2})}</math>
<math>x_n = \frac{x_{n-2}f(x_{n-1}) - x_{n-1}f(x_{n-2})}{f(x_{n-1}) - f(x_{n-2})}</math>


Geometrically, this can be interpreted as follows: we make a line through the points <math>(x_{n-2},f(x_[n-2})</math> and <math>(x_{n-1},f(x_{n-1})</math> in the <math>(x,f(x))</math>-plane, and define <math>x_n</math> as the <math>x</math>-coordinate of the intersection of this line with the <math>x</math>-axis.
Geometrically, this can be interpreted as follows: we make a line through the points <math>(x_{n-2},f(x_{n-2})</math> and <math>(x_{n-1},f(x_{n-1})</math> in the <math>(x,f(x))</math>-plane, and define <math>x_n</math> as the <math>x</math>-coordinate of the intersection of this line with the <math>x</math>-axis.

Revision as of 01:45, 24 April 2014

This article is about a root-finding algorithm. See all root-finding algorithms

Definition

The secant method is a root-finding algorithm that makes successive point estimates for the value of a root of a continuous function. In general, the secant method is not guaranteed to converge towards a root, but under some conditions, it does. A slight variant of this method, called the false position method, functions very similarly to the bisection method.

=Iterative process

The secant method requires two initial guesses for the root, say x0 and x1. For n≥2, we define xn as the following affine combination of the previous two guesses xn−1 and xn−2

xn=xn−2f(xn−1)−xn−1f(xn−2)f(xn−1)−f(xn−2)

Geometrically, this can be interpreted as follows: we make a line through the points (xn−2,f(xn−2) and (xn−1,f(xn−1) in the (x,f(x))-plane, and define xn as the x-coordinate of the intersection of this line with the x-axis.