advanced30 min studyLesson 343 in Mathematics

Natural boundary conditions and transversality

Derive endpoint conditions from free endpoint motions, terminal costs, and moving terminal curves.

On this page

What you’ll understand

  • Derive natural conditions at a free terminal value.
  • Include the derivative of an endpoint penalty with the correct sign.
  • Derive a transversality condition for a terminal point constrained to a curve.

A fixed endpoint and a free endpoint are different experiments in optimization. A string attached at its final height cannot move there; a string allowed to slide has an additional variation and therefore an additional stationarity condition. The endpoint condition is not an arbitrary supplement to the interior equation. It records the allowed geometry of terminal motion. When the terminal horizontal coordinate also moves, the change in the integration interval contributes another term. Tracking total endpoint motion prevents a common confusion between a shape perturbation at a fixed coordinate and the movement of the endpoint itself.

A free value exposes the endpoint momentum

First keep the interval [a,b][a,b] fixed, fix the initial value, and allow the terminal value to vary without restriction. Use a smooth integrand and candidate so the classical first-variation calculation applies. Compactly supported perturbations still give the interior Euler–Lagrange equation. After imposing that equation, stationarity reduces to Fv(b)h(b)=0F_v(b)h(b)=0. Since the terminal perturbation can be any real number, its coefficient must vanish. This is the natural boundary condition at a free terminal value.

If an endpoint penalty Ψ(u(b))\Psi(u(b)) is added, its derivative contributes to the same coefficient. The resulting condition is Fv(b)+Ψ′(u(b))=0F_v(b)+\Psi'(u(b))=0. At the initial endpoint the integration-by-parts sign is negative, so a free initial value with an initial penalty has a different sign. These formulas assume genuinely free two-sided motions. An endpoint constrained by an inequality instead allows only a one-sided feasible motion at an active boundary and generally leads to a sign condition, not an equality.

J[u]=∫abF(x,u,u′) dx+Ψ(u(b)),u(a)=A,u(b) free⇒Fv(b)+Ψ′(u(b))=0J[u]=\int_a^bF(x,u,u')\,dx+\Psi(u(b)),\qquad u(a)=A,\quad u(b)\text{ free}\quad\Rightarrow\quad F_v(b)+\Psi'(u(b))=0
The terminal coefficient must vanish after the interior equation holds. The argument assumes smoothness and unrestricted terminal-value variations.↔ Scroll wide equations horizontally.

Moving a terminal point changes two things

Now let the terminal coordinate be bεb_\varepsilon and write its total vertical displacement as Δub\Delta u_b. At first order this total displacement equals the shape variation at the old terminal coordinate plus u′(b)Δbu'(b)\Delta b. Differentiating the upper integration limit contributes F(b)ΔbF(b)\Delta b. Combining this with the usual boundary momentum term gives FvΔub+(F−u′Fv)ΔbF_v\Delta u_b+(F-u'F_v)\Delta b. Forgetting the distinction between total displacement and fixed-coordinate variation gives an incorrect terminal formula.

Suppose the endpoint lies on a smooth curve u=ϕ(x)u=\phi(x) and its horizontal coordinate is free near the candidate, with no endpoint penalty. Then Δub=ϕ′(b)Δb\Delta u_b=\phi'(b)\Delta b, so the coefficient of the free horizontal displacement must vanish. This is a transversality condition. It assumes a smooth terminal curve, a smooth candidate defined sufficiently near the terminal point, and feasible endpoint motions in both directions. It does not assert that the stationary meeting point is globally optimal or even exists.

