Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

Problem-solving recipes

A step-by-step procedure for every problem type this course teaches — what to do first, what to do next, and how to tell which case you're in.

What are you being asked to do?

Start with what you're actually being asked to produce.

Given f (or a bracket), need a root — the real cross-cutting choice in this course. Have a bracket [a,b] with a sign change and need a guaranteed answer, no derivative required? Bisection. Have a formula for f' and a starting guess already close to the root, and speed matters more than a guarantee? Newton's method — quadratic convergence, but it can fail from a bad start or with no derivative available at all.

Given A\mathbf x=\mathbf b, need \mathbf x — the other cross-cutting choice. A general dense system, or need an EXACT answer (up to round-off) in a predictable number of steps? Gaussian elimination with partial pivoting. A large, sparse, diagonally dominant system where an approximate answer to a stated tolerance is enough? Jacobi's method — cheaper per sweep, and guaranteed to converge under that same diagonal- dominance condition.

Given a table of (x,y) points, need a polynomial through all of them — Newton's divided-difference form, especially if more points might get added later.

Given the same kind of table, need one SMOOTH piecewise curve instead of one high-degree polynomial — the natural cubic spline.

Given f and a step size h, need a more accurate derivative estimate — Richardson extrapolation on the central-difference formula.

Given f, need \int_a^b f(x)\,dx numerically — the composite Simpson's rule.

Given an overdetermined system A\mathbf x\approx\mathbf b, need the best-fit \hat{\mathbf x} without the numerical risk of the normal equations — least squares via QR.

Given a matrix with a strictly dominant eigenvalue, need that eigenvalue and its eigenvector — power iteration with the Rayleigh quotient.

Given a system of nonlinear equations F(\mathbf x)=\mathbf 0, need a solution — Newton's method for systems, which itself calls a linear solve (either recipe above) at every step.

Given an IVP y'=f(t,y), y(t_0)=y_0, and a step size h, need the next point — one RK4 step.

Given a LINEAR boundary-value problem, need the solution at every grid point — the linear shooting method, which itself calls the RK4 recipe above twice.

Finding a root

Solving a linear system

Building an interpolating polynomial

Fitting a smooth curve through data

Approximating a derivative

Approximating an integral

Solving a least-squares problem

Finding an eigenvalue

Solving a system of nonlinear equations

Advancing an ODE's numerical solution

Solving a boundary-value problem