In ordinary calculus, we find a single number x that minimizes or maximizes a function f(x); now we want to find an entire curve y(x) between two fixed points A=(x1,y1) and B=(x2,y2) that optimizes a total score from start to finish.
1
Scoring a Path with a Functional
To score a path y(x), whether by its total length or the time a marble takes to slide down it, we chop the curve into tiny horizontal steps dx, add up the cost of each slice, and write the total score as an integral.
Scoring a Path with a Functional
A
B
g
Across a single slice dx, the step length along the curve is ds=1+(y′)2dx, and a marble that slides without friction and has dropped a vertical distance y from rest has speed v=2gy by conservation of energy (21mv2=mgy). Integrating the slice cost from x1 to x2 gives the path length and the travel time as instances of a general score S:
Making the ramp steeper near the start A stretches the step length ds=1+(y′)2dx there, but increases the drop y and boosts the speed v=2gy along the rest of the ramp. That cuts the total travel time until dipping too deep adds more distance than the extra speed can make up for.
Dropping steeper near the start stretches the step length there, but boosts the speed across every slice below it, cutting the total travel time until the extra distance outweighs the speed gain.
2
The Euler-Lagrange Equation
We want a condition that identifies a stationary path y(x), which is a curve where any tiny nudge to the path produces zero first-order change in the total score S. To move a derivative dxd off the slope of a nudge and onto the slope sensitivity next to it, we use integration by parts:
∫x1x2udv=[uv]x1x2−∫x1x2vdu
The Euler-Lagrange Equation
A
B
y(x)
y(x)+εη(x)
S=∫x1x2L(x,y,y′)dx
Nudging the curve to ynew(x)=y(x)+εη(x) with fixed endpoints η(x1)=η(x2)=0 and integrating the slope-nudge term by parts makes the boundary term vanish, leaving the balance condition that must hold at every point x along a stationary path:
Lifting a joint by δy tilts the left stick up and the right stick down by equal amounts, so the opposite slope changes only produce a net cost when ∂y′∂L differs between the two sticks. On the stationary curve, that difference across the joint balances ∂y∂L so the first-order change δS is zero.
Nudge a joint up or down at different spots along a stationary curve to see how the two sticks' opposite tilts balance the height change so the total change stays zero.
3
Shortcut 1: When y Is Missing
Because dxd(∂y′∂L) differentiates y′ into y′′, the Euler-Lagrange equation is generally a second-order differential equation, but when y is absent from L, it reduces right away to a first-order equation. We can use this to find the shortest path between A=(x1,y1) and B=(x2,y2) in a flat plane:
S=∫x1x21+(y′)2dx
Shortcut 1: When y Is Missing
A=(x1,y1)
B=(x2,y2)
Whenever y does not appear explicitly in L,∂y∂L=0, so the slope sensitivity stays constant along the entire path:
∂y′∂L=C(when y is missing from L)
Text solution
Apply Shortcut 1 for missing yBecause y does not appear in L=1+(y′)2, setting ∂y′∂L=C gives an equation containing only y′.
1+(y′)2y′=C
Solve for the slope y′ and integrateSquaring both sides and isolating y′ shows that the slope is a constant m, which integrates to a straight line.
y′(x)=1−C2C=m⟹y(x)=mx+b
Match the endpoints A=(x1,y1) and B=(x2,y2)Substituting the two boundary conditions pins down the slope m and intercept b of the line connecting A and B.
m=x2−x1y2−y1,b=y1−x2−x1y2−y1x1
4
Shortcut 2 and the Brachistochrone Problem
Now we want to find the fastest ramp y(x) for a marble sliding without friction from rest at A=(0,0) to B=(x2,y2) under gravity, which minimizes the travel-time functional (after dropping the constant positive factor 2g1):
S=∫0x2y1+(y′)2dx
Here y is in the denominator, so Shortcut 1 does not apply, but the horizontal coordinate x is missing from L(y,y′).
Shortcut 2 and the Brachistochrone Problem
A=(0,0)
B=(x2,y2)
x
y
g
Whenever x does not appear explicitly in L,∂x∂L=0, and the chain rule along a stationary path simplifies to a first-order conservation law:
Beltrami identityL−y′∂y′∂L=C(when x is missing from L)
To integrate the separated ramp equation, we use the half-angle identities 1−cosθ=2sin2(2θ) and 1+cosθ=2cos2(2θ).
Text solution
Apply Shortcut 2 for missing xSubstituting L=y1+(y′)2 and ∂y′∂L=y1+(y′)2y′ into L−y′∂y′∂L=C over a common denominator cancels (y′)2 in the numerator.
y1+(y′)2−y1+(y′)2(y′)2=y1+(y′)21=C
Separate variablesSquaring and inverting with C21=2R gives a first-order differential equation that separates y and x.
y[1+(y′)2]=2R⟹dx=2R−yydy
Substitute y=R(1−cosθ) and integrateRewriting y=2Rsin2(2θ),2R−y=2Rcos2(2θ), and dy=2Rsin(2θ)cos(2θ)dθ simplifies the integral to a cycloid traced by a wheel of radius R, with x0=0 fixed by A=(0,0).
Fix θ2 and R at endpoint B=(x2,y2)Dividing x2 by y2 eliminates R to determine the final wheel angle θ2, which then sets the wheel radius R.
y2x2=1−cosθ2θ2−sinθ2,R=1−cosθ2y2
The cycloid always drops vertically out of A=(0,0) where y=0 forces y′→∞. Whenever B is wide enough relative to its drop that y2x2>2π, the generating wheel rolls past θ=π, so the fastest ramp dives deeper than B before curving back uphill to reach it.
Each finish point sets one cycloid that starts straight down, and when the finish sits wide enough, this fastest path dips below it and rolls back uphill.
5
Solving the Full Euler-Lagrange Equation
When x,y, and y′ all appear explicitly in L(x,y,y′), neither shortcut applies, and we solve the full second-order Euler-Lagrange equation directly. Let's find the stationary path y(x) between A=(1,3) and B=(2,25) for the functional
S=∫12[21x2(y′)2+y2]dx
Solving the Full Euler-Lagrange Equation
L(x,y,y′)y(1)y(2)y(x)=21x2(y′)2+y2=3=25=?
Text solution
Differentiate and apply the product ruleWith ∂y∂L=2y and ∂y′∂L=x2y′, taking dxd(x2y′)=2xy′+x2y′′ gives a second-order Euler-Cauchy differential equation.
2y=2xy′+x2y′′⟹x2y′′+2xy′−2y=0
Try a power-law solution y(x)=xrSubstituting y=xr,y′=rxr−1, and y′′=r(r−1)xr−2 makes every term share xr and gives two roots for r.
[r(r−1)+2r−2]xr=(r−1)(r+2)xr=0⟹y(x)=C1x+x2C2
Apply the endpoint conditions y(1)=3 and y(2)=25Solving C1+C2=3 and 2C1+41C2=25 gives C1=1 and C2=2.
y(x)=x+x22
6
Polar Coordinates and Geodesics on Curved Surfaces
Now we want to find the shortest path (a geodesic) when a curve is described in polar coordinates (r,θ) or constrained to lie on a curved surface like a cylinder or a sphere. The Euler-Lagrange equation works in any coordinates once we build the tiny step length ds from perpendicular displacements on the surface.
θ
r
rdθ
dr
ds
R
Rdϕ
dz
ds
N
θ
Rsinθ
Rsinθdϕ
Rdθ
ds
Polar Coordinates and Geodesics on Curved Surfaces
R
A
B
R
A
B
Factoring out the chosen independent variable turns ds into the local cost function L for each geometry:
ds=⎩⎨⎧dr2+r2dθ2=1+r2[θ′(r)]2dr(plane in polar coordinates)R2dϕ2+dz2=R2+[z′(ϕ)]2dϕ(cylinder of radius R)R2dθ2+R2sin2θdϕ2=R1+sin2θ[ϕ′(θ)]2dθ(sphere of radius R)
Text solution
Apply Shortcut 1 to the polar length functionalBecause θ is absent from L(r,θ,θ′)=1+r2(θ′)2, setting ∂θ′∂L=C and solving for θ′=drdθ separates the variables.
1+r2(θ′)2r2θ′=C⟹drdθ=rr2−C2C
Integrate with the trig substitution r=cosuCUsing dr=cos2uCsinudu and r2−C2=Ctanu simplifies the integral to dθ=du, which converts back to a straight line in rectangular coordinates.
θ−θ0=u⟹rcos(θ−θ0)=C⟹xcosθ0+ysinθ0=C
On a cylinder, missing z gives z′(ϕ)=c1, a helix z(ϕ)=c1ϕ+c2 that unrolls into a straight line; on a sphere, missing ϕ gives 1+sin2θ(ϕ′)2sin2θϕ′=C, which integrates to a great circle slicing through the center of the sphere.
Because east-west steps along a latitude circle of radius Rsinθ have length Rsinθdϕ and shrink toward the pole, the path that stays on one latitude circle between two points at the same northern colatitude, which is a straight line on a flat (ϕ,θ) map, is longer on the globe than the great-circle arc that curves toward the pole.
On a sphere, the shortest path between two points lies in the plane through the center, curving toward the pole where latitude circles are smaller instead of following a straight line on a flat map.
7
Multiple Unknown Functions
When a path requires two or more unknown functions at the same time, such as y(x) and z(x) for a curve in 3D space between A=(x1,y1,z1) and B=(x2,y2,z2), we want to find the stationary pair that optimizes
S=∫x1x2L(x,y,z,y′,z′)dx
Multiple Unknown Functions
x
y
z
A
B
x1
x2
y(x)
z(x)
Because we can nudge y(x) while holding z(x) fixed and nudge z(x) while holding y(x) fixed, each unknown function satisfies its own Euler-Lagrange equation:
∂y∂L−dxd(∂y′∂L)∂z∂L−dxd(∂z′∂L)=0,=0
For the 3D arc-length cost L=1+(y′)2+(z′)2, both y and z are missing, so Shortcut 1 gives constant slopes y(x)=m1x+b1 and z(x)=m2x+b2; when L=21(y′)2+21(z′)2+yz couples the two functions together, we solve their two equations as a system.
Text solution
Write the Euler-Lagrange equation for y(x)Differentiating L=21(y′)2+21(z′)2+yz with respect to y and y′ links y′′ to z.
∂y∂L=z,∂y′∂L=y′⟹y′′=z
Write the Euler-Lagrange equation for z(x) and uncoupleDifferentiating with respect to z and z′ gives the second equation, which substitutes into the first to produce a single equation for y(x).
∂z∂L=y,∂z′∂L=z′⟹z′′=y⟹y(4)=y
Key concepts
Every variational problem starts by writing the score of one tiny slice so that S=∫x1x2L(x,y,y′)dx, using perpendicular step legs ds=dx2+dy2=1+(y′)2dx in rectangular coordinates, or multiplying angular steps by their local circle radius (rdθ in polar coordinates, Rdϕ on a cylinder, Rsinθdϕ on a sphere). Drop any overall positive constant factor from L before differentiating.
Once you have L, check which variables appear explicitly before taking derivatives:
Dependent variable y is missing (∂y∂L=0)
Use Shortcut 1, ∂y′∂L=C. In L(r,θ,θ′)=1+r2(θ′)2, the angle θ is absent, so ∂θ′∂L=1+r2(θ′)2r2θ′=C immediately gives a first-order equation.
Independent variable x is missing (∂x∂L=0)
Use Shortcut 2 (the Beltrami identity), L−y′∂y′∂L=C, as in the ramp cost L(y,y′)=y1+(y′)2. If y is also missing (as in L=1+(y′)2), Shortcut 1 is simpler. Do not use Shortcut 2 if x appears explicitly anywhere in L (as in 2x1(y′)2+4y′).
All three variables x,y,y′ are present
Write the full Euler-Lagrange equation ∂y∂L−dxd(∂y′∂L)=0. Treat x,y,y′ as independent during the partial derivatives ∂y∂ and ∂y′∂, then differentiate x,y(x), and y′(x) together using the product and chain rules when applying dxd (so dxd(x2y′+y)=2xy′+x2y′′+y′).
Multiple unknown functions y(x),z(x)
Write a separate Euler-Lagrange equation for each unknown function, checking each variable individually for Shortcut 1.
8
Practice
1
A small rover travels in the upper half of the xy-plane (y>0) from A=(0,y0) to B=(x2,y0). Because the ground becomes firmer at larger y, the rover's speed increases in direct proportion to y:v(y)=ky, where k is a positive constant. (a) Using the arc-length step ds=1+(y′)2dx, write the travel-time functional T=∫0x2L(x,y,y′)dx and identify the local cost function L(x,y,y′). (b) Suppose you start with the straight horizontal path y(x)=y0 between A and B, grab one joint between two tiny straight segments of the path, and pull it upward by δy>0. Using the two-stick argument, explain how the height cost and the slope cost change, and predict whether the fastest path between A and B arches upward (y>y0) or sags downward (y<y0).
For (a), write the time across one step as dt=v(y)ds. For (b), check the sign of ∂y∂L when y increases, and compare the slope sensitivity ∂y′∂L on the two sticks when the curve bends into the faster region.
(a) Across one tiny step of length ds=1+(y′)2dx, the travel time is dt=v(y)ds=ky1+(y′)2dx. (Be careful not to multiply by speed and write ky1+(y′)2dx, which has dimensions of length2/time rather than time.) Integrating from x=0 to x=x2 gives
T=∫0x2ky1+(y′)2dx
so the local cost function is L(x,y,y′)=ky1+(y′)2 (or L=y1+(y′)2 after dropping the constant positive factor k1).
(b) Taking the partial derivative with respect to height gives ∂y∂L=−ky21+(y′)2<0, which is negative because moving to larger y puts the rover on faster ground and reduces the time per unit x. (Do not confuse increasing speed v=ky with increasing cost L:∂y∂L is negative, not positive, so sagging downward to y<y0 would slow the rover down and increase travel time.) Pulling a joint upward (δy>0) lowers the local height cost by ∂y∂Lδy<0. Along the straight horizontal path where y′=0, the slope sensitivity ∂y′∂L=ky1+(y′)2y′ is zero on both sticks; as the path bends upward, the difference in ∂y′∂L from left to right creates a bending resistance dxd(∂y′∂L) due to the extra path length. To balance the negative height sensitivity ∂y∂L, the fastest path arches upward into the faster region (y>y0).
2
When deriving the Euler-Lagrange equation using a smooth wiggle ynew(x)=y(x)+εη(x), we integrated the slope-nudge term by parts:
(a) Why does the boundary term [∂y′∂Lη(x)]x1x2 equal zero? (b) A student objects: "An integral can equal zero even when its integrand isn't zero everywhere, because positive and negative areas can cancel out. So the bracketed expression ∂y∂L−dxd(∂y′∂L) doesn't have to be zero at every point x." Explain how the freedom to choose the wiggle function η(x) rules out this possibility.
For (a), ask what constraint every candidate path ynew(x) must obey at x=x1 and x=x2. For (b), consider what happens if you pick a wiggle η(x) that is non-zero only on a tiny interval where the bracketed expression has a single sign.
(a) Every candidate path ynew(x) must pass through the fixed endpoints A=(x1,y1) and B=(x2,y2). Because y(x) already passes through both endpoints, the height wiggle η(x) must be zero at both ends: η(x1)=0 and η(x2)=0. (Note that the slope η′(x) and the slope sensitivity ∂y′∂L do not have to be zero at the endpoints; it is η(x) itself that is pinned to zero.) Multiplying ∂y′∂L by zero at x1 and x2 makes the boundary term vanish.
(b) The integral must equal zero not just for one single wiggle across [x1,x2], but for every smooth wiggle η(x) that is zero at the endpoints. Suppose the bracketed expression ∂y∂L−dxd(∂y′∂L) were non-zero (say, positive) around some point x0. Then we could choose a wiggle η(x) that is zero everywhere except for a smooth positive bump right over that region around x0. For that choice of η(x), the integrand would be positive around x0 and zero everywhere else, leaving no negative area anywhere to cancel the positive area. The only way the integral can be zero for all possible wiggles is if ∂y∂L−dxd(∂y′∂L)=0 at every point along the path.
3
Find the stationary path y(x) between A=(1,0) and B=(2,3) for the functional
S=∫12[2x1(y′)2+4y′]dx
Check which variable is missing from L(x,y,y′)=2x1(y′)2+4y′ before taking any derivatives.
Here L(x,y,y′)=2x1(y′)2+4y′. Because y does not appear explicitly in L(∂y∂L=0), Shortcut 1 gives
∂y′∂L=xy′+4=k
where k is a constant. Defining C1=k−4 gives
xy′=C1⟹y′(x)=C1x
(Be careful to multiply by x rather than writing y′=xC1, which would integrate to a logarithm y=ln23lnx instead of a parabola.) Integrating with respect to x gives the general solution
y(x)=21C1x2+C2
Apply the endpoint conditions y(1)=0 and y(2)=3:
At x=1:At x=2:21C1+C22C1+C2=0=3
Subtracting the first equation from the second gives 23C1=3, so C1=2 and C2=−1. The stationary path is
y(x)=x2−1
4
For the rover in Problem 1 with local cost function L(x,y,y′)=y1+(y′)2, suppose the endpoints are A=(−3,4) and B=(3,4). (a) Explain why Shortcut 2 (the Beltrami identity) applies to L, and use it to show that any stationary path satisfies the first-order differential equation y2[1+(y′)2]=R2, where R is a positive constant. (b) Separate variables and integrate this differential equation to find the equation of the stationary path between A=(−3,4) and B=(3,4), and find the maximum value of y reached along the path.
For (a), put L and y′∂y′∂L over the common denominator y1+(y′)2. For (b), solve for dxdy, put all y factors with dy, and integrate R2−y2ydy.
(a) The horizontal coordinate x does not appear explicitly in L(x,y,y′)=y1+(y′)2, so ∂x∂L=0 and Shortcut 2 applies:
L−y′∂y′∂L=C
Computing ∂y′∂L=y1+(y′)2y′ and substituting into Shortcut 2 (remembering to multiply ∂y′∂L by y′ so the numerator has (y′)2, not y′) gives
y1+(y′)2−y1+(y′)2(y′)2=C
Putting both terms over the common denominator y1+(y′)2 cancels (y′)2 in the numerator:
y1+(y′)21=C
Squaring and inverting both sides, and writing the positive constant C21 as R2, gives
y2[1+(y′)2]=R2
(b) Solving for dxdy=y′ gives
(y′)2=y2R2−y2⟹dxdy=±yR2−y2
Separating variables puts all y terms on one side and dx on the other:
R2−y2ydy=±dx
Integrating both sides (taking care with the chain-rule factor of −2y inside R2−y2 so you do not get an extra factor of 2 that turns the circle into an ellipse 4y2+x2=73) gives
−R2−y2=±(x−x0)
Squaring both sides gives a circle of radius R centered at (x0,0) on the x-axis:
(x−x0)2+y2=R2
Substituting the endpoints A=(−3,4) and B=(3,4) gives (−3−x0)2+16=R2 and (3−x0)2+16=R2. Subtracting these requires (−3−x0)2=(3−x0)2, so x0=0 and R2=32+42=25(R=5). The stationary path is the circular arc
x2+y2=25(−3≤x≤3,y>0)
and its maximum value of y (at the top of the arc x=0, where y′=0, rather than the endpoint height y=4) is ymax=5.
5
A marble starts from rest at A=(0,0) and slides without friction under gravity down a cycloid ramp
x(θ)=R(θ−sinθ),y(θ)=R(1−cosθ)
with y measured downward, to reach point B=(x2,y2). (a) Suppose B is at depth y2=2.0 m and the marble reaches B when the cycloid's generating wheel has rolled through angle θ2=π rad. Find the wheel radius R and the horizontal coordinate x2 of point B. (b) If B is instead located at x2=4.0 m and y2=2.0 m, does the fastest ramp go steadily downward from A to B, or does it dive deeper than y2=2.0 m and curve back upward to reach B? Justify your answer using the ratio y2x2.
Watch the sign of cosπ=−1: taking 1−cosπ=1 would double both R and x2 to R=2.0 m and x2≈6.28 m.
For (a), evaluate 1−cosπ in y(θ) first to find R. For (b), compare y2x2 with the ratio yx at the bottom of the cycloid (θ=π).
(a) Evaluating y(θ) at θ2=π gives
y2=R(1−cosπ)=R(1−(−1))=2R
(Watch the sign of cosπ=−1: taking 1−cosπ=1 would double both R and x2 to R=2.0 m and x2≈6.28 m.) Since y2=2.0 m, the wheel radius is R=22.0 m=1.0 m. Substituting R=1.0 m and θ2=π into x(θ) gives
x2=(1.0 m)(π−sinπ)=π m≈3.14 m
(b) At θ=π (the lowest point of the cycloid), the ratio of horizontal distance to vertical drop is
yxθ=π=1−cosππ−sinπ=2π≈1.57
(Be sure to divide by 1−cosπ=2 so you compare y2x2 against 2π≈1.57, not π≈3.14.) For B=(4.0 m,2.0 m), the ratio is y2x2=2.0 m4.0 m=2.0. Because y2x2=2.0>2π, the wheel must roll past θ=π(θ2>π) to reach B, so the fastest ramp dives deeper than y2=2.0 m and curves back upward at the end to reach B.
6
Find the stationary path y(x) between A=(1,9) and B=(2,5) for the functional
S=∫12[21x2(y′)2+yy′+3y2]dx
Compute ∂y∂L and ∂y′∂L first, and remember that y in ∂y′∂L is a function of x when you apply dxd.
Here L(x,y,y′)=21x2(y′)2+yy′+3y2 contains x,y, and y′ explicitly, so we apply the full Euler-Lagrange equation ∂y∂L−dxd(∂y′∂L)=0:
∂y∂L=y′+6y,∂y′∂L=x2y′+y
Taking the total derivative dxd along the curve y(x) requires the product rule on x2y′ and differentiating y(x) to y′(x):
dxd(∂y′∂L)=dxd(x2y′+y)=2xy′+x2y′′+y′
(Do not drop the 2xy′ product-rule term or treat y as a constant when applying dxd; missing 2xy′ leads to the wrong roots r=3,−2 and y(x)=3111x3+31x2268.) Setting ∂y∂L=dxd(∂y′∂L) cancels y′ on both sides:
y′+6y=2xy′+x2y′′+y′⟹x2y′′+2xy′−6y=0
Trying a power-law solution y(x)=xr with y′=rxr−1 and y′′=r(r−1)xr−2 gives
[r(r−1)+2r−6]xr=(r2+r−6)xr=(r−2)(r+3)xr=0
The roots r=2 and r=−3 give the general solution
y(x)=C1x2+x3C2
Apply the endpoint conditions y(1)=9 and y(2)=5:
At x=1:At x=2:C1+C24C1+81C2⟹32C1+C2=9=5=40
Subtracting C1+C2=9 from 32C1+C2=40 gives 31C1=31, so C1=1 and C2=8. The stationary path is
y(x)=x2+x38
7
An ant walks on the surface of a cone given in cylindrical coordinates (r,ϕ,z) by z=r. Any point on the cone can be specified by its radial distance r from the axis and its angle ϕ around the axis. (a) In a tiny step on the cone where r changes by dr (so z also changes by dz=dr) and ϕ changes by dϕ, show by the Pythagorean theorem that the step length is ds=2dr2+r2dϕ2. (b) Treating ϕ(r) as a function of r, write the arc-length functional S=∫r1r2L(r,ϕ,ϕ′)dr, use Shortcut 1 to obtain a first-order differential equation for ϕ′(r)=drdϕ, and integrate it using the substitution r=cosuC to find the general equation relating r and ϕ for a geodesic on the cone.
For (a), find the slant length of a step where dr and dz=dr happen together before combining it with the perpendicular circular arc rdϕ. For (b), factor dr out of ds and check which variable is absent from L(r,ϕ,ϕ′).
(a) A step straight up the side of the cone changes r by dr and z by dz=dr, so by the Pythagorean theorem its slant length is dr2+dz2=dr2+dr2=2dr. (Do not forget the vertical rise dz=dr and write the flat-plane formula dr2+r2dϕ2.) A purely angular step dϕ around the horizontal circle of radius r has arc length rdϕ. Because these two displacements are perpendicular on the surface of the cone, the total step length is
ds=(2dr)2+(rdϕ)2=2dr2+r2dϕ2
(b) Factoring dr out of the square root with ϕ′=drdϕ gives ds=2+r2(ϕ′)2dr, so the arc-length functional is
S=∫r1r22+r2(ϕ′)2dr,L(r,ϕ,ϕ′)=2+r2(ϕ′)2
Because ϕ does not appear explicitly in L(∂ϕ∂L=0), Shortcut 1 gives
∂ϕ′∂L=2+r2(ϕ′)2r2ϕ′=C
Squaring both sides and solving for ϕ′=drdϕ (keeping the factor of 2 inside 2+r2(ϕ′)2 so you do not lose the 2 in the numerator) gives
Using the substitution r=cosuC (so cosu=rC,dr=cos2uCsinudu, and r2−C2=Ctanu), we get
dϕ=(cosuC)(Ctanu)2Ccos2uCsinudu=2du
Integrating gives ϕ−ϕ0=2u, or u=2ϕ−ϕ0. Substituting back into cosu=rC gives the geodesic equation on the cone:
rcos(2ϕ−ϕ0)=C
8
Find the stationary pair of functions y(x) and z(x) connecting the 3D endpoints A=(0,1,0) and B=(1,3,2), meaning y(0)=1,z(0)=0 and y(1)=3,z(1)=2, for the functional
S=∫01[21(y′)2+y′z′+6xy]dx
Write one Euler-Lagrange equation for y(x) and one for z(x), and notice that z itself is missing from L.
Here L(x,y,z,y′,z′)=21(y′)2+y′z′+6xy, and each unknown function gets its own Euler-Lagrange equation.
For y(x), differentiating L with respect to y and y′ (taking care to include the z′ contribution from the cross term y′z′, rather than writing ∂y′∂L=y′ and getting y(x)=x3+x+1) gives
∂y∂L=6x,∂y′∂L=y′+z′⟹y′′+z′′=6x
For z(x), because z is missing from L(∂z∂L=0), Shortcut 1 gives
∂z′∂L=y′=C1⟹y′′=0
Integrating y′=C1 gives
y(x)=C1x+C2
Substituting y′′=0 into y′′+z′′=6x uncouples the system to give
z′′=6x
Integrating twice with respect to x gives z′(x)=3x2+C3 and