Secant Method Solver

Derivative-free root finding

CalculatorsFreeNo Signup
4.2(887 reviews)
All Tools

Loading tool...

About Secant Method Solver

A secant method solver for finding roots of f(x)=0. Requires two initial guesses (no derivative needed). Shows each iteration with xₙ, f(xₙ), secant slope, and convergence rate. Detects failures and slow convergence. Select from preset functions. All calculations are client-side. Essential for numerical analysis.

Secant Method Solver Features

  • No derivative
  • Iteration table
  • Convergence
  • Presets
  • Error tracking
Secant method: xₙ₊₁ = xₙ − f(xₙ)(xₙ−xₙ₋₁)/(f(xₙ)−f(xₙ₋₁)). Like Newton's method but replaces f' with a secant line approximation. Convergence order ≈ 1.618 (golden ratio). No derivative needed, but requires two initial points.

How to Use

Set up the problem:

  • f(x): Choose function
  • x₀, x₁: Two initial guesses
  • Output: Root + iterations

vs. Newton's

  • Newton: needs f', O(h²) per step
  • Secant: no f', O(h^1.618) per step
  • Bisection: always converges, O(h) per step

Convergence

Superlinear: order φ ≈ 1.618. Faster than bisection but slower than Newton. May fail if secant is nearly horizontal (f(xₙ)≈f(xₙ₋₁)).

Step-by-Step Instructions

  1. 1Select a function.
  2. 2Enter x₀ and x₁.
  3. 3View iterations.
  4. 4Track convergence.
  5. 5Get root.

Secant Method Solver — Frequently Asked Questions

Why use secant over Newton's method?+

When f'(x) is expensive, unavailable, or hard to compute. Secant approximates the derivative using two points. Per-step cost is lower (1 function eval vs. 1 function + 1 derivative).

Can the secant method fail?+

Yes. If f(xₙ) = f(xₙ₋₁) (horizontal secant), division by zero occurs. If initial guesses are far from the root, it may diverge. Bracketing methods like bisection are safer.

What is the convergence order 1.618?+

The golden ratio φ = (1+√5)/2 ≈ 1.618. Each iteration roughly raises the number of correct digits by factor φ. Faster than linear (bisection) but slower than quadratic (Newton).

Share this tool: