Physics Library
 An open source physics library
Encyclopedia | Forums | Docs | Random  

Calculus of Variations: Piecewise-Smooth Extremals and the Weierstrass-Erdmann Corner Conditions

(Topic)

Calculus of Variations: Piecewise-Smooth Extremals and the Weierstrass-Erdmann Corner Conditions

The classical Euler–Lagrange derivation assumes that the candidate extremal is smooth enough across the whole interval. Many physical and geometric problems naturally produce a different situation: the candidate is smooth on separate subintervals but may have an interior point at which its slope changes. Such a curve is called piecewise smooth, and the interior point is commonly called a corner.

The central question of this entry is simple to state:

If each smooth segment already satisfies the Euler–Lagrange equation, what additional conditions must hold where the segments meet?

The answer is given by the Weierstrass–Erdmann corner conditions. For a freely movable corner, two quantities must agree across the corner: the generalized momentum

p = Fy ′
(1)

and the Hamiltonian-like combination

H  = y ′Fy′ − F.
(2)

Equivalently, F − y′Fy′ is continuous. These conditions are classical necessary conditions for broken extremals; see, for example, [1, 2, 3, 4, 5].

1 Piecewise-smooth admissible curves

Consider the first-order functional

       ∫
         b        ′
J[y] =    F (x,y,y )dx.
        a
(3)

Suppose a candidate curve is smooth on the two intervals

[a, c]    and     [c,b],
(4)

and is continuous at x = c, but the one-sided slopes may differ:

   −       +
y(c ) = y (c  ) = yc,
(5)

 ′       ′
y− (c) ⁄= y+ (c)
(6)

in general. We write the two pieces as y−(x) and y+(x).

PIC

Figure. A piecewise-smooth candidate consists of smooth left and right extremal arcs joined continuously at an interior corner C = (c,yc). A corner variation can change both the corner abscissa and the corner ordinate.

The action naturally splits into

       ∫                     ∫
          c          ′         b           ′
J [y] =    F− (x,y− ,y− )dx +    F+(x, y+,y+) dx.
         a                    c
(7)

The notation F− and F+ allows the two sides to have different constitutive data, as at an optical or material interface. When the same smooth integrand applies everywhere, simply set F− = F+ = F.

2 Why Euler–Lagrange is not enough

If variations are supported strictly inside (a,c), the usual argument gives

(F− )y − -d-(F− )y′ = 0
        dx
(8)

on the left arc. Similarly,

        -d-
(F+ )y − dx (F+ )y′ = 0
(9)

on the right arc.

These equations describe what happens between corners. They do not determine how two extremal arcs may be joined. That information comes from the boundary terms generated at the internal splitting point c.

This is the same structural idea encountered in CV05: integration by parts separates interior Euler–Lagrange information from endpoint information. Here, however, the “endpoint” is shared by two neighboring arcs.

3 A fixed corner location

Begin with the simpler case in which the corner abscissa c is fixed but its ordinate yc is free to vary. Since the total curve remains continuous, the two variation fields have the same value at the corner:

η− (c) = η+ (c) = ηc.
(10)

After integrating by parts separately on the two subintervals and imposing Euler–Lagrange on each interior, the corner contribution is

δJcorner = (F− )y′(c)ηc − (F+ )y′(c) ηc.
(11)

Therefore

[(F− )y′ − (F+ )y′] ηc = 0.
(12)

Because the corner ordinate is free, ηc is arbitrary. Hence

|---------------------|
-(F−-)y′(c) =-(F+)y′(c) .
(13)

Thus even a fixed interface requires continuity of generalized momentum if the crossing point can slide along that interface.

If both c and yc are prescribed, then there is no free corner variation and no additional matching condition is produced. The two arcs simply meet at a prescribed pin point.

4 Movable corner geometry

Now allow the corner itself to move. Let

c𝜖 = c + 𝜖δc + o(𝜖)
(14)

and

yc,𝜖 = yc + 𝜖 δyc + o(𝜖).
(15)

The subtle point is that the ordinary variation field η(x) measures change at a fixed value of x, whereas δyc measures the actual change of the moving corner point. These are not the same quantity.

