Past exam of the numerical analysis course of the University of Oxford 2015 1 c i Solution 2026-10-31
On a partition of an interval , apply the trapezoidal rule separately to each panel and add:For uniform spacing , this composite trapezoidal rule becomesEach interior sample occurs in two panels; their half-quadrature weights combine to . The endpoint quadrature weights are .
A linear spline is a continuous function whose restriction to every interval is a polynomial of polynomial degree at most one. With and , linear interpolation givesIntegrating the two linear polynomials and adding the contributions givesThis is the composite trapezoidal rule applied to the nodal values, and it is exact for the linear spline itself, including nonuniform spline knots.
A cubic spline on this partition of an interval is a function that restricts to a polynomial of polynomial degree at most three on every interval . Thus its second derivative is continuous and piecewise of polynomial degree at most one: is a linear spline on the same spline knots. Its third derivative is constant on each open interval and can jump across the spline knots; its fourth derivative vanishes inside each open interval.
Quadrature error Created 2026-10-06 Updated 2026-11-05
A quadrature error is the difference between an integral and its finite weighted approximation. Its bound depends on both the sampled function and how the weights are formed. Suppose on , with . For a partition of an interval of mesh of a partition and left endpoints ,Indeed, integrate the Hölder continuity bound on each cell and add. For an integrable weight , the same proof gives if each discrete weight is the exact cell integral . Sampling too introduces another error.
A different endpoint estimate concerns a normalized window , where . Approximate this indicator function by its left-endpoint value on each cell. Only cells meeting or can disagree on a set of positive length; their total length is at most . Therefore its L1 norm error is at most . This is the source of a bound; it is not the Hölder continuity estimate for a smooth integrand.
Quadrature rule Created 2026-09-24 Updated 2026-10-14
A quadrature rule approximates an integral by a finite weighted sum of sampled function values:The quadrature nodes specify where to sample, and the quadrature weights specify how much each sample contributes. The density specifies the target integral, whereas the discrete quadrature weights belong to the approximation. Ordinary numerical integration has . Gaussian quadrature and the midpoint quadrature rule choose interior quadrature nodes; the trapezoidal rule includes endpoints.[ref]
For ordinary numerical integration, exactness on the constant function requires ; exactness on additionally requires . These two checks make the quadrature rule exact for every affine function. For example, both the midpoint quadrature rule and trapezoidal rule give for . Testing progressively higher polynomial degrees defines the degree of precision of a quadrature rule. Exactness describes a class of integrands, rather than promising exact results for every function.
Composite midpoint quadrature rules and composite trapezoidal rules apply a simple quadrature rule on every panel of a partition of an interval. This buys accuracy by shrinking the panels while keeping the elementary formula fixed. For continuous functions sampled exactly, their quadrature errors tend to zero as the largest panel width tends to zero. The familiar second-order bounds require stronger assumptions about derivatives. The signed approximation error used here is ; some sources define quadrature error with the opposite sign, so the convention must accompany any formula.
Realized absolute covariation 2026-09-24
For continuous local martingales and a sequence in which each term is a partition of an interval whose mesh tends to zero, the sumsconverge in the sense of uniform convergence on compacts in probability to a continuous increasing process. To identify the limit, put and choose Radon-Nikodym derivativesIf is a centered bivariate normal distribution with covariance matrix , thenLocalizing, representing the pair as stochastic integrals against a two-dimensional Brownian motion, and approximating the integrands by bounded predictable step processes proves the convergence. The step-process case follows from the weak law of large numbers for independent Gaussian increments; the Burkholder-Davis-Gundy inequality controls the approximation error. Since ,
Riemann integral Created 2026-09-24 Updated 2026-11-05
For a bounded real function on a closed finite interval, the Riemann integral exists when the supremum of its lower Darboux sums equals the infimum of its upper Darboux sums. Their common value is . Equivalently, for every there is a partition of an interval whose upper-minus-lower sum is less than .[ref]
For on , uniform partitions into pieces give lower and upper sums and , proving that the integral is . The Dirichlet function has lower sums zero and upper sums one on this interval, so it is not Riemann integrable. The definition explains why boundedness alone is insufficient.
Riemann integration Created 2026-09-24 Updated 2026-11-05
Riemann integration defines an integral by requiring that every sufficiently fine tagged Riemann sum approximate the same number. For a bounded function , a partition of an interval and tags giveThe mesh of a partition must tend to zero, and the answer must be independent of the tags and the chosen partitions of an interval. The equivalent Darboux sum formulation traps every Riemann sum between a lower Darboux sum and an upper Darboux sum. Their common limiting value, when it exists, is the Riemann integral.[ref]
For on , equal-width partitions of an interval give lower and upper values , so the Riemann integral is . For the Dirichlet function, every nondegenerate subinterval has infimum zero and supremum one: lower and upper values remain zero and one. Refining the partition of an interval cannot resolve that gap. Thus boundedness alone does not ensure Riemann integrability; the oscillation of a function on an interval must become small in the weighted aggregate.
Riemann sum convergence theorem Created 2026-10-25 Updated 2026-10-31
For a bounded function on a fixed closed interval, Riemann integrability with Riemann integral is equivalent to convergence of all tagged Riemann sums to as the mesh of a partition tends to zero. Precisely, for every there is such that every partition of an interval of mesh less than , with any tags in the corresponding closed subintervals, has its Riemann sum within of .
Simpson's rule Created 2026-10-14 Updated 2026-10-18
Simpson's rule approximates a definite integral by integrating the quadratic polynomial obtained by polynomial interpolation at two endpoints and their midpoint. For an interval with , write and . The three quadrature nodes are , and the quadrature rule isThus its quadrature weights are . Their sum is , as required for exactness on constant functions. This is the three-node Newton-Cotes closed quadrature; its degree of precision of a quadrature rule is three, even though the interpolating polynomial has polynomial degree at most two.[ref]
3.5 Quadrature, subsection (ii) Simpson’s Rule. NIST Digital Library of Mathematical Functions; §3.5(ii), equation 3.5.6: elementary Simpson rule and its fourth-derivative remainder
For an original worked example, take the cubic polynomial on the interval . Here and , so the function evaluations giveSimpson's rule givesAn antiderivative supplies an independent exact definite integral:The quadratic polynomial through the same quadrature nodes is . It differs from between the quadrature nodes, but its definite integral agrees exactly. The picture shows why: the signed polynomial interpolation error has two lobes with opposite integrals.
An original cubic and its quadratic interpolant have the same integral because the two interpolation-error lobes have signed integrals plus and minus 81 over 64
. Details. Three function evaluations therefore capture more information about an integral than about the whole function. When an antiderivative is unavailable, composite Simpson's rule repeats this inexpensive local construction over a partition of an interval. For a sufficiently smooth function, halving the node spacing reduces its truncation error by approximately a factor of sixteen.
Step function Created 2026-09-28 Updated 2026-11-05
On a real interval, a step function is constant on the open cells of a finite partition of an interval, with endpoint values specified separately. Equivalently, up to those finitely many point values it is a finite linear combination of interval indicator functions. For example, a function equal to two on , one on and zero on is a step function. Its integral is the sum of rectangle heights times widths.
A simple function is more general in measure theory: its finitely many value sets can be arbitrary measurable sets. The Dirichlet function on is simple but is not an interval step function, because every nonempty interval contains both rational and irrational points. Merely being constant on a finite or countable measurable partition therefore does not characterize the usual interval-based step functions.
Countably many jumps can be considered under explicitly stated extensions of the term. The finite-partition convention is the one used for elementary Riemann approximations; the measurable finite-range convention belongs to simple functions in Lebesgue integration.
On a partition of an interval symmetric about zero, the composite trapezoidal rule gives opposite quadrature nodes equal quadrature weights. Samples of an odd function cancel pairwise, and a zero quadrature node contributes zero. For a continuous odd function, its exact integral over is also zero. Adding any affine function preserves exactness by linearity of the integral and of the quadrature rule. For example, is nonpolynomial but both the exact integral and every uniform-grid composite trapezoidal rule value on are two.
Total variation of a function Created 2026-09-24 Updated 2026-10-18
The total variation of a function measures its accumulated rises and falls, rather than just its change between the endpoints. For each partition of an interval , add the absolute values of its sampled increments. Then take the supremum over all such partitions of an interval:The function has bounded variation when . This definition uses its value at every point of the interval, including both endpoints.[ref]
Real Analysis Lecture Notes: 3.5 Functions of Bounded Variation by Christopher E. Heil. §3.5.1, Definition 1, printed pp. 1–2: partition definition and pointwise convention
For a nondecreasing function, all increments are nonnegative and the sum telescopes to . More generally, the triangle inequality gives . Equality can fail dramatically when the function changes direction: an object can travel a long distance and finish near its starting position. Here we measure movement of the function's value; arc length of its function graph also includes horizontal movement.
Total-variation process 2026-09-24
For a path of finite variation, its total-variation process iswhere the supremum is over every partition of an interval of . It is an increasing process, and the signed measure satisfies .
If Riemann integrable functions converge by uniform convergence to , then is Riemann integrable andThis concerns one fixed compact interval, with finite length.[ref]
Here is a proof outline that also establishes Riemann integrability of the uniform limit. Assume , and put and . One bounded and finite show that is a bounded function. For any partition of an interval , its upper Darboux sum and lower Darboux sum satisfyGiven , choose with , then a partition of an interval with . The displayed gap is below , proving Riemann integrability. Finally, and monotonicity of the Riemann integral give the stated error estimate. When , every integral is zero.
For the polynomial functions on , direct integration and the uniform bound giveAt , the exact integral is approximately , while the general error bound is approximately . The bound certifies the result without an exact antiderivative. On , these same integrals still tend to zero, although there is no uniform convergence: sufficient conditions need not be necessary. On an unbounded interval, even uniform convergence can fail to control total area, as uniformly vanishing functions can retain a nonzero integral shows.
Uniform convergence alone also fails to preserve derivatives: converges uniformly to zero on , while . The small amplitude does not control the slopes of the sine oscillations.
For each positive integer , put on . Its supremum norm is exactly , so this sequence of functions converges to zero by uniform convergence. Nevertheless,Each of its complete sine oscillations contributes : rise from zero to , fall through zero to , then return to zero. Taking a partition of an interval through all extrema attains . Every further partition refinement merely subdivides monotone function segments, so the same reasoning as in partition example of total variation proves the upper bound too.
The functions sin(2πnt)/n converge uniformly to zero while their total variation remains 4; all three function plots use the same vertical scale
. Details. For a continuously differentiable function on a closed bounded interval, total variation also satisfiesApplied here, the derivative is , and integrating its absolute value over periods gives . The differentiability hypothesis matters: the partition definition applies much more widely than this derivative formula.[ref]
1 Algebraic and Analytic Methods. NIST Digital Library of Mathematical Functions; §1.4(v), equations 1.4.33–1.4.34, Functions of Bounded Variation
Small pointwise size and small accumulated movement are different approximation goals.A continuous function on a compact interval is uniformly continuous by the Heine-Cantor theorem. Choose a partition of an interval whose widths lie below the input tolerance for a desired output error . On each half-open partition subinterval, use the value of the function at its left endpoint, and assign the rightmost endpoint its own value. This defines a step function whose error is strictly below at every input. Finitely assigned partition-point values are allowed and do not alter the Riemann integral.
Upper Darboux sum Created 2026-09-29 Updated 2026-10-07
For a bounded function and a partition of an interval , the upper Darboux sum multiplies the supremum of on each subinterval by its length and adds the results.
Weighted realized variance 2026-10-06
For observations of an Itô integral on a partition of an interval, the statistic estimates . With a deterministic noise coefficient the squared increments are independent, and the fluctuation has variance .

