Endpoint Variations and Transversality Conditions
The classical fixed-endpoint problem in the calculus of variations assumes that the initial time, final time, initial state, and final state are all prescribed. Under those assumptions, the first variation leads to the Euler–Lagrange equation, and the endpoint terms vanish because the endpoint variations are zero.
Many practical problems are less restrictive. A system may be required to reach a specified terminal state without prescribing the arrival time. Alternatively, the final time may be fixed while the final state is free. More general problems may allow both endpoint time and endpoint state to vary subject to geometric or algebraic constraints.
These cases produce additional necessary conditions known as transversality conditions . This section develops the endpoint variation identities, derives the free-final-time condition, discusses the free-final-state condition, and illustrates the results through a mechanical example.
Review of the Basic Functional ¶ Consider the functional
J [ x ] = ∫ t 0 t f L ( x ( t ) , x ˙ ( t ) , t ) d t . J[x]
=
\int_{t_0}^{t_f}
L\bigl(x(t),\dot{x}(t),t\bigr)\,\mathrm{d} t. J [ x ] = ∫ t 0 t f L ( x ( t ) , x ˙ ( t ) , t ) d t . The variable t t t is a dummy variable of integration. Therefore, after integration, J [ x ] J[x] J [ x ] is not a function of the dummy variable t t t . Instead, the value of the functional depends on:
the entire function x ( ⋅ ) x(\cdot) x ( ⋅ ) ;
the corresponding derivative x ˙ ( ⋅ ) \dot{x}(\cdot) x ˙ ( ⋅ ) ;
the endpoint parameters t 0 t_0 t 0 and t f t_f t f ;
the integrand L L L .
If t f t_f t f is free, then changing t f t_f t f can change the numerical value of the functional. Consequently, the first variation must include a term involving δ t f \delta t_f δ t f .
Fixed and Free Endpoint Data ¶ For the most restrictive scalar problem, all endpoint data are fixed:
t 0 = fixed , t f = fixed , x ( t 0 ) = x 0 , x ( t f ) = x f . \begin{aligned}
t_0 &= \text{fixed},\\
t_f &= \text{fixed},\\
x(t_0)&=x_0,\\
x(t_f)&=x_f.
\end{aligned} t 0 t f x ( t 0 ) x ( t f ) = fixed , = fixed , = x 0 , = x f . The admissible variations satisfy
δ x ( t 0 ) = 0 , δ x ( t f ) = 0. \delta x(t_0)=0,
\qquad
\delta x(t_f)=0. δ x ( t 0 ) = 0 , δ x ( t f ) = 0. A first extension is the free-final-time problem:
t 0 = fixed , x ( t 0 ) = x 0 , x ( t f ) = x f , t f is free . \begin{aligned}
t_0 &= \text{fixed},\\
x(t_0)&=x_0,\\
x(t_f)&=x_f,\\
t_f & \text{ is free}.
\end{aligned} t 0 x ( t 0 ) x ( t f ) t f = fixed , = x 0 , = x f , is free . Here, the terminal state value is prescribed, but the time at which that value is reached is unknown.
Geometric Interpretation of a Free Final Time ¶ Suppose an admissible path begins at the fixed point
( t 0 , x 0 ) (t_0,x_0) ( t 0 , x 0 ) and must reach the prescribed terminal value x f x_f x f . If t f t_f t f is free, the endpoint may occur anywhere along the horizontal line
Figure 1: When the terminal state is fixed but the terminal time is free, admissible trajectories may reach the line x = x f x=x_f x = x f at different times.
Variation of an Endpoint ¶ The endpoint of a trajectory can change in two different ways:
the function itself may vary at the original endpoint time;
the endpoint time may move.
These effects must be distinguished carefully.
Let the nominal final endpoint be
( t f , x f ) , x f = x ( t f ) . \bigl(t_f,x_f\bigr),
\qquad
x_f=x(t_f). ( t f , x f ) , x f = x ( t f ) . After perturbation, let the endpoint become
( t f + δ t f , x f + δ x f ) . \bigl(t_f+\delta t_f,\;x_f+\delta x_f\bigr). ( t f + δ t f , x f + δ x f ) . The perturbed function is
x ~ ( t ) = x ( t ) + δ x ( t ) . \widetilde{x}(t)
=
x(t)+\delta x(t). x ( t ) = x ( t ) + δ x ( t ) . A first-order Taylor expansion gives
x f + δ x f = x ~ ( t f + δ t f ) = x ( t f + δ t f ) + δ x ( t f + δ t f ) ≈ x ( t f ) + x ˙ ( t f ) δ t f + δ x ( t f ) . \begin{aligned}
x_f+\delta x_f
&=
\widetilde{x}(t_f+\delta t_f)
\nonumber\\
&=
x(t_f+\delta t_f)
+
\delta x(t_f+\delta t_f)
\nonumber\\
&\approx
x(t_f)
+
\dot{x}(t_f)\delta t_f
+
\delta x(t_f).
\end{aligned} x f + δ x f = x ( t f + δ t f ) = x ( t f + δ t f ) + δ x ( t f + δ t f ) ≈ x ( t f ) + x ˙ ( t f ) δ t f + δ x ( t f ) . Since x ( t f ) = x f x(t_f)=x_f x ( t f ) = x f , we obtain the endpoint variation identity
δ x f = δ x ( t f ) + x ˙ ( t f ) δ t f . \boxed{
\delta x_f
=
\delta x(t_f)
+
\dot{x}(t_f)\delta t_f
}. δ x f = δ x ( t f ) + x ˙ ( t f ) δ t f . Similarly, at the initial endpoint,
δ x 0 = δ x ( t 0 ) + x ˙ ( t 0 ) δ t 0 . \boxed{
\delta x_0
=
\delta x(t_0)
+
\dot{x}(t_0)\delta t_0
}. δ x 0 = δ x ( t 0 ) + x ˙ ( t 0 ) δ t 0 . The three quantities
δ x f , δ x ( t f ) , x ˙ ( t f ) δ t f \delta x_f,
\qquad
\delta x(t_f),
\qquad
\dot{x}(t_f)\delta t_f δ x f , δ x ( t f ) , x ˙ ( t f ) δ t f have different meanings.
δ x f \delta x_f δ x f is the total variation of the endpoint value.
δ x ( t f ) \delta x(t_f) δ x ( t f ) is the variation of the function evaluated at the original time t f t_f t f .
x ˙ ( t f ) δ t f \dot{x}(t_f)\delta t_f x ˙ ( t f ) δ t f is the first-order change caused by moving the endpoint time along the nominal trajectory.
Endpoint Parameters Versus the Dummy Variable ¶ The symbols t 0 t_0 t 0 and t f t_f t f denote endpoint parameters. They are real numbers defining the integration interval. They are not the same object as the dummy integration variable t t t .
Thus, while the dummy variable is integrated out, the endpoint parameters may remain as arguments of the resulting functional:
J = J [ x ( ⋅ ) , t 0 , t f ] . J=J[x(\cdot),t_0,t_f]. J = J [ x ( ⋅ ) , t 0 , t f ] . If t f t_f t f is free, then
is an admissible independent endpoint variation.
Variation of an Integral with a Moving Upper Limit ¶ Consider
J [ x , t f ] = ∫ t 0 t f L ( x , x ˙ , t ) d t , J[x,t_f]
=
\int_{t_0}^{t_f}
L(x,\dot{x},t)\,\mathrm{d} t, J [ x , t f ] = ∫ t 0 t f L ( x , x ˙ , t ) d t , where t 0 t_0 t 0 is fixed but t f t_f t f may vary.
The variation has two contributions:
δ J = ∫ t 0 t f δ L d t + L ( x ( t f ) , x ˙ ( t f ) , t f ) δ t f . \delta J
=
\int_{t_0}^{t_f}\delta L\,\mathrm{d} t
+
L\bigl(x(t_f),\dot{x}(t_f),t_f\bigr)\delta t_f. δ J = ∫ t 0 t f δ L d t + L ( x ( t f ) , x ˙ ( t f ) , t f ) δ t f . The second term follows from the fundamental theorem of calculus:
∂ ∂ t f ∫ t 0 t f L ( x , x ˙ , t ) d t = L ( x ( t f ) , x ˙ ( t f ) , t f ) . \frac{\partial}{\partial t_f}
\int_{t_0}^{t_f}
L(x,\dot{x},t)\,\mathrm{d} t
=
L\bigl(x(t_f),\dot{x}(t_f),t_f\bigr). ∂ t f ∂ ∫ t 0 t f L ( x , x ˙ , t ) d t = L ( x ( t f ) , x ˙ ( t f ) , t f ) . First Variation for a Free Final Time ¶ To first order,
δ L = ∂ L ∂ x δ x + ∂ L ∂ x ˙ δ x ˙ . \delta L
=
\frac{\partial L}{\partial x}\delta x
+
\frac{\partial L}{\partial\dot{x}}\delta\dot{x}. δ L = ∂ x ∂ L δ x + ∂ x ˙ ∂ L δ x ˙ . Therefore,
δ J = ∫ t 0 t f [ ∂ L ∂ x δ x + ∂ L ∂ x ˙ δ x ˙ ] d t + L ( t f ) δ t f , \begin{aligned}
\delta J
&=
\int_{t_0}^{t_f}
\left[
\frac{\partial L}{\partial x}\delta x
+
\frac{\partial L}{\partial\dot{x}}\delta\dot{x}
\right]\,\mathrm{d} t
\nonumber\\
&\quad
+
L(t_f)\delta t_f,
\end{aligned} δ J = ∫ t 0 t f [ ∂ x ∂ L δ x + ∂ x ˙ ∂ L δ x ˙ ] d t + L ( t f ) δ t f , where
L ( t f ) : = L ( x ( t f ) , x ˙ ( t f ) , t f ) . L(t_f)
:=
L\bigl(x(t_f),\dot{x}(t_f),t_f\bigr). L ( t f ) := L ( x ( t f ) , x ˙ ( t f ) , t f ) . Because
δ x ˙ = d d t δ x , \delta\dot{x}
=
\frac{\,\mathrm{d}}{\,\mathrm{d} t}\delta x, δ x ˙ = d t d δ x , integration by parts gives
δ J = ∫ t 0 t f [ ∂ L ∂ x − d d t ( ∂ L ∂ x ˙ ) ] δ x d t + ∂ L ∂ x ˙ δ x ∣ t 0 t f + L ( t f ) δ t f . \begin{aligned}
\delta J
&=
\int_{t_0}^{t_f}
\left[
\frac{\partial L}{\partial x}
-
\frac{\,\mathrm{d}}{\,\mathrm{d} t}
\left(
\frac{\partial L}{\partial\dot{x}}
\right)
\right]
\delta x\,\mathrm{d} t
\nonumber\\
&\quad
+
\left.
\frac{\partial L}{\partial\dot{x}}
\delta x
\right|_{t_0}^{t_f}
+
L(t_f)\delta t_f.
\end{aligned} δ J = ∫ t 0 t f [ ∂ x ∂ L − d t d ( ∂ x ˙ ∂ L ) ] δ x d t + ∂ x ˙ ∂ L δ x ∣ ∣ t 0 t f + L ( t f ) δ t f . The initial endpoint is fixed, so
δ x ( t 0 ) = 0. \delta x(t_0)=0. δ x ( t 0 ) = 0. Hence,
δ J = ∫ t 0 t f [ ∂ L ∂ x − d d t ( ∂ L ∂ x ˙ ) ] δ x d t + ∂ L ∂ x ˙ ∣ t f δ x ( t f ) + L ( t f ) δ t f . \begin{aligned}
\delta J
&=
\int_{t_0}^{t_f}
\left[
\frac{\partial L}{\partial x}
-
\frac{\,\mathrm{d}}{\,\mathrm{d} t}
\left(
\frac{\partial L}{\partial\dot{x}}
\right)
\right]
\delta x\,\mathrm{d} t
\nonumber\\
&\quad
+
\left.
\frac{\partial L}{\partial\dot{x}}
\right|_{t_f}
\delta x(t_f)
+
L(t_f)\delta t_f.
\end{aligned} δ J = ∫ t 0 t f [ ∂ x ∂ L − d t d ( ∂ x ˙ ∂ L ) ] δ x d t + ∂ x ˙ ∂ L ∣ ∣ t f δ x ( t f ) + L ( t f ) δ t f . Using the Fixed Terminal State ¶ The terminal state value is fixed:
x f = constant . x_f=\text{constant}. x f = constant . Therefore,
δ x f = 0. \delta x_f=0. δ x f = 0. Using the endpoint identity (11) ,
0 = δ x ( t f ) + x ˙ ( t f ) δ t f , 0
=
\delta x(t_f)
+
\dot{x}(t_f)\delta t_f, 0 = δ x ( t f ) + x ˙ ( t f ) δ t f , so
δ x ( t f ) = − x ˙ ( t f ) δ t f . \boxed{
\delta x(t_f)
=
-
\dot{x}(t_f)\delta t_f
}. δ x ( t f ) = − x ˙ ( t f ) δ t f . Substituting into (25) gives
δ J = ∫ t 0 t f [ ∂ L ∂ x − d d t ( ∂ L ∂ x ˙ ) ] δ x d t + [ L − x ˙ ∂ L ∂ x ˙ ] t f δ t f . \begin{aligned}
\delta J
&=
\int_{t_0}^{t_f}
\left[
\frac{\partial L}{\partial x}
-
\frac{\,\mathrm{d}}{\,\mathrm{d} t}
\left(
\frac{\partial L}{\partial\dot{x}}
\right)
\right]
\delta x\,\mathrm{d} t
\nonumber\\
&\quad
+
\left[
L
-
\dot{x}
\frac{\partial L}{\partial\dot{x}}
\right]_{t_f}
\delta t_f.
\end{aligned} δ J = ∫ t 0 t f [ ∂ x ∂ L − d t d ( ∂ x ˙ ∂ L ) ] δ x d t + [ L − x ˙ ∂ x ˙ ∂ L ] t f δ t f . Now the variation has been separated into two independent parts:
Necessary Conditions for the Free-Final-Time Problem ¶ Because δ x ( t ) \delta x(t) δ x ( t ) and δ t f \delta t_f δ t f vary independently, both coefficients must vanish.
The interior condition is the Euler–Lagrange equation:
∂ L ∂ x − d d t ( ∂ L ∂ x ˙ ) = 0 . \boxed{
\frac{\partial L}{\partial x}
-
\frac{\,\mathrm{d}}{\,\mathrm{d} t}
\left(
\frac{\partial L}{\partial\dot{x}}
\right)
=
0
}. ∂ x ∂ L − d t d ( ∂ x ˙ ∂ L ) = 0 . The free-final-time transversality condition is
[ L − x ˙ ∂ L ∂ x ˙ ] t f = 0 . \boxed{
\left[
L
-
\dot{x}
\frac{\partial L}{\partial\dot{x}}
\right]_{t_f}
=
0
}. [ L − x ˙ ∂ x ˙ ∂ L ] t f = 0 . For
J [ x , t f ] = ∫ t 0 t f L ( x , x ˙ , t ) d t , J[x,t_f]
=
\int_{t_0}^{t_f}
L(x,\dot{x},t)\,\mathrm{d} t, J [ x , t f ] = ∫ t 0 t f L ( x , x ˙ , t ) d t , with fixed t 0 t_0 t 0 , fixed x ( t 0 ) x(t_0) x ( t 0 ) , fixed x ( t f ) = x f x(t_f)=x_f x ( t f ) = x f , and free t f t_f t f , the necessary conditions are
∂ L ∂ x − d d t ( ∂ L ∂ x ˙ ) = 0 , [ L − x ˙ ∂ L ∂ x ˙ ] t f = 0. \begin{aligned}
\frac{\partial L}{\partial x}
-
\frac{\,\mathrm{d}}{\,\mathrm{d} t}
\left(
\frac{\partial L}{\partial\dot{x}}
\right)
&=0,\\
\left[
L
-
\dot{x}
\frac{\partial L}{\partial\dot{x}}
\right]_{t_f}
&=0.
\end{aligned} ∂ x ∂ L − d t d ( ∂ x ˙ ∂ L ) [ L − x ˙ ∂ x ˙ ∂ L ] t f = 0 , = 0. Interpretation Through the Hamiltonian-Like Quantity ¶ Define
p = ∂ L ∂ x ˙ . p
=
\frac{\partial L}{\partial\dot{x}}. p = ∂ x ˙ ∂ L . Then define the quantity
H = p x ˙ − L . H
=
p\dot{x}-L. H = p x ˙ − L . The free-final-time condition (32) is equivalent to
H ( t f ) = 0 . \boxed{
H(t_f)=0
}. H ( t f ) = 0 . This relation anticipates the Hamiltonian transversality conditions that appear later in optimal control.
Why Independent Variations Matter ¶ Before integration by parts, the first variation contains both δ x \delta x δ x and δ x ˙ \delta\dot{x} δ x ˙ . These quantities are not independent because
δ x ˙ = d d t δ x . \delta\dot{x}
=
\frac{\,\mathrm{d}}{\,\mathrm{d} t}\delta x. δ x ˙ = d t d δ x . Integration by parts rewrites the expression entirely in terms of δ x \delta x δ x and endpoint variations.
In the free-final-time problem, the endpoint relation
δ x ( t f ) = − x ˙ ( t f ) δ t f \delta x(t_f)
=
-\dot{x}(t_f)\delta t_f δ x ( t f ) = − x ˙ ( t f ) δ t f further removes the dependence between the endpoint state variation and the endpoint time variation.
Only after these dependencies have been eliminated can the coefficients of independent variations be set to zero separately.
Free Final State with Fixed Final Time ¶ Consider a different problem:
t 0 = fixed , t f = fixed , x ( t 0 ) = x 0 , x ( t f ) is free . \begin{aligned}
t_0&=\text{fixed},\\
t_f&=\text{fixed},\\
x(t_0)&=x_0,\\
x(t_f)&\text{ is free}.
\end{aligned} t 0 t f x ( t 0 ) x ( t f ) = fixed , = fixed , = x 0 , is free . Since t f t_f t f is fixed,
δ t f = 0. \delta t_f=0. δ t f = 0. The endpoint identity becomes
δ x f = δ x ( t f ) . \delta x_f
=
\delta x(t_f). δ x f = δ x ( t f ) . The first variation is
δ J = ∫ t 0 t f [ ∂ L ∂ x − d d t ( ∂ L ∂ x ˙ ) ] δ x d t + ∂ L ∂ x ˙ ∣ t f δ x ( t f ) . \begin{aligned}
\delta J
&=
\int_{t_0}^{t_f}
\left[
\frac{\partial L}{\partial x}
-
\frac{\,\mathrm{d}}{\,\mathrm{d} t}
\left(
\frac{\partial L}{\partial\dot{x}}
\right)
\right]
\delta x\,\mathrm{d} t
\nonumber\\
&\quad
+
\left.
\frac{\partial L}{\partial\dot{x}}
\right|_{t_f}
\delta x(t_f).
\end{aligned} δ J = ∫ t 0 t f [ ∂ x ∂ L − d t d ( ∂ x ˙ ∂ L ) ] δ x d t + ∂ x ˙ ∂ L ∣ ∣ t f δ x ( t f ) . Because δ x ( t f ) \delta x(t_f) δ x ( t f ) is arbitrary, the natural boundary condition is
∂ L ∂ x ˙ ∣ t f = 0 . \boxed{
\left.
\frac{\partial L}{\partial\dot{x}}
\right|_{t_f}
=
0
}. ∂ x ˙ ∂ L ∣ ∣ t f = 0 . Thus, a free endpoint value generates an additional boundary condition.
Summary of Common Endpoint Cases ¶ Final endpoint data Variation relation Additional condition x f x_f x f fixed, t f t_f t f fixedδ x ( t f ) = 0 \delta x(t_f)=0 δ x ( t f ) = 0 None beyond prescribed boundary data x f x_f x f fixed, t f t_f t f freeδ x ( t f ) = − x ˙ ( t f ) δ t f \delta x(t_f)=-\dot{x}(t_f)\delta t_f δ x ( t f ) = − x ˙ ( t f ) δ t f [ L − x ˙ L x ˙ ] t f = 0 \left[L-\dot{x}L_{\dot{x}}\right]_{t_f}=0 [ L − x ˙ L x ˙ ] t f = 0 x f x_f x f free, t f t_f t f fixedδ t f = 0 \delta t_f=0 δ t f = 0 , δ x ( t f ) \delta x(t_f) δ x ( t f ) arbitraryL x ˙ ∣ t f = 0 \left.L_{\dot{x}}\right\rvert_{t_f}=0 L x ˙ ∣ t f = 0
Necessary Versus Sufficient Conditions ¶ The Euler–Lagrange and transversality equations are first-order necessary conditions. They identify stationary candidates.
They do not by themselves determine whether a candidate is:
A condition is necessary if every optimizer must satisfy it. A condition is sufficient if satisfying it guarantees optimality. The first-order conditions developed here are generally necessary but not sufficient.
Worked Example: Mass–Spring System ¶ Consider a unit-mass, unit-stiffness spring system. Let the Lagrangian be
L ( x , x ˙ ) = T − V = 1 2 x ˙ 2 − 1 2 x 2 . L(x,\dot{x})
=
T-V
=
\frac{1}{2}\dot{x}^2
-
\frac{1}{2}x^2. L ( x , x ˙ ) = T − V = 2 1 x ˙ 2 − 2 1 x 2 . The action functional is
J [ x ] = ∫ t 0 t f ( 1 2 x ˙ 2 − 1 2 x 2 ) d t . J[x]
=
\int_{t_0}^{t_f}
\left(
\frac{1}{2}\dot{x}^2
-
\frac{1}{2}x^2
\right)
\,\mathrm{d} t. J [ x ] = ∫ t 0 t f ( 2 1 x ˙ 2 − 2 1 x 2 ) d t . The required derivatives are
∂ L ∂ x = − x , \frac{\partial L}{\partial x}
=
-x, ∂ x ∂ L = − x , and
∂ L ∂ x ˙ = x ˙ . \frac{\partial L}{\partial\dot{x}}
=
\dot{x}. ∂ x ˙ ∂ L = x ˙ . Therefore,
d d t ( ∂ L ∂ x ˙ ) = x ¨ . \frac{\,\mathrm{d}}{\,\mathrm{d} t}
\left(
\frac{\partial L}{\partial\dot{x}}
\right)
=
\ddot{x}. d t d ( ∂ x ˙ ∂ L ) = x ¨ . The Euler–Lagrange equation becomes
− x − x ¨ = 0 , -x-\ddot{x}=0, − x − x ¨ = 0 , or
x ¨ + x = 0 . \boxed{
\ddot{x}+x=0
}. x ¨ + x = 0 . The general solution is
x ( t ) = A cos t + B sin t . x(t)
=
A\cos t
+
B\sin t. x ( t ) = A cos t + B sin t . For prescribed endpoint values
x ( t 0 ) = x 0 , x ( t f ) = x f , x(t_0)=x_0,
\qquad
x(t_f)=x_f, x ( t 0 ) = x 0 , x ( t f ) = x f , the constants A A A and B B B are determined from
A cos t 0 + B sin t 0 = x 0 , A cos t f + B sin t f = x f . \begin{aligned}
A\cos t_0+B\sin t_0&=x_0,\\
A\cos t_f+B\sin t_f&=x_f.
\end{aligned} A cos t 0 + B sin t 0 A cos t f + B sin t f = x 0 , = x f . In matrix form,
[ cos t 0 sin t 0 cos t f sin t f ] [ A B ] = [ x 0 x f ] . \begin{bmatrix}
\cos t_0 & \sin t_0\\
\cos t_f & \sin t_f
\end{bmatrix}
\begin{bmatrix}
A\\
B
\end{bmatrix}
=
\begin{bmatrix}
x_0\\
x_f
\end{bmatrix}. [ cos t 0 cos t f sin t 0 sin t f ] [ A B ] = [ x 0 x f ] . Provided the matrix is nonsingular,
sin ( t f − t 0 ) ≠ 0 , \sin(t_f-t_0)\neq 0, sin ( t f − t 0 ) = 0 , the constants are uniquely determined.
General Mass–Spring Parameters ¶ For mass m m m and spring stiffness k k k ,
L = 1 2 m x ˙ 2 − 1 2 k x 2 . L
=
\frac{1}{2}m\dot{x}^2
-
\frac{1}{2}kx^2. L = 2 1 m x ˙ 2 − 2 1 k x 2 . Then
∂ L ∂ x = − k x , \frac{\partial L}{\partial x}
=
-kx, ∂ x ∂ L = − k x , and
∂ L ∂ x ˙ = m x ˙ . \frac{\partial L}{\partial\dot{x}}
=
m\dot{x}. ∂ x ˙ ∂ L = m x ˙ . The Euler–Lagrange equation gives
− k x − m x ¨ = 0 , -kx-m\ddot{x}=0, − k x − m x ¨ = 0 , or
m x ¨ + k x = 0 . \boxed{
m\ddot{x}+kx=0
}. m x ¨ + k x = 0 . This is exactly the familiar equation of motion for an undamped mass–spring oscillator.
Free-Final-Time Condition for the Mass–Spring Lagrangian ¶ For
L = 1 2 m x ˙ 2 − 1 2 k x 2 , L
=
\frac{1}{2}m\dot{x}^2
-
\frac{1}{2}kx^2, L = 2 1 m x ˙ 2 − 2 1 k x 2 , we have
∂ L ∂ x ˙ = m x ˙ . \frac{\partial L}{\partial\dot{x}}
=
m\dot{x}. ∂ x ˙ ∂ L = m x ˙ . The free-final-time condition is
0 = [ L − x ˙ ∂ L ∂ x ˙ ] t f = [ 1 2 m x ˙ 2 − 1 2 k x 2 − m x ˙ 2 ] t f = [ − 1 2 m x ˙ 2 − 1 2 k x 2 ] t f . \begin{aligned}
0
&=
\left[
L
-
\dot{x}
\frac{\partial L}{\partial\dot{x}}
\right]_{t_f}
\nonumber\\
&=
\left[
\frac{1}{2}m\dot{x}^2
-
\frac{1}{2}kx^2
-
m\dot{x}^2
\right]_{t_f}
\nonumber\\
&=
\left[
-\frac{1}{2}m\dot{x}^2
-
\frac{1}{2}kx^2
\right]_{t_f}.
\end{aligned} 0 = [ L − x ˙ ∂ x ˙ ∂ L ] t f = [ 2 1 m x ˙ 2 − 2 1 k x 2 − m x ˙ 2 ] t f = [ − 2 1 m x ˙ 2 − 2 1 k x 2 ] t f . Thus,
m x ˙ 2 ( t f ) + k x 2 ( t f ) = 0. m\dot{x}^2(t_f)+kx^2(t_f)=0. m x ˙ 2 ( t f ) + k x 2 ( t f ) = 0. For positive m m m and k k k , this implies
x ( t f ) = 0 , x ˙ ( t f ) = 0. x(t_f)=0,
\qquad
\dot{x}(t_f)=0. x ( t f ) = 0 , x ˙ ( t f ) = 0. This shows that a free-final-time condition can strongly restrict the terminal behavior. It also illustrates why endpoint conditions must be interpreted together with the full problem statement.
Extension to Vector-Valued Functions ¶ Let
x ( t ) ∈ R n \boldsymbol{x}(t)\in\mathbb{R}^n x ( t ) ∈ R n and consider
J [ x ] = ∫ t 0 t f L ( x , x ˙ , t ) d t . J[\boldsymbol{x}]
=
\int_{t_0}^{t_f}
L(\boldsymbol{x},\dot{\boldsymbol{x}},t)\,\mathrm{d} t. J [ x ] = ∫ t 0 t f L ( x , x ˙ , t ) d t . The endpoint variation identity becomes
δ x f = δ x ( t f ) + x ˙ ( t f ) δ t f . \delta\boldsymbol{x}_f
=
\delta\boldsymbol{x}(t_f)
+
\dot{\boldsymbol{x}}(t_f)\delta t_f. δ x f = δ x ( t f ) + x ˙ ( t f ) δ t f . The Euler–Lagrange equations are
∂ L ∂ x − d d t ( ∂ L ∂ x ˙ ) = 0 . \frac{\partial L}{\partial\boldsymbol{x}}
-
\frac{\,\mathrm{d}}{\,\mathrm{d} t}
\left(
\frac{\partial L}{\partial\dot{\boldsymbol{x}}}
\right)
=
\boldsymbol{0}. ∂ x ∂ L − d t d ( ∂ x ˙ ∂ L ) = 0 . For fixed terminal state and free terminal time, the transversality condition becomes
[ L − x ˙ ⊤ ∂ L ∂ x ˙ ] t f = 0 . \boxed{
\left[
L
-
\dot{\boldsymbol{x}}^\top
\frac{\partial L}{\partial\dot{\boldsymbol{x}}}
\right]_{t_f}
=
0
}. [ L − x ˙ ⊤ ∂ x ˙ ∂ L ] t f = 0 . General Endpoint Curves ¶ A still more general endpoint may be constrained to lie on a curve
ψ ( x f , t f ) = 0. \psi\bigl(x_f,t_f\bigr)=0. ψ ( x f , t f ) = 0. Then
ψ x δ x f + ψ t δ t f = 0. \psi_x\,\delta x_f
+
\psi_t\,\delta t_f
=
0. ψ x δ x f + ψ t δ t f = 0. This relation links δ x f \delta x_f δ x f and δ t f \delta t_f δ t f . Substitution into the general boundary variation produces a transversality condition associated with the endpoint curve.
This geometric viewpoint is fundamental in advanced optimal control, where terminal states may be constrained to manifolds rather than prescribed exactly.
Chapter Summary ¶ The main results are:
The functional
J [ x ] = ∫ t 0 t f L ( x , x ˙ , t ) d t J[x]
=
\int_{t_0}^{t_f}
L(x,\dot{x},t)\,\mathrm{d} t J [ x ] = ∫ t 0 t f L ( x , x ˙ , t ) d t depends on the entire path and may also depend on free endpoint parameters.
The dummy integration variable t t t is not the same object as the endpoint parameters t 0 t_0 t 0 and t f t_f t f .
The total final-state variation satisfies
δ x f = δ x ( t f ) + x ˙ ( t f ) δ t f . \delta x_f
=
\delta x(t_f)
+
\dot{x}(t_f)\delta t_f. δ x f = δ x ( t f ) + x ˙ ( t f ) δ t f . If x f x_f x f is fixed and t f t_f t f is free, then
δ x ( t f ) = − x ˙ ( t f ) δ t f . \delta x(t_f)
=
-\dot{x}(t_f)\delta t_f. δ x ( t f ) = − x ˙ ( t f ) δ t f . A moving upper integration limit contributes
L ( t f ) δ t f L(t_f)\delta t_f L ( t f ) δ t f to the first variation.
The interior stationarity condition remains the Euler–Lagrange equation:
∂ L ∂ x − d d t ( ∂ L ∂ x ˙ ) = 0. \frac{\partial L}{\partial x}
-
\frac{\,\mathrm{d}}{\,\mathrm{d} t}
\left(
\frac{\partial L}{\partial\dot{x}}
\right)
=
0. ∂ x ∂ L − d t d ( ∂ x ˙ ∂ L ) = 0. For fixed x f x_f x f and free t f t_f t f , the additional transversality condition is
[ L − x ˙ ∂ L ∂ x ˙ ] t f = 0. \left[
L
-
\dot{x}
\frac{\partial L}{\partial\dot{x}}
\right]_{t_f}
=
0. [ L − x ˙ ∂ x ˙ ∂ L ] t f = 0. For free x f x_f x f and fixed t f t_f t f , the natural boundary condition is
∂ L ∂ x ˙ ∣ t f = 0. \left.
\frac{\partial L}{\partial\dot{x}}
\right|_{t_f}
=
0. ∂ x ˙ ∂ L ∣ ∣ t f = 0. These conditions are necessary, not generally sufficient.
For a mass–spring Lagrangian, the Euler–Lagrange equation reproduces the physical equation of motion.
Connection. The transversality calculation becomes more useful when organized as natural boundary conditions and embedded in the standard structure of an optimal-control problem.