One dimensional minimization in the GNU Scientific Library manual Created 2026-10-24 Updated 2026-11-05
Official manual: One Dimensional Minimization.
The “Caveats” subsection derives the loss of position accuracy proportional to the square root of function-value relative accuracy near a nonzero minimum with positive second derivative. “Minimization Algorithms” describes golden-section search and its linear contraction. The claims concern standard mathematical precision effects, not an assertion that later software releases were available for a historical examination.
Past exam of the information theory course of the University of Oxford 2021 3 c iii Solution 2026-10-25
Choose noise values , giving exactly the outputs . The transition matrix, in that column order, isAn input probability mass function makes outputs equiprobable, so and . Hence bit per use, as required for comparison with the four-output case.
There is a strict improvement, which can also be computed exactly. Reflection of the input labels , accompanied by output reflection , leaves mutual information unchanged. Concavity of information entropy makes mutual information a concave function of the input probability mass function for a fixed transition matrix. Averaging an input law with its reflection therefore cannot decrease it. It suffices to considerThe outputs whose labels are even integers have total mass and conditional probability mass function , with information entropy . The outputs whose labels are odd integers have mass and conditional probability mass function , with information entropy one. Splitting first by output parity using the chain rule for information entropy yieldsIts derivative is , and its second derivative is negative. The unique maximum occurs at , givingThis additional optimization explains the collision pattern: outputs identify input , outputs identify the two extreme inputs, and only output is ambiguous.
Three original additive-noise channel diagrams: increasing noise separation changes output collisions and channel capacity
. Details. Past exam of the mathematical methods II course of the University of Oxford 2019 3 Solution 2026-10-25
The real logarithm restricts the domain to . Differentiating givesSince cannot vanish in the domain, a stationary point requires . The logarithm is strictly increasing, so this equation has exactly one solution:The second derivative is , giving . In fact is negative below and positive above it, so the point is the unique global minimum on . The boundary value is not an additional stationary point, since the original function is not defined there.
Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 31 2 Solution Created 2026-10-03 Updated 2026-10-14
Choose the sign conventionThis is the optimization Lagrangian; equality-constraint Lagrange multipliers are unrestricted in sign. The Lagrangian sufficiency theorem for minimization says: if satisfies and globally minimizes on for some , then it globally minimizes the constrained objective function. Indeed, for every feasible ,This is a full global certificate, not merely stationarity. No convexity is needed for the implication, although convexity commonly supplies the required global optimization Lagrangian minimum.
Let , setting , and assume is finite. The Strong Lagrangian property at means that a finite multiplier attains the constrained value as an unconstrained lower bound:This includes dual attainment, but need not include primal attainment. A non-vertical supporting hyperplane of a value function at has a finite slope and supports the epigraph from below:If this inequality holds, then for every ,so . Conversely restricting the infimum to gives , even if the primal infimum is approached only by a sequence. Thus equality holds. In the reverse direction, the Strong optimization Lagrangian identity implies for every . Taking the infimum over yields the supporting inequality, with empty fibres causing no problem. This proves both implications without a convexity or attainment assumption beyond finite .
For the advertising calculation, measure the budget in thousands of pounds by . Requiring the full budget to be spent gives , with . Substitute to reduce the maximization problem toIts second derivative is , so the unique constrained maximum is obtained by clipping the stationary point:The upper constraint never clips the interior formula because for . The maximal revenue in thousands of pounds isEquivalently the revenue Hessian is , negative definite since its leading minor is negative and its determinant is seven. Thus the full-budget affine feasible set has a unique global maximum.
At the two requested budgets,The units in the middle columns are minutes; the last column is thousands of pounds. Revenue measured in pounds is , soAn additional advertising pound therefore increases optimized revenue locally by £2.50 at the smaller budget and £0.25 at the larger budget. These are marginal rates, not exact finite-difference increments: on the interior branch .
The maximization multiplier in equals on the interior branch. The sign is consistent with the minimization convention above applied to , whose supporting slope is . If spending is only capped by the budget, rather than required to equal it, these same answers apply at the two budgets. Beyond £11,000 the unconstrained maximum is affordable, so further allowed spending is unused and the capped-budget value is constant; forced full spending would instead lower revenue.
Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 55 4 i Solution Created 2026-10-03 Updated 2026-10-14
The Feigenbaum period-doubling map is quadratic-critical at zero: and . Differentiating the renormalization equation once gives . Differentiate again and set :Cancellation of the nonzero second derivative therefore givesThe quadratic critical-point property matters. The normalization and functional equation alone, without specifying the Feigenbaum solution class, would not justify cancelling .
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 66 5 i Solution Created 2026-10-03 Updated 2026-10-14
The core parametric surface interrogation is evaluation of the position and its derivatives through second order:Position answers point queries; first derivatives give the differential, tangent directions and normal vector; second derivatives supply curvature. An evaluator should also report the parameter domain, patch adjacency, boundary curves and knot or crease locations, and whether these derivatives exist at the queried point. At a discontinuity boundary it should provide the relevant one-sided limits rather than silently average them.
For spatial searches, provide restriction or subdivision into equivalent smaller patches and certified bounding volumes, with error estimates when an approximate mesh is used. These allow intersection and closest-point algorithms to reject remote patches and refine the remaining candidates. A useful interface therefore combines differential evaluation with domain/topology and enclosure information. Inverse parameter lookup, ray intersection and nearest-point search can be built from these primitives using subdivision and local root or minimization solves; they need not be presumed exact basic evaluations of every representation.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 66 6 ii Solution Created 2026-10-03 Updated 2026-10-14
The corresponding subdivision surface interrogation needs mesh connectivity and patch adjacency, boundary and crease flags, local coordinate charts with transition maps, and subdivision into smaller patches with their original-chart mappings. Its evaluation enquiry returns a limit point, tangent derivatives and a normal vector; second derivatives are supplied only where the limit is sufficiently smooth. Certified bounding volumes and patch approximation errors allow a hierarchy for intersection and proximity searches. Boundary-curve enquiries complete the interface for clipping.
On regular parts of a subdivision surface, these evaluations may use its equivalent tensor-product or box spline patch. Near an extraordinary subdivision vertex, the local subdivision matrix determines the limit position through its constant left eigenvector, and its tangent modes determine the normal vector under the scheme's characteristic map of a subdivision surface regularity conditions. Refinement alone does not establish those conditions. A subdivision surface may have a well-defined tangent plane there without possessing second derivatives or Gaussian curvature. An interrogation interface must distinguish these cases and can work on surrounding regular charts when a higher derivative is unavailable at the vertex itself.
Together, subdivision, bounds, topology and limit evaluation support ray–subdivision surface intersection: bounds eliminate irrelevant patches; surviving patches are refined, and regular candidate intersections are corrected using position and first derivatives. The returned intersection is a point of the limit subdivision surface with an error certificate, rather than automatically a point on the last control mesh.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 66 6 i Solution Created 2026-10-03 Updated 2026-10-14
A useful subdivision curve interrogation supplies the following connected capabilities. It describes the parameter interval, open or closed topology, endpoints and break points; it evaluates the limit point and, where the scheme guarantees them, and ; and it refines or restricts an interval while retaining the mapping to the original parameter. It also provides enclosing bounds and a certified curve-to-chord error on each restricted piece. These are enough to build clipping, intersections, closest-point searches, tangents, curvature and adaptive sampling.
The enquiries concern the subdivision limit, not just a finite refined control polygon. For a stationary local refinement matrix , a limit vertex can be obtained from a normalized left eigenvector , , as . Derivatives use the appropriately scaled difference schemes or equivalent spline evaluation on regular intervals. The convergence and derivative hypotheses must actually hold for the scheme; no second derivative can be requested at an intrinsic crease.
If the subdivision mask is nonnegative and preserves constants, descendants and limit points lie in the relevant control-point convex hull, giving a useful enclosing volume. For subdivision masks with negative weights, that hull need not be an enclosure: the interface must supply another valid bound, for example from a proven refinement-error estimate. This distinction is important for safe spatial rejection in an algorithm.
Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 42 5 Solution Created 2026-10-03 Updated 2026-10-14
Write . The kernel density estimator with bandwidth isSufficient conditions are that be a nonnegative symmetric probability density function with and finite nonzero second moment , and that , . Symmetry and the second-moment assumption give . The expectation is a convolution:Taylor's theorem with integral remainder givesThe zeroth-order term integrates to , and the first-order term vanishes. The second derivative is bounded and continuous, so dominated convergence, with dominating function proportional to , yieldsCombining this with the supplied leading variance gives the asymptotic mean squared errorWhen and , its derivative is . It changes sign exactly once, giving the pointwise optimal kernel bandwidthPositivity of is needed for this positive interior optimum. The printed condition alone does not ensure it. For instance, is a normalized bounded probability density function with bounded continuous square-integrable second derivative, but and . At this point the displayed leading variance vanishes and the two-term AMSE has no positive interior minimizer; finer variance terms are needed to determine an appropriate bandwidth. The formal formula there gives zero, which does not satisfy the bandwidth assumptions.
For integrated error, the same expansion holds in : translation continuity of applied to the integral remainder givesIndeed Minkowski's integral inequality bounds the norm of the difference, divided by , by the integral of ; each translated difference tends to zero and is bounded by . This proves the claimed integrated bias expansion without assuming a uniform pointwise remainder over the whole real line.
If , direct integration of the variance givesThe last term is because is bounded and integrable, hence square integrable, and convolution with a probability density function does not increase its norm. It is negligible compared with . Thus the asymptotic mean integrated squared error and its minimizer areHere : otherwise the continuous second derivative vanishes everywhere, making affine, impossible for a probability density function on the whole real line.
Now take the standard normal density . Differentiation gives . Gaussian integration givesThe kernel constants cancel from the bandwidth ratio. At ,Put . The logarithmic derivative of is . On the function increases, giving its minimum at , with value one. On it decreases up to and then increases, giving its minimum . Thus the global minimizers are , and the normal-density local-to-global bandwidth ratio isThe ratio diverges at the two inflection points , where the second-order pointwise bias approximation vanishes and needs a higher-order replacement.
Normal-density pointwise bandwidth relative to the integrated-error optimum; minima at plus and minus square root of five
. Details. Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 51 1 c Solution Created 2026-10-03 Updated 2026-10-14
At a continuous phase transition the equilibrium order parameter tends continuously to its critical value, there is no latent heat, and the correlation length diverges. For at zero field, minimizing gives when and when . These minima join continuously at . The minimized singular free-energy density is zero above and below, so its first thermal derivative is continuous, while its second derivative has a finite jump in mean-field approximation.
A first-order phase transition instead has competing minima whose free energies cross while their order parameters remain distinct. The first derivatives of the equilibrium free energy generally jump; along a temperature-driven crossing this gives latent heat. For the symmetric sextic potential with , let . At phase coexistence, the stationary points and equality of the two free energies requireEliminating gives , henceAt coexistence , proving that all three degenerate minima are global. The equilibrium order parameter jumps from zero to one of the two nonzero values even though . The disordered minimum loses local stability at , and the nonzero stationary points first appear at . These spinodal points delimit metastability and are not the equilibrium transition line. Cubic terms, when symmetry permits them, provide another common route to a first-order transition.
Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 72 2 ii a Solution Created 2026-10-03 Updated 2026-10-14
At the present epoch, define and . For flat matter plus a cosmological constant, neglecting radiation,In an Einstein-de Sitter universe, , henceThe redshift drift is zero at , has initial slope , and decreases monotonically because . Its second derivative is , so the sketch bends downward, with at large positive redshift.
Past exam of the mathematics course of the University of Cambridge 2006 ii Paper 2 24H b Solution Created 2026-09-24 Updated 2026-10-14
For a parametrization , put . Decompose the second derivatives into tangent and normal components:These tangent coefficients are the Christoffel symbols. Differentiate and combine the resulting three identities to obtainHere is the inverse matrix. The formula proves that these symbols depend only on the first fundamental form and its first derivatives, not on the second fundamental form.
Past exam of the mathematics course of the University of Cambridge 2007 iii Paper 49 4 Solution Created 2026-10-03 Updated 2026-10-14
In kernel density estimation, take a kernel for density estimation that is nonnegative, symmetric, and has integral one, finite , and finite . Its smoothing bandwidth gives and the kernel density estimatorfrom an independent and identically distributed sample with probability density function . Nonnegativity and unit mass make the estimate itself a probability density function. We compare kernel for density estimation shapes by their optimized mean integrated squared error, rather than by their performance at an arbitrarily common numerical smoothing bandwidth.
For the usual second-order theory, assume, for example, that belongs to the Sobolev space and , and let , . The expectation is the convolution . The vanishing first moment of the symmetric kernel for density estimation and the integral Taylor remainder giveContinuity of translations in the L2 norm, with domination by , shows that in the L2 norm. Hence the integrated squared bias of a kernel density estimator isBy independence, the exact integrated variance of a kernel density estimator isIndeed the integrated second moment of a single summand is , and its integrated squared mean is . The latter quantity is bounded by , by Young's convolution inequality, so its contribution is . The bias-variance decomposition of mean squared error therefore yields the leading criterionThis asymptotic mean integrated squared error displays the bias-variance tradeoff: a small smoothing bandwidth increases integrated variance, while a large one increases squared bias of an estimator.
Differentiating the asymptotic mean integrated squared error with respect to gives . It changes sign once, from negative to positive, so its unique minimum isAt this minimum the integrated variance term is four times the squared bias of an estimator term. Substitution givesThus the leading rate is , and the shape comparison reduces to minimizing .
There is an essential scale ambiguity: if , then . Changing the scale of the kernel for density estimation merely changes the numerical convention for the smoothing bandwidth. MoreoverA comparison at the same raw is therefore not a fair comparison of shape. One can normalize the second moment to one, but that does not make the optimal smoothing bandwidth independent of shape.
The canonical kernel for density estimation instead chooses the unique scaleIt satisfies , and soConsequently all canonical kernels share the same leading optimal bandwidth . Only the multiplicative constant depends on shape. This is precisely the separation of shape choice and scale choice that makes the canonical kernel normalization useful. For an original unscaled kernel for density estimation, its corresponding optimal smoothing bandwidth is .
To prove optimal shape, scale a candidate kernel for density estimation to have second moment one. Let andDirect integration gives , , and . Thus is a rescaled Epanechnikov kernel. For any admissible with the same mass and second moment,Outside , and , because . The integral inside is therefore nonnegative, and multiplying by gives . Expanding the square now provesEquality forces almost everywhere. At fixed second moment, minimizing is equivalent to minimizing . Since is scale invariant, this proves the optimality of the Epanechnikov kernel over all nonnegative symmetric second-order kernels for density estimation, including the equality case up to rescaling.
In its usual scale, the optimal Epanechnikov kernel isIts canonical scale is , givingThe optimal Epanechnikov kernel shape is therefore a truncated parabola, rather than a particular support radius. The canonical kernel and unit-second-moment version represent the same shape but different scale conventions.
The numerical gains over other reasonable kernels for density estimation are modest. Define asymptotic relative efficiency against the optimal Epanechnikov kernel by the sample-size fraction giving the same optimized leading mean integrated squared error:For the Gaussian density kernel , and , so its efficiency is . For the uniform smoothing kernel , and , giving efficiency . The Gaussian density kernel is infinitely smooth, whereas the optimal Epanechnikov kernel has compact support and allows each observation to affect only a finite window. Such computational and smoothness considerations may outweigh a small leading-efficiency difference.
In practice is unknown. A plug-in estimator estimates this roughness functional from a pilot estimate of the second derivative and substitutes it into the optimal smoothing bandwidth formula. Alternatively, Leave-one-out cross-validation minimizeswhere uses the other observations. By independence, the expectation of the second term is , so . Thus it targets integrated error without knowing . The choice of smoothing bandwidth remains important: even for the optimal Epanechnikov kernel, setting multiplies the leading minimum error by .
The preceding optimum concerns nonnegative second-order kernels for density estimation and twice-smooth densities on the real line. Signed kernels of order ell can cancel higher moments for smoother densities and yield different rates, but may produce negative density estimates. A support boundary or a density jump also requires separate bias of a kernel density estimator analysis. These settings do not contradict the proved second-order optimality of the Epanechnikov kernel.
Past exam of the mathematics course of the University of Cambridge 2009 iii Paper 39 3 i Solution Created 2026-10-03 Updated 2026-10-14
Choose the utility function primitive . Any other primitive with the same derivative differs by a constant ; this adds to the value function and does not alter the policy. Put and let be the stock fraction. The self-financing portfolio equation, including consumption withdrawals, isFor a time-independent infinite-horizon value function , the Hamilton-Jacobi-Bellman equation isScaling initial portfolio wealth and all consumption rates by the same positive number preserves admissibility and scales utility function by its th power. This homogeneity gives . In particular,The consumption first-order condition and stock first-order condition giveThe second derivatives of the optimized expressions are negative, so these are their global maximizers. Writing and substituting into the Hamilton-Jacobi-Bellman equation givesThereforeThe given inequality is precisely , so the Merton consumption-investment problem value is . This derives the requested policy; no additional verification argument is needed here.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 210 1 Solution Created 2026-10-03 Updated 2026-10-05
For a kernel for density estimation with integral one and a smoothing bandwidth , the univariate kernel density estimator isIts expected value isThis is the convolution identity. It holds wherever the integral is defined, in particular everywhere for the bounded kernel used below. For a nonnegative kernel for density estimation, Tonelli theorem also gives the identity as an extended nonnegative integral. A signed kernel for density estimation instead requires absolute integrability for this interchange.
For the centred unit-width uniform kernel, substitute :Put . The Taylor theorem with Lagrange remainder givesThe odd function term integrates to zero, while . Hence the bias of a kernel density estimator obeysThis is a second-order pointwise bias bound for kernel density estimation. Existence and boundedness of the second derivative suffice for the stated remainder; continuity of that derivative is not an extra assumption.
For concentration, writeThe are independent and identically distributed random variables with a Bernoulli distribution, and . The required concentration bound follows from the Hoeffding lemma. We prove its Bernoulli case directly. Withwe have and , where is the exponentially tilted success probability. Therefore for every real . If or , the centred variable is identically zero and the same bound holds directly.
Independence and the exponential form of the Markov inequality now give, for ,Choose . Applying the same argument to the lower tail and adding the probabilities proves the Hoeffding inequality
To obtain the requested variance constant, use the additional bound that a probability is at most one. Set and . The tail integral formula for moments, justified by Tonelli theorem, yieldsThusThe clipping at one is essential for this integration argument to give that constant. It is an instance of a second moment bound from a clipped Gaussian tail. The exact Bernoulli distribution calculation also gives , an even stronger bound.
At an interior local extremum of a differentiable function, . The second-derivative test classifies a stationary point: a positive second derivative gives a strict local minimum, and a negative second derivative gives a strict local maximum. A zero second derivative is inconclusive: , , and at zero illustrate a minimum, a maximum, and neither.
Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge 2008 Paper 1 7 ii Solution Created 2026-10-18 Updated 2026-10-20
The domain is , and from below as . Its derivative is , so it decreases up to and then increases, with its unique global minimum at . It crosses the horizontal axis at and tends to as . Its second derivative is , so it is strictly convex. The right panel of the preceding figure shows these features; zero is an excluded endpoint with a finite limiting value, rather than a vertical asymptote.
A physical bound-state wave function must be single-valued, finite, square-integrable and normalizable. Across a finite step in a regular potential, both and its first derivative are continuous when the particle mass is the same on either side; integrate the Schrödinger equation across an infinitesimal interval to obtain the derivative condition. The second derivative need not be continuous.
An infinite hard wall is an exception to derivative matching: the interior wave function vanishes at the boundary, but its derivative need not equal the exterior zero derivative. A delta-function potential also permits a prescribed derivative jump, and an effective-mass interface requires the appropriate mass-weighted matching condition. Thus ordinary finite-step conditions should not be asserted without qualification for every singular potential.
Past exam of the numerical analysis course of the University of Oxford 2015 1 b ii Solution 2026-10-31
The trapezoidal rule is exact for every affine function , equivalently every polynomial of polynomial degree at most one: the linear interpolant is the function itself. These functions have , so the preceding upper bound is also zero. There is no contradiction: zero error is precisely what the bound predicts.
The degree of precision of a quadrature rule is one, since the quadratic polynomial in part (i) is not integrated exactly. This does not exclude exactness for particular higher-degree or nonpolynomial functions. For example , , has zero integral and opposite endpoint values, so the trapezoidal rule also gives zero. Its second derivative is generally nonzero, making the upper bound positive; an upper bound need not be attained. Signed quadrature error can cancel.
Past exam of the numerical analysis course of the University of Oxford 2015 1 b i Solution 2026-10-31
It suffices to assume . The polynomial interpolation error for the endpoint linear interpolant gives, for every interior , some withLet , which exists by continuity of the second derivative and the extreme value theorem. Since ,Integrating this pointwise inequality and using the triangle inequality for an integral yieldsThusThis derivation does not require choosing as a continuous function of ; the pointwise upper bound is sufficient.
The constant is sharp. Take the quadratic polynomial and write . Its exact integral is , its trapezoidal rule value is , and . ConsequentlyEquality holds, so no smaller universal constant than works under these assumptions. This is the sharp one-panel trapezoidal error bound.


