Past exam of the mathematics course of the University of Cambridge 2020 ib Paper 2 19H Solution Created 2026-09-24 Updated 2026-09-29
The Lagrangian sufficiency theorem for a maximization problem says the following. Suppose the constraints are and , and defineIf a feasible satisfies complementary slackness and globally maximizes , then globally maximizes . Indeed, for every feasible ,This proves the theorem. In a concave maximization problem, stationarity and the boundary optimality conditions ensure the required global maximum of the Lagrangian.
For the problem at hand, retain as the domain and attach a multiplier to the equality:For , this is concave in on the domain. Its separate maximizers satisfywhile the term is . Thus may be positive only when ; when , its maximizing value is .
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 218 3 b Solution Created 2026-09-24 Updated 2026-09-25
Let , so . Since class counts add,The function is concave function on . Jensen inequality therefore giveswhich is precisely . Thus an axis-aligned split cannot increase the weighted empirical Gini impurity.
For , choose the uniform partition of an interval into pieces and its midpoint tagsTheir arithmetic mean is exactly . Apply the given Jensen inequality with equal weights :Multiplying by gives a midpoint Riemann sum on the left. Its mesh of a partition is , so the Riemann sum convergence theorem givesFor the equality is immediate. Together with part i, this is the Hermite-Hadamard inequality with the directions appropriate to a concave function.
The stated weighted inequality is the Jensen inequality for a concave function. Assume ; if , both sides of the required inequality are zero. Write with . Applying the weighted inequality at the two endpoints givesThus the affine function joining the endpoint values lies below . By monotonicity of the Riemann integral,This is the lower bound in the Hermite-Hadamard inequality for a concave function.
The cycloid has limiting endpoints and , with its highest point at . The transformation sends to and preserves , so the arch is symmetric about . Its slope decreases from through zero to , giving vertical limiting tangent lines at the cusps and a horizontal tangent line at the top. More explicitly,so the arch is a concave function throughout its interior. The endpoint cusps are limiting points, excluded by the open parameter interval.
Within the requested interval, the function is symmetric about because . Its derivative is positive before , zero there, and negative afterwards. The negative second derivative shows that this is a strictly concave function. Consequently its unique maximum is . It tends to at both ends, giving vertical asymptotes and .
The chord through the endpoints is the straight line . At , the tangent line isThese two straight lines have the same slope, as required by the mean value theorem. Since , the natural logarithm is a concave function: its graph lies above the chord and below this tangent line.
The mean value theorem for the logarithm on the interval from one to two
. The chord and the tangent line at are parallel. The marked point lies on the graph of the natural logarithm. Details.We first establish the lower truncation identity as well. The pair has the same hypotheses as , because conditional expectation is linear and negation preserves equality of probability distributions. Apply part (ii) to this pair and multiply by to getFor every real ,Using this identity, part (ii), the lower truncation identity, and linearity of conditional expectation givesIn particular the argument does not assume that a function obtained by scalar clipping is a convex function or a concave function.
Write . The bounded random variables and have the same probability distribution, and the displayed identity identifies the latter as the conditional expectation of the former. They are square-integrable, so part (i) gives almost surely. Take and discard the countable union of exceptional null sets. At every remaining outcome, let to obtainThus conditional expectation preserving a distribution forces equality even when only integrability is assumed.
The function is a concave function, and is integrable since . The concave form of the conditional Jensen inequality givesThe random variables and have the same probability distribution, so . Using the law of total expectation, the nonnegative difference between the right and left sides of the inequality has zero expectation. It must vanish almost surely. ThereforeThe equality comes from the distributional assumption as well as the conditional Jensen inequality.
It remains to justify that the iteration stays where the error estimate applies. Because is a concave function, its graph lies below each tangent line. At any , the tangent has nonpositive value at , negative slope, and nonnegative value at . Its zero therefore satisfiesBy mathematical induction, the Newton root-finding iteration stays in and decreases to some limit . Continuity in implies , so uniqueness gives .
Now the supplied error bound applies at every step:This proves at least quadratic convergence, with an invariant interval and a nonvanishing derivative explicitly established.
Here a dense -by- matrix has entries, about GB even with eight-byte storage per entry. Use limited-memory BFGS on the negative of the objective, or equivalently its positive-definite approximate-metric form of gradient ascent. It stores only a fixed small number of vector pairs, costing memory rather than .
Let and put . Direct use of the chain rule givesIf denotes the positive-definite inverse-Hessian matrix approximation for , the iteration iswith a line search increasing and the usual safeguarded limited-memory updates. No exact Hessian matrix is required. With fixed memory and the usual bounded-metric and line search hypotheses, expect local linear convergence near a nondegenerate strict maximum; fixed-memory limited-memory BFGS does not generally inherit the superlinear theorem for full-memory BFGS.
Unlike the preceding objective, is not generally a concave function. Thus this is a method for finding a local maximum; comparison of different converged candidates or a global search is needed to certify a global maximum for arbitrary centres. The symbolic problem supplies no assumption that would justify an unconditional global-convergence claim.[ref]
Quasi-Newton Methods by NEOS Guide. Final paragraphs: storing only recent secant vectors, linear-in-dimension memory, and the L-BFGS implementation
The denominator is positive throughout the domain. Holding fixed, differentiate with respect to :At the interior point this second partial derivative is , so the restriction to a horizontal line is locally strictly concave, ruling out convexity. At the interior point it is , ruling out concavity. Restrictions of a convex function or a concave function to every line segment must retain that property. Consequently is neither convex nor concave on its stated domain.
Pointwise minimum 2026-10-25
The function taking the lesser value at every common-domain point. It forms the lower envelope of two graphs. For finitely many affine functions it is a concave function: each affine branch is at least the corresponding convex combination of the two endpoint minimum values, so taking the minimum preserves that lower bound. A maximizing mixed strategy in a two-player zero-sum game maximizes such a lower envelope of opposing pure-choice expected payoffs.
Consider the minimization problemThe objective function is a strictly convex function with its unconstrained optimization minimum at . If , it decreases throughout the feasible set until the bound is reached. If , the feasible set already contains . HenceWith , the optimization Lagrangian and KKT conditions areSubstituting gives the unique inequality Lagrange multiplierFor , the active constraint has . For , there is strict slack and . At , the active constraint has zero Lagrange multiplier: the boundary happens to pass through the unconstrained optimum. Feasibility and complementary slackness must both be checked; solving only would allow infeasible candidates.
The same quadratic objective with active, just-touching and inactive upper bounds
. Details. An independent certificate follows by completing the square:The Lagrange dual function is a concave function of . Its maximum over occurs at and equals . Thus every case has an explicit lower bound attained by a feasible point; the KKT conditions provide a certificate that can be checked without searching all real numbers.
Root-moment bound for open self-avoiding walks Created 2026-10-06 Updated 2026-10-07
In independent bond percolation on a graph, let be the number of -step self-avoiding walks from a fixed graph vertex and the number that are open. Then . The Jensen inequality for the concave function gives . No independence between different self-avoiding walk indicators is needed. When , the limit superior is at most .
Strictly increasing concave function 2026-10-14
Let a differentiable concave function on all of be strictly increasing in each coordinate separately. Every coordinate derivative is strictly positive. Indeed it is nonnegative by monotonicity and nonincreasing along its coordinate by concavity; a zero value would force zero derivative on the remaining positive ray and hence a constant segment. The global-domain assumption matters at endpoints of restricted domains.
Tangent line Created 2026-10-06 Updated 2026-10-14
The tangent line to a differentiable function at is its affine first-order approximation . For a differentiable concave function, it is an upper bound throughout a convex interval: the secant-slope inequality and passage to the derivative give . This upper bound constructs valid envelopes in adaptive rejection sampling.
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.
Two-spin quenched and annealed free energies 2026-10-18
Choose two Ising spins with Hamiltonian , where independently takes or with equal prior probabilities and . This original finite example has no geometrical frustration and no phase transition. Its four spin assignments give . ThereforeThe concave function puts . For this two-value case the claim is just , obtained by squaring . Thus no formal continuation of replicas is needed to see the distinction.
In the annealed disorder ensemble, the stronger bond has probability , approaching one at low temperature. A quenched disorder collection instead retains one half at each coupling. As , and : averaging samples and allowing the material variables to equilibrate describe different physics.




