Dynamics

Newton's method without a derivative

Replace Newton's tangent by the chord through the last two guesses and the method no longer needs a derivative — but it needs two starting values, so its basins live in a plane of pairs instead of on a line. The errors multiply instead of squaring, their logarithms add like Fibonacci numbers, and the digits gained grow by the golden ratio: 1, 3, 5, 9, 15, 25, 41, 67, 109.

Worth reading first: Where Newton's method goes instead · A cubic method that is Newton's in disguise.

Where Newton’s method goes instead ran the method from every starting point at once and coloured each point by the root it reached; a cubic method that is Newton’s in disguise added a second derivative and got Halley’s method, which cubes its error where Newton squares it. Both methods spend derivatives. Each step of Newton’s method evaluates the function and its slope at the current guess and follows the tangent line down to the axis, and a method that uses more derivatives converges faster per step and costs more per step.

The secant method goes the other way. It keeps no derivative at all. It remembers the last two guesses, draws the chord through the two points of the graph above them, and follows that chord down to the axis:

x2=x1−f(x1) x1−x0f(x1)−f(x0).x_2 = x_1 - f(x_1)\,\frac{x_1 - x_0}{f(x_1) - f(x_0)}.

The chord is a tangent made from finite differences, and the method is what Newton’s becomes when the slope is estimated rather than computed. Its ancestor, the rule of double false position, is in the Chinese Nine Chapters two thousand years ago. The cost of dropping the derivative is a second starting value, and the second starting value changes the geometry of the method completely. A Newton step is a map of the line to itself; a secant step is a map of pairs, (x0,x1)↦(x1,x2)(x_0, x_1) \mapsto (x_1, x_2), and its basins are regions of a plane.

Where the secant method goes, from every starting pair. x^3−x, 180×180 on [−2,2]²: to −1 10164, to 0 11954, to 1 10164, none 118.
Fig. 1 The secant method for x3−xx^3 - x from every pair of starting values in a 180×180180 \times 180 grid on [−2,2]2[-2, 2]^2, each pair shaded by the root it reaches. Along the dashed diagonal the two starting values coincide and the method becomes Newton’s.

A plane of starting pairs

The cubic x3−xx^3 - x has three roots, −1-1, 00 and 11, and the hero runs the secant method from each of 32,400 starting pairs and records where it ends, to within 10−1210^{-12}. The plane is shared out unevenly: 36.9% of the pairs reach 0, 31.4% reach each of ±1\pm 1 — the two shares equal because the cubic is odd, so the pair (x0,x1)(x_0, x_1) and the pair (−x0,−x1)(-x_0, -x_1) go to opposite roots — and 0.4% reach nothing, either because a chord comes out horizontal and the next step is undefined, or because the iterates run off to infinity.

The regions are large and their boundaries are not. Where two basins meet the boundary winds through the plane in tangled curves, and near them a starting pair that moves by a fraction of a grid square changes the root it reaches — the same sensitivity at the boundary that Newton’s method showed on its line, now spread along curves instead of concentrated at points. The basins are also not symmetric under swapping the two starting values: (x0,x1)(x_0, x_1) and (x1,x0)(x_1, x_0) draw the same chord, but the method remembers x1x_1 as the more recent guess and keeps it, so the next pair differs. The plane has a preferred direction, and the picture is not symmetric about its diagonal.

The diagonal itself is special. When x0=x1x_0 = x_1 the chord is undefined, but as x0x_0 approaches x1x_1 it approaches the tangent at x1x_1, and the secant step approaches the Newton step. Newton’s method is the limit of the secant method on the line x0=x1x_0 = x_1, and the line’s own basins — the intervals of starting points that Newton sends to each root — are the diagonal slice of the plane in the hero, seen at a resolution the plane’s grid cannot show.

Where a chord goes flat

The curves where a chord goes flat. cells failing at steps 1,2,3: 1752, 790, 630.
Fig. 2 The starting pairs at which a chord of the secant method for x3−xx^3 - x comes out horizontal: at the first step on the ellipse x02+x0x1+x12=1x_0^2 + x_0x_1 + x_1^2 = 1 (dashed), and at the second and third steps on the curves the method maps onto it.

Newton’s method fails where the tangent is horizontal, at the points where f′=0f' = 0 — for x3−xx^3 - x, at ±1/3\pm 1/\sqrt 3 — and then at the points that land there after one step, two steps, and so on. Those failures are isolated points on the line. The secant method fails where the chord is horizontal, where f(x0)=f(x1)f(x_0) = f(x_1) with x0≠x1x_0 \ne x_1, and for this cubic that is a curve. Subtracting,

x03−x0−(x13−x1)=(x0−x1)(x02+x0x1+x12−1),x_0^3 - x_0 - (x_1^3 - x_1) = (x_0 - x_1)(x_0^2 + x_0x_1 + x_1^2 - 1),

