Past exam of the numerical analysis course of the University of Oxford 2017 3 b ii Solution 2026-10-31
Let be a second cubic spline matching the same values and endpoint derivatives. The minimum roughness property of a clamped cubic spline applied with as the minimizing cubic spline gives , where . Applying the same argument with their roles exchanged gives . Hence equality holds, and the exact identity from part (i) yieldsThe integrand is continuous and nonnegative. If it were positive somewhere, it would have a positive integral over a small interval. It follows that everywhere. Consequently is an affine function. Its value and derivative vanish at , so it is identically zero. Thus , proving uniqueness of the clamped cubic spline with the prescribed data. Existence was assumed in the question; this argument establishes the remaining uniqueness claim.
Past exam of the optimisation for data science course of the University of Oxford 2023 3 a Solution 2026-10-25
Fix and put , the block coordinate gradient. For , define the one-variable function . By the chain rule,The last equality holds because the coordinates of outside are zero. The fundamental theorem of calculus and the Cauchy-Schwarz inequality therefore giveFor , the supplied condition (6), applied at the fixed starting point with parameter , bounds the integrand by . Integration yieldsThis argument needs only the given directional Lipschitz continuity and continuous differentiability; convexity is not needed for this part. If the block coordinate gradient is zero, the inequality is equality.
Lévy characterization of Brownian motion says that a continuous local martingale with is standard Brownian motion with respect to its filtration if its quadratic variation is . Equivalently one may require to be a local martingale.
Any weak solution has the integral form . Its bounded integrand makes it a continuous local martingale starting at zero, andThe specified value of the sign at zero has square one as well. Lévy characterization of Brownian motion therefore proves that every such weak solution is Brownian motion. This is a statement about its law and filtration; it does not assert or provide a strong solution as a function of a specified driver.
Integrating the preceding differential gives . Consequently , and the representation isThe process is continuous and adapted, hence progressively measurable, and the finite-sum inequality together with the previous second-moment estimate gives .
If is another square-integrable predictable integrand with the same representation, Itô isometry givesThus uniqueness is up to null sets in the square-integrable integrand class. Pointwise uniqueness is impossible: changing a value at one deterministic time changes no Itô integral. Square integrability is the natural class for this representation and is needed for this uniqueness argument; the mere word adapted does not by itself specify an integrable stochastic integral.
The semimartingale integration by parts givesHere . Substitution therefore gives cancellation of the drift:The continuous adapted integrand is locally square integrable. Stopping when first exceeds an integer produces true stochastic-integral martingales, hence is a local martingale. No unproved global integrability of the product is needed.
Put and . Since and has finite variation, the product rule has no quadratic-covariation contribution:Integrating and multiplying by yieldsThe deterministic integrand is square integrable on every compact interval. This constructs a strong solution. Two solutions driven by the same Brownian motion have difference solving , , hence their difference vanishes, proving pathwise uniqueness.
First, planar Brownian motion started away from zero almost surely never hits zero. To see this without confusing it with neighborhood recurrence, stop in an annulus with inner radius and fixed outer radius . The preceding logarithmic calculation gives probability of reaching the inner circle first. A hit of zero before the outer exit would require all these inner hits, so its probability is zero as . On every finite path interval the continuous path is bounded; a countable union over integer outer radii and integer times proves the all-time assertion.
Consequently the integrand is locally square integrable: on every compact time interval the nonvanishing continuous path has a positive minimum modulus. Write with independent standard real coordinates. Complex quadratic covariation satisfies , so analytic Itô's lemma has no second-derivative drift. For one likewise has , and . The product rule therefore givesIts initial value is , proving, simultaneously for all times by continuity,Thus and is the continuous accumulated change of complex argument of the path about zero, measured in radians. It is a winding angle, without reduction modulo . A single-valued logarithm on the whole punctured plane is unnecessary; the path has a continuous stochastic logarithm of planar Brownian motion.
Write the sum in the question as the right Riemann sumRelative to the composite trapezoidal rule, the only change is in the two endpoint weights:The integrand is continuous on , so . Since an antiderivative is ,Thus
Polar-coordinate proof of the Gaussian integral Created 2026-10-14 Updated 2026-10-18
Put . The nonnegative integrand allows Tonelli's theorem to write the square as a double integral:In polar coordinates, , , and the Jacobian determinant supplies the area factor :Since , take the positive square root to get . The computation proves finiteness as well as the value. For an explicit limiting argument, first integrate over disks of radius ; their integrals are , which increase to as . [ref]
The geometric surprise is that radial shells get longer as increases, even while the Gaussian function gets smaller. Its central height is largest at zero, but the radial contribution vanishes there and peaks at . Differentiating gives , which changes sign at that radius. Keeping the Jacobian determinant is what makes the one-dimensional integral and the plane geometry agree.
Quadrature node Created 2026-10-14 Updated 2026-10-31
A quadrature node is a point at which the integrand is sampled by a quadrature rule. Under the affine map from to , a reference quadrature node becomes ; for ordinary numerical integration, the corresponding quadrature weight is multiplied by .
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.
Quadrature weight 2026-10-14
A quadrature weight multiplies a sampled integrand value in a quadrature rule. For ordinary numerical integration, its units match those of the integration variable. Positive quadrature weights that sum to make a weighted average of the samples; signed quadrature weights can magnify sample perturbations, as quantified by noise sensitivity of a quadrature rule.
Signed area under a graph 2026-10-14
For and a real-valued function with a finite Riemann integral or Lebesgue integral on , the signed area under a graph is its definite integral: geometric area above the horizontal axis contributes positively, and geometric area below it contributes negatively. If these two nonnegative areas are and , thenThe second expression is the total geometric area under a graph. Taking the absolute value of the first expression does not usually give the second: cancellation has already removed information about how much area lies on each side.[ref]
For an exact example, take the polynomial function on . Its polynomial roots are and : it is negative between them and positive on the two outer intervals. An antiderivative is , so the fundamental theorem of calculus givesThus and . The signed area under a graph is , whereas the total geometric area under a graph is . To compute the latter with antiderivatives, split at each sign-changing polynomial root and reverse the sign of the negative contribution.
The polynomial x squared minus one has signed integral 4/3 and total geometric area 4 on the interval from minus two to two
. Details. Cancellation is useful information when the integrand represents a signed contribution. For the polynomial function on , the two triangular areas give , although . Zero net signed area therefore means balanced positive and negative contributions, rather than an empty region.
The short algebraic justification uses the positive part and negative part : and . Their integrals give and , and linearity of integration gives the difference and sum formulas. For Lebesgue integration, require both contributions to be finite to avoid the undefined subtraction .[ref]
Trapezoidal rule Created 2026-09-24 Updated 2026-10-14
As a quadrature rule, the trapezoidal rule replaces an integrand by the linear interpolation joining its two endpoint values:For nonnegative endpoint values, this is the area of a trapezoid; in general it is a signed area. The quadrature nodes are , each with quadrature weight . Unlike the midpoint quadrature rule, it uses endpoint samples, which can be reused between adjacent panels.
Every affine function agrees with its linear interpolation, so the trapezoidal rule integrates it exactly. On , gives . On , the polynomial instead gives , exceeding by . Its degree of precision of a quadrature rule is exactly one.
If , its signed approximation error satisfiesA convex function lies below its endpoint chord, so the trapezoidal rule overestimates its integral; a concave function gives the reverse inequality. The error formula assumes that the second derivative exists and is a continuous function throughout the closed interval.[ref]
3.5 Quadrature, subsection (i) Trapezoidal Rules. §3.5(i), equation 3.5.1 and its C² hypothesis; the source writes integral minus rule
A short derivation is the identityobtained by two integrations by parts. The nonnegative Peano kernel has integral , and the weighted mean value theorem for integrals gives the formula.The trapezoidal rule for an ordinary differential equation averages vector fields at the old and new states and is A-stable.
This time-stepping use applies the same trapezoidal rule to the integral of the derivative in an ordinary differential equation. That connection explains its place under implicit Runge-Kutta methods; its quadrature behavior and the nonlinear issue in trapezoidal rule fails B-stability concern different uses of the same endpoint averaging.