For the left arc,

y−,𝜖(c𝜖) = yc,𝜖.
(16)

Differentiate with respect to 𝜖 at 𝜖 = 0:

η− (c) + y ′− (c)δc = δyc.
(17)

Therefore

|---------------------|
|η− (c) = δyc − y′− (c)δc|.
-----------------------
(18)

The same reasoning on the right gives

|---------------------|
|η+(c) = δyc − y′(c)δc|.
----------------+------
(19)

These two relations are the bookkeeping step that produces the second corner condition.

5 Variation of an integral with a moving limit

For the left piece,

     ∫ c𝜖
J− =     F − (x,y− ,𝜖,y′ ) dx.
      a              −,𝜖
(20)

Differentiating gives the usual first-variation integral plus the moving-upper-limit contribution:

       ∫
         c[                  ′]
δJ− =      (F− )yη− + (F− )y′η− dx + F− (c) δc.
        a
(21)

After integration by parts and use of Euler–Lagrange on the left arc, the corner term becomes

δJ−(c)=  (F− )y′η− (c) + F− δc.
(22)

Substitute the moving-corner relation:

δJ−(c) = (F −)y′(          )
 δyc − y′− δc + F−δc (23)
= (F−)y′δyc + [       ′      ]
 F− − y− (F− )y′δc. (24)

For the right piece, the corner is a moving lower limit, so the sign reverses:

                     [              ]
δJ(+c) = − (F+ )y′δyc −  F+ − y′+ (F+)y′ δc.
(25)

Adding the two contributions gives

δJcorner = [(F− )y′ − (F+ )y′] δyc (26)
+ [       ′               ′       ]
 F− − y − (F− )y′ − F+ + y+ (F+)y′δc. (27)

PIC

Figure. The corner conditions arise by treating the internal corner as the terminal endpoint of the left arc and the initial endpoint of the right arc. The endpoint terms appear with opposite signs.

6 The Weierstrass–Erdmann corner conditions

theorem. Let a piecewise-C1 stationary curve have a freely movable interior corner C = (c,y c). Assume each smooth arc satisfies the Euler–Lagrange equation and the one-sided values needed below exist. If δc and δyc may be varied independently, then the corner must satisfy

|----------------|
-(F−-)y′-=-(F+-)y′|
(28)

and

|-------′----------------′------|
-F−-−-y−-(F− )y′ =-F+-−-y+-(F+-)y′-.
(29)

These are the Weierstrass–Erdmann corner conditions.

Proof. The preceding derivation gives

A δyc + B δc = 0,
(30)

where

A =  (F − )y′ − (F+ )y′
(31)

and

B  = F − − y′(F − )y′ − F+ + y′(F+ )y′.
            −                +
(32)

Because δyc and δc are independent, first set δc = 0 and vary δyc to obtain A = 0. Then set δyc = 0 and vary δc to obtain B = 0. □

It is often convenient to define

p = Fy ′
(33)

and

H  = y′p − F.
(34)

Then the conditions become simply

|--------|
|p− = p+ |
----------
(35)

and

------------
| −      + |
H---=--H---.
(36)

If the jump notation is

          +        −
[Q ]c = Q (c ) − Q (c ),
(37)

then

[p ]c = 0,     [H ]c = 0.
(38)

7 What the two conditions mean

The first condition comes from moving the corner vertically while holding its abscissa fixed. It therefore matches the generalized momentum transmitted from one arc to the other.

The second comes from moving the corner horizontally. It matches the quantity conjugate to shifts in the independent variable. In mechanics, where the independent variable is time, this is the Hamiltonian. In autonomous mechanical systems it is the energy.

This is not a coincidence. CV05 already showed that the boundary variation of a first-order integral may be written schematically as

pδy − H  δx.
(39)

At an internal corner, the same endpoint expression appears once from the left and once from the right. Stationarity requires the two endpoint covectors to match.

8 A corner constrained to a prescribed curve

A useful intermediate case occurs when the corner may move, but only along a prescribed interface