δJend=FvΔub+(F−u′Fv)Δb,F+(ϕ′−u′)Fv=0at b\delta J_{\mathrm{end}}=F_v\Delta u_b+(F-u'F_v)\Delta b,\qquad F+(\phi'-u')F_v=0\quad\text{at }b
The second formula follows by substituting the terminal-curve constraint into the first, with no terminal penalty and a freely moving terminal coordinate.↔ Scroll wide equations horizontally.

Geometry and convexity check the endpoint calculation

For the length integrand 1+(u′)2\sqrt{1+(u')^2}, terminal-curve transversality becomes 1+u′ϕ′=01+u'\phi'=0. This is the dot product of the two graph tangent vectors being zero: the stationary path meets the terminal curve orthogonally. The formula is valid in a graph chart where both slopes are finite; vertical terminal lines can instead be described using a different chart or directly with tangent vectors. Coordinate formulas should not be mistaken for restrictions on the underlying geometry.

Natural conditions also make physical sense in quadratic examples. A derivative energy without terminal penalty favors zero slope at a free end. A spring-like terminal penalty balances the endpoint momentum against a restoring force. For convex energies and convex penalties, an exact expansion can certify the stationary solution as the global minimum. For general moving-endpoint problems, the feasible set itself can be nonconvex, so neither the interior equation nor an orthogonal meeting condition resolves all competing paths.

A free end with an elastic penalty

Minimize J[u]=12∫01(u′)2dx+12(u(1)−2)2J[u]=\tfrac12\int_0^1(u')^2dx+\tfrac12(u(1)-2)^2 over H1(0,1)H^1(0,1) with u(0)=0u(0)=0 and free terminal value. Find and certify the minimizer.

  1. The interior equation is u′′=0u''=0, so the candidate is u(x)=cxu(x)=cx. The terminal coefficient is u′(1)+u(1)−2u'(1)+u(1)-2, giving c+c−2=0c+c-2=0.

  2. Thus c=1c=1, and the candidate is u∗(x)=xu_*(x)=x. Its derivative-energy contribution is 1/21/2 and terminal penalty is 1/21/2, giving total energy one.

  3. For any perturbation h∈H1h\in H^1 with h(0)=0h(0)=0, the cross term is ∫h′+(1−2)h(1)=h(1)−h(1)=0\int h'+(1-2)h(1)=h(1)-h(1)=0. The remaining difference is 12∫(h′)2+12h(1)2≥0\tfrac12\int(h')^2+\tfrac12h(1)^2\ge0, with equality only at zero.

The result

The unique global minimizer is u(x) = x. Setting the free-end slope to zero would be wrong because it would omit the terminal penalty.

Explore the model

Interactive lab

Interactive lab · vectors

Orthogonal terminal tangents

Reset and set both angle 4545 degrees and magnitude 11. Predict equal positive components 1/21/\sqrt2. Reset and set both angle −45-45 degrees and magnitude 11; predict opposite signs with the same magnitudes. Compare the two vectors on paper: their dot product is zero, matching graph slopes 11 and −1-1 in the length transversality example. The instrument shows one vector per run, not an optimized curve.

Orthogonal terminal tangentsPlayback traces a fixed vector and its projections. Angle and magnitude set the geometry; the moving marker does not change them. Current readings: x component: 1.393; y component: 0.975; Magnitude: 1.7. All parameters are adjustable with the labeled controls below.−7.46−3.7303.737.46−3.5−1.7501.753.5xyvvₓ = 1.39
Vectorx / y projectionsTrace marker
x component
1.393
y component
0.975
Magnitude
1.7
t = 0 s

Playback traces a fixed vector and its projections. Angle and magnitude set the geometry; the moving marker does not change them. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forThe terminal condition expresses allowed endpoint geometry, here orthogonality of tangent directions.

Check your understanding

At a fixed terminal coordinate with a free terminal value and terminal penalty Ψ, which stationarity condition applies?

Try it yourself

For a shortest graph path ending on the line u=2x+1u=2x+1 at an interior free meeting point, use the length transversality equation to determine the candidate path's terminal slope. State what this does not prove.

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

The terminal-curve slope is two. Substitute it into the dot-product form of the natural geometric condition.

Compare with the solution

The condition 1+u′ϕ′=01+u'\phi'=0 gives 1+2u′=01+2u'=0, hence terminal slope u′=−1/2u'=-1/2. This is orthogonality to a line with slope two. It is a necessary stationary meeting condition under smooth free endpoint motions, not by itself a proof of existence, admissibility relative to any additional constraints, or global minimality.

Take it with you

  • A free endpoint produces a boundary stationarity condition.
  • Endpoint penalties and initial-versus-terminal signs must be tracked explicitly.
  • Moving endpoints require total displacement and interval-length contributions.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.