Using the Slope: Newton–Raphson and the Secant Method
Finding the volatility implied by a real option price in a handful of steps: Newton-Raphson, the secant method, quadratic convergence, and when the slope misleads.
Last updated:
Warm-up: what do you already know?
1. What is the equation of the tangent line to at the point ?
Solution
The tangent is the line through with slope , so .
2. Bisection cuts the error by a factor of 2 at each step. How many steps does it take to gain one decimal digit, that is, to cut the error by a factor of 10?
Solution
After steps the error is smaller by a factor of , and when .
Four steps cut the error by 16 and three only by 8, so bisection gains one decimal digit every 3.3 steps on average.
A problem where the slope comes free
An option’s price depends on a number , the volatility, which measures how much the underlying price is expected to jiggle.
A known formula turns into a price . The market gives us the price, and we want the behind it.
A trading system has to compute it for thousands of options every time prices move, so every step saved in one computation is saved thousands of times.
Take a call option on the S&P 500 index (SPX) with strike 7650 that expires on 15 April 2027, 181 days ahead, so years.
On Friday 16 October 2026 it was quoted at 422.8 (bid) and 428.4 (ask); we use the middle, 425.6.
Solve . In the form we have been using,
where is the strike price, is the price for delivery on the expiry date as the market sets it, is the discount factor (what one unit of currency arriving on the expiry date is worth today), and is the cumulative distribution function of the standard normal distribution, a library function.
New to options? The short note right below explains the finance.
For the numerical task, is a function we can evaluate, with a slope we can write down.
The finance in 20 seconds
An option is the right to buy at the strike price on the expiry date.
The higher the expected jiggle , the more the right is worth, so grows with .
The that reproduces today’s market price is the implied volatility:
the market’s own estimate of future movement. and are read from the market itself, from the prices of calls and puts at the same strikes, so no interest rate or dividend has to be assumed.
Quotes are from Interactive Brokers (delayed, frozen), from 16 October 2026.
We cannot solve for by hand, but bisection, from Bisection and Regula Falsi, works.
From the bracket it needs 43 steps for a tolerance of , and each step prices the option once.
Can we do much better? Here something helps: the slope of with respect to , called vega, has a closed formula, , where is the normal density.
The slope is free.
Work it out: suppose were a straight line through the point with slope .
Where would it cross zero? How good would that point be for a curve that is nearly straight?
Solution
By the tangent equation from the warm-up, the line equals zero at .
For a nearly straight curve this point is very close to the true root, and it is cheap:
one value and one slope.
Newton–Raphson: follow the tangent
Replace the curve by its tangent at the current point and jump to where the tangent crosses zero.
This is the Newton–Raphson method:
Open the explorer, with Newton selected and the implied-volatility example (the start is 0.3):
drag the start , step, and watch the tangent lines walk toward the root.
The explorer also offers, as a second example, the yield of the bond from the bisection practice.
The explorer needs JavaScript. The tables below show the steps of the methods on the same problem.
Where the formula comes from, step by step, in a short video of mine (in Hebrew):
What Newton adds to bisection and regula falsi: it uses the slope, a first-order picture of the function, and no bracket.
The reward is speed. Starting from the true value is (16.295%), and the errors are:
| Step | Estimate | at the estimate | Error |
|---|---|---|---|
| 0 | 0.3 | 286.7 | |
| 1 | 0.16317718607595 | 0.465 | |
| 2 | 0.16295375646352 | ||
| 3 | 0.16295375229691 |
The answer to the question that opened the section: the implied volatility of the option is about 16.295%, and three Newton steps are enough to reach it, where bisection needs 43.
We measure how accurate an estimate is by its number of correct digits:
for an absolute error it is , so an error of has 4 correct digits after the decimal point (the root here is 0.163, so the number of significant digits is a little smaller, about 0.8 less).
Write for the error at step , the difference between the estimate and the root .
In the table, the error at step 0 has 0.9 correct digits and the error at step 1 has 3.7.
Work it out: (1) Write a formula that expresses in terms of and explains the correct digits in the table.
(2) Write such a formula for bisection too, which cuts the error by a factor of 2 at each step.
Candidate formulations
- “The new error is exactly the square of the previous one”, . Wrong already at the first step: , while the error in the table is .
- “The new error is half the previous one”, . That is bisection, and it does not fit the table.
- “The new error is roughly the square of the previous one, times a constant”, . Compute from the rows of the table and check whether it comes out constant (at the first step the start is still far from the root).
Solution
- with a constant . In the table the ratio is about at steps 2 and 3 (at step 1 it is , because the start is still far from the root). The square alone, , gives 7.3 digits, and the actual error gives 8.4: one more digit thanks to , since .
- : the same form, with power 1 instead of 2.
The formal definition
A method has order of convergence when its errors satisfy
that is, near the root. is linear convergence and is quadratic.
- Bisection: the error bound is halved at each step, so and for the bound, not for the error itself. The error itself need not shrink at every step: for on the errors at the first midpoints are , and , and the ratios of the errors are and then .
- Newton–Raphson: the convergence is at least quadratic; of order exactly 2 when (at a root where ).
- Secant: (at a root where ).
In the definition is finite; for linear convergence () also .
Continuing with the table: the correct digits are 0.9, 3.7, 8.4 and 17.8, and the ratios between consecutive steps are 4.2, 2.3 and 2.1, approaching 2 as the iterates approach the root.
This is quadratic convergence, against the steady gain of a fixed number of digits per step of linear methods.
The errors in the table are computed in high-precision arithmetic.
A computer working in double precision keeps about 16 digits, and the evaluation of is itself rounded, so the same run in double precision ends with an absolute error of the order of (a relative error of about ), not .
Below that level the limit is the arithmetic, not the method.
Newton’s cost is the conditions it needs: the derivative , and a start near the root.
We look at three ways to fail, each in its own explorer.
A nearly zero slope. When the slope is nearly zero the tangent is almost horizontal and the next point is flung far away.
In the explorer choose the example “Newton from far”: starting at the option barely reacts to volatility, vega is about and the first step jumps to million, a nonsensical volatility.
Drag the start and step.
The explorer needs JavaScript. The paragraph above gives the first step of this failure.
A cycle. In the example “Newton cycles”, from 0, the method jumps between 0 and 1 forever, because the tangent at 0 leads to 1 and the tangent at 1 leads back to 0.
Step through it and drag the start.
The explorer needs JavaScript. The paragraph above describes the cycle.
Divergence. In the example “Newton diverges”, from 1.6, each step lands farther from the root at 0 than the one before and the method runs away.
Step through it and drag the start.
The explorer needs JavaScript. The paragraph above describes the divergence.
A full tutorial on the Newton–Raphson method, and a short video on running the iteration with the ANS and CALC keys of a scientific calculator:
Run Newton’s iteration yourself on the emulator, with the Ans key (the last answer), for :
A scientific calculator also has a built-in equation solver, the SOLVE function.
According to the manufacturer’s documentation it solves with Newton’s method, from the starting value you give it, so a good start matters here too:
Where does Newton land? The conditions Newton needs are about the start.
Try it: choose a function, drag the start along the axis, predict where the tangents lead (to which root, to a cycle, or away to infinity), and watch.
After a few predictions open the map of all starts: the boundaries between its bands are where a tiny change of start changes the outcome.
The lab needs JavaScript. The explorer above shows Newton’s method from a start of your choice.
The secant method: Newton without the derivative
Sometimes there is no formula for : the price comes from a simulation, a table, or a program someone else wrote.
All we have are values of .
Work it out: Newton’s formula contains . At the points and we know only and .
What can replace ?
Solution
The slope of the line through the two latest points: .
Substituting into Newton’s formula, the quotient becomes .
So we replace the tangent by the line through the two latest points.
A line through two points of a curve is called a secant line, hence the name of the method.
This is the secant method:
What it adds to Newton: it needs only values of . What it adds to regula falsi:
no bracket, and it always keeps the two most recent points, so no endpoint stays fixed.
Its cost: it needs two starting points, it can diverge because nothing forces the root to stay inside, and it is slightly slower than Newton, with convergence order (the golden ratio) instead of 2.
Try it: with the secant method on from and , what is ?
Solution
and , so , where the root is (an error of about ).
For comparison, Newton from gives .
Counting steps to reach on the two problems of this unit, by the explorer’s rule:
| Method | Bond yield | Implied volatility |
|---|---|---|
| Bisection | 39 | 43 |
| Regula falsi | 16 | 5 |
| Secant | 8 | 5 |
| Newton–Raphson | 5 | 3 |
The explorer below runs all four methods on the bond from the bisection practice and on the implied volatility; select the secant method and watch it move on its two latest points.
The explorer needs JavaScript. The table above shows the number of steps of the four methods.
The explorer’s rule stops when both the step and are below .
(Brackets for the bond and for the volatility; the secant method starts from the two ends of the bracket, Newton from and .) Press Compare all methods to see the four error curves together.
Steps are not the whole cost. Newton evaluates and at every step, the secant method only , so a secant step can be cheaper.
By how much depends on the problem: if costs as much as the saving is about half, but when reuses work already done for it costs little extra and the saving is small (as vega does in the option example, which reuses ).
To compare methods fairly, we count evaluations of and of and measure the running time on our own function.
A method of order multiplies the number of correct digits by in each step; if a step needs evaluations, the factor per evaluation is .
Calculate: when costs as much as , how many evaluations does a step of Newton need, and how many a step of the secant method?
What is the factor per evaluation of each, and which method gains digits faster per evaluation of ?
Solution
Newton has and , so its factor is . The secant method has and , so its factor is , larger:
per evaluation of , the secant method gains digits faster.
The ladder so far
| Method | Uses | Convergence | Needs | Main risk |
|---|---|---|---|---|
| Bisection | signs | linear, halves the error | a bracket | slow |
| Regula falsi | values, a chord | usually faster | a bracket | an end gets stuck |
| Secant | values, two latest points | order 1.62 | two starts | may diverge |
| Newton–Raphson | values and slope | order 2, digits double | and a good start | flat slope, cycles, divergence |
In practice, scientific libraries combine them: a safe bracket for the guarantee and a fast method for the speed, as in Brent’s method (SciPy’s brentq).
Continue learning
The next step is the practice session for this lecture: a table by hand, the usual mistakes, transfer questions and a Python implementation.
Repeating a Rule looks at fixed-point iteration, the idea behind many iterative methods, and at inverse quadratic interpolation, which together with bisection forms the Brent method used in practice.
For a deeper look at the model behind the example, see John Hull’s textbook on options and derivatives; the numerical method is the same on any function you can evaluate.
My tutorial on fixed-point iteration, and on the multidimensional Newton–Raphson method: