Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Animation · The secant method

Block 3 · Watch, pause, and explain

San Diego State University

Approximate Newton’s derivative using the two most recent function values. The film follows f(x)=x2−2f(x)=x^2-2 from the initial inputs 1 and 2, showing which point is retained after each update.

Before watching

Draw the line through the two initial samples. Predict its zero, then decide which two points should define the next secant line.

Mathematical connection

Use the slope

dk=f(xk)−f(xk−1)xk−xk−1d_k=\frac{f(x_k)-f(x_{k-1})}{x_k-x_{k-1}}

in a Newton-style update:

xk+1=xk−f(xk)xk−xk−1f(xk)−f(xk−1).x_{k+1}=x_k-f(x_k)\frac{x_k-x_{k-1}}{f(x_k)-f(x_{k-1})}.

Keep xkx_k and xk+1x_{k+1} for the next step, reusing f(xk)f(x_k). After initialization, each successful update needs one new function evaluation. Equal function values make the update undefined; near-equal values can cause a large or unreliable step. Check finite values and the function’s domain. Ordinary secant does not preserve opposite signs or guarantee convergence.

Static walkthrough: one secant update

Predict before opening: start with f(1)=−1f(1)=-1 and f(2)=2f(2)=2. Find the line’s slope and zero. Which input will you discard after evaluating the new point?

Explain what you saw

Track the older point, the current point, and the newly proposed point separately. Explain how the next pair differs from the pair that bisection would retain.

Use the player controls to pause, replay, or view fullscreen. The animation has no narration. Burned-in captions explain each action; the static walkthrough above provides the same calculations without playback.

Continue: Lecture 8 · Full reading · All animations