For fixed endpoint values, the Euler-Lagrange equation isIt follows by differentiating the functional along with , integrating the term by parts and applying the fundamental lemma of the calculus of variations.
For this quadratic integrand it becomes . If , write ; the condition at zero gives , and that at requires . Consequently is the only extremal when is not an integer. If is a positive integer, all extremals areThe integer case must be handled separately: with both endpoints zero has only . If negative real is allowed, the hyperbolic-function solutions also yield only zero under these endpoints. These statements concern stationary functions; no minimum is assumed.
Polar coordinates give speed squared , so unit mass has kinetic energy . The radial force is , giving after choosing the additive constant zero. Therefore is the stated expression.
The two Euler-Lagrange equations areThe second gives conservation of angular momentum . The mechanical energy isDirect differentiation expresses its derivative asThus energy is conserved for the motion wherever .
Let be a smooth variation with . Assuming the usual continuous second derivatives of , stationarity of the functional under gives its first variationIntegration by parts removes the derivative of ; its boundary term vanishes because the endpoint values are fixed. Thusfor every such variation. The fundamental lemma of the calculus of variations implies the Euler-Lagrange equation .
For arc length, , soThe function is strictly increasing; hence is constant. With endpoints and , , the extremal isIt is also the global shortest curve: integrating the unit displacement vector dotted with the curve velocity gives the endpoint distance, which is at most the integrated speed by Cauchy-Schwarz inequality; the straight segment attains equality. A vertical segment is described parametrically or after rotating axes, since it cannot be represented by on a nontrivial horizontal interval.
For a holonomic conservative system the Lagrangian is , the difference between kinetic energy and potential energy. The Euler-Lagrange equations areIf , this gives for the generalized momentum . Such a coordinate is a cyclic coordinate.
In cylindrical coordinates the squared speed is . The holonomic constraint gives , while gravity has potential energy . ThereforeThere is no explicit dependence, so is a cyclic coordinate andThis is angular momentum about the vertical symmetry axis. At the polar angle is singular, but the Cartesian angular momentum remains well defined and has the same conserved value.
With fixed endpoint values, a smooth extremal satisfies the Euler-Lagrange equation . If has no explicit dependence, differentiation givesThus is constant, the Beltrami identity.
For this integrand, and , so the equation is . ConsequentlyThe 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 isHence the extremal is the unique strict global minimum, and cannot be a maximum.
A coordinate absent from the Lagrangian is cyclic. Its Euler-Lagrange equation givesThus the corresponding generalized momentum is conserved.
Put and , so . Direct differentiation gives and . The Euler-Lagrange equations are and , equivalentlyThe cyclic angular coordinate and time independence give the two conserved quantitiesThe expression for equals here because is homogeneous quadratic in the velocities.
For a constant radius and nonzero angular motion, the radial equation requires , so . This lies outside , and the angular equation then gives , with any nonzero constant . This is the photon sphere radius in the stated coordinates. If both velocities are zero, the displayed variational equations also admit a stationary configuration at any radius; the moving circular photon solution is the nonzero-speed case just found.
Take a smooth variation with vanishing on the boundary; compactly supported test functions suffice for the interior equation. At an extremum, the first variation is zero:Integration by parts removes the derivatives from . The boundary terms vanish, givingThe fundamental lemma of the calculus of variations gives the Euler-Lagrange equationThis is the classical equation for sufficiently smooth admissible extrema; for weaker regularity the first-variation identity supplies its weak form.
For the squared-gradient integrand, the equation is , namely the Laplace equation. Put and write any admissible function as , with on the boundary. The energy identity isBy the divergence theorem, the middle integral is ; equivalently it vanishes by weak integration by parts for zero-trace functions. The final term is nonnegative and vanishes at . Thus this is a global minimum, not merely a stationary value:
With and , the Lagrangian isAt configurations with , the Euler-Lagrange equations giveThese formulas apply on the differentiable part of the potential; collision configurations require any additional smooth extension of to be specified. Summing the equations givesso the total linear momentum is conserved. The total energy isDifferentiating, the two interacting forces do work , while the potential derivative is and particle three contributes no force term. Hence . Both total momentum and total energy are conserved.
For fixed endpoint values, independent variations of and give the Euler-Lagrange equationsThe sphere parametrization has metric , obtained by differentiating its position vector and taking its Euclidean squared length. The displayed functional is therefore one half the integral of squared speed, the geodesic energy. Its fixed-endpoint extremals are affinely parametrized geodesics; energy stationarity chooses a constant-speed parametrization.
Its explicit equations, after dividing by , areThe second gives . Since the Lagrangian has no explicit time dependence, its energy is conserved. ThusThe same second identity follows by differentiating it and substituting the two equations. These polar-coordinate formulas hold on a nonsingular coordinate patch; the geodesic curve itself can pass through a pole in another chart.
Let and . For a smooth variation , the first variation isHere the last expression follows by two integrations by parts. Taking variations supported in the interior and applying the fundamental lemma of the calculus of variations gives the Euler-Lagrange equation for a second-derivative functional:If both endpoint values and slopes are free, their independent variations force the natural boundary conditions for second-derivative functionalsIf an endpoint value or slope is fixed instead, its corresponding variation vanishes and the associated natural condition is not required.
For , differentiate using the chain rule:The Euler-Lagrange equation cancels the first term. Consequently , and if there is no explicit dependence,This is a Beltrami identity for a second-derivative functional.
For variations vanishing at the endpoints, the Euler-Lagrange equations areDifferentiate the stated energy expression using the chain rule. The acceleration terms cancel, leavingAlong a stationary trajectory the two brackets vanish. Thus , and in the absence of explicit time dependence .
In plane polar coordinates, the squared speed is , so the kinetic energy is . An inverse-square central gravitational force has potential energy proportional to . With the sign convention printed in this paper, write , givingFor attraction to a star of mass , this convention has . Keeping real and signed is essential; no sign is changed in differentiating the printed functional.
Since , , and , the equations of motion areThe second equation gives the conserved angular momentum ; equivalently . The autonomous-functional identity gives a second conserved quantity,This is the total mechanical energy; for attractive gravity the potential contribution is negative because .
Away from a collision, let and . The Lagrangian isDifferentiating with respect to and gives and . ThereforeThe other coordinates give and . Substituting these into the Euler-Lagrange equations yields equal and opposite central forces:Adding the equations shows that the derivative of the total linear momentum is zero, so is constant. For the total angular momentum, the terms vanish, givingThus both stated vectors are conserved quantities.
Take independent smooth variations and . Differentiating the functional and using integration by parts gives its first variationFirst choose variations vanishing at the endpoints. To use the stated form of the fundamental lemma of the calculus of variations, take with arbitrary smooth , and similarly for . The lemma makes vanish, and hence makes the unweighted coefficient vanish in the interior; continuity extends this to the endpoints. Applying the same argument to gives the Euler-Lagrange equationsIf either endpoint value of or is free, the corresponding variation there is arbitrary. The remaining boundary term gives the natural boundary conditions for a free endpoint: for a free value and for a free value at that endpoint. With both coordinates free at both endpoints, all four conditions apply.
For the specified integrand these equations reduce toand the natural conditions are at each free endpoint. Eliminating givesIts four independent modes give the full general solutionAt zero, and . Vanishing forces , givingAt the two derivative conditions become and . Their coefficient determinant is nonzero, so . Thus the unique stationary extremal with all four natural boundary conditions is . The word extremal here means a stationary point of the functional; the indefinite integrand does not require this point to be a minimum.
For an autonomous Lagrangian, the Euler-Lagrange equations implyIndeed, differentiating the expression cancels the acceleration terms, leaving , which vanishes. Here is quadratic in the velocities, so . Thus the conserved energy isThe azimuth is a cyclic coordinate. Its conjugate momentum is constant:Therefore is constant as well. Physically, is the vertical component of angular momentum.
The polar Euler-Lagrange equation isFor a constant angle with , conservation of makes constant, say . The remaining equation isIf , every nonvertical constant-angle motion is a conical pendulum motion:The rod sweeps out a cone about the downward vertical, in either azimuthal direction. Equivalently, . The exactly downward and exactly upward vertical rods are also static solutions; azimuth has no physical meaning at either pole. No static tilted rod is possible under nonzero gravity.
For a variation with , stationarity givesThe boundary term vanishes. The fundamental lemma of the calculus of variations therefore gives the Euler-Lagrange equation .
Differentiating the proposed first integral givesThus it is constant along an extremal when , proving the Beltrami identity.
For the positive branch relevant to the endpoint data, . The identity becomesThe 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 isIt 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.
For the upper function graph, the vertical cross-section of the enclosed region has length , so its area is . A maximizing nonnegative arch therefore uses and in the normal Euler-Lagrange equation. It becomesIntegrating once gives . The concave upper branch has and integrates to . The equal zero endpoint heights force and . HenceIt is a circular arc. To find its parameter, substitute into the length integral: , givingThis scalar equation determines numerically when needed; no explicit solution is required.
The arch is a global maximum in its smooth function graph regime. For , the integrand is concave and strictly concave in its slope. Its supporting-tangent inequality, integrated against any competing function graph with the same endpoint values, has first-order term zero by the Euler-Lagrange equation. Thus . On the fixed-length class this is ; strict slope concavity also gives uniqueness.
The source leaves the length range implicit. A twice continuously differentiable function graph of this form needs , giving . At the straight function graph is the degenerate solution. The semicircle limit has vertical endpoint tangents and is outside that smooth function graph class. For , no arc in the claimed smooth function graph family exists, so the stated formula cannot describe a twice continuously differentiable maximizing function graph under those unrestricted data. Allowing overhanging curves changes the admissible class.
Write . At a regular constrained extremal, the first variation of is not identically zero. Choose a variation for which ; the implicit function theorem supplies a correction in the direction to each other variation so that remains one. Stationarity of on these corrected variations implies for one scalar .
Put . Integration by parts gives, for an arbitrary twice continuously differentiable variation ,Taking variations with zero endpoint values and using the stated fundamental lemma of the calculus of variations gives the Euler-Lagrange equation. The remaining endpoint values are free and independent, giving the natural boundary conditions:If the constraint is not regular, the general multiplier statement permits an abnormal pair with ; the source's general normal-form derivation implicitly excludes that case. In its quadratic example, regularity follows automatically from normalization: .
For that example , so the equation and endpoint conditions reduce toMultiply the equation by and integrate. The boundary term vanishes, givingThe last integral equals one, so , the functional value at the constrained extremal.
Finally multiply the equation for by and the equation for by , then subtract and integrate. The derivative terms give only the vanishing boundary term , while the terms cancel. Therefore . For distinct multipliers this proves
Discard the constant factor when forming the Euler-Lagrange equation. For it becomesThe 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 formIts 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.
