Numerical-method comparison
Every numerical-methods course teaches its techniques one at a time, but every exam question asks the harder question first: which one do I use here? A table of data and a request for is not an instruction to run Newton's forward formula — it is an invitation to notice that sits near the start of the table. An integral with an odd number of panels is not a trap for Simpson's rule — it is a signal that trapezoidal is the only legal option. This node steps back from Newton's forward/backward and Stirling's interpolation, the trapezoidal and Simpson's rules, and the bisection, regula falsi and Newton-Raphson root-finders, and asks what single diagnostic — position in the table, parity of subintervals, availability of a bracket — decides between them. Getting this triage right, fast, is worth more marks than any individual formula.
Each family of numerical methods offers a menu of formulae that agree in principle but differ in the diagnostic that should choose between them: for interpolation it is where sits relative to the tabulated points (minimize ), for integration it is the parity of the subinterval count, and for root-finding it is the trade-off between guaranteed convergence (bracketing methods) and speed (Newton-Raphson).
The core idea
Interpolation: read the table, not habit. Newton's forward, Newton's backward and Stirling's (central) formulae are all Taylor-like series in a scaled variable , and all three converge to the same underlying polynomial through the tabulated points. What differs is only which reference point and which set of differences the series is built from:
where: is the point at which is required, is (forward), (backward) or the nearest interior point (Stirling's), and is the uniform table spacing. The series truncates fastest, and error stays smallest, when is small — so the one rule that governs formula choice is: pick whichever reference point puts closest, and hence smallest.
Integration: parity decides, then accuracy. The trapezoidal rule joins consecutive points with straight lines (exact only for linear ) and works for any number of subintervals . Simpson's rule fits a parabola across every pair of panels (exact for cubics) and is markedly more accurate for the same — but it needs even, since panels are consumed two at a time. If is odd, Simpson's is simply not available and trapezoidal is the fallback.
Root-finding: bracket safety versus tangent speed. Bisection and regula falsi both start from a bracket guaranteeing a root inside, and both are guaranteed to converge; bisection halves the bracket every step regardless of 's shape (predictable, linear convergence), while regula falsi uses the chord through and to typically converge faster, though it can stall on one side for strongly curved . Newton-Raphson abandons the bracket entirely, needing only one starting guess and , and converges quadratically near a simple root — but has no safety net, so a poor guess or a near-zero derivative can send it diverging instead of converging. A rough speed ranking for a well-behaved problem:
The goal is to show that fitting a parabola through each consecutive triple of tabulated points, rather than a straight line through each consecutive pair, is what forces Simpson's rule to consume subintervals two at a time and hence demand an even total count , while simultaneously explaining why the resulting rule is exact for a cubic integrand and not just a quadratic one.
Step 1. Take three equally spaced points with values , and fit the unique parabola through them (three points fix three coefficients). Integrating that parabola exactly from to and simplifying the algebra in terms of and gives the compact result — this is Simpson's rule applied to one panel-pair.
Step 2. Notice the rule was built from one triple of points spanning two subintervals. To cover a whole interval this way, the subintervals must be consumed exactly two at a time, with no leftover single subinterval — which is only possible if is even. If is odd, one subinterval is left stranded with no partner to form a parabola, and the composite rule cannot be built.
Step 3. Chain the one-panel-pair result across the whole table: summing , , and so on, and collecting repeated endpoints gives the composite formula used in practice,
where: are the two outer endpoints, the odd-indexed carry weight (they are each the middle of their own parabola), and the even-indexed interior carry weight (each is shared between two adjacent parabolas).
Step 4. Because a parabola has three free coefficients, it can be forced to match not only but, by symmetry of the integral of a cubic about the panel's centre, it integrates any cubic exactly too — one degree of exactness higher than the trapezoidal rule's straight-line fit, which is exact only for linear . This is the algebraic reason Simpson's rule is generally more accurate than trapezoidal for the same , and why it strictly requires an even .
Worked example
Estimate (true value ) with both rules, using subintervals (), and confirm the accuracy gap the derivation predicts.
Step 1. Tabulate at : , , , , .
Step 2. Trapezoidal rule: . Error .
Step 3. Simpson's rule (, even — the formula from Step 3 above applies): . Error . Simpson's rule is roughly times more accurate than trapezoidal here — the parabola-versus-line argument from the derivation, made concrete on real numbers. Answer: trapezoidal gives (error ); Simpson's gives (error ).
Competitive stretch
Same table, formula choice for interpolation: to estimate , use so (small — Newton forward is correct). To estimate , use so (small — Newton backward is correct). Trying backward for gives , and forward for gives — both far too large, confirming that the near-reference formula was the right pick in each case.
Common traps
- Choosing an interpolation formula from habit instead of checking for each candidate reference point — always identify where sits before picking forward, backward or central.
- Assuming Simpson's rule is always available — it needs even, because it consumes subintervals in matched pairs (Step 2 of the derivation); odd forces trapezoidal instead.
- Assuming Newton-Raphson is the universally "best" root-finder — it is fastest when it works, but a bad initial guess or can make it diverge, whereas bisection and regula falsi are guaranteed to converge once a valid bracket is found.
- Treating convergence speed as the only criterion for root-finders — bisection's slow-but-predictable behaviour is exactly what you want when robustness, not speed, is the priority.
Ask the tutor: If an exam question gives you a table or a function and doesn't say which method to use, describe it to the AI tutor and ask it to walk through the diagnostic (position, parity, or bracket) that picks the right one.
Why not just always use Stirling's central formula since it uses the most information around x
Stirling's formula is genuinely the most accurate choice when sits near the middle of the table, because it draws on differences from both sides symmetrically. But it needs an interior reference point with roughly equal data on both sides. If is near either end of the table, there simply are not enough points on the far side to build the central differences the formula needs, so forward or backward becomes the only workable choice even though Stirling's would, in principle, be more accurate if the data existed.
If Simpson's 1/3 rule is more accurate, why does the syllabus bother teaching the trapezoidal rule at all
Because Simpson's rule has a hard requirement — an even number of subintervals — that real data does not always satisfy. If you are handed a table with an odd number of intervals, or if the composite Simpson's formula genuinely does not apply, trapezoidal is not a "worse alternative" but the only legal option left. It is also simpler to compute and easier to reason about, which matters when you need a quick order-of-magnitude estimate rather than the best possible accuracy.
How do I decide between bisection, regula falsi and Newton-Raphson on an exam without a computer
Look at what you are given. If the question hands you a bracket with and no derivative, bisection or regula falsi are the natural choices, and regula falsi is usually faster unless the function is strongly curved on one side. If instead you are given a single starting guess and can differentiate easily, Newton-Raphson is intended, and you should check that your guess is reasonably close to the root so the quadratic convergence and the non-vanishing-derivative condition both hold.