Why Arc-Length Estimates Need Error Control
When an arc-length integral cannot be evaluated conveniently in exact form, a numerical rule gives an approximation. But a decimal answer alone does not indicate whether the approximation is accurate enough. Error control answers two practical questions: how far could the estimate be from the true length, and how fine must the partition be to meet a stated tolerance?
For a graph \(y=f(x)\) on \([a,b]\), the length is the integral of the speed \(g(x)=\sqrt{1+(f'(x))^2}\). For a parametric curve \(x=x(t)\), \(y=y(t)\), on \([\alpha,\beta]\), the speed is \(g(t)=\sqrt{(x'(t))^2+(y'(t))^2}\), and the length is the integral of that speed. Numerical error control applies to this integrand, regardless of how the curve was described.
Composite Rules and Their Error Bounds
Let \(g\) be the arc-length integrand on \([a,b]\), and let \(I=\int_a^b g(x)\,dx\) be the length. Divide the interval into \(n\) equal subintervals of width \(h=(b-a)/n\). The composite trapezoidal rule is
If \(g\) has a continuous second derivative and \(|g''(x)|\leq M_2\) throughout \([a,b]\), then
For Simpson's rule, \(n\) must be even. Its composite form is
If \(g\) has a continuous fourth derivative and \(|g^{(4)}(x)|\leq M_4\) throughout the interval, its composite error bound is
The derivative bound must hold over the whole interval, not just at the quadrature nodes. A convenient upper bound for \(M_2\) or \(M_4\) is sufficient; it need not be the smallest possible one. The bound is only applicable when the stated derivatives exist and are continuous.
Why the Trapezoidal Error Bound Works
On a single subinterval \([u,u+h]\), the trapezoidal rule integrates the straight line joining the endpoint values of \(g\). Call that line \(p(x)\). The interpolation remainder theorem gives, for each interior \(x\), a point \(\xi\) in the subinterval such that
Since \(|g''(\xi)|\leq M_2\), and since \((x-u)(x-u-h)\leq 0\) on the subinterval, it follows that
Integrating this inequality over the subinterval bounds the difference between the true integral and the area under the line:
There are \(n\) subintervals, and the total error is no larger than the sum of their error bounds. Thus \(|I-T_n|\leq nM_2h^3/12\). Substituting \(nh=b-a\) gives the composite bound \(M_2(b-a)h^2/12\). The Simpson bound has a fourth-derivative hypothesis and a corresponding fourth-power dependence on the mesh width.
Worked Example: Choose a Simpson Mesh from a Derivative Bound
Find a sufficient even number of subintervals to approximate the length of the graph \(y=x^2/2\) on \([0,1]\) with error at most \(0.0002\), using composite Simpson's rule.
The arc-length integrand is \(g(x)=\sqrt{1+x^2}\). Differentiating gives
For \(0\leq x\leq 1\), \(|12x^2-3|\leq 9\) and \((1+x^2)^{7/2}\geq 1\). Therefore \(|g^{(4)}(x)|\leq 9\), so \(M_4=9\) is a valid bound. Here \(b-a=1\), and Simpson's error bound becomes
Require this bound to be no greater than \(0.0002=1/5000\). Then \(1/(20n^4)\leq 1/5000\), so \(n^4\geq 250\), and \(n\geq \sqrt[4]{250}\approx 3.976\). Simpson's rule requires even \(n\), so the smallest eligible choice is \(n=4\). Its bound is \(1/(20\cdot 4^4)=1/5120\approx 0.0001953\), which is below the tolerance. For comparison, \(n=2\) gives the bound \(1/320=0.003125\), which does not meet it. Thus four subintervals are certified to meet the stated tolerance by this bound.
Refining by Comparing Successive Simpson Estimates
A second way to monitor a calculation is to compute estimates on successively finer meshes. If \(S_n\) and \(S_{2n}\) are composite Simpson estimates, their difference shows how much the computed value changes after halving the mesh width.
For a sufficiently smooth integrand, Simpson errors commonly decrease by a factor close to \(2^4=16\) when the mesh width is halved. This motivates the estimate
This is a useful refinement indicator, not an unconditional error bound. A small difference does not by itself prove that the true error is small. If a guaranteed tolerance is required, use a valid derivative-based bound or another proven bound. Refinement is also sensible when no practical derivative bound is available: calculate on finer meshes, compare the results, and report clearly that the comparison is an estimate.
Worked Example: Refine Simpson's Rule and Compare Estimates
For the same graph \(y=x^2/2\) on \([0,1]\), calculate \(S_2\) and \(S_4\). Check whether the refined calculation meets the tolerance \(0.0002\), and compare the two estimates.
The integrand is \(g(x)=\sqrt{1+x^2}\). For \(n=2\), the nodes are \(0,1/2,1\), with values \(1,\sqrt{5}/2,\sqrt{2}\). Therefore
For \(n=4\), the nodes are \(0,1/4,1/2,3/4,1\), with values \(1,\sqrt{17}/4,\sqrt{5}/2,5/4,\sqrt{2}\). Substitution into the Simpson formula gives
The successive estimates differ by approximately \(1.1477823-1.1477249=0.0000574\). The refinement indicator for the error in \(S_4\) is therefore approximately \(0.0000574/15=0.00000383\). This is an estimate, not a guarantee. The derivative bound from the previous example gives the certified error limit \(1/5120\approx 0.0001953\), which is below \(0.0002\). Thus the refined estimate meets the tolerance by a proven bound, not merely by the small change between estimates.
A Trapezoidal Example with a Certified Tolerance
The trapezoidal rule can also give a useful certified approximation. Its error decreases in proportion to \(1/n^2\) when the interval and derivative bound are fixed, so a larger number of subintervals may be needed than with Simpson's rule.
Worked Example: Refine a Parametric-Curve Length with Trapezoidal Bounds
Consider \(x(t)=t-t^3/3\), \(y(t)=t^2\), for \(0\leq t\leq 1\). Find a trapezoidal approximation with guaranteed error at most \(0.01\).
The derivatives are \(x'(t)=1-t^2\) and \(y'(t)=2t\). Hence the speed is
where \(1+t^2>0\). Thus \(g''(t)=2\), so \(M_2=2\) is a valid bound on \([0,1]\). The trapezoidal error bound is \(2/(12n^2)=1/(6n^2)\). To make it at most \(0.01=1/100\), require \(n^2\geq 100/6\), or \(n\geq 4.083\). Choose \(n=5\). With \(h=1/5\), the integrand values at the nodes are \(1,26/25,29/25,34/25,41/25,2\). The approximation is
The certified error is at most \(1/(6\cdot 25)=1/150\approx 0.006667\), which is below \(0.01\). As a check, the exact length is \(\int_0^1(1+t^2)\,dt=4/3\), and \(67/50-4/3=1/150\). The actual error equals the bound in this example, and the calculated approximation satisfies the requested tolerance.
Practical Checks and Common Pitfalls
Before accepting a numerical arc length, identify the integrand and interval, verify that the required derivatives are continuous, and bound those derivatives over the entire interval. Then apply the rule's correct error formula and check whether its conditions hold. If the bound exceeds the tolerance, increase \(n\) and recalculate. For Simpson's rule, the new \(n\) must remain even.
A common mistake is to treat a small change between two estimates as a proof of accuracy. For example, if \(S_n=1.2\) and \(S_{2n}=1.20001\), the difference is \(0.00001\), but that fact alone does not establish that either estimate is within \(0.00001\) of the true length. The Richardson-style comparison relies on the expected error pattern for smooth integrands; unusual error cancellation or inadequate smoothness can undermine it. Use the comparison as an estimate, and use a valid bound when the tolerance must be guaranteed.
Another mistake is to use a derivative bound evaluated only at the endpoints or quadrature nodes. The formulas require a bound across the whole interval. A conservative bound may force a finer partition than necessary, but it remains valid; an unjustified smaller value may not.
Check Your Understanding
Use the definitions and bounds above to answer these questions.
- What smoothness condition and derivative bound are needed to use the composite Simpson error formula?
- For Simpson's rule on a fixed interval, how does the stated error bound change when \(n\) is doubled?
- Why does a small difference between \(S_n\) and \(S_{2n}\) not, by itself, certify a tolerance?
- For the trapezoidal rule, what must a proposed bound \(M_2\) control, and over what set?
- If a Simpson calculation requires \(n\geq 7\) to meet its error bound, what is the smallest allowable even \(n\)?