If bisection is a methodical, cautious explorer and general fixed-point iteration is a versatile workhorse, Newton’s method (or the Newton-Raphson method) is the Formula 1 racer of numerical analysis.

In the previous note on fixed-point iteration, we proved that an iteration sequence xn+1=g(xn)x_{n+1} = g(x_n) converges linearly whenever the local derivative satisfies ∣g′(x∗)∣<1|g'(x^*)| < 1. This discovery prompts a bold mathematical question: can we deliberately design an iteration map g(x)g(x) whose derivative vanishes completely at the root, g′(x∗)=0g'(x^*) = 0?

Forcing g′(x∗)=0g'(x^*) = 0 annihilates the first-order error term in Taylor expansion. The resulting sequence does not merely shrink its error by a constant factor per step; it squares the error:

∣en+1∣≈C∣en∣2.|e_{n+1}| \approx C |e_n|^2.

This is quadratic convergence: an approximation with 2 correct decimal digits jumps to 4, then 8, then 16 correct digits in just three iterations! This optimal fixed-point architecture is precisely Newton’s method.

This note develops Newton’s method across three unified viewpoints:

  1. Geometric: Following the local tangent line to its xx-intercept;
  2. Taylor expansion: Truncating second-order curvature terms;
  3. Contraction analysis: Verifying local contraction and quadratic error decay on simple roots.

We will analyze both its extraordinary speed near simple roots and its classic failure modes (zero derivatives, periodic cycles, inflection traps), concluding with its multidimensional generalization via the Jacobian matrix.

From the tangent line

The core intuition of differential calculus is that smooth curves look like straight lines when viewed through a microscope. Newton’s method takes this local linear lens and turns it into an algorithmic engine.

Let ff be differentiable and suppose that xnx_n is the current approximation to a root. The tangent line to the graph of ff at (xn,f(xn))(x_n, f(x_n)) is

y=f(xn)+f′(xn)(x−xn).y = f(x_n) + f'(x_n)(x - x_n).

The next approximation xn+1x_{n+1} is the exact intersection of this tangent line with the xx-axis. Setting y=0y = 0 and solving for xx immediately gives

xn+1=xn−f(xn)f′(xn),f′(xn)≠0.x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}, \qquad f'(x_n) \neq 0.

The same update rule emerges from a second-order Taylor expansion about xnx_n, evaluated at an unknown exact root x∗x^*:

0=f(x∗)=f(xn)+f′(xn)(x∗−xn)+Rn,Rn=12f′′(ξn)(x∗−xn)2.0 = f(x^*) = f(x_n) + f'(x_n)(x^* - x_n) + R_n, \qquad R_n = \frac{1}{2} f''(\xi_n)(x^*-x_n)^2.

The remainder RnR_n is exact: it represents the nonlinear curvature that the tangent model discards, and it is quadratic in the current error (x∗−xn)(x^* - x_n). Newton’s method temporarily drops RnR_n and chooses xn+1x_{n+1} to be the exact zero of the affine model Mn(x):=f(xn)+f′(xn)(x−xn)M_n(x) := f(x_n) + f'(x_n)(x-x_n). If ff were strictly linear, f′′=0f'' = 0, so Rn=0R_n = 0 and a single step would reach the root perfectly.

DefinitionNewton iteration

Given an initial value x0x_0, Newton’s method generates the sequence

xn+1=xn−f(xn)f′(xn)x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}

whenever the required derivative value f′(xn)f'(x_n) is non-zero.

ExampleOne Newton step for a quadratic

For f(x)=x2−2f(x) = x^2 - 2, the Newton map is

gN(x)=x−x2−22x=12(x+2x),x≠0.g_N(x) = x - \frac{x^2-2}{2x} = \frac{1}{2}\Bigl(x + \frac{2}{x}\Bigr), \qquad x \neq 0.

