ITP method

{{Short description|Root-finding algorithm}}

{{Multiple issues|

{{Primary sources|date=November 2024}}

{{more citations needed|date=January 2021}}

{{Notability|date=May 2024}}

}}

In numerical analysis, the ITP method (Interpolate Truncate and Project method) is the first root-finding algorithm that achieves the superlinear convergence of the secant method{{Cite book|last1=Argyros|first1=I. K.|last2=Hernández-Verón|first2=M. A.|last3=Rubio|first3=M. J.|chapter=On the Convergence of Secant-Like Methods|date=2019|title=Current Trends in Mathematical Analysis and Its Interdisciplinary Applications|chapter-url=http://springer.nl.go.kr/chapter/10.1007/978-3-030-15242-0_5|language=en|pages=141–183|doi=10.1007/978-3-030-15242-0_5|isbn=978-3-030-15241-3|s2cid=202156085}}{{Dead link|date=August 2024 |bot=InternetArchiveBot |fix-attempted=yes }} while retaining the optimal{{Cite journal|last=Sikorski|first=K.|date=1982-02-01|title=Bisection is optimal|url=https://doi.org/10.1007/BF01459080|journal=Numerische Mathematik|language=en|volume=40|issue=1|pages=111–117|doi=10.1007/BF01459080|s2cid=119952605|issn=0945-3245|url-access=subscription}} worst-case performance of the bisection method.{{Cite journal|last1=Oliveira|first1=I. F. D.|last2=Takahashi|first2=R. H. C.|date=2020-12-06|title=An Enhancement of the Bisection Method Average Performance Preserving Minmax Optimality|url=https://doi.org/10.1145/3423597|journal=ACM Transactions on Mathematical Software|volume=47|issue=1|pages=5:1–5:24|doi=10.1145/3423597|s2cid=230586635 |issn=0098-3500|url-access=subscription}} It is also the first method with guaranteed average performance strictly better than the bisection method under any continuous distribution. In practice it performs better than traditional interpolation and hybrid based strategies (Brent's Method, Ridders, Illinois), since it not only converges super-linearly over well behaved functions but also guarantees fast performance under ill-behaved functions where interpolations fail.

The ITP method follows the same structure of standard bracketing strategies that keeps track of upper and lower bounds for the location of the root; but it also keeps track of the region where worst-case performance is kept upper-bounded. As a bracketing strategy, in each iteration the ITP queries the value of the function on one point and discards the part of the interval between two points where the function value shares the same sign. The queried point is calculated with three steps: it interpolates finding the regula falsi estimate, then it perturbs/truncates the estimate (similar to {{section link|Regula falsi|Improvements in regula falsi}}) and then projects the perturbed estimate onto an interval in the neighbourhood of the bisection midpoint. The neighbourhood around the bisection point is calculated in each iteration in order to guarantee minmax optimality (Theorem 2.1 of ). The method depends on three hyper-parameters \kappa_1\in (0,\infty), \kappa_2 \in \left[1,1+\phi\right) and n_0\in[0,\infty) where \phi is the golden ratio \tfrac{1}{2}(1+\sqrt{5}) : the first two control the size of the truncation and the third is a slack variable that controls the size of the interval for the projection step.{{efn|1=For a more in-depth discussion of the hyper-parameters, see the documentation for [https://docs.rs/kurbo/0.8.1/kurbo/common/fn.solve_itp.html ITP in the kurbo library].}}

Root finding problem

Given a continuous function f defined from [a,b] to \mathbb{R} such that f(a)f(b)\leq 0, where at the cost of one query one can access the values of f(x) on any given x. And, given a pre-specified target precision \epsilon>0, a root-finding algorithm is designed to solve the following problem with the least amount of queries as possible:

Problem Definition: Find \hat{x} such that |\hat{x}-x^*|\leq \epsilon, where x^* satisfies f(x^*) = 0.

This problem is very common in numerical analysis, computer science and engineering; and, root-finding algorithms are the standard approach to solve it. Often, the root-finding procedure is called by more complex parent algorithms within a larger context, and, for this reason solving root problems efficiently is of extreme importance since an inefficient approach might come at a high computational cost when the larger context is taken into account. This is what the ITP method attempts to do by simultaneously exploiting interpolation guarantees as well as minmax optimal guarantees of the bisection method that terminates in at most n_{1/2}\equiv\lceil\log_2((b_0-a_0)/2\epsilon)\rceil iterations when initiated on an interval [a_0,b_0] .

The method

Given \kappa_1\in (0,\infty), \kappa_2 \in \left[1,1+\phi\right) , n_{1/2} \equiv \lceil\log_2((b_0-a_0)/2\epsilon)\rceil and n_0\in[0,\infty) where \phi is the golden ratio \tfrac{1}{2}(1+\sqrt{5}) , in each iteration j = 0,1,2\dots the ITP method calculates the point x_{\text{ITP}} following three steps:

File:ITPstep1.png

File:ITPstep2.png

File:ITPstep3.png

File:ITPall steps.png

  1. [Interpolation Step] Calculate the bisection and the regula falsi points: x_{1/2} \equiv \frac{a+b}{2} and x_f \equiv \frac{bf(a)-af(b)}{f(a)-f(b)} ;
  2. [Truncation Step] Perturb the estimator towards the center: x_t \equiv x_f+\sigma \delta where \sigma \equiv \text{sign}(x_{1/2}-x_f) and \delta \equiv \min\{\kappa_1|b-a|^{\kappa_2},|x_{1/2}-x_f|\} ;
  3. [Projection Step] Project the estimator to minmax interval: x_{\text{ITP}} \equiv x_{1/2} -\sigma \rho_k where \rho_k \equiv \min\left\{\epsilon 2^{n_{1/2}+n_0-j} - \frac{b-a}{2},|x_t-x_{1/2}|\right\} .

The value of the function f(x_{\text{ITP}}) on this point is queried, and the interval is then reduced to bracket the root by keeping the sub-interval with function values of opposite sign on each end.

= The algorithm =

The following algorithm (written in pseudocode) assumes the initial values of y_a and y_b are given and satisfy y_a<0 where y_a\equiv f(a) and y_b\equiv f(b) ; and, it returns an estimate \hat{x} that satisfies |\hat{x} - x^*|\leq \epsilon in at most n_{1/2}+n_0 function evaluations.

Input: a, b, \epsilon, \kappa_1, \kappa_2, n_0, f

Preprocessing: n_{1/2} = \lceil \log_2\tfrac{b-a}{2\epsilon}\rceil , n_{\max} = n_{1/2}+n_0 , and j = 0 ;

While ( b-a>2\epsilon )

Calculating Parameters:

x_{1/2} = \tfrac{a+b}{2} , r = \epsilon 2^{n_{\max} - j}-(b-a)/2 , \delta = \kappa_1(b-a)^{\kappa_2} ;

Interpolation:

x_f = \tfrac{y_ba-y_a b}{y_b-y_a} ;

Truncation:

\sigma = \text{sign}(x_{1/2}-x_f) ;

If \delta\leq|x_{1/2}-x_f| then x_t = x_f+\sigma \delta ,

Else x_t = x_{1/2} ;

Projection:

If |x_t-x_{1/2}|\leq r then x_{\text{ITP}} = x_t ,

Else x_{\text{ITP}} = x_{1/2}-\sigma r ;

Updating Interval:

y_{\text{ITP}} = f(x_{\text{ITP}}) ;

If y_{\text{ITP}}>0 then b = x_{ITP} and y_b = y_{\text{ITP}} ,

Elseif y_{\text{ITP}}<0 then a = x_{\text{ITP}} and y_a = y_{\text{ITP}} ,

Else a = x_{\text{ITP}} and b = x_{\text{ITP}} ;

j = j+1 ;

Output: \hat{x} = \tfrac{a+b}{2}

Example: Finding the root of a polynomial

Suppose that the ITP method is used to find a root of the polynomial f(x) = x^3 - x - 2 \,. Using \epsilon = 0.0005, \kappa_1 = 0.1, \kappa_2 = 2 and n_0 = 1 we find that:

class="wikitable"

!Iteration

!a_n

!b_n

!c_n

!f(c_n)

style="text-align: left;"

| style="text-align: right;" |1

|1

|2

|1.43333333333333

|-0.488629629629630

style="text-align: left;"

| style="text-align: right;" |2

|1.43333333333333

|2

|1.52713145056966

| style="text-align: right;" |0.0343383329048983

style="text-align: left;"

| style="text-align: right;" |3

|1.43333333333333

|1.52713145056966

|1.52009281150978

| style="text-align: right;"

0.00764147709265051
style="text-align: left;"

| style="text-align: right;" |4

|1.52009281150978

|1.52713145056966

|1.52137899116052

| style="text-align: right;"

4.25363464540141e-06
style="text-align: left;"

| style="text-align: right;" |5

|1.52137899116052

|1.52713145056966

|1.52138301273268

| style="text-align: right;" |1.96497878177659e-05

style="text-align: left;"

| style="text-align: right;" |6

|1.52137899116052

|1.52138301273268

| colspan="2" |← Stopping Criteria Satisfied

This example can be compared to {{section link|Bisection method|Example: Finding the root of a polynomial}}. The ITP method required less than half the number of iterations than the bisection to obtain a more precise estimate of the root with no cost on the minmax guarantees. Other methods might also attain a similar speed of convergence (such as Ridders, Brent etc.) but without the minmax guarantees given by the ITP method.

Analysis

The main advantage of the ITP method is that it is guaranteed to require no more iterations than the bisection method when n_0 = 0. And so its average performance is guaranteed to be better than the bisection method even when interpolation fails. Furthermore, if interpolations do not fail (smooth functions), then it is guaranteed to enjoy the high order of convergence as interpolation based methods.

= Worst case performance =

Because the ITP method projects the estimator onto the minmax interval with a n_0 slack, it will require at most n_{1/2}+n_0 iterations (Theorem 2.1 of ). This is minmax optimal like the bisection method when n_0 is chosen to be n_0 = 0.

= Average performance =

Because it does not take more than n_{1/2}+n_0 iterations, the average number of iterations will always be less than that of the bisection method for any distribution considered when n_0 = 0 (Corollary 2.2 of ).

= Asymptotic performance =

If the function f(x) is twice differentiable and the root x^* is simple, then the intervals produced by the ITP method converges to 0 with an order of convergence of \sqrt{\kappa_2} if n_0 \neq 0 or if n_0 = 0 and (b-a)/\epsilon is not a power of 2 with the term \tfrac{\epsilon 2^{n_{1/2}}}{b-a} not too close to zero (Theorem 2.3 of ).

Software

  • The itp{{Citation | last= Northrop | first= P. J. | title= itp: The Interpolate, Truncate, Project (ITP) Root-Finding Algorithm | year= 2023 | url= https://CRAN.R-project.org/package=itp}} contributed package in R.

See also

Notes

{{notelist}}

References

{{Reflist}}