Javascript required
Skip to content Skip to sidebar Skip to footer

How to Find the Inverse of a Quadratic

In numerical analysis, inverse quadratic interpolation is a root-finding algorithm, meaning that it is an algorithm for solving equations of the form f(x) = 0. The idea is to use quadratic interpolation to approximate the inverse of f. This algorithm is rarely used on its own, but it is important because it forms part of the popular Brent's method.

The method [edit]

The inverse quadratic interpolation algorithm is defined by the recurrence relation

x n + 1 = f n 1 f n ( f n 2 f n 1 ) ( f n 2 f n ) x n 2 + f n 2 f n ( f n 1 f n 2 ) ( f n 1 f n ) x n 1 {\displaystyle x_{n+1}={\frac {f_{n-1}f_{n}}{(f_{n-2}-f_{n-1})(f_{n-2}-f_{n})}}x_{n-2}+{\frac {f_{n-2}f_{n}}{(f_{n-1}-f_{n-2})(f_{n-1}-f_{n})}}x_{n-1}}
+ f n 2 f n 1 ( f n f n 2 ) ( f n f n 1 ) x n , {\displaystyle {}+{\frac {f_{n-2}f_{n-1}}{(f_{n}-f_{n-2})(f_{n}-f_{n-1})}}x_{n},}

where f k = f(x k ). As can be seen from the recurrence relation, this method requires three initial values, x 0, x 1 and x 2.

Explanation of the method [edit]

We use the three preceding iterates, x n−2, x n−1 and x n , with their function values, f n−2, f n−1 and f n . Applying the Lagrange interpolation formula to do quadratic interpolation on the inverse of f yields

f 1 ( y ) = ( y f n 1 ) ( y f n ) ( f n 2 f n 1 ) ( f n 2 f n ) x n 2 + ( y f n 2 ) ( y f n ) ( f n 1 f n 2 ) ( f n 1 f n ) x n 1 {\displaystyle f^{-1}(y)={\frac {(y-f_{n-1})(y-f_{n})}{(f_{n-2}-f_{n-1})(f_{n-2}-f_{n})}}x_{n-2}+{\frac {(y-f_{n-2})(y-f_{n})}{(f_{n-1}-f_{n-2})(f_{n-1}-f_{n})}}x_{n-1}}
+ ( y f n 2 ) ( y f n 1 ) ( f n f n 2 ) ( f n f n 1 ) x n . {\displaystyle {}+{\frac {(y-f_{n-2})(y-f_{n-1})}{(f_{n}-f_{n-2})(f_{n}-f_{n-1})}}x_{n}.}

We are looking for a root of f, so we substitute y = f(x) = 0 in the above equation and this results in the above recursion formula.

Behaviour [edit]

The asymptotic behaviour is very good: generally, the iterates x n converge fast to the root once they get close. However, performance is often quite poor if the initial values are not close to the actual root. For instance, if by any chance two of the function values f n−2, f n−1 and f n coincide, the algorithm fails completely. Thus, inverse quadratic interpolation is seldom used as a stand-alone algorithm.

The order of this convergence is approximately 1.84 as can be proved by Secant Method analysis.

Comparison with other root-finding methods [edit]

As noted in the introduction, inverse quadratic interpolation is used in Brent's method.

Inverse quadratic interpolation is also closely related to some other root-finding methods. Using linear interpolation instead of quadratic interpolation gives the secant method. Interpolating f instead of the inverse of f gives Muller's method.

See also [edit]

  • Successive parabolic interpolation is a related method that uses parabolas to find extrema rather than roots.

References [edit]

  • James F. Epperson, An introduction to numerical methods and analysis, pages 182-185, Wiley-Interscience, 2007. ISBN 978-0-470-04963-1

How to Find the Inverse of a Quadratic

Source: https://en.wikipedia.org/wiki/Inverse_quadratic_interpolation