Starting from x0=3/2x_0 = 3/2 gives x1=17/12x_1 = 17/12. This calculation demonstrates the update rule only. A convergence claim still requires hypotheses and a proof.

This interactive figure needs JavaScript.

Define the Newton map gN(x)=x−f(x)/f′(x)g_N(x) = x - f(x)/f'(x). Then xn+1=gN(xn)x_{n+1} = g_N(x_n). At a point where f′(x)≠0f'(x) \neq 0,

gN(x)=x⟺f(x)=0.g_N(x) = x \quad\Longleftrightarrow\quad f(x) = 0.

Roots of ff are fixed points of gNg_N wherever the map is defined. The condition f′(x)≠0f'(x) \neq 0 is needed both for the update and for this equivalence. Algebraic equivalence does not prove that an iteration converges.

Newton tangent and bisection bracket. Newton follows a local tangent to its zero, while bisection retains a sign-changing bracket.

Newton tangent and bisection bracket. Newton follows a local tangent to its zero, while bisection retains a sign-changing bracket.

Newton follows a local tangent to its zero, while bisection retains a sign-changing bracket.

Local convergence

TheoremLocal contraction theorem

Let gg be continuous on the closed interval [a,b][a,b], differentiable on its interior, and suppose that g([a,b])⊆[a,b]g([a,b]) \subseteq [a,b] and there is a constant 0≤L<10 \le L < 1 such that ∣g′(x)∣≤L|g'(x)| \le L for every interior point. Then gg has a unique fixed point in [a,b][a,b], and for every x0∈[a,b]x_0 \in [a,b] the iteration xn+1=g(xn)x_{n+1} = g(x_n) remains in [a,b][a,b] and converges to that fixed point.

A complete proof is given in the closed-interval fixed-point theorem. Its Lipschitz hypothesis follows here from the derivative bound and the mean value theorem, so all hypotheses match.

The derivative bound gives the contraction estimate through the Mean Value Theorem. The self-map keeps all iterates in the region where that estimate is available.

TheoremLocal convergence of Newton's method

Let f∈C2[a,b]f \in C^2[a,b], and let x∗∈(a,b)x^* \in (a,b) be a simple root, meaning f(x∗)=0f(x^*) = 0 and f′(x∗)≠0f'(x^*) \neq 0. Then there exists δ>0\delta > 0 such that, for every initial approximation x0∈[x∗−δ,x∗+δ]x_0 \in [x^*-\delta, x^*+\delta], Newton’s method generates a well-defined sequence that converges to x∗x^*.

The existence of the root is an assumption: x∗x^* is given. Once the contraction and self-map conditions are established, the local contraction theorem implies that gNg_N possesses a unique fixed point in [x∗−δ,x∗+δ][x^*-\delta, x^*+\delta]. Because x∗x^* is already a fixed point, that unique fixed point must be x∗x^*. The function may possess other roots outside this local interval.

The convergence proof relies on two standard continuity lemmas.

LemmaNon-vanishing near a nonzero value

Let h ⁣:[a,b]→Rh \colon [a,b] \to \mathbb{R} be continuous at p∈(a,b)p \in (a,b). If h(p)≠0h(p) \neq 0, then there exists δ>0\delta > 0 such that [p−δ,p+δ]⊆[a,b][p-\delta, p+\delta] \subseteq [a,b] and h(x)≠0h(x) \neq 0 for every xx in that interval.

Proof

Set ε=∣h(p)∣/2>0\varepsilon = |h(p)|/2 > 0. Continuity at pp gives ρ>0\rho > 0 such that ∣x−p∣<ρ|x-p| < \rho implies ∣h(x)−h(p)∣<∣h(p)∣/2|h(x)-h(p)| < |h(p)|/2. Because p∈(a,b)p \in (a,b), the number δ=12min⁡(ρ,p−a,b−p)\delta = \tfrac{1}{2}\min(\rho, p-a, b-p) is positive and satisfies [p−δ,p+δ]⊆[a,b][p-\delta,p+\delta] \subseteq [a,b] together with δ<ρ\delta < \rho. If xx lies in that interval, the reverse triangle inequality gives ∣h(x)∣≥∣h(p)∣−∣h(x)−h(p)∣>∣h(p)∣/2>0|h(x)| \ge |h(p)| - |h(x)-h(p)| > |h(p)|/2 > 0.

