Secant Method
Computational Math
No Derivatives
Superlinear Convergence
Root Finding
NoteConvergence plots
NoteIteration table
The secant method finds roots of \(f(x)=0\) like Newton’s method, but replaces the tangent line with the secant line through the two most recent approximations, so no derivative is needed:
\[ x_{n+1}=x_n-f(x_n)\frac{x_n-x_{n-1}}{f(x_n)-f(x_{n-1})}. \]
Examples
The secant method avoids computing derivatives, but its behavior still depends strongly on the two initial guesses. The examples below illustrate fast superlinear convergence, poor starting pairs, nearly horizontal secants, oscillation, and cases where the method can appear to move away before finding a root.
Click any example to load it into the app.
Standard superlinear convergence
f(x) = x³ − x − 2, x₀ = 1, x₁ = 2
A well-behaved example. The secant method quickly converges to the real
root near 1.521 without using derivatives.
Fixed-point root problem
f(x) = cos(x) − x, x₀ = 0, x₁ = 1
The method converges to the same famous root as fixed point iteration
x = cos(x), but usually in fewer steps.
Square root of 2
f(x) = x² − 2, x₀ = 1, x₁ = 2
A simple comparison case with Newton's method. The secant iterates
approach √2 using only function values.
Sensitive starting pair
f(x) = x³ − 2x + 2, x₀ = −2, x₁ = 0
A nonlinear example where the path depends strongly on the initial pair.
The method can jump before settling near the real root.
Problematic secant pair
f(x) = x³ − 2x + 2, x₀ = 0, x₁ = 1
These two starting points give equal function values, so the secant
denominator is zero and the update cannot proceed.
Nearly horizontal secant
f(x) = x³ − 2x + 2, x₀ = 0.7, x₁ = 0.9
The secant line is nearly flat, so the next x-intercept can be far away.
This illustrates how small denominator effects can cause large jumps.
Large jumps from shallow slopes
f(x) = arctan(x), x₀ = 1, x₁ = 2
When the secant slope is small, the x-intercept may be far from the
current points. The method can make surprisingly large moves.
Multiple root behavior
f(x) = x³, x₀ = −0.5, x₁ = 0.8
The root at x = 0 has multiplicity three, so convergence is much slower
than the usual superlinear behavior for simple roots.
Higher-degree polynomial
f(x) = x⁵ − x − 1, x₀ = 0, x₁ = 2
A higher-degree polynomial with a real root. This shows the secant method
behaving well on a smooth nonlinear problem.
Exponential equation
f(x) = exp(−x) − x, x₀ = 0, x₁ = 1
A smooth transcendental example. The method converges to the solution of
x = exp(−x).