In
numerical analysis
Numerical analysis is the study of algorithms that use numerical approximation (as opposed to symbolic manipulations) for the problems of mathematical analysis (as distinguished from discrete mathematics). It is the study of numerical methods th ...
, the secant method is a
root-finding algorithm that uses a succession of
roots of
secant lines to better approximate a root of a
function ''f''. The secant method can be thought of as a
finite-difference
A finite difference is a mathematical expression of the form . If a finite difference is divided by , one gets a difference quotient. The approximation of derivatives by finite differences plays a central role in finite difference methods for the ...
approximation of
Newton's method
In numerical analysis, Newton's method, also known as the Newton–Raphson method, named after Isaac Newton and Joseph Raphson, is a root-finding algorithm which produces successively better approximations to the roots (or zeroes) of a real ...
. However, the secant method predates Newton's method by over 3000 years.
The method
For finding a zero of a function , the secant method is defined by the
recurrence relation.
:
As can be seen from this formula, two initial values and are required. Ideally, they should be chosen close to the desired zero.
Derivation of the method
Starting with initial values and , we construct a line through the points and , as shown in the picture above. In slope–intercept form, the equation of this line is
:
The root of this linear function, that is the value of such that is
:
We then use this new value of as and repeat the process, using and instead of and . We continue this process, solving for , , etc., until we reach a sufficiently high level of precision (a sufficiently small difference between and ):
:
Convergence
The iterates
of the secant method converge to a root of
is,if the initial values
and
are sufficiently close to the root. The
order of convergence is "φ", where
:
is the
golden ratio
In mathematics, two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of the two quantities. Expressed algebraically, for quantities a and b with a > b > 0,
where the Greek letter phi ( ...
. In particular, the convergence is super linear, but not quite
quadratic
In mathematics, the term quadratic describes something that pertains to squares, to the operation of squaring, to terms of the second degree, or equations or formulas that involve such terms. ''Quadratus'' is Latin for ''square''.
Mathematics ...
.
This result only holds under some technical conditions, namely that
be twice continuously differentiable and the root in question be simple (i.e., with multiplicity 1).
If the initial values are not close enough to the root, then there is no guarantee that the secant method converges. There is no general definition of "close enough", but the criterion has to do with how "wiggly" the function is on the interval