LemmaSmall values near a zero

Let h ⁣:[a,b]→Rh \colon [a,b] \to \mathbb{R} be continuous at p∈(a,b)p \in (a,b) and suppose h(p)=0h(p) = 0. Then, for every K>0K > 0, there exists δ>0\delta > 0 such that [p−δ,p+δ]⊆[a,b][p-\delta,p+\delta] \subseteq [a,b] and ∣h(x)∣≤K|h(x)| \le K throughout that interval.

Proof

Fix K>0K > 0. Continuity with ε=K\varepsilon = K gives ρ>0\rho > 0 such that ∣x−p∣<ρ|x-p| < \rho implies ∣h(x)∣<K|h(x)| < K. Choose δ=12min⁡(ρ,p−a,b−p)>0\delta = \tfrac{1}{2}\min(\rho, p-a, b-p) > 0. Then ∣x−p∣≤δ<ρ|x-p| \le \delta < \rho throughout the closed interval, so ∣h(x)∣≤K|h(x)| \le K.

The smaller radius δ<ρ\delta < \rho is deliberate: continuity gives an estimate for ∣x−p∣<ρ|x-p| < \rho, whereas the lemmas need it on the closed interval ∣x−p∣≤δ|x-p| \le \delta. Apply the first lemma to h=f′h = f' and the second to h=gN′h = g_N' with K=L<1K = L < 1.

Proof

Step 1. Since f∈C2[a,b]f \in C^2[a,b], the derivative f′f' is continuous, and f′(x∗)≠0f'(x^*) \neq 0. The non-vanishing lemma applied to h=f′h = f' at p=x∗p = x^* gives δ0>0\delta_0 > 0 such that I0=[x∗−δ0,x∗+δ0]⊆[a,b]I_0 = [x^*-\delta_0, x^*+\delta_0] \subseteq [a,b] and f′(x)≠0f'(x) \neq 0 on I0I_0. Hence g:=gNg := g_N is well-defined on I0I_0.

Step 2. On I0I_0, differentiating gives

g′(x)=f(x)f′′(x)(f′(x))2.g'(x) = \frac{f(x)f''(x)}{(f'(x))^2}.

Using f(x∗)=0f(x^*) = 0 gives g′(x∗)=0g'(x^*) = 0. Fix any LL with 0<L<10 < L < 1. The small-values lemma applied to h=g′h = g' with K=LK = L gives a radius δ>0\delta > 0 such that I=[x∗−δ,x∗+δ]⊆I0I = [x^*-\delta, x^*+\delta] \subseteq I_0 and ∣g′(x)∣≤L|g'(x)| \le L on II. Thus gg is contractive on II.

Step 3. The root condition shows g(x∗)=x∗g(x^*) = x^*. Let x∈Ix \in I. If x=x∗x = x^*, then g(x)∈Ig(x) \in I. Otherwise the Mean Value Theorem gives some ξ\xi between xx and x∗x^*, hence in II, and

∣g(x)−x∗∣=∣g′(ξ)∣ ∣x−x∗∣≤Lδ<δ.|g(x) - x^*| = |g'(\xi)|\,|x-x^*| \le L\delta < \delta.

Therefore g(I)⊆Ig(I) \subseteq I.

Step 4. On II, the map gg satisfies the local contraction theorem. Every Newton sequence starting in II is well-defined and converges to the unique fixed point, which must be x∗x^*. This is a local conclusion: the theorem asserts convergence only for sufficiently close starting values.

