Assume is differentiable along the ray, with sufficient regularity for the following variation, and fix the endpoints. Fermat principle makes the travel time stationary:
For the variational integrand , the Euler-Lagrange equation is
Expanding the derivative and multiplying by gives
and therefore
Equivalently, the Beltrami identity gives . Mere continuity of , as stated in the wording, does not by itself justify the appearance of ; the displayed classical ray equation requires this additional differentiability.
Introduce a constant Lagrange multiplier for the fixed arc length. Up to an irrelevant constant term, the augmented functional is
It has no explicit dependence, so the Beltrami identity gives
For the hanging minimum choose . Writing , this becomes . Its nonconstant smooth solution is
One 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.
Define . For a density without explicit dependence, the chain rule gives
Thus the Euler-Lagrange equation implies the Beltrami identity
Where this first integral is equivalent to the original equation. At a turning point it extends by continuity. On an entire constant segment, however, its derivative alone can vanish without imposing the full Euler-Lagrange equation, so such candidate paths must still be checked in the original equation.
The monotonic horizontal coordinate allows the path to be written as a graph. Its arc length element is , so the variational density is . It has no explicit horizontal-coordinate dependence. The Beltrami identity becomes
Consequently every smooth minimizing path satisfies
This is a first integral of the weighted arc-length problem; fixed endpoint values remove the endpoint variation terms.
The original PDF places both endpoints at height ; the vertically stacked fraction can be misread in extracted text. The coefficient in the index is , multiplying .
For the optical-length integrand , the Beltrami identity applies because there is no explicit dependence. It gives
where is constant. Therefore . The full Euler-Lagrange equation is , and combining these gives . This also excludes a constant curve, which would satisfy the squared first integral but not the full variational equation. Integration yields
Equal endpoint heights at require . The height condition then becomes , or . Its two positive roots are and . Hence the two possible stationary rays are
Both stay in , have the required endpoints and satisfy the variational equation. These are the two optical rays in a square-root refractive-index profile. Fermat stationarity supplies two rays; it does not assert that both globally minimize travel time.
Figure 1.
The two stationary optical rays from Fermat principle in a medium with refractive index
. Details.
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 is
The 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 gives
Its general solution is . Adding and subtracting the endpoint equations gives and . Thus
This 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, leaving
unless .
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 gives
Since , 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 gives
The hanging branch with integrates to . Equal endpoint heights force , and the endpoint value fixes . Thus
Its length is
Writing , 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 gives
The 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.
Figure 1.
The three minimizing fence shapes, with fixed-length examples for companies B and C
. Details.
The sketch uses and for the two fixed-length cases. The vertical scale in the company A panel is enlarged to show its small odd deflection. No comparison between the three companies' absolute prices is required or possible from the shapes alone, since their additive cost constants are independent.
If has no explicit dependence, the chain rule gives
Consequently
on an Euler-Lagrange equation solution. Thus the Beltrami identity supplies the first integral
The opposite sign is an equally valid convention. The conserved value can be zero for particular integrands or paths; absence of explicit alone does not guarantee a nonzero numerical value. The useful statement is that this expression is constant along an extremal.
The generalized momentum of this Lagrangian is
The Euler-Lagrange equation therefore gives
Because has no explicit time dependence, the energy form of the Beltrami identity gives a conserved quantity . Here
For a direct check of conservation of energy, differentiate:
This is the rest-plus-kinetic energy of a relativistic particle, in units with light speed one, plus its potential energy.
With fixed endpoint values, a smooth extremal satisfies the Euler-Lagrange equation . If has no explicit dependence, differentiation gives
Thus is constant, the Beltrami identity.
For this integrand, and , so the equation is . Consequently
The two constants are fixed uniquely by the prescribed values at distinct endpoints. Equivalently, writing these values as ,
Its first integral is , which is constant. Using only that first integral without the Euler-Lagrange equation could admit spurious constant functions, so the differential equation was used directly.
For any nonzero endpoint-vanishing perturbation , the linear terms in vanish by the Euler-Lagrange equation and integration by parts; also . The remainder is
Hence the extremal is the unique strict global minimum, and cannot be a maximum.
For a variation with , stationarity gives
The boundary term vanishes. The fundamental lemma of the calculus of variations therefore gives the Euler-Lagrange equation .
Differentiating the proposed first integral gives
Thus it is constant along an extremal when , proving the Beltrami identity.
For the positive branch relevant to the endpoint data, . The identity becomes
The Euler-Lagrange equation itself gives , so . Integrating, or solving the first integral, yields a circle . The equal endpoint values force and . Hence the unique positive smooth extremal is
It stays positive on the entire interval and satisfies the second-order equation, including its turning point. Merely differentiating the first integral after dividing by would need extra care there. Geometrically this is an arc of a hyperbolic geodesic in the upper half-plane model.
Discard the constant factor when forming the Euler-Lagrange equation. For it becomes
The Beltrami identity, since has no explicit dependence, gives . Combining with the differential equation yields . Its exponential solution has coefficients whose product is , by . Positivity therefore puts it in the form
Its constants must satisfy and . Depending on the endpoint data, these equations may have no solution or more than one. A constant function can satisfy a formal first-integral equation but fails the full Euler-Lagrange equation; it is not an extra extremal.
For fixed endpoints and a regular integral constraint, Lagrange multipliers replace the constrained stationarity problem by stationarity of , with constant . Writing , the Euler-Lagrange equation is . Regularity here means the first variation of is not identically zero; abnormal constraint extrema otherwise need separate consideration.
If has no explicit dependence, then
This is the Beltrami identity, giving the required constant of integration.
For the chain, , so its fixed arc length is exactly , and its gravitational energy is . The positive constant can be suppressed in minimization. Use
The equation, with a consistent sign convention for the multiplier, is
The first integral becomes . It implies ; solving gives
The equal endpoint heights force , by evenness and strict increase of on the positive half-line. Thus the extrema have the asserted catenary form. The length and height conditions give
For the hanging minimum choose , the upward-convex branch lying below its endpoints. For this positive is unique: writing , the ratio increases continuously from one to infinity. The negative- branch describes an upward arch, not the hanging minimum. If , only the horizontal straight chain is admissible and is the limiting degenerate case; is impossible.
For a regular isoperimetric constraint, introduce a constant Lagrange multiplier and set . With fixed endpoint values, the Euler-Lagrange equation is
If and have no explicit dependence, the Beltrami identity gives the first integral
The regularity assumption excludes the exceptional case in which the constraint itself has zero first variation for every admissible perturbation.
Parametrize the surface of revolution by . The magnitude of is . Integrating the resulting surface area element over , and integrating the circular cross-sectional areas for the volume, gives
Here because it is a radius. For a regular connected closed surface, take in the interior; the closing endpoints can have unbounded even when the surface itself is smooth.
After dividing by , its integrand is . The Euler-Lagrange equation and Beltrami identity become
As tends to zero at an endpoint, also tends to zero, so . On the positive interior this implies and, writing ,
The Euler-Lagrange equation also yields . Therefore
including at the maximum where . Integrating and using the first integral gives
Thus the regular extremal is a sphere. The two zeros fix its center and radius:
Equivalently, the prescribed volume fixes . If are fixed in advance, their separation and the prescribed volume must be compatible with these equations; there is no positive regular stationary profile of the stated type for an incompatible volume.
For minimality, the three-dimensional isoperimetric inequality states that every sufficiently regular closed surface enclosing volume has
with equality precisely for a sphere. Our extremal has and , so it attains equality and is a global minimum of area at the fixed volume. This also makes clear the connected-surface assumption behind uniqueness: allowing several disconnected components introduces stationary collections of spheres, rather than the single positive generating profile used here.
The autonomous Lagrangian has the Beltrami identity
Here is homogeneous of degree two in the velocities, so . Thus itself is constant, say .
For , put . Its Euler-Lagrange expression along the curve is
The first term vanishes by stationarity for , and the second by constancy of . Thus the same path is stationary for its length functional .
On a regular segment described as a graph , reparametrize by . Since ,
Choose the orientation with increasing ; reversing it does not change stationarity. Invariance of length under regular reparametrization therefore gives
This is the principle of length extremals from a constant quadratic energy. The stated nonnegativity also permits the degenerate case . Then the length is zero, its absolute minimum since the integrand is nonnegative, so it is an extremal in the minimizing sense. The differentiated square-root Euler-Lagrange equation above is only used where ; it would not be legitimate to divide by on a null curve. For a genuine surface metric and a regular nonconstant path, automatically.
With fixed endpoint values, the Euler-Lagrange equation is . If has no explicit dependence, differentiation gives
Thus the Beltrami identity is .
For this integrand, and , so . The extremals are
where the two fixed endpoint values determine . The Beltrami constant is , consistent with this solution.
For a nonzero smooth perturbation vanishing at the endpoints, expand the quadratic functional. The first variation vanishes at an extremal, while
The linear term depends only on the fixed endpoints. Consequently the extremal is a strict minimum and cannot be a maximum.
Independent endpoint-fixed variations of the two coordinates give the Euler-Lagrange equations
Differentiating the sphere parametrization gives the Riemannian metric . Its energy functional is the stated . Its stationary paths are geodesics with affine, constant-speed parametrization; conversely a geodesic can be so parametrized. This explains the use of energy rather than arc length.
For , the equations are
The second gives the conserved generalized momentum . Since has no explicit time dependence, its Beltrami identity gives constant . Dividing by gives the second first integral,
Thus is the squared speed divided by , while records the rotational symmetry about the polar axis. The coordinate equations apply away from the polar coordinate singularities.
For , the Euler-Lagrange equation is
Since has no explicit dependence, the Beltrami identity gives
Solving this first integral, or substituting into the second-order equation, yields
The constants satisfy and . There need not be a solution for arbitrary endpoint data, and when there is one these equations can have more than one pair of constants. These are the possible stationary catenoids, so the axisymmetric second variation of a catenoid still matters when deciding whether they minimize surface area.
For a normal constrained extremal, introduce a constant Lagrange multiplier and use . The Euler-Lagrange equation is
When both integrands have no explicit dependence, the Beltrami identity gives , as follows by differentiating this expression and using the Euler-Lagrange equation.
Parametrize the surface by . The cross product of its two coordinate tangents has magnitude , so integration in gives . Integrating the cross-sectional disk areas gives .
Dividing the augmented functional by , use
The Euler-Lagrange equation is
The Beltrami identity becomes . At an endpoint , the absolute value of the first term is at most , so , even if the profile has an infinite endpoint slope. For a nondegenerate regular closed surface take on . Then , and, with ,
Combining this identity with the Euler-Lagrange equation yields . Consequently . The two zero endpoint values uniquely determine
The positive radius profile is therefore a semicircle and generates a sphere, centred at height , with radius . In particular
The graph is smooth in the interior; its vertical slopes at the two poles are compatible with a smooth spherical surface. Its volume is , the volume associated with this stationary candidate.
For minimality, the three-dimensional isoperimetric inequality says that every closed surface enclosing volume has , with equality for a sphere. The displayed extremal attains equality, proving that it minimizes area at its fixed enclosed volume. The uniqueness above concerns the regular connected positive profile with the two stated endpoint heights.
Use the chain rule along a sufficiently smooth extremal of the functional. For ,
The bracket vanishes by the Euler-Lagrange equation. When has no explicit dependence, , giving the Beltrami identity:
For the specified functional,
Since , the Beltrami identity gives for some . This suggests a circular arc, but it is worth deriving its equation without dividing by : such division would lose the point where the arc is horizontal.
Substitute the displayed partial derivative and in the full Euler-Lagrange equation. Combining terms over the common denominator gives
Thus , so and a second integration gives
This establishes the semicircular extremals of the hyperbolic length functional and excludes constant , which would satisfy the first-order Beltrami identity for a suitable but not the full Euler-Lagrange equation.
The two prescribed endpoints give
Subtracting yields . Therefore
In particular the centre is . Admissibility requires , as the prescribed heights must lie in . Under that condition the radicand is positive throughout : it is a concave quadratic polynomial whose two endpoint values are and . The positive root consequently gives one smooth admissible arc, uniquely determined by the endpoints.
Figure 1.
Fixed endpoint heights determine the circle centre; a free endpoint height forces a horizontal tangent
. Details.