Exercises — Secant method
The one formula we lean on the whole way down:
Read it as the [!mnemonic] from the parent: "New = Now minus f-Now times Run-over-Rise."

The picture above is the only geometry you need: two dots on the curve, a straight ruler (the secant line — a chord joining two curve points) through them, and the spot where that ruler crosses the horizontal axis. That crossing is the next guess.
Level 1 — Recognition
L1.1
State the Secant iteration formula and say, in one sentence, what geometric object each step builds.
Recall Solution
Each step builds the secant line (a straight chord) through the two latest points and , then takes that line's -intercept (where it hits the horizontal axis) as the next guess .
L1.2
True or false, with one-line reasons: (a) The Secant method needs . (b) It needs two starting guesses. (c) It always keeps the root bracketed like bisection.
Recall Solution
(a) False. It replaces the derivative with the chord slope — no ever computed. (b) True. You need two points to define a line. (c) False. It is an open method: the new point may jump outside and the sign change is not preserved. That bracketing property belongs to Regula Falsi (False Position).
L1.3
Which quantity in Newton's step does the Secant method replace, and with what?
Recall Solution
Newton uses the exact slope . Secant replaces it with the finite-difference slope which is the finite-difference estimate of built from two known heights. See Newton-Raphson method for the exact-slope version.
Level 2 — Application
L2.1
, root . Take . Compute and .
Recall Solution
, . WHAT we did: plugged the two latest points into the boxed formula. WHY: the -intercept of the chord through them is our best straight-line guess for the root. WHAT IT LOOKS LIKE: the ruler drops from the point toward the axis and lands left of .
Now . So , — already three correct digits.
L2.2
, root . Take . Compute .
Recall Solution
, . One clean step from the recipe — no derivative of needed.
L2.3
, root . Take . Compute .
Recall Solution
, . The method never cared that has no closed-form root.
Level 3 — Analysis
L3.1
Show the two formula forms agree. Starting from derive the weighted-average form
Recall Solution
Put everything over the common denominator : Expand the numerator: The terms cancel, leaving . Hence WHY the boxed form is still preferred: the weighted form subtracts two nearly-equal large products near convergence, losing precision (cancellation). The boxed form only adds a small correction to .
L3.2
Numerical blow-up. For suppose two consecutive iterates are and . Explain, with numbers, why the next step is dangerous.
Recall Solution
, .
Denominator — tiny.
Dividing by a near-zero denominator massively amplifies any rounding error in those two almost-equal values. Fix: guard with a tolerance if abs(denominator) < eps: stop, plus a max-iteration cap.
L3.3
Open-method jump. For with , compute and check whether it stays inside . Comment.
Recall Solution
, . Here , so this step stays inside. But nothing forced it to: because Secant ignores signs, a poorly chosen pair can produce an outside the starting interval — the hallmark of an open method. Bracketing methods like Bisection method can never do that.
Level 4 — Synthesis
L4.1
Derive the order of convergence. Given the error recurrence (with ), show the order solves and equals .
Recall Solution
Assume the defining relation of order- convergence: for some constant . Shift the index down by one: , so . Substitute both into and into : Match the powers of on both sides: Positive root: .
L4.2
Efficiency per evaluation. Newton does 2 evaluations/step and has order 2. Secant does 1 new evaluation/step and has order . Show that two Secant steps (matching Newton's evaluation budget) beat one Newton step in effective order.
Recall Solution
Effective order per pair of evaluations:
- Newton: one step of order per 2 evaluations effective order .
- Secant: two steps, each order , compose to order per 2 evaluations. Since , Secant extracts more accuracy per function evaluation whenever an evaluation costs about as much as an evaluation. This is why Secant wins when the derivative is expensive.
L4.3
Compare methods on the same problem. For , , list what information each method uses at the first step: Secant, Newton, Regula Falsi, Bisection.
Recall Solution
| Method | Info used at step 1 | Keeps a bracket? |
|---|---|---|
| Secant | — two heights | No |
| Newton | — one height + slope | No |
| Regula Falsi | + sign check | Yes (replaces same-sign end) |
| Bisection | only signs of | Yes (halves interval) |
| Secant and Regula Falsi share the same -intercept formula; only the bookkeeping (whether a bracket is enforced) differs — which is exactly why one is order and the other only linear. |
Level 5 — Mastery
L5.1
Full multi-step run to a tolerance. Solve with . Iterate until . Report every iterate. (Root .)
Recall Solution
All angles in radians. . .
Step to :
Step to : .
Step to : .
Now , so one more: . The next iterate moves by well under , so we stop with .
Iterate list: .
L5.2
Design a stopping rule. Write pseudocode for a robust Secant routine that (i) caps iterations, (ii) guards the denominator, (iii) stops on step size. Explain each guard.
Recall Solution
secant(f, x0, x1, tol, maxit):
f0 = f(x0); f1 = f(x1)
for k in 1..maxit:
denom = f1 - f0
if abs(denom) < 1e-14: # guard (ii): flat chord → blow-up
stop "denominator too small"
x2 = x1 - f1*(x1 - x0)/denom # boxed form (least cancellation)
if abs(x2 - x1) < tol: # guard (iii): step size small enough
return x2
x0, f0 = x1, f1 # slide the window...
x1, f1 = x2, f(x2) # ...reuse f1, one new eval per step
stop "no convergence in maxit" # guard (i): iteration cap
Why each guard: (i) prevents infinite loops when the method diverges/oscillates; (ii) catches the near-zero denominator from L3.2 before it produces inf; (iii) the step-size test is cheap and directly measures how much progress remains. Note the single new -evaluation per loop — that is the efficiency edge from L4.2.
L5.3
Convergence-rate sanity check. Using the run in Worked Example 1 of the parent (), the errors were . Verify these are consistent with superlinear (order ) behaviour rather than linear.
Recall Solution
For linear convergence, would be roughly constant. Here: The ratio drops (), i.e. the fraction of error removed keeps growing — that is superlinear, not linear. Cross-check the order estimate from three errors: With only three noisy points and rounded errors this lands near ; a longer clean run settles to . The key qualitative fact — ratios shrinking, digits multiplying — is confirmed.
Recall One-line self-audit
Can you, from memory, (a) write the boxed formula, (b) say why no derivative is needed, (c) name the order , and (d) list the three guards from L5.2? If yes to all four, you own Secant method at D4 level.