Back to Numerical Methods repository
Numerical Methods2D

Roots of Equations - Theory & Concepts - Secant Method

Methods for finding roots of algebraic and transcendental equations.

Open the complete lesson

Secant Method Visualization

Finding the root of f(x)=exxf(x) = e^{-x} - x using the Secant method with initial guesses x1=0x_{-1} = 0 and x0=1x_0 = 1.

x_i-1x_ix_i+1
Step 0 (Initial)Step 4

Iteration 0 Calculations

Previous Guess (x_i-1)
0.00000
f(x_i-1) = 1.00000
Current Guess (x_i)
1.00000
f(x_i) = -0.63212
Formula
xi+1=xif(xi)(xi1xi)f(xi1)f(xi)x_{i+1} = x_i - \frac{f(x_i)(x_{i-1} - x_i)}{f(x_{i-1}) - f(x_i)}
Next Estimate (x_i+1)
0.612700