The logical implication is one-way: these hypotheses provide sufficient conditions for local convergence, not necessary ones. Common pitfalls include confusing sufficient conditions with necessary ones, mistaking local superlinear behavior g′(x∗)=0g'(x^*) = 0 for a global contraction across the entire domain, and attempting to evaluate the update where f′(xn)≈0f'(x_n) \approx 0.

Order of convergence

DefinitionOrder of convergence

Let xk→x∗x_k \to x^*. The sequence converges with order at least p≥1p \ge 1 if there are constants c>0c > 0 and k0k_0 such that

∣x∗−xk+1∣≤c∣x∗−xk∣pfor every k≥k0.|x^* - x_{k+1}| \le c |x^* - x_k|^p \qquad \text{for every } k \ge k_0.

When a greatest such exponent exists, it is called the order of convergence. The case p=2p=2 gives at least quadratic convergence. For p=1p=1, geometric or linear contraction additionally requires a bound with c<1c<1; a bound with arbitrary c>0c>0 alone also permits sublinear convergence.

This one-sided bound establishes an order of at least pp, without necessarily computing the exact asymptotic limit. A higher exponent pp means that once iterates enter the local basin of convergence, the error vanishes with exceptional speed.

PropositionFirst-derivative classification

Let xk+1=g(xk)x_{k+1} = g(x_k) converge to x∗x^* without reaching it in finitely many steps, and suppose gg is differentiable at x∗x^*. Then g(x∗)=x∗g(x^*) = x^* and

∣xk+1−x∗∣∣xk−x∗∣→∣g′(x∗)∣.\frac{|x_{k+1}-x^*|}{|x_k-x^*|} \to |g'(x^*)|.

Therefore 0<∣g′(x∗)∣<10 < |g'(x^*)| < 1 gives linear convergence, g′(x∗)=0g'(x^*) = 0 gives superlinear convergence, and ∣g′(x∗)∣=1|g'(x^*)| = 1 is inconclusive.

Proof

Differentiability implies continuity, so taking limits in xk+1=g(xk)x_{k+1} = g(x_k) gives g(x∗)=x∗g(x^*) = x^*. The definition of the derivative then gives the displayed ratio limit. If its value were greater than 11, a non-terminating sequence could not converge to x∗x^*.

PropositionHigher-derivative test

Let p≥2p \ge 2 be a positive integer, let g∈Cpg \in C^p near x∗x^*, and suppose xk+1=g(xk)→x∗x_{k+1} = g(x_k) \to x^* with g(n)(x∗)=0g^{(n)}(x^*) = 0 for 0<n<p0 < n < p. Then the iteration has order at least pp. If g(p)(x∗)≠0g^{(p)}(x^*) \neq 0 and the iteration does not terminate finitely, it has exact order pp, with asymptotic constant ∣g(p)(x∗)∣/p!|g^{(p)}(x^*)|/p!.

Proof

Taylor’s theorem gives a point ξk\xi_k between xkx_k and x∗x^* such that xk+1−x∗=g(p)(ξk)(xk−x∗)p/p!x_{k+1}-x^* = g^{(p)}(\xi_k)(x_k-x^*)^p / p!. Since ξk→x∗\xi_k \to x^*, continuity of g(p)g^{(p)} supplies both the order-at-least-pp bound and, when g(p)(x∗)≠0g^{(p)}(x^*) \neq 0, the displayed constant.

CorollaryNewton's quadratic convergence

If f∈C2f \in C^2 near a simple root x∗x^*, the Newton map satisfies gN′(x∗)=0g_N'(x^*) = 0. Hence Newton’s method has order at least 22 in the local regime of the local convergence theorem.

Proof

A zero first derivative alone only proves superlinear convergence, so use the extra C2C^2 hypothesis directly. Taylor expansion at xkx_k gives

0=f(x∗)=f(xk)+f′(xk)(x∗−xk)+12f′′(ξk)(x∗−xk)2.0=f(x^*)=f(x_k)+f'(x_k)(x^*-x_k)+\tfrac12f''(\xi_k)(x^*-x_k)^2.

Substituting the Newton update yields

∣xk+1−x∗∣=∣f′′(ξk)2f′(xk)∣∣xk−x∗∣2.|x_{k+1}-x^*|=\left|\frac{f''(\xi_k)}{2f'(x_k)}\right||x_k-x^*|^2.

Continuity bounds the numerator and keeps the denominator away from zero locally. This supplies the uniform quadratic bound without requiring a second derivative of the Newton map.

For a root of finite multiplicity m>1m>1, write f(x)=(x−x∗)mh(x)f(x)=(x-x^*)^m h(x) with h(x∗)≠0h(x^*)\ne0 and h∈C1h\in C^1 locally. Substitution into the Newton update gives

gN(x)−x∗=(x−x∗)(1−h(x)mh(x)+(x−x∗)h′(x)).g_N(x)-x^*=(x-x^*)\left(1-\frac{h(x)}{mh(x)+(x-x^*)h'(x)}\right).

The factor tends to 1−1/m∈(0,1)1-1/m\in(0,1), giving local linear convergence for nonterminating iterates. This conclusion needs the stated finite-multiplicity structure; a vanishing derivative alone is not a convergence theorem.

Stopping criteria

TheoremA posteriori bound for a contraction

Let xk+1=g(xk)x_{k+1} = g(x_k) have fixed point x∗x^*, and suppose gg is a contraction with 0≤λ<10 \le \lambda < 1 on an interval containing the relevant iterates. Then

∣x∗−xk+1∣≤λ1−λ ∣xk+1−xk∣.|x^* - x_{k+1}| \le \frac{\lambda}{1-\lambda}\, |x_{k+1}-x_k|.
Proof

Let ek=∣x∗−xk∣e_k = |x^*-x_k|. The contraction estimate gives ek+1≤λeke_{k+1} \le \lambda e_k. By the reverse triangle inequality, ∣xk+1−xk∣≥ek−ek+1≥(1−λ)ek|x_{k+1}-x_k| \ge e_k - e_{k+1} \ge (1-\lambda)e_k. Combining this with ek+1≤λeke_{k+1} \le \lambda e_k proves the bound.

When 0<λ<10 < \lambda < 1, stop only after ∣xk+1−xk∣<1−λλε|x_{k+1}-x_k| < \frac{1-\lambda}{\lambda}\varepsilon. Then the theorem guarantees ∣x∗−xk+1∣<ε|x^*-x_{k+1}| < \varepsilon. The rule needs a valid upper bound for λ\lambda.

TheoremStep size in the superlinear regime

Suppose xk→x∗x_k \to x^* with order at least p>1p > 1, and assume the iteration does not reach x∗x^* in finitely many steps. With ek=∣x∗−xk∣e_k = |x^*-x_k|, let ek+1≤cekpe_{k+1} \le c e_k^p for all sufficiently large kk. Then

ek+1ek→0,∣xk+1−xk∣ek→1,ek+1∣xk+1−xk∣→0.\frac{e_{k+1}}{e_k} \to 0, \qquad \frac{|x_{k+1}-x_k|}{e_k} \to 1, \qquad \frac{e_{k+1}}{|x_{k+1}-x_k|} \to 0.
Proof

Dividing the order estimate by eke_k gives 0≤ek+1/ek≤cekp−1→00 \le e_{k+1}/e_k \le c e_k^{p-1} \to 0. The triangle and reverse triangle inequalities give ek−ek+1≤∣xk+1−xk∣≤ek+ek+1e_k - e_{k+1} \le |x_{k+1}-x_k| \le e_k + e_{k+1}. Dividing by eke_k and applying the squeeze theorem proves the middle limit, and dividing the first quotient by it proves the last.

In the superlinear regime, ∣x∗−xk∣≈∣xk+1−xk∣|x^*-x_k| \approx |x_{k+1}-x_k|, whereas the error of the next iterate is much smaller than the last step. The practical test ∣xk+1−xk∣<ε|x_{k+1}-x_k| < \varepsilon is therefore a conservative asymptotic proxy, not a global certificate unless extra local information is available.

Nonlinear systems

DefinitionJacobian matrix

Let F⃗ ⁣:Ω⊂Rn→Rn\vec{F} \colon \Omega \subset \mathbb{R}^n \to \mathbb{R}^n be differentiable on the open set Ω\Omega, with state x⃗=(x1,…,xn)T\vec{x} = (x_1,\dots,x_n)^T and residual F⃗(x⃗)=(F1(x⃗),…,Fn(x⃗))T\vec{F}(\vec{x}) = (F_1(\vec{x}),\dots,F_n(\vec{x}))^T. Its Jacobian matrix DF⃗(x⃗)D\vec{F}(\vec{x}) is the n×nn \times n matrix of first-order partial derivatives, with (i,j)(i,j) entry ∂Fi/∂xj\partial F_i / \partial x_j.

PropositionNewton iteration for nonlinear systems

Let α⃗∈Ω\vec{\alpha} \in \Omega be an exact root, F⃗(α⃗)=0⃗\vec{F}(\vec{\alpha}) = \vec{0}. Let x⃗k∈Ω\vec{x}_k \in \Omega be the current approximation and suppose DF⃗(x⃗k)D\vec{F}(\vec{x}_k) is nonsingular. The next Newton iterate is obtained by solving

DF⃗(x⃗k) s⃗k=−F⃗(x⃗k),x⃗k+1=x⃗k+s⃗k.D\vec{F}(\vec{x}_k)\, \vec{s}_k = -\vec{F}(\vec{x}_k), \qquad \vec{x}_{k+1} = \vec{x}_k + \vec{s}_k.

Equivalently, x⃗k+1=x⃗k−[DF⃗(x⃗k)]−1F⃗(x⃗k)\vec{x}_{k+1} = \vec{x}_k - [D\vec{F}(\vec{x}_k)]^{-1}\vec{F}(\vec{x}_k), although one should solve the linear system rather than invert the Jacobian.

Proof

Component-wise Taylor expansion about x⃗k\vec{x}_k, evaluated at the root, stacks into

0⃗=F⃗(x⃗k)+DF⃗(x⃗k)(α⃗−x⃗k)+r⃗k,\vec{0} = \vec{F}(\vec{x}_k) + D\vec{F}(\vec{x}_k)(\vec{\alpha}-\vec{x}_k) + \vec{r}_k,

with a remainder o(∥α⃗−x⃗k∥)o(\|\vec{\alpha}-\vec{x}_k\|) from differentiability. A locally Lipschitz Jacobian, for example under C2C^2 regularity, strengthens this to a quadratic remainder. Dropping the remainder defines the affine model M⃗k(x⃗):=F⃗(x⃗k)+DF⃗(x⃗k)(x⃗−x⃗k)\vec{M}_k(\vec{x}) := \vec{F}(\vec{x}_k) + D\vec{F}(\vec{x}_k)(\vec{x}-\vec{x}_k). The next iterate is the exact root of this model, which rearranges into the displayed linear system.

TheoremLocal quadratic convergence for systems

Let F⃗∈C2\vec{F} \in C^2 near a root α⃗\vec{\alpha}, and suppose DF⃗(α⃗)D\vec{F}(\vec{\alpha}) is nonsingular. Then there is a neighbourhood of α⃗\vec{\alpha} such that every sufficiently close x⃗0\vec{x}_0 produces well-defined Newton iterates satisfying ∥α⃗−x⃗k+1∥≤c∥α⃗−x⃗k∥2\|\vec{\alpha}-\vec{x}_{k+1}\| \le c \|\vec{\alpha}-\vec{x}_k\|^2 for a constant c>0c > 0.

Proof

Put e⃗k=x⃗k−α⃗\vec{e}_k = \vec{x}_k - \vec{\alpha}. Taylor’s theorem gives 0⃗=F⃗(x⃗k)−DF⃗(x⃗k)e⃗k+r⃗k\vec{0} = \vec{F}(\vec{x}_k) - D\vec{F}(\vec{x}_k)\vec{e}_k + \vec{r}_k with ∥r⃗k∥≤M∥e⃗k∥2\|\vec{r}_k\| \le M \|\vec{e}_k\|^2 locally. Nearby Jacobians remain nonsingular with uniformly bounded inverses, say of norm at most BB. Substituting the Newton step yields e⃗k+1=[DF⃗(x⃗k)]−1r⃗k\vec{e}_{k+1} = [D\vec{F}(\vec{x}_k)]^{-1}\vec{r}_k, hence ∥e⃗k+1∥≤BM∥e⃗k∥2\|\vec{e}_{k+1}\| \le BM \|\vec{e}_k\|^2.

To justify the uniform inverse bound, put J∗=DF(α)J_*=DF(\alpha). Shrink the ball so that H=J∗−1(DF(x)−J∗)H=J_*^{-1}(DF(x)-J_*) has norm at most 1/21/2. The convergent geometric matrix series ∑j≥0(−H)j\sum_{j\ge0}(-H)^j is the inverse of I+HI+H: multiply finite partial sums and let their residual power tend to zero. Hence ∥DF(x)−1∥≤2∥J∗−1∥\|DF(x)^{-1}\|\le2\|J_*^{-1}\| throughout the ball. Choose its radius δ\delta still smaller so that BMδ≤1/2BM\delta\le1/2. Then the quadratic bound keeps every iterate in the ball and halves the error at least, proving existence of the entire sequence and convergence. The remainder estimate follows by integrating the locally Lipschitz Jacobian along the line segment to the root.

A standard four-step workflow for multidimensional Newton systems:

  1. Formulate the residual system F⃗(x⃗)=0⃗\vec{F}(\vec{x}) = \vec{0}.
  2. Compute the Jacobian DF⃗(x⃗)D\vec{F}(\vec{x}) and check non-singularity (det⁡DF⃗≠0\det D\vec{F} \neq 0).
  3. Solve the linear system DF⃗(x⃗k)s⃗k=−F⃗(x⃗k)D\vec{F}(\vec{x}_k)\vec{s}_k = -\vec{F}(\vec{x}_k) for the update step s⃗k\vec{s}_k.
  4. Update x⃗k+1=x⃗k+s⃗k\vec{x}_{k+1} = \vec{x}_k + \vec{s}_k and evaluate convergence using both step norm ∥s⃗k∥\|\vec{s}_k\| and residual norm ∥F⃗(x⃗k+1)∥\|\vec{F}(\vec{x}_{k+1})\|.
ExamplePlanar two-link robot arm

A planar robot arm has link lengths L1,L2>0L_1, L_2 > 0 and joint angles θ1,θ2\theta_1, \theta_2. Given a target (xd,yd)(x_d, y_d), find joint angles that place the end of the second link at that target. Put r=xd2+yd2r = \sqrt{x_d^2 + y_d^2}. A target can be reached only if ∣L1−L2∣≤r≤L1+L2|L_1-L_2| \le r \le L_1+L_2.

Resolving the two links gives

x(θ1,θ2)=L1cos⁡θ1+L2cos⁡(θ1+θ2),y(θ1,θ2)=L1sin⁡θ1+L2sin⁡(θ1+θ2).\begin{aligned} x(\theta_1,\theta_2) &= L_1 \cos\theta_1 + L_2 \cos(\theta_1+\theta_2), \\ y(\theta_1,\theta_2) &= L_1 \sin\theta_1 + L_2 \sin(\theta_1+\theta_2). \end{aligned}

The residual is F⃗(θ⃗)=0⃗\vec{F}(\vec{\theta}) = \vec{0} with

F1=L1cos⁡θ1+L2cos⁡(θ1+θ2)−xd,F2=L1sin⁡θ1+L2sin⁡(θ1+θ2)−yd.\begin{aligned} F_1 &= L_1 \cos\theta_1 + L_2 \cos(\theta_1+\theta_2) - x_d, \\ F_2 &= L_1 \sin\theta_1 + L_2 \sin(\theta_1+\theta_2) - y_d. \end{aligned}

Differentiating produces

DF⃗(θ⃗)=(−L1sin⁡θ1−L2sin⁡(θ1+θ2)−L2sin⁡(θ1+θ2)L1cos⁡θ1+L2cos⁡(θ1+θ2)L2cos⁡(θ1+θ2)).D\vec{F}(\vec{\theta}) = \begin{pmatrix} -L_1\sin\theta_1 - L_2\sin(\theta_1+\theta_2) & -L_2\sin(\theta_1+\theta_2) \\ L_1\cos\theta_1 + L_2\cos(\theta_1+\theta_2) & L_2\cos(\theta_1+\theta_2) \end{pmatrix}.

A short expansion gives det⁡DF⃗(θ⃗)=L1L2sin⁡θ2\det D\vec{F}(\vec{\theta}) = L_1 L_2 \sin\theta_2. The Jacobian is invertible exactly when sin⁡θ2≠0\sin\theta_2 \neq 0. The singular cases include a fully straight or fully folded arm.

With L1=1L_1 = 1, L2=0.7L_2 = 0.7, target (1.2,0.5)(1.2, 0.5), and start θ⃗(0)=(0.3,0.2)T\vec{\theta}^{(0)} = (0.3, 0.2)^T, each Newton step solves DF⃗(θ⃗(k))s⃗k=−F⃗(θ⃗(k))D\vec{F}(\vec{\theta}^{(k)})\vec{s}_k = -\vec{F}(\vec{\theta}^{(k)}) and updates θ⃗(k+1)=θ⃗(k)+s⃗k\vec{\theta}^{(k+1)} = \vec{\theta}^{(k)} + \vec{s}_k.

Secant and regula falsi

Both methods use the intersection of a secant line with the xx-axis. Secant keeps the newest two points and is an open method. Regula falsi keeps a sign-changing interval and is therefore a bracketing method. That distinction explains why secant is usually faster locally, while regula falsi is safer globally.

DefinitionSecant method

Starting from two initial guesses x0x_0 and x1x_1, replace the derivative in Newton’s method by the finite-difference slope through the two most recent points:

xn+1=xn−f(xn)xn−xn−1f(xn)−f(xn−1).x_{n+1} = x_n - f(x_n)\frac{x_n - x_{n-1}}{f(x_n)-f(x_{n-1})}.

The method does not preserve a bracketing interval. Under the usual local hypotheses near a simple root, its order is p=(1+5)/2≈1.618p = (1+\sqrt{5})/2 \approx 1.618. After the first two function evaluations, each new step needs one new function evaluation and no derivative.

DefinitionRegula falsi (false position)

Start with an interval [a,b][a,b] such that f(a)f(b)<0f(a)f(b) < 0. The secant line through the endpoints meets the xx-axis at

c=b−f(b)b−af(b)−f(a).c = b - f(b)\frac{b-a}{f(b)-f(a)}.

If f(a)f(c)<0f(a)f(c) < 0, replace bb by cc; otherwise replace aa by cc. The sign-changing bracket is preserved. The method converges at least linearly, is often faster than bisection at first, and may stagnate when one endpoint remains fixed for many iterations.

The next note turns from solving f(x)=0f(x) = 0 to matching sampled data with a polynomial: polynomial interpolation. This page belongs to the Computational Mathematics reading path.