Past exam of the mathematics course of the University of Cambridge 2017 ia Paper 1 10D b Solution Created 2026-09-24 Updated 2026-10-03
The upper bound follows immediately from convexity, sinceFor the lower bound, writeApplying convexity and rearranging givesChoose a fixed with . Applying these bounds with and shows that the difference is trapped between quantities of order . Both tend to zero, so every convex function on an open interval is continuous.
Now suppose is a local minimum but some satisfies . For sufficiently small , the point lies in the neighbourhood on which is minimal, whereas convexity givesa contradiction. ThusDifferentiability at the minimizer is unnecessary: is convex, has its global minimum at , and is not differentiable there.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 205 5 Solution Created 2026-10-03 Updated 2026-10-05
For and labels , with squared-norm penalty normalized as , the kernel soft-margin support vector machine solvesHere is the hinge loss building block, and is column of the symmetric kernel matrix. The prediction iswith a fixed class choice, for example , when the score is zero. Other positive rescalings of the penalty change numerical coefficients in the optimality equation but not the zero-coefficient conclusion.
For a finite convex function , its subdifferential at isFor , affine composition preserves the defining convexity inequality: for ,If , the subgradient inequality gives , proving .
Conversely, let and first suppose . For every , the function is constant along . Applying the subgradient inequality for both signs of shows . Thus is in the span of , or with . Substituting gives for every real . Hence . If , is constant and ; since finite convex on all of has a nonempty subdifferential at , as well. This handles the case in which the suggested orthogonal projection would be undefined. ThereforeThis proves the subdifferential under scalar affine composition identity with all its degenerate cases.
Let be a fitted support-vector-machine margin. The subdifferential of the hinge loss yields choicesApplying the affine-composition identity and the subdifferential sum rule to the convex objective, its optimum satisfiesThe second equation is the intercept condition. Since is invertible, multiplying the first by gives the kernel support-vector coefficient from hinge activity formulaIn particular Invertibility is needed for this statement about the chosen coefficients: for with two positive labels, and give zero objective and both margins equal to two, while both coefficients are nonzero. A singular kernel matrix allows coefficient changes in the null space without changing the fitted function.
At prediction time, the sum can omit all zero coefficients, requiring only the number of evaluations of the positive-definite kernel corresponding to retained support vectors rather than all . This need not remove the cost of forming or solving with a dense training kernel matrix. Every misclassified point has , including a score-zero tie assigned to the opposite class, so and . Thus many classification errors imply many active support vectors and little prediction-time sparsity benefit. Correctly classified points inside the unit margin can also have nonzero coefficients; a point exactly on the margin need not have a nonzero coefficient.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 217 1 Solution Created 2026-10-03 Updated 2026-10-06
Put , the uniform bound on the supremum norm of the gradient. The fundamental theorem of calculus on a line segment, together with the inner product inequality , givesThus is Lipschitz continuous with respect to the L1 norm. The Gaussian random variables comprising and have finite exponential moments of their absolute values. More explicitly, for , Hölder's inequality gives . Consequently and every exponential expression below are finite, including when the covariance matrix is singular.
Use the convex function . Since is an independent copy of , Jensen inequality for the conditional expectation givesFor , define the Gaussian rotation of independent copiesWriting , both rotated covariance matrices are and their cross-covariance is zero. The pair has a centered multivariate normal distribution, so its components are independent and has the same probability law as . This calculation uses no inverse of and therefore also proves the assertion for degenerate multivariate normal distributions.
The path runs from to . The chain rule and the fundamental theorem of calculus give the pathwise identityApply Jensen inequality to the uniform probability measure on . Then use Tonelli theorem and the Gaussian rotation of independent copies to obtainThis proves the Gaussian rotation interpolation inequality in the required form:The stated almost-sure domination now gives an exponential moment of an absolute standard normal variable bound. If , completing the square in the standard normal density yieldswhere is the standard normal distribution function. Hence Markov inequality gives, for every ,The exponent is minimized at . Therefore the resulting Gaussian tail bound isNo independence of from or is needed: only the given almost-sure domination is used.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 326 3 4 Solution 2026-10-06
On a real Hilbert space, for a proper lower-semicontinuous convex function , the proximal operator isThe quadratic makes this objective strongly convex and coercive; the affine lower bound available for a proper closed convex function and weak lower semicontinuity give existence. The minimizer is unique. The subdifferential optimality condition isFor a positive parameter , uses in the same formula. On a general Banach space, the analogous norm-squared minimization is Banach-space proximal minimization; it can be set-valued and the identity-valued Hilbert derivative must be replaced by the duality mapping.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 340 5 a Solution Created 2026-10-03 Updated 2026-10-06
Write and use the real pixelwise inner products. Let be the adjoint operator, defined by . For each nontrivial grid direction its one-dimensional formula iswith the analogous formula in for . Their sum is ; unused components and do not contribute. For , . If discrete divergence is defined, its sign convention is , as in the adjoint of a discrete forward gradient.
Define the compact convex set and its image . The image is compact and convex, hence closed, and contains zero. The finite-dimensional Euclidean duality formula , applied independently at every pixel, givesThus the penalty is the support function . Its convex conjugate is the indicator functional of a constraint set , equal to zero on and infinity elsewhere. For , the conjugate supremum is zero; for , the separation theorem supplies a direction with , and scaling that direction makes the supremum infinite.
The proximal operator is . It exists uniquely because the objective is continuous, coercive and strictly convex. The Moreau decomposition for a proper closed convex function gives . The second term is the Euclidean projection onto a convex set, so the projection residual for discrete total variation isAlternatively, the variational characterization of convex projection says exactly when for every . Hence attains the support function at , giving and the same optimality condition. This supplies a direct verification of the Moreau decomposition step in this instance.
The printed wording needs “the residual after a projection”, rather than “the projection itself”. In general this denoising map is not a projection onto any fixed closed convex set. A metric projection onto a closed convex set is idempotent, while denoising a sufficiently large jump twice shrinks it twice. Concretely, for and data with rows and , the minimizer has rows and . Reapplying the map gives rows and , so it is not idempotent. These formulas have a global certificate: take , all other dual entries zero, giving with rows and ; it saturates every positive row difference and yields the primal optimality condition. The qualification is therefore not merely a consequence of a restricted two-level ansatz.
Past exam of the mathematics course of the University of Cambridge 2018 ib Paper 2 9H Solution Created 2026-09-24 Updated 2026-10-03
Fix , , and . Since the value function is finite, choose withFor the convex combination , convexity of givesso is feasible for the intermediate right-hand side. Convexity of then givesLetting provesso is convex.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 109 2 a Solution Created 2026-10-03 Updated 2026-10-05
Encode each point by a partial binary sequence of length : coordinate is fixed to zero if , fixed to one if , and unrestricted otherwise. Disjointness makes these prescriptions consistent. Let be the number of fixed coordinates, equivalently the number of pairs containing , and let be the set of complete sequences consistent with them. Then .
The separating family of disjoint set pairs ensures that and are disjoint whenever : one coordinate prescribes opposite bits. Counting the sequences in these disjoint subcubes gives the disjoint subcube packing inequalitySince is a convex function, Jensen inequality impliesTaking logarithms yields . Therefore, for ,The PDF omits the qualification . For , it follows from feasibility: separation requires positive total incidence, so the stated incidence bound cannot hold with . For , separation is vacuous, and makes the printed quotient undefined; the intended parameter range is .
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 205 4 Solution Created 2026-10-03 Updated 2026-10-05
For a convex function , its subdifferential at is the set of supporting slopesThe subgradient optimality condition isIndeed, the defining inequality with is exactly the global minimum inequality. For the subdifferential of the L1 norm, the coordinates vary independently:
Let . The Karush-Kuhn-Tucker conditions for Lasso give a vector such that . If , the unsquared residual norm is differentiable at this fit, with gradientUsing the subdifferential sum rule, choose to obtainConvexity now proves the tuning relation between Lasso and square-root Lasso:The positive residual assumption is needed both for this gradient and for the quotient defining the tuning parameter.
For the final score calculation, use the usual fixed-design interpretation of the normal linear model: regard and the tuning parameter in the regression of as fixed, and choose that regression's minimizer using only those inputs. Its nonzero residual then has the Square-root Lasso optimality conditionExpanding the response residual givesSince is a fixed unit vector and , a linear image of a multivariate normal vector gives . Finally, Holder inequality and the residual score bound yieldThis is the residual-score decomposition from square-root Lasso. The normality statement also holds conditionally on a design independent of the noise. If were chosen from the response noise, for example through the preceding formula, the direction would require a separate independence argument; the final calculation treats as fixed.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 213 1 ii Solution Created 2026-10-03 Updated 2026-10-05
First consider unit requirements, . The Erlang loss formula for a resource with capacity and offered traffic isThe Erlang fixed point approximation assumes that resources block independently and that the traffic retained after screening at other resources can be treated as a Poisson process. If is the approximate blocking probability and , the reduced-load approximation givesThe link whose load is being calculated is excluded from the screening product. Otherwise one would confuse its offered load with its carried load.
For existence, these equations define a continuous map from into itself. The Brouwer fixed-point theorem gives a fixed point. Assume ; a zero-capacity resource forces rejection of every call needing it and can be removed together with those call types.
For uniqueness, let have probabilities proportional to , , and write . Direct differentiation givesThese identities hold for , and . Also increases from zero to one and increases from zero to .
Put . Define by , and define . This is a continuous, strictly increasing function on , starting at zero and tending to . Multiplying each Erlang fixed point approximation load equation by transforms it intoThese are exactly the zero-gradient conditions ofEach integral is a strictly convex function; the exponential terms are convex functions. Thus is a strictly convex function. It is also a coercive function, since , so it has a unique minimizer. At , its partial derivative is negative if some positive-traffic route uses , so that coordinate of the minimizer is positive. If no route uses , the unique minimizing coordinate is zero. The minimizer therefore satisfies the equations in every coordinate. Conversely any fixed point has , finite , and these zero-gradient equations, so must equal that unique minimizer. Hence the Erlang fixed point approximation exists and is unique for fixed routing.
For integer requirements, the common generalized Erlang fixed point approximation usesMultiplication by gives the same equations for , so the existence and uniqueness argument also covers this generalized approximation. It remains an approximation, rather than the exact blocking law for a call requesting several units.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 213 2 Solution Created 2026-10-03 Updated 2026-10-05
Let be the finite, nonempty set of available routes for source-sink pair , and write for a route flow. The link-route incidence matrix has when route uses link , and zero otherwise. The source-sink route incidence matrix has when . Thus gives link throughputs and gives aggregate source-sink flows. A route's delay isA Wardrop equilibrium uses only routes of minimum delay for their source-sink pair:An infinitesimal user cannot improve its delay by changing route.
For fixed , the feasible route flows form a nonempty compact convex set: for each , and . Define the Beckmann potentialIt is continuous, so the extreme value theorem gives a minimizer. Since every is strictly increasing, is a strictly convex function of . Its route-flow gradient is .
If an occupied route has greater delay than another route , moving a small amount of flow from to gives a negative directional derivative, contradicting minimality. Conversely, at a Wardrop equilibrium, for any feasible ,The first-order condition for convex optimization therefore proves optimality. ConsequentlyIf two minimizers had different , their midpoint would give a strictly smaller Beckmann potential. Thus the equilibrium link throughputs are unique. The route flows need not be unique, since need not be a strictly convex function of .
For a concrete example, take two successive stages of parallel links: in the first stage and in the second, with one source-sink pair and four routes . Put on every link and total flow . All allocationshave the same link throughputs and every route has delay two. These distinct allocations are all Wardrop equilibria.
For elastic demand, use the standard physical convention that and is finite, continuous, and strictly decreasing. Set and , and define the inverse demand function on . It is continuous and strictly decreasing, with and as . Choose any reference value and setEach summand of is a strictly convex function. The reference values only add a constant to the objective. In the usual case , one may use a lower limit zero whenever the improper integral is finite; that integrability is not guaranteed merely by continuity of .
Minimize over the compact feasible set , , interpreting the objective at by its one-sided limit, which can be . This extension is sequentially lower semicontinuous, and an interior-demand feasible point has finite value, so a minimizer exists. It cannot have : adding a small amount on any route for has bounded marginal link cost, whereas its marginal demand benefit tends to infinity. Thus .
For , the route-flow partial derivative is . The first-order conditions for convex optimization giveIf , reducing any occupied route cannot improve the objective only if that route has zero delay; nonnegative link delays then give . Therefore the conditions in every case areConversely these conditions give the nonnegative directional derivative for every feasible competitor and hence minimize the convex function . Allowing explicitly yields the stated form with and , with inverse-demand endpoint conventions understood. In particular, is defined on its demand range, rather than evaluating outside that range.
Strict convexity in the pair proves that the equilibrium aggregate source-sink flows and link throughputs are unique. Individual route flows may still be nonunique. Nonnegative, finite demand, nonnegative delays, finite route sets, and a usable route for each source-sink pair are the implicit modeling assumptions needed for the existence assertions.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 326 3 2 a Solution Created 2026-10-03 Updated 2026-10-05
For a functional on a real Banach space, its convex conjugate is defined on the dual space byHere is the dual pairing. For complex spaces, use its real part, equivalently regard the space as real for convex analysis. The convex conjugate is a convex function, being the supremum of affine functions of , even when itself is not convex.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 326 3 2 b Solution Created 2026-10-03 Updated 2026-10-05
Let . To prove convexity, take with finite values, , and . By the definition of infimum, choose withPut and . Convexity of and givesLet . If either endpoint value is infinite, the convexity inequality is automatic, and gives equality. Thus the infimal convolution of two convex functions is convex under the stated properness assumption. The proof uses approximate minimizing splits, so no attainment of the inner infimum is assumed.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 340 5 c Solution Created 2026-10-03 Updated 2026-10-05
For a differentiable convex function with -Lipschitz gradient and a proper lower-semicontinuous convex function , the proximal gradient method isThe proximal operator is . To obtain an explicit iteration for discrete isotropic total variation, let with the printed zero boundary differences andThe dual is minimization of over , and the primal minimizer is . Here must be the exact adjoint operator of these differences. For example,with the analogous formula in for ; for both operators are zero. Equivalently use in the backward-difference expression, ignoring unused edge components.
The gradient of the dual objective is , with Lipschitz constant . Taking to be the indicator functional of a constraint set makes its proximal operator the Euclidean projection onto a convex set. Thus a valid explicit algorithm isThe bound follows by summing over grid differences. Finite-dimensional proximal gradient method convergence gives a dual minimizer and convergence of the recovered to the unique primal minimizer. Projection is pointwise in the dual; applying pointwise soft thresholding directly to would not compute the primal TV proximal operator.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 205 4 Solution 2026-10-03
A vector is a subgradient of a convex function at whenA point minimizes exactly when . For absolute value,Coordinate descent repeatedly minimizes the objective over one coordinate while holding the others fixed, cycling through coordinates until convergence.
The Lasso solvesFor the first update, define the partial residual and scoreSince , the coordinate objective differs by a constant fromIts subgradient condition gives the soft thresholding update
For the stated Berhu penalty, the derivative is when and when . The coordinatewise Karush-Kuhn-Tucker conditions therefore give
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 348 2 b ii Solution Created 2026-10-03 Updated 2026-10-05
Use the intended strong convexity bound . The original PDF omits on the right. The printed bound for every is impossible when , as shows. Equivalently, the intended bound is stated for unit vectors. The norm of is the operator norm induced by the Euclidean norm, or any matrix norm that bounds it.
SetThis function is , and its Hessian matrix satisfiesPart (i) therefore proves that is a convex function. The perturbation can use up the entire positive lower bound defining a strongly convex function; only convexity, rather than strict positivity of the Hessian matrix, is asserted.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 348 2 b i Solution Created 2026-10-03 Updated 2026-10-05
Restrict to an arbitrary line segment by defining for . The chain rule and the assumed positive semidefinite matrix condition on the Hessian matrix giveThus is non-decreasing. For , integrating on the two subintervals givesRearranging, and including the immediate endpoint cases, yieldsThis is precisely the definition of a convex function.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 348 2 c Solution Created 2026-10-03 Updated 2026-10-05
For every admissible transport map , the pushforward measure condition gives for -almost every . Hence , andApply the Jensen inequality to the convex function and the probability measure :Translation by one sends the source uniform distribution to the target uniform distribution, so is admissible. Its displacement is constantly one, givingNo monotonicity assumption on is needed, because all displacements have the same sign. The same argument with a transport plan also gives the identical minimum for the Kantorovich optimal transport problem.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 348 3 d Solution Created 2026-10-03 Updated 2026-10-05
Put and use the two Kantorovich potentialsFor every ,Thus the pair is dual feasible, with equality precisely on . Finite second moments make both potentials integrable; compactness of is more than sufficient. For any admissible transport map , integrating the inequality and using its pushforward measure givesThe admissible map attains equality. ConsequentlyThe same certificate proves optimality of its graph transport plan among all transport plans. Notice that need not be a convex function when : it is a cost dual potential. The associated convex gradient potential is instead .