y = ψ (x).
(40)

Then the corner displacement satisfies

δyc = ψ′(c)δc.
(41)

The two corner variations are no longer independent. Substituting into the general corner term gives the single transversality condition

0 = [(F − )y′ − (F+ )y′] ψ′(c) (42)
+ F−− y−′(F−)y′− F+ + y+′(F+)y′. (43)

Thus the fully free Weierstrass–Erdmann pair and the CV05 transversality condition are two versions of the same boundary-variation geometry.

For a vertical interface x = c, one has δc = 0 while δyc is free, so only generalized momentum continuity is required.

9 Example: optical refraction and Snell’s law

Fermat’s principle makes refraction a particularly transparent corner problem. Suppose Light travels from a medium of refractive index n1 to a medium of refractive index n2 across the fixed vertical interface x = c. Apart from a constant factor, the optical travel-time functional is

      ∫
             ∘  -----′2-
J[y] =   n(x )  1 + y  dx,
(44)

with

        {
n (x) =   n1,  x < c,
          n2,  x > c.
(45)

On each side,

        ∘ -----′2-
Fi =  ni  1 + y .
(46)

The generalized momentum is

     ∂Fi      niy′
pi = ---′ = ∘--------.
     ∂y       1 + y′2
(47)

Let 𝜃i be the angle the ray makes with the Normal to the vertical interface. Since

y′ = tan 𝜃,
(48)

we have

     ′
∘---y-----= sin𝜃.
   1 + y ′2
(49)

The interface location x = c is fixed, but the crossing height is free. Therefore the fixed-interface corner condition gives

p1 = p2,
(50)

or

|-------------------|
|n1 sin 𝜃1 = n2sin 𝜃2.
--------------------
(51)

This is Snell’s law.

PIC

Figure. Refraction is a fixed-interface corner problem. The crossing point may slide along the interface, so generalized momentum parallel to the interface is continuous. For optical length this becomes Snell’s law.

The example also explains why a true slope corner is possible: the integrand changes across the interface because n1≠n2.

10 Example: a quadratic interface problem

Consider

       ∫ c 1          ∫ b 1
J[y] =     -k1y′2dx +     -k2y′2dx,
        a  2           c  2
(52)

where c is a fixed interface and the crossing ordinate is free. Each side satisfies

 ′′
y  = 0,
(53)

so the stationary pieces are straight lines. The corner condition is

   ′         ′
k1y− (c) = k2y+(c).
(54)

Unless k1 = k2, the slope generally changes at the interface. The transmitted quantity is not slope itself but the generalized momentum p = ky′.

This is mathematically analogous to continuity of flux across many interfaces in diffusion, heat conduction, elasticity, and wave problems.

11 Why a regular homogeneous integrand usually forbids a genuine corner

Suppose the same smooth integrand F(x,y,y′) applies on both sides of the corner. The first Weierstrass–Erdmann condition says

Fy′(c,yc,y ′) = Fy′(c,yc,y ′).
          −              +
(55)

If, for fixed (x,y), the map

y′ ↦− → F ′(x, y,y′)
        y
(56)

is one-to-one, then necessarily

y−′=  y′+.
(57)

A common sufficient local condition is strict convexity in the derivative:

Fy′y′ > 0.
(58)

Then Fy′ is strictly increasing as a function of y′, so momentum continuity forces slope continuity.

PIC

Figure. For a regular strictly convex integrand, the map y′↦→p = Fy′ is one-to-one. Hence continuity of p at a corner forces continuity of y′, eliminating a genuine kink when the same integrand applies on both sides.

This is an important conceptual point: corner conditions do not predict that corners must occur. Often they prove that a stationary curve cannot have one.

12 Mechanics and a free switching time

Let a trajectory q(t) be governed by one Lagrangian before a switching time tc and another afterward:

          ∫                 ∫
            tc                  tf
S [q,tc] =     L− (q,q˙, t) dt +    L+(q,q˙,t) dt.
           t0                  tc
(59)

If both the switching state q(tc) and the switching time tc are free, the Weierstrass–Erdmann conditions become

|---------------------|
|−     +          ∂L- |
p  =  p ,     p = ∂ ˙q |
-----------------------
(60)

and

|--−-----+-------------------|
-H---=-H--,-----H--=-˙qp-−-L.--
(61)

For several coordinates, p becomes a vector and the momentum condition is componentwise.

PIC

Figure. A free switching time is the mechanical version of a movable corner. Stationarity matches generalized momentum and Hamiltonian across the switch.

For an ordinary natural mechanical Lagrangian

    1-   2
L = 2 m ˙q − V (q),
(62)

we have

p = m q˙
(63)

and

H  =  1m ˙q2 + V(q).
      2
(64)

If the same regular Lagrangian applies on both sides and there is no impulse, momentum continuity forces velocity continuity. Thus a spontaneous velocity kink is incompatible with stationarity. An actual impulsive force changes the variational model and can produce a momentum jump.

13 Vector-valued corner conditions

For a vector path q(x) ∈ ℝn and

       ∫
J[q] =    F (x, q,q′)dx,
(65)

define the generalized momentum vector

     ∂F
p =  ∂q-′.
(66)

At a freely movable corner the conditions become

|-−-----+|
p---=-p---
(67)

and

|-′−----−----−-----′+---+-----+-|
q---⋅ p-−--F--=--q--⋅-p--−-F--.-
(68)

These are precisely the multi-coordinate forms that recur in mechanics, ray tracing, hybrid systems, and later optimal-control switching conditions.

14 Several corners

If a broken extremal contains corners

c1,c2,...,cN,
(69)

then the first variation splits across all subintervals. Each freely movable interior corner independently contributes a matching condition. Therefore at every cj,

[p]cj = 0,     [H ]cj = 0.
(70)

The logic is local: moving one corner while holding the others fixed isolates its own jump terms.

15 What if only one corner coordinate is free?

The number of independent corner conditions equals the number of independent corner displacements.

  • If c and yc are both fixed: no corner condition is generated.
  • If c is fixed and yc is free: continuity of p.
  • If yc is fixed and c is free: continuity of F − y′p, equivalently H.
  • If both are free: both Weierstrass–Erdmann conditions.
  • If the corner is constrained to a one-dimensional interface: one transversality combination.

This counting principle is a useful way to avoid imposing too many conditions.

16 Necessary, not sufficient

The Weierstrass–Erdmann conditions are necessary stationarity conditions. They do not by themselves prove that a broken extremal minimizes the functional.

A candidate may satisfy Euler–Lagrange on every arc and satisfy both corner conditions while still being a maximum or saddle. Stronger minimum theory requires second-variation conditions, convexity, the Weierstrass excess function, and related results developed later in the series.

Likewise, corner conditions do not establish existence. A variational problem may fail to possess a minimizer even though its formal necessary conditions are well defined.

17 Common mistakes

  • Applying Euler–Lagrange separately and stopping. Interior equations do not contain the corner matching information.
  • Assuming η−(c) = η+(c) when the corner moves horizontally. For a movable corner, η±(c) = δyc − y±′δc.
  • Forgetting the moving-limit term F δc. Without it the second Weierstrass–Erdmann condition is lost.
  • Using the same sign for the left and right corner contributions. The corner is an upper limit for the left integral and a lower limit for the right integral.
  • Imposing two conditions when the corner is constrained to an interface. Only independent corner motions produce independent conditions.
  • Assuming a slope kink is always allowed. For a regular strictly convex homogeneous integrand, momentum continuity typically forces the slope to be continuous.
  • Confusing physical impulses with ordinary corners. An impulse introduces a momentum jump and therefore changes the stationarity conditions/model.
  • Treating the corner conditions as a minimum proof. They are necessary conditions only.

18 A compact workflow for broken extremals

For a piecewise-smooth candidate, use the following sequence.

  1. Identify the subintervals and the corner coordinates that are allowed to move.
  2. Split the functional at every corner.
  3. Apply Euler–Lagrange separately on each smooth arc.
  4. Integrate by parts without discarding the internal boundary terms.
  5. Include moving-limit contributions when a corner abscissa is free.
  6. Relate fixed-x variations to actual corner displacement through
    η (c) = δy −  y′(c)δc.
 ±        c    ±
    (71)

  7. Collect coefficients of the independent corner displacements.
  8. Set those coefficients to zero.
  9. Interpret the resulting conditions as continuity of generalized momentum and, when the corner location is free, continuity of the Hamiltonian-like quantity.
  10. Separately test whether the stationary broken curve is actually minimizing.

19 What CV11 adds

CV10 has completed the main first-order necessary-condition structure for smooth and piecewise-smooth extremals. The next question is classification: when does a stationary curve actually behave like a minimum?

CV11 introduces the second variation. The second variation is a quadratic functional in the perturbation and provides the variational analogue of the Hessian in multivariable calculus. Its simplest local consequence is the Legendre necessary condition, which constrains the sign of Fy′y′ along a minimizing extremal.

Summary

For a piecewise-smooth extremal with a freely movable corner, Euler–Lagrange must hold separately on every smooth arc, and the internal boundary terms must vanish under independent corner motion. The resulting Weierstrass–Erdmann conditions are

|----------|
|[Fy′]c = 0 |
-----------
(72)

and

|----------------|
-[F--−-y′Fy′]c =-0.-
(73)

Equivalently, with

p = Fy′,    H  =  y′p − F,
(74)

we have

|----------------------|
|[p ]c = 0,     [H ]c = 0.|
-----------------------
(75)

The first condition matches generalized momentum; the second matches the quantity conjugate to movement of the corner in the independent variable. Fixed interfaces, movable interfaces, optical refraction, mechanical switching times, and vector trajectories are all variations of this same internal-boundary principle.

References

[1]   I. M. Gelfand and S. V. Fomin, Calculus of Variations, Dover Publications, 2000.

[2]   Bruce van Brunt, The Calculus of Variations, Springer, 2004.

[3]   Hans Sagan, Introduction to the Calculus of Variations, Dover Publications, 1992.

[4]   Robert Weinstock, Calculus of Variations with Applications to Physics and Engineering, Dover Publications, 1974.

[5]   Gilbert Ames Bliss, Lectures on the Calculus of Variations, University of Chicago Press, 1946.

[6]   Cornelius Lanczos, The Variational Principles of Mechanics, Dover Publications, 1986.


"Calculus of Variations: Piecewise-Smooth Extremals and the Weierstrass-Erdmann Corner Conditions" is owned by bloftin.
(view preamble)
View style:
Other names:  CV10
Also defines:  piecewise-smooth extremal, corner point, Weierstrass-Erdmann corner conditions, fixed corner, movable corner, interface transversality, generalized momentum continuity, Hamiltonian continuity
Keywords:  calculus of variations, piecewise-smooth extremal, corner condition, Weierstrass-Erdmann condition, movable corner, broken extremal, generalized momentum, Hamiltonian, transversality, Snell law, refraction, interface, switching time

Attachments:
Calculus of Variations: The Second Variation and the Legendre Condition (Example) by bloftin

Cross-references: second variation, CV11, internal boundary, impulsive force, velocity, impulse, vector, Lagrangian, regular, forces, function, conduction, heat, flux, Snell's law, Normal, Light, Fermat's principle, displacement, energy, systems, Hamiltonian, mechanics, theorem, relations, CV05, boundary, momentum
There are 3 references to this object.

This is version 2 of Calculus of Variations: Piecewise-Smooth Extremals and the Weierstrass-Erdmann Corner Conditions, born on 2026-10-20, modified 2026-10-20.
Object id is 1511, canonical name is CalculusOfVariationsPiecewiseSmoothExtremalsAndTheWeierstrassErdmannCornerConditions.
Accessed 16 times total.

Classification:
Physics Classification: 02.30.Xx (Calculus of variations)
 02.30.Sa (Functional analysis)
 45.20.Jj (Lagrangian and Hamiltonian mechanics)
 42.15.-i (Geometrical optics)

Pending Errata and Addenda

None.

Discussion

No messages.

Interact