so apart from the diagonal the first chord is flat exactly on the ellipse x02+x0x1+x12=1x_0^2 + x_0x_1 + x_1^2 = 1, tilted along the line x0=−x1x_0 = -x_1. The figure marks the grid squares where the first chord is nearly flat, and they trace the ellipse drawn dashed over them.

The second step fails where the pair after one step lands on the ellipse, which is the ellipse’s preimage under the secant map: the blue curves, which leave the ellipse’s neighbourhood in four arcs reaching out to the corners of the square. The third step fails on the preimages of those, the green curves, and so on for ever. Each preimage is a curve that the map folds onto the one before, and the union of all of them is the skeleton along which the basins of the hero meet. Newton’s method has countably many bad points on its line; the secant method has countably many bad curves in its plane, which is what a map of two variables makes of the same failure.

Errors that multiply

Digits that grow by the golden ratio. secant digits 0,0,1,1,3,5,9,15,25,41,67,109,177,288,466,755,1222,1977; Newton digits 0,1,2,5,11,24,48,97,195,391,783,1567,2999; ratios 3.0000,1.6667,1.8000,1.6667,1.6667,1.6400,1.6341,1.6269,1.6239,1.6271,1.6181,1.6202,1.6185,1.6178.
Fig. 3 The correct decimal digits of 2\sqrt 2 after each evaluation of x2−2x^2 - 2, for the secant method from 1 and 2 (solid) and Newton’s method from 2 (dashed, two evaluations a step), every iterate carried to 3,000 digits.

Near a simple root rr the secant method converges fast, and the way it does so is the arithmetic heart of the method. Write ek=xk−re_k = x_k - r for the errors. Expanding ff about the root to second order and substituting into the secant formula, the first-order terms cancel and what remains is

e2≈C e1e0,C=f′′(r)2f′(r).e_2 \approx C\,e_1 e_0, \qquad C = \frac{f''(r)}{2f'(r)}.

Each error is the constant CC times the product of the two errors before it. Newton’s method has e1≈Ce02e_1 \approx C e_0^2, the square of one error; the secant method has the product of two different ones, because its chord is built from two points. Take logarithms and the product becomes a sum: the number of correct digits at each step is about the sum of the numbers at the two steps before, less a fixed amount from CC. That is the Fibonacci recurrence.

The figure runs the method on x2−2x^2 - 2 from the starting pair 1 and 2, carrying every iterate exactly to 3,000 decimal digits, and counts the correct digits of 2\sqrt 2 at each step: 0, 0, 1, 1, 3, 5, 9, 15, 25, 41, 67, 109, 177, 288, 466, 755, 1,222, 1,977. Each is close to the sum of the two before it, and within a few of twice a Fibonacci number less one — 2⋅55−1=1092 \cdot 55 - 1 = 109, 2⋅89−1=1772 \cdot 89 - 1 = 177 — the small drift coming from C=1/(22)C = 1/(2\sqrt 2), which costs about half a digit at every step. The ratios of successive counts settle on 1.6181.618, the golden ratio φ\varphi: the order of the secant method is φ\varphi, because the Fibonacci numbers grow by φ\varphi, which the rectangle that eats itself defined as the ratio that reproduces itself when a square is cut off.

A constant that does not move

Each error is a constant times the two before. x² − 2 near √2: 2:-0.4771 3:-0.5229 4:-0.4367 5:-0.4494 6:-0.4516 7:-0.4515 8:-0.4515 9:-0.4515 10:-0.4515 11:-0.4515 12:-0.4515 13:-0.4515 14:-0.4515 15:-0.4515 16:-0.4515 17:-0.4515 → log C -0.4515; x³ − 2 near ∛2: 2:-0.2157 3:-0.2366 4:-0.0604 5:-0.0899 6:-0.1015 7:-0.1003 8:-0.1003 9:-0.1003 10:-0.1003 11:-0.1003 12:-0.1003 13:-0.1003 14:-0.1003 15:-0.1003 16:-0.1003 17:-0.1003 18:-0.1003 → log C -0.1003; x³ − x near 1: 2:-0.0230 3:0.0617 4:0.1419 5:0.1690 6:0.1756 7:0.1761 8:0.1761 9:0.1761 10:0.1761 11:0.1761 12:0.1761 13:0.1761 14:0.1761 15:0.1761 16:0.1761 17:0.1761 → log C 0.1761
Fig. 4 For x2−2x^2 - 2, x3−2x^3 - 2 and x3−xx^3 - x, each error divided by the product of the two before it, on a logarithmic scale, against the constant f′′/2f′f''/2f' at the root (dashed).

The relation e2≈Ce1e0e_2 \approx C e_1 e_0 is a prediction with a number in it, and the figure tests the number. For three functions it runs the secant method in 3,000-digit arithmetic and divides each error by the product of the two before: for x2−2x^2 - 2 near 2\sqrt 2, where C=1/(22)=0.3536C = 1/(2\sqrt 2) = 0.3536; for x3−2x^3 - 2 near 23\sqrt[3]2, where C=2−1/3=0.7937C = 2^{-1/3} = 0.7937; and for x3−xx^3 - x near 1, where f′(1)=2f'(1) = 2 and f′′(1)=6f''(1) = 6 give C=1.5C = 1.5. Each ratio settles on its level within four or five steps and then holds it, to three decimals, for a dozen steps more, until the errors pass the 3,000 digits carried.

The constancy is what makes the golden ratio exact. If the errors satisfied e2=Ce1e0e_2 = C e_1 e_0 exactly, then log⁡ek\log e_k would satisfy a linear recurrence whose solutions grow like φk\varphi^k — the characteristic equation is λ2=λ+1\lambda^2 = \lambda + 1 — and the order would be φ\varphi precisely. The approximation is only second order, but the corrections shrink as fast as the errors do, and the measured ratio of 1.6178 after fourteen steps is the golden ratio to four places. The constant CC is the same one that governs Newton’s method, whose error is Ce2C e^2: both methods see the same curvature of the function at the root, and differ only in which two errors they multiply.

Cheaper per digit than Newton

How fast the staircase arrives quoted the order of the secant method as the golden ratio and noted, without deriving it, that it can beat Newton’s method in practice. The digits figure shows why, by counting evaluations rather than steps. Newton’s method squares its error at each step, doubling its correct digits — 1, 2, 5, 11, 24, 48, 97, 195, 391, 783, 1,567 in the figure — but each step evaluates both ff and f′f'. The secant method multiplies its digits by φ\varphi per step and each step evaluates ff once, since the second point of the chord is the one evaluated the step before.

Per evaluation, then, Newton’s method multiplies its digits by 2≈1.414\sqrt 2 \approx 1.414 and the secant method by φ≈1.618\varphi \approx 1.618. Alexander Ostrowski called this the efficiency index, the order raised to one over the number of evaluations, and by it the secant method wins whenever a derivative costs about as much as the function itself. In the figure the secant method has 1,977 correct digits after seventeen evaluations, while Newton’s method, after eighteen, has 391. Newton’s method catches up only if the derivative is much cheaper than the function — when, for example, ff and f′f' share most of their computation — and a method that uses Halley’s second derivative, with order 3 for three evaluations, has efficiency 31/3≈1.4423^{1/3} \approx 1.442, between the two.

Newton’s line inside the secant’s plane

Newton's line as one slice of the secant plane. h=0.01: agrees 0.9464; h=0.1: agrees 0.9400; h=0.5: agrees 0.8200; h=1: agrees 0.5914
Fig. 5 Newton’s method for x3−xx^3 - x from every point of [−2,2][-2, 2] (top row), and the secant method from the pairs (x,x+h)(x, x + h) for hh = 0.01, 0.1, 0.5 and 1, each point shaded by the root reached.

The last figure makes the diagonal relation visible by taking slices of the plane parallel to it. The top row is Newton’s method on the line, each starting point shaded by the root it reaches: three long intervals around the three roots, separated by narrow zones near ±0.45\pm 0.45 where the colours alternate rapidly, the cubic version of the chaos on the line between two roots. Below it, the secant method is started from the pairs (x,x+h)(x, x + h), close to the diagonal when hh is small.

At h=0.01h = 0.01 the secant method agrees with Newton at 94.6% of the starting points, the disagreements concentrated in the narrow zones where Newton’s own basins are finely mixed and any perturbation changes the outcome. At h=0.1h = 0.1 it agrees at 94.0%, at h=0.5h = 0.5 at 82.0%, and at h=1h = 1 at only 59.1%: the slices move off the diagonal into the parts of the plane where the basins have their own shapes, unrelated to Newton’s. The plane contains Newton’s line, and the farther from that line the starting pair, the less the secant method remembers that it began as an approximation to Newton’s.

Keeping the root bracketed, and what it costs

The secant method’s speed comes with a hazard the figures make plain: nothing keeps its iterates near the root. The chord through two points on the same side of the root can point anywhere, and the hero’s blank pairs and long excursions are what that freedom costs. The older rule, false position — regula falsi — removes the hazard by insisting that the two points always straddle the root, one where ff is positive and one where it is negative, and replacing whichever has the same sign as the new point. The root is then trapped in a shrinking interval for ever, as in bisection.

The price is the speed. For a function that bends the same way across the bracket, one end of the interval never moves: every new point lands on the same side, the other end stays where it started, and every chord is drawn from that fixed, distant point. The method then converges only linearly, gaining a fixed fraction of a digit at each step, because the product e1e0e_1 e_0 in the secant relation now has one factor stuck at a constant. Keeping the bracket throws away exactly the multiplication of two shrinking errors that produced the Fibonacci recurrence.

The repair used in practice is a small cheat. The Illinois method halves the stored function value at the stuck end whenever it has been kept twice in a row, which tilts the next chord towards the far side and forces the stuck end to move. That restores superlinear convergence, with order 31/3≈1.4423^{1/3} \approx 1.442 per evaluation, while keeping the bracket. Between bisection’s guarantee and the secant method’s golden ratio lies a whole family of compromises, and Brent’s method, the one most root-finding libraries use, switches among bisection, secant steps and a quadratic version of them according to how the last steps went. All of them are attempts to keep the secant method’s multiplication of errors without its excursions into the blank parts of the plane.

Why a map of pairs is harder

The secant map is a map of the plane, and the small Mandelbrot sets among the cubics do not come with it. For Newton’s method on a polynomial, the dynamics is controlled by the critical points of the Newton map, and a single free critical point decides a whole family’s behaviour. A map of two variables has no critical points in that sense; its folding happens along curves, the curves where its derivative matrix is singular, and the theory that explains Newton’s basins through one point’s orbit has no direct counterpart. What is known about the secant map’s dynamics on the complex pairs — a map of C2\mathbb{C}^2, a four-dimensional space — is recent and partial; Eric Bedford and Pierre Frigge began describing it as a dynamical system in 2015, starting with quadratic polynomials, and the cubic case is largely unexplored.

The question an area that never finishes asked of Newton’s method — whether the set of starting points that never reach a root has positive area — becomes, for the secant method, a question about a set of pairs in the plane. For real cubics the hero suggests that set is small, 0.4% of the grid, but a grid cannot distinguish a thin set of positive area from a union of curves of area nought, and nobody has proved which it is.

What the computation establishes

The basins are computed from every grid pair with an exact test of arrival at a root and a cap of eighty steps, and they are only as fine as the grid; the curves of flat chords are drawn from a tolerance on the chord’s slope, and the ellipse is derived algebraically and drawn exactly over them. The digit counts and error ratios are exact up to the 3,000 digits carried, which is why each run stops when its errors pass that precision — the last step of each, where the arithmetic runs out, is left off the plots.

The pictures do not prove that the order is the golden ratio; the expansion of the secant formula about a simple root does, and the figures confirm that the constant in that expansion is what the expansion says. Nor do they show what happens at a multiple root, where a double root halves the error for Newton and the secant method slows to linear convergence too, with a ratio of 1/φ1/\varphi per step rather than 12\tfrac12 — a fact the same Fibonacci argument predicts and none of these functions tests.

Still open: the secant map in two complex variables

For Newton’s method the dynamics on the whole complex plane is understood: the basins, their boundaries, the role of the critical points, and how to choose starting points that are guaranteed to find every root. For the secant method the analogous questions live in a space of two complex variables, and most are open. Does every root have a basin whose boundary is a fractal of the same kind as Newton’s, and what is its dimension? Can the secant map have attracting cycles that trap open sets of starting pairs, as Newton’s map can for some cubics? Is there a finite set of starting pairs, as there is a finite set of starting points for Newton’s method, from which every root of every polynomial of a given degree is found?

There is also a practical question with no complete answer. Codes that find roots in practice combine the secant method with bisection, falling back on the slow, safe method whenever the fast one strays — Brent’s method is the standard — and the guarantees for such hybrids are worst-case. How often the fallback is actually needed, for a random starting bracket and a random function in some natural family, depends on exactly the geometry of the basins in the plane of pairs that the hero shows, and nobody has measured it in general.

A tangent replaced by a chord

The secant method follows the chord through its last two guesses instead of Newton’s tangent, needs no derivative, and acts on pairs: its basins for x3−xx^3 - x are regions of a plane whose diagonal is Newton’s line, meeting along curves where a chord goes flat — at the first step exactly the ellipse x02+x0x1+x12=1x_0^2 + x_0x_1 + x_1^2 = 1. Near a root each error is the constant f′′/2f′f''/2f' times the product of the two before, so the correct digits add like Fibonacci numbers — 1, 3, 5, 9, 15, 25, 41, 67, 109 for 2\sqrt 2 — and grow by the golden ratio each step. Per evaluation of the function that beats Newton’s 2\sqrt 2, and a method that throws away the derivative ends up the faster of the two.

What links here

Computed from the collection, not written here: the essays that point at this one.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A dashed tag is an object no other essay names yet.

Basin of attractionConvergence rateExact arithmeticFibonacci numbersGolden ratioNewtons method