For a differentiable objective and regular constraint , a constrained stationary point satisfieswhere is a Lagrange multiplier. Solve these equations for both the coordinates and .
Geometrically, the gradient is normal to the constraint level set when . Every feasible infinitesimal displacement is tangent to that level set, so . At a constrained stationary point, the directional change must also vanish for every such tangent displacement. Thus is normal to the same tangent plane and is a scalar multiple of . This is the geometric basis of the Lagrange multiplier method.
For a second constraint , with linearly independent vectors and , the feasible tangent directions are perpendicular to both. Their normal space is the linear span of these two gradients, so introduce a second Lagrange multiplier:These equations find candidates; deciding whether they are maxima, minima or saddle points requires further analysis. Constraint points where the required gradient independence fails must be examined separately.
The angles in the PDF are measured from the vertical normal to the interface. The horizontal displacements of the two path segments are and , while their lengths are and . Thus the geometric constraint and travel time areThe Lagrange multiplier equations giveCancelling the positive geometric factors gives , henceThis is Snell's law, . The relation depends only on the ratio of the two speeds, so changing leaves the relation unchanged; it changes which angles satisfy it together with the geometric constraint.
For a minimum check, let be the horizontal distance to the crossing point. ThenandThus the travel time is a strictly convex function of , and its stationary point is the unique global minimum. For positive , , placing the crossing between the two endpoint projections.
A central cross-section of the sphere gives the constraint , and the cylinder's volume is . At an interior optimum with , the Lagrange multiplier equations for this constrained optimization problem areThe first gives ; substitution into the second gives . The constraint then givesThe feasible nonnegative form a compact arc, whose endpoints have zero volume. Since this is the only positive stationary candidate, it is the global maximum. Its volume and fraction of the sphere's volume are
Use the Lagrange multiplier condition for :Neither coordinate can vanish at a constrained stationary point: either would force both to vanish, contradicting the constraint. Substitution therefore gives , so or . In either case , givingEqual signs give the two points attaining the global maximum ; opposite signs give the two global minima with . These exhaust the extrema because the ellipse is compact, its constraint gradient never vanishes on it, and is smooth. The bound can also be checked by setting , : then and , so .
Let . Its gradient cannot vanish on the ellipsoid, since the origin is not on the surface. Thus the Lagrange multiplier equations capture every constrained stationary point:The temperature is a sum of squares, so . Equality requires and . The surface constraint then gives the four coldest points:These are all such points, because a sum of nonnegative terms can vanish only when each term vanishes.
Solve the Lagrange multiplier equations by separating cases according to which coordinates vanish, so that division by a coordinate loses no stationary points.
If and , the surface constraint givesIf and exactly one of is nonzero, the equation for that nonzero coordinate forces , while the equation gives . Hence there are no stationary points in that case.
If and , the two remaining equations give . The surface constraint therefore has equal contributions from and , giving four stationary points:If all three coordinates are nonzero, the equations implyso and . Substitution in the surface constraint gives, with ,Thus the remaining eight stationary points and their temperatures areFor example, their common temperature follows from . The cases with and are exactly the coldest points already listed. This exhausts all possibilities, giving fourteen other stationary points in addition to those four.
Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge 2001 Paper 1 9 Solution Created 2026-10-18 Updated 2026-10-20
Variational formulation. Take real with in the interval, and impose homogeneous Dirichlet boundary conditions, or other suitable conditions that cancel the boundary terms. The functionalhas Euler-Lagrange equationwhich is equivalent to . The same construction is constrained stationarity of the energy subject to , with a Lagrange multiplier. For fixed zero endpoint values, the variation vanishes at both ends; homogeneous zero-flux conditions also cancel the boundary term .
Multiplying the differential equation by and using integration by parts gives the Rayleigh quotientFor a nonzero admissible trial function, by the Rayleigh-Ritz variational principle. The Rayleigh-Ritz method chooses trial functions satisfying the endpoint conditions, often with adjustable coefficients, and minimizes this quotient over that trial family. Expanding in a normalized eigenbasis shows why the lower bound holds: , a weighted average of eigenvalues no smaller than the least one.
Radial quadratic trial. The radial problem becomeswhere the printed endpoint notation refers to . Thus and . At the origin the vanishing and regularity of make the boundary term vanish; the weight must be retained in both numerator and denominator.
For a quadratic , the derivative condition sets and the outer condition gives . Overall amplitude cancels in the Rayleigh quotient, so take . ThenwhileConsequently
Why the estimate is higher. For a regular radial function put . Then , and direct differentiation transforms the equation to . Its first mode is , corresponding to with its continuous value at the origin. Thus . The quadratic trial is not proportional to that Spherical Bessel function, so it has nonzero components in higher modes. Its Rayleigh quotient is therefore strictly larger than , in agreement with .
Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge 2001 Paper 2 6 Solution Created 2026-10-18 Updated 2026-10-20
Tensor transformation. Under an orthogonal transformation , the magnetic moment and magnetic field intensity have transformed components , for a proper rotation. The physical relation must retain its form, giving , henceThis is precisely the law for a Cartesian second-rank tensor. Both magnetic quantities are axial vectors; under reflections they each acquire the same determinant sign, which cancels from the transformation of the magnetic susceptibility tensor.
Parallel directions. The condition is the eigenvalue equation . For the matrix in the paper, expansion of givesSolving the three resulting homogeneous systems givesThe three directions are mutually orthogonal. For the zero eigenvalue, the induced magnetic moment is zero: the proportionality equation still holds with factor zero, though there is then no nonzero moment direction to assign.
Energy extrema. The stipulated energy is . At fixed , a Lagrange multiplier calculation givesbecause is a real symmetric matrix. Thus all stationary directions are the eigenvectors, for which . Equivalently write ; thenThe Rayleigh quotient immediately givesThe intermediate direction is stationary with but is not an extremum on the sphere. At the minimum , so the precise extremum condition is proportionality, including a vanishing proportionality factor.
Constant-energy surface. In the original field components,For a fixed positive value , is unrestricted and the cross-section satisfies . The surface is therefore an elliptic cylinder, with axis along and transverse semiaxes along and along . This is an example of level sets of a positive semidefinite quadratic form. At the surface degenerates to the axis line; no negative-energy level exists.
Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge 2005 Paper 1 9 Solution Created 2026-10-18 Updated 2026-10-20
Introduce a Lagrange multiplier for the normalization and vary . With variation satisfying , integration by parts givesThe upper endpoint term vanishes, and the lower term vanishes because with the stipulated regular differentiable behavior. More generally the natural endpoint condition is there. The fundamental lemma of the calculus of variations gives , the stated Sturm-Liouville problem.
The Rayleigh-Ritz variational principle estimates the lowest eigenvalue by minimizing over an admissible finite-dimensional trial family. Restricting the family can only raise the minimum.
For the specific radial problem, and . The trial has . Normalization gives , with the negative sign an equivalent choice. The numerator is , soThis is the quadratic case of the power-law variational bound for a circular membrane. The exact first eigenvalue is smaller because the polynomial trial is not the exact Bessel function of the first kind eigenfunction. Expanding a trial in the exact orthonormal eigenbasis expresses its Rayleigh quotient as a weighted average of eigenvalues, so no admissible trial can lie below the lowest one.
Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge 2009 Paper 1 10 a Solution Created 2026-10-18 Updated 2026-10-20
At a regular constrained extremum, the method of Lagrange multipliers makes stationary for a constant . For an endpoint-vanishing variation , integration by parts givesThe fundamental lemma of the calculus of variations therefore yieldsThis Euler-Lagrange equation must be supplemented by the two endpoint conditions and the prescribed integral constraint, which determine the constants and multiplier. Existence of the normal multiplier assumes that the first variation of is not identically zero. If that regularity fails, the general multiplier equation uses , with ; one cannot automatically set .
Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge 2009 Paper 1 9 Solution Created 2026-10-18 Updated 2026-10-20
Introduce a Lagrange multiplier for the constraint and vary with , where . The first variation isThe fundamental lemma of the calculus of variations gives the Sturm-Liouville equation . Multiplying by , integrating by parts and using the endpoint conditions gives . Therefore the normalization implies . Assume the coefficient and function regularity needed for these variations and integrations; the condition makes the constraint derivative nonzero at a normalized function.
For the radial problem, set . A direct differentiation gives , soFinite supplies the first boundary value. The Rayleigh quotient is . For the two trials, and , the numerator-denominator pairs are and , respectively. HenceThe exact eigenvalues are , so . Both trials give upper bounds by the Rayleigh-Ritz variational principle, and the first estimate is more accurate, since it is smaller. Trial admissibility uses the Dirichlet energy form for ; the first trial's nonzero radial derivative at the origin does not invalidate this variational calculation.
To improve, add independent trial functions and minimize the quotient over their span. Here merely combining the two supplied trials gives no improvement: their two-dimensional stiffness and mass matrices areThe lowest Ritz value is still ten. Instead add the symmetric quartic . On the span of , the generalized eigenvalue problem hasIts determinant is , so the least root givesThis is strictly better than both original estimates. The symmetry obstruction in a polynomial Rayleigh-Ritz trial space explains why the cubic addition failed while the quartic helps. It is also the shifted-interval version of the polynomial Rayleigh-Ritz trial space for a one-dimensional box.
Use a Lagrange multiplier for the norm constraint. For real variations with , integration by parts givesThus stationarity is equivalent to the Sturm-Liouville problemMultiplying by and integrating shows , so the constrained stationary values are the eigenvalues, and the normalized stationary functions are their eigenfunctions. Conversely the eigenvalue equation makes the constrained first variation vanish. The self-adjoint operator has weight one.
For , zero and negative eigenvalues yield no nonzero solution with both Dirichlet boundary conditions. Positive eigenvalues have solutions after the left condition, and the right condition gives , . Hence the lowest eigenpair iswhere the amplitude follows from .
The Rayleigh-Ritz variational principle bounds the full lowest eigenvalue by . Its derivative contribution is one. For the linear potential, reflection about givesThus the sine trial bound for a linear potential on an interval isFor the bound is strict, since is not a constant multiple of . Also by the Poincaré inequality and the nonnegative potential. Equality in the upper bound holds at .
One suitable choice is homogeneous Dirichlet boundary conditions, , with variations vanishing there. Assume real and the stated positive . Introduce a Lagrange multiplier for . For real variations, integration by parts givesThe boundary term vanishes, so the fundamental lemma of the calculus of variations yieldsMultiplying this equation by , integrating, and using the boundary conditions gives . Thus the multiplier, the eigenvalue, and the constrained stationary value coincide. Conversely every normalized eigenfunction makes the first variation vanish for all tangent variations satisfying .
Homogeneous Neumann boundary conditions, at both endpoints, or mixed Dirichlet and Neumann conditions also work with this energy form. General Robin boundary conditions require the corresponding boundary terms in the form; they cannot simply be inserted into the displayed unmodified integral.
Minimize or maximize subject to . A Lagrange multiplier givesThe constraint excludes and implies , so it is a regular constraint surface. Multiplying the stationarity equation by gives . Thus the distance extrema on a real quadratic surface satisfyEvery constrained extremum lies in a positive-eigenvalue eigenspace, with squared distance . If is positive definite, the global minimum is and the global maximum is . For an indefinite or singular form the surface need not be bounded; eigenvector directions give stationary candidates, which may be saddles and need not supply both global extrema. With a repeated positive eigenvalue, there can be an entire family of equally distant stationary points.
For fixed endpoint values and smooth admissible variations, the Euler-Lagrange equation isThe first variation follows by integrating by parts and using at the endpoints.
For the claimed first integral, differentiate directly:Along an extremal the bracket vanishes. Thus when , the Beltrami identity isFor a further regular constraint , introduce a constant Lagrange multiplier and make stationary. Apply the Euler-Lagrange equation to the combined integrand, then impose the endpoints and to determine the integration constants and multiplier.
Introduce a constant Lagrange multiplier for the fixed arc length. Up to an irrelevant constant term, the augmented functional isIt has no explicit dependence, so the Beltrami identity givesFor the hanging minimum choose . Writing , this becomes . Its nonconstant smooth solution isOne may verify it without dividing by at the lowest point: the full Euler-Lagrange equation gives , which the expression satisfies everywhere. The branch with negative is the inverted stationary chain rather than the hanging minimum. The catenary minimizes the integral of height along a fixed-length curve, so the positive branch is also the global minimum, not merely a stationary candidate.
Self-adjoint form. Grouping the two derivative terms gives . Thus a regular Sturm-Liouville operator isThe boundary conditions are mixed Neumann boundary conditions at zero and Dirichlet boundary conditions at . For , , and , as required. The boundary term vanishes for two functions satisfying these conditions, confirming self-adjointness on that domain.
Constrained variation. Introduce a Lagrange multiplier for the normalization and varyIts first variation isThe endpoint term vanishes because and . The Euler-Lagrange equation is thereforewhich is exactly the original eigenvalue problem for the boxed choices of . Multiply by and integrate by parts. The same endpoint conditions giveThus the stationary functional values are the eigenvalues, with . More generally, before normalization the relevant Rayleigh quotient is
Unperturbed ground mode. At , the equation is . The quadratic form is nonnegative, and zero eigenvalue would force a constant function incompatible with the endpoint at . For positive , . The derivative condition forces , while the other endpoint gives . HenceThe lowest eigenvalue and normalized eigenfunction are
Trial-function bound. The Rayleigh-Ritz method says that the minimum eigenvalue is no larger than the quotient of any admissible trial function. The same still satisfies both boundary conditions and retains unit norm. Its derivative is , givingUsing ,Therefore the affine-parameter Sturm-Liouville eigenvalue bound isThis is an upper bound for every , not merely a small-parameter approximation. As a lower-bound check, and the unperturbed variational minimum imply for every admissible normalized . Thus
The endpoint constraints are . The constants in the three costs contribute only , and respectively, so they do not affect the minimizing shapes. For companies B and C, the fixed arc length isThe original PDF has as company A's first variable term. The local TeX transcription has lost that derivative dot and incorrectly repeats ; the calculation below follows the PDF.
Company A. The relevant functional is . The Euler-Lagrange equation givesIts general solution is . Adding and subtracting the endpoint equations gives and . ThusThis curve is odd, negative on the left half and positive on the right half; company A has no lower-half-plane restriction. It is the unique global minimum. Indeed, for any endpoint-zero variation , integration by parts and the differential equation cancel all linear terms, leavingunless .
Company B. Minimize under the length constraint. Introduce a constant Lagrange multiplier and apply the Euler-Lagrange equation to :The curvature is constant, so the required lower arc is a circular arc. Writing its radius as and imposing the endpoints givesSince , its length determines the radius:Equivalently, introduce with . Then , which increases strictly from to . The stipulated range of therefore selects one minor arc. At it becomes the lower semicircle, with vertical endpoint tangents; it is still a single-valued finite-length graph.
Global minimality follows from the convexity of the augmented slope cost with . For a competitor ,Consequently the augmented cost difference is at least . Competitors have the same length, so the multiplier contribution cancels and the original cost is minimized. This proves that a circular arc maximizes area below a fixed chord: minimizing negative signed height maximizes the area between the fence and the chord.
Company C. The variable cost is . The augmented integrand is . Since it has no explicit dependence, the Beltrami identity givesThe hanging branch with integrates to . Equal endpoint heights force , and the endpoint value fixes . ThusIts length isWriting , the equation has one positive solution for every : its derivative has numerator . The curve is a catenary, is even, and lies strictly below the chord except at the endpoints.
A direct argument proves this is a global minimum, rather than merely an extremum of an augmented functional. Parametrize any competitor by arc length , from its left endpoint to its right endpoint. Then , , and integration by parts givesThe Cauchy-Schwarz inequality gives the last step. Equality requires and , whose integrals are precisely the displayed catenary with the stated length. Thus it attains a lower bound valid for every competitor. This proves that a catenary minimizes the integral of height along a fixed-length curve.
Introduce a constant Lagrange multiplier for this isoperimetric constraint and make stationary. Its integrand is , so the Euler-Lagrange equation givesThe endpoint conditions therefore force a parabola . Its area and budget areSolving the quadratic and choosing positive area givesThis requires ; no positive-area barrier is possible for a nonpositive budget. The corresponding multiplier is .
To verify a global maximum rather than just stationarity, use the sharp area-cost bound for a barrier with fixed endpoints. For , integration by parts gives , and . The Cauchy-Schwarz inequality impliesFor the last expression increases strictly, yielding exactly the boxed upper bound. Equality requires proportional to , hence after imposing the endpoints. Thus the displayed optimum is unique and lies above the baseline throughout the interior.
Past exam of the mathematics course of the year 2 of the natural sciences course of the University of Cambridge 2024 Paper 1 9 c Solution Created 2026-10-18 Updated 2026-11-05
This is an isoperimetric constraint, imposed on the whole path rather than separately at each time. Introduce a constant Lagrange multiplier and replace the variational integrand by . The modified Euler-Lagrange equations areSolve these together with the fixed endpoint conditions, treating as an unknown constant, then choose its value so thatThe multiplier is constant because there is one scalar integral constraint. A condition imposed at every time would instead call for a time-dependent multiplier. As usual, this multiplier procedure assumes the constraint is regular, so its first variation does not vanish identically on all admissible variations.


