<?xml version="1.0" encoding="UTF-8"?>

<record version="1" id="1204">
 <title>Calculus of Variations: Vector Trajectory Problems and Conserved Momentum</title>
 <name>CalculusOfVariationsVectorTrajectoryProblemsAndConservedMomentum</name>
 <created>2026-09-13 02:45:23</created>
 <modified>2026-09-13 02:45:23</modified>
 <type>Example</type>
<parent id="1202">Calculus of Variations: First Integrals and Special Forms of the Euler--Lagrange Equation</parent>
 <creator id="1" name="bloftin"/>
 <modifier id="1" name="bloftin"/>
 <comment>changed parent to cv07 instead of cv06</comment>
 <author id="1" name="bloftin"/>
 <classification>
	<category scheme="pacs" code="02.30.Xx"/>
	<category scheme="pacs" code="02.30.Hq"/>
	<category scheme="pacs" code="45.20.Jj"/>
 </classification>
 <synonyms>
	<synonym concept="Calculus of Variations: Vector Trajectory Problems and Conserved Momentum" alias="CV07E2"/>
 </synonyms>
 <keywords>
	<term>calculus of variations</term>
	<term>vector trajectory</term>
	<term>vector Euler-Lagrange equation</term>
	<term>planar particle path</term>
	<term>fixed endpoint</term>
	<term>free endpoint</term>
	<term>transversality</term>
	<term>generalized momentum vector</term>
	<term>conserved momentum</term>
	<term>cyclic coordinate</term>
	<term>translation invariance</term>
	<term>uniform gravity</term>
	<term>terminal cost</term>
	<term>worked exercises % License intent: CC BY-SA 4.0 %</term>
 </keywords>
 <preamble>% this is the default PhysicsLibrary preamble.  as your knowledge
% of TeX increases, you will probably want to edit this, but
% it should be fine as is for beginners.

% almost certainly you want these
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}

% used for TeXing text within eps files
%\usepackage{psfrag}
% need this for including graphics (\includegraphics).
% If you use \includegraphics{figure} with no file extension, PhysicsLibrary
% will prefer figure.png before falling back to figure.eps.
\usepackage{graphicx}
\DeclareGraphicsExtensions{.png,.jpg,.jpeg,.pdf,.eps}
% for neatly defining theorems and propositions
%\usepackage{amsthm}
% making logically defined graphics
%\usepackage{xypic}

% there are many more packages, add them here as you need them

% define commands here</preamble>
 <content>\section*{Calculus of Variations: Vector Trajectory Problems and Conserved Momentum}

CV07 derived the Euler--Lagrange equations for several dependent variables, and
CV07E1 used them for coupled matrix systems. This companion set changes the
geometric viewpoint. The unknown is now a trajectory

\begin{equation}
\mathbf r(t)
=
\begin{pmatrix}
x(t)\\
y(t)
\end{pmatrix}
\end{equation}

in the plane, or more generally a vector curve in configuration space. The
central questions are:

\begin{itemize}
\item how a scalar action produces a vector differential equation;
\item how fixed and free endpoint conditions act component by component;
\item when generalized momentum is a conserved vector;
\item how a spatial symmetry can conserve only selected momentum components;
\item how endpoint freedom produces a geometric transversality condition.
\end{itemize}

These are the trajectory-level forms of the vector Euler--Lagrange equations
used throughout analytical mechanics \cite{Lanczos,Goldstein,Arnold}. The
examples remain elementary enough that every stationary path can be found in
closed form.

\begin{center}
\includegraphics{CV07E2_vector_trajectory_variation.png}

\vspace{0.45em}

\textbf{Figure.}
A vector trajectory and an admissible variation. With both endpoints fixed,
the perturbation vector must vanish at the initial and final times, while it
may point in arbitrary directions in the interior.
\end{center}

\section{Formula sheet for this set}

For

\begin{equation}
S[\mathbf r]
=
\int_{t_0}^{t_f}
L(t,\mathbf r,\dot{\mathbf r})\,dt,
\end{equation}

the vector first variation is \cite{GelfandFomin,VanBrunt}

\begin{equation}
\delta S
=
\int_{t_0}^{t_f}
\left[
\frac{\partial L}{\partial \mathbf r}
-
\frac{d}{dt}
\left(
\frac{\partial L}{\partial \dot{\mathbf r}}
\right)
\right]
\cdot\boldsymbol\eta\,dt
+
\left[
\frac{\partial L}{\partial \dot{\mathbf r}}
\cdot\boldsymbol\eta
\right]_{t_0}^{t_f}.
\end{equation}

The generalized momentum vector is

\begin{equation}
\mathbf p
=
\frac{\partial L}{\partial \dot{\mathbf r}}.
\end{equation}

The vector Euler--Lagrange equation is therefore

\begin{equation}
\frac{d\mathbf p}{dt}
=
\frac{\partial L}{\partial \mathbf r}.
\end{equation}

If the Lagrangian has no dependence on the position vector,

\begin{equation}
\frac{\partial L}{\partial \mathbf r}=\mathbf 0,
\end{equation}

then

\begin{equation}
\frac{d\mathbf p}{dt}=\mathbf 0,
\end{equation}

so the entire generalized momentum vector is conserved. If only one
coordinate is absent from the Lagrangian, only the corresponding momentum
component is guaranteed to be conserved. This is the finite-dimensional
preview of the symmetry ideas developed systematically in CV20.

\section*{Part I: Exercises}

\subsection*{Exercise 1: vector Dirichlet energy and the straight path}

Let

\begin{equation}
J[\mathbf r]
=
\frac12\int_0^1
\|\mathbf r'(s)\|^2\,ds,
\end{equation}

where

\begin{equation}
\mathbf r(0)=\mathbf A,
\qquad
\mathbf r(1)=\mathbf B.
\end{equation}

\begin{enumerate}
\item[(a)] Derive the vector Euler--Lagrange equation.
\item[(b)] Solve the resulting boundary-value problem.
\item[(c)] Show directly that the stationary path is also the unique global
minimum of this quadratic functional.
\end{enumerate}

\subsection*{Exercise 2: a free particle and conservation of the momentum vector}

For a particle of mass \(m\), consider

\begin{equation}
S[\mathbf r]
=
\int_{t_0}^{t_f}
\frac12m\|\dot{\mathbf r}\|^2\,dt
\end{equation}

with fixed endpoint positions \(\mathbf r_0\) and \(\mathbf r_f\).

\begin{enumerate}
\item[(a)] Compute the generalized momentum vector.
\item[(b)] Use Euler--Lagrange to prove that this vector is conserved.
\item[(c)] Solve for the stationary trajectory joining the two endpoint events.
\item[(d)] Interpret the result geometrically.
\end{enumerate}

\subsection*{Exercise 3: uniform gravity with two fixed endpoint events}

Take

\begin{equation}
L
=
\frac12m(\dot x^2+\dot y^2)-mgy
\end{equation}

for \(0\leq t\leq T\), with

\begin{equation}
(x(0),y(0))=(x_0,y_0),
\qquad
(x(T),y(T))=(x_f,y_f).
\end{equation}

\begin{enumerate}
\item[(a)] Derive the two Euler--Lagrange equations.
\item[(b)] Identify which momentum component is conserved and explain why.
\item[(c)] Solve the boundary-value problem explicitly.
\item[(d)] Show that the spatial trajectory is parabolic when \(x_f\neq x_0\).
\end{enumerate}

\subsection*{Exercise 4: one cyclic spatial coordinate}

Let

\begin{equation}
L
=
\frac12m(\dot x^2+\dot y^2)-V(y).
\end{equation}

\begin{enumerate}
\item[(a)] Derive the Euler--Lagrange equations.
\item[(b)] Prove that \(p_x\) is conserved.
\item[(c)] Explain why \(p_y\) is not generally conserved.
\item[(d)] State the additional condition under which the full vector
\(\mathbf p\) is conserved.
\end{enumerate}

\subsection*{Exercise 5: a translation-invariant anisotropic kinetic energy}

Let \(\mathbf q(t)\in\mathbb R^n\) and

\begin{equation}
L
=
\frac12\dot{\mathbf q}^{T}\mathbf M\dot{\mathbf q},
\end{equation}

where \(\mathbf M\) is a constant symmetric positive-definite matrix.
The endpoint positions are fixed at \(\mathbf q_0\) and \(\mathbf q_f\) over
an elapsed time \(T\).

\begin{enumerate}
\item[(a)] Find the generalized momentum vector.
\item[(b)] Prove that it is constant.
\item[(c)] Find the stationary path.
\item[(d)] Express the constant momentum in terms of \(\mathbf q_0\),
\(\mathbf q_f\), \(T\), and \(\mathbf M\).
\end{enumerate}

\subsection*{Exercise 6: one fixed endpoint component and one free component}

Suppose the initial position is fixed. At \(t_f\), the final horizontal
coordinate is prescribed,

\begin{equation}
x(t_f)=X,
\end{equation}

but \(y(t_f)\) is free. The final time is fixed.

\begin{enumerate}
\item[(a)] State the allowed endpoint variation
\(\boldsymbol\eta(t_f)\).
\item[(b)] Use the boundary term in \(\delta S\) to derive the natural endpoint
condition.
\item[(c)] For the standard mechanical Lagrangian
\begin{equation}
L=\frac12m(\dot x^2+\dot y^2)-V(x,y),
\end{equation}
interpret the endpoint condition physically.
\end{enumerate}

\subsection*{Exercise 7: endpoint constrained to a target curve}

The initial position and final time are fixed, but the final point may slide
along a smooth target curve \(C\). Let
\(\boldsymbol\tau\) be a tangent vector to \(C\) at the terminal point.

\begin{enumerate}
\item[(a)] Show that the allowed endpoint variation is tangent to \(C\).
\item[(b)] Derive
\begin{equation}
\mathbf p_f\cdot\boldsymbol\tau=0.
\end{equation}
\item[(c)] If the target curve is represented by
\(G(x,y)=0\), show that
\begin{equation}
\mathbf p_f=\lambda\nabla G
\end{equation}
for some scalar \(\lambda\).
\item[(d)] For a free particle, explain the geometric meaning of the condition.
\end{enumerate}

\subsection*{Exercise 8: a terminal endpoint cost}

Let

\begin{equation}
J[\mathbf r]
=
\int_{t_0}^{t_f}
L(t,\mathbf r,\dot{\mathbf r})\,dt
+
\Phi(\mathbf r(t_f)),
\end{equation}

where the initial position is fixed and the final position is free.

\begin{enumerate}
\item[(a)] Derive the terminal condition relating \(\mathbf p_f\) to
\(\nabla\Phi\).
\item[(b)] For
\begin{equation}
\Phi(\mathbf r_f)
=
\frac{\kappa}{2}\|\mathbf r_f-\mathbf r_d\|^2,
\end{equation}
write the terminal condition explicitly.
\item[(c)] Explain how the endpoint penalty changes the natural condition
\(\mathbf p_f=\mathbf 0\).
\end{enumerate}

\subsection*{Exercise 9: momentum-vector conservation as a symmetry test}

For a general planar Lagrangian

\begin{equation}
L=L(t,x,y,\dot x,\dot y),
\end{equation}

classify the momentum conservation implied by each case:

\begin{enumerate}
\item[(a)] \(L\) is independent of \(x\) but depends on \(y\).
\item[(b)] \(L\) is independent of \(y\) but depends on \(x\).
\item[(c)] \(L\) is independent of both \(x\) and \(y\).
\item[(d)] \(L\) depends on \(x\) and \(y\) only through a central potential
\(V(\sqrt{x^2+y^2})\). Is the linear momentum vector generally conserved?
\end{enumerate}

\section*{Part II: Complete worked solutions}

\subsection*{Solution 1: vector Dirichlet energy and the straight path}

The integrand is

\begin{equation}
F(\mathbf r,\mathbf r')
=
\frac12\mathbf r'\cdot\mathbf r'.
\end{equation}

Therefore

\begin{equation}
\frac{\partial F}{\partial \mathbf r}=\mathbf 0,
\qquad
\frac{\partial F}{\partial \mathbf r'}=\mathbf r'.
\end{equation}

The vector Euler--Lagrange equation gives

\begin{equation}
\frac{d}{ds}\mathbf r'=\mathbf 0,
\end{equation}

so

\begin{equation}
\mathbf r''=\mathbf 0.
\end{equation}

Integrating twice,

\begin{equation}
\mathbf r(s)=\mathbf C_0+s\mathbf C_1.
\end{equation}

The endpoint conditions imply

\begin{equation}
\mathbf C_0=\mathbf A,
\qquad
\mathbf C_1=\mathbf B-\mathbf A.
\end{equation}

Hence

\begin{equation}
\boxed{
\mathbf r_*(s)
=
(1-s)\mathbf A+s\mathbf B.}
\end{equation}

This is the straight segment joining the two endpoint vectors.

To prove global minimality directly, write any admissible competitor as

\begin{equation}
\mathbf r=\mathbf r_*+\mathbf u,
\end{equation}

where

\begin{equation}
\mathbf u(0)=\mathbf u(1)=\mathbf 0.
\end{equation}

Then

\begin{align}
J[\mathbf r]
&amp;=
\frac12\int_0^1
\|\mathbf r_*'+\mathbf u'\|^2ds\\
&amp;=
J[\mathbf r_*]
+
\int_0^1\mathbf r_*'\cdot\mathbf u'\,ds
+
\frac12\int_0^1\|\mathbf u'\|^2ds.
\end{align}

Because \(\mathbf r_*'=\mathbf B-\mathbf A\) is constant,

\begin{equation}
\int_0^1\mathbf r_*'\cdot\mathbf u'\,ds
=
(\mathbf B-\mathbf A)\cdot[\mathbf u(1)-\mathbf u(0)]
=0.
\end{equation}

Thus

\begin{equation}
J[\mathbf r]-J[\mathbf r_*]
=
\frac12\int_0^1\|\mathbf u'\|^2ds
\geq0.
\end{equation}

Equality requires \(\mathbf u'=\mathbf 0\), and the endpoint conditions then
force \(\mathbf u=\mathbf 0\). Therefore the straight path is the unique
global minimizer.

\subsection*{Solution 2: a free particle and conservation of the momentum vector}

For

\begin{equation}
L=\frac12m\dot{\mathbf r}\cdot\dot{\mathbf r},
\end{equation}

the generalized momentum is

\begin{equation}
\boxed{\mathbf p=m\dot{\mathbf r}.}
\end{equation}

The Lagrangian contains no \(\mathbf r\), so

\begin{equation}
\frac{\partial L}{\partial\mathbf r}=\mathbf 0.
\end{equation}

Euler--Lagrange therefore gives

\begin{equation}
\dot{\mathbf p}=\mathbf 0.
\end{equation}

Hence

\begin{equation}
\boxed{\mathbf p=\text{constant}.}
\end{equation}

For a constant mass, \(\dot{\mathbf r}\) is constant as well. Therefore

\begin{equation}
\mathbf r(t)
=
\mathbf r_0
+
\frac{t-t_0}{t_f-t_0}
(\mathbf r_f-\mathbf r_0).
\end{equation}

The stationary path in configuration space is a straight line traversed at
constant velocity.

\begin{center}
\includegraphics{CV07E2_conserved_momentum_vector.png}

\vspace{0.45em}

\textbf{Figure.}
For a free particle the Lagrangian is invariant under spatial translation, so
both planar coordinates are cyclic and the entire momentum vector is constant.
The trajectory between fixed endpoint events is therefore straight with
uniform velocity.
\end{center}

This is a simple but important example of a vector conservation law. The two
component equations

\begin{equation}
\dot p_x=0,
\qquad
\dot p_y=0
\end{equation}

are equivalent to the single vector statement \(\dot{\mathbf p}=\mathbf 0\).

\subsection*{Solution 3: uniform gravity with two fixed endpoint events}

The Lagrangian is

\begin{equation}
L
=
\frac12m(\dot x^2+\dot y^2)-mgy.
\end{equation}

For \(x\),

\begin{equation}
\frac{\partial L}{\partial x}=0,
\qquad
\frac{\partial L}{\partial\dot x}=m\dot x.
\end{equation}

Thus

\begin{equation}
m\ddot x=0.
\end{equation}

For \(y\),

\begin{equation}
\frac{\partial L}{\partial y}=-mg,
\qquad
\frac{\partial L}{\partial\dot y}=m\dot y,
\end{equation}

so

\begin{equation}
m\ddot y=-mg,
\end{equation}

or

\begin{equation}
\boxed{\ddot x=0,\qquad\ddot y=-g.}
\end{equation}

Since \(x\) is cyclic,

\begin{equation}
\boxed{p_x=m\dot x=\text{constant}.}
\end{equation}

But \(L\) depends explicitly on \(y\), so \(p_y=m\dot y\) is not conserved.
Indeed,

\begin{equation}
\dot p_y=-mg.
\end{equation}

The horizontal solution satisfying the endpoints is

\begin{equation}
x(t)
=
x_0+\frac{x_f-x_0}{T}t.
\end{equation}

The vertical solution has the form

\begin{equation}
y(t)=y_0+v_{y0}t-\frac12gt^2.
\end{equation}

Imposing \(y(T)=y_f\) gives

\begin{equation}
v_{y0}
=
\frac{y_f-y_0}{T}+\frac12gT.
\end{equation}

Therefore

\begin{equation}
\boxed{
y(t)
=
y_0
+
\left(
\frac{y_f-y_0}{T}+\frac12gT
\right)t
-
\frac12gt^2.}
\end{equation}

If \(x_f\neq x_0\), then

\begin{equation}
t
=
T\frac{x-x_0}{x_f-x_0}.
\end{equation}

Substitution into \(y(t)\) produces a quadratic polynomial in \(x\), so the
spatial trajectory is a parabola.

\begin{center}
\includegraphics{CV07E2_gravity_boundary_trajectory.png}

\vspace{0.45em}

\textbf{Figure.}
A stationary mechanical trajectory in a uniform gravitational field. Spatial
translation symmetry remains in the horizontal direction, giving constant
\(p_x\), while gravity changes the vertical momentum.
\end{center}

This exercise illustrates why conservation should be checked component by
component before it is promoted to a vector statement.

\subsection*{Solution 4: one cyclic spatial coordinate}

For

\begin{equation}
L=\frac12m(\dot x^2+\dot y^2)-V(y),
\end{equation}

the \(x\) equation is

\begin{equation}
\frac{d}{dt}(m\dot x)=0,
\end{equation}

so

\begin{equation}
\boxed{p_x=m\dot x=\text{constant}.}
\end{equation}

The \(y\) equation is

\begin{equation}
\frac{d}{dt}(m\dot y)-[-V'(y)]=0,
\end{equation}

hence

\begin{equation}
\boxed{m\ddot y=-V'(y).}
\end{equation}

Thus

\begin{equation}
\dot p_y=-V'(y),
\end{equation}

which is generally nonzero.

The full vector momentum

\begin{equation}
\mathbf p
=
m
\begin{pmatrix}
\dot x\\
\dot y
\end{pmatrix}
\end{equation}

is conserved only when the Lagrangian is independent of both \(x\) and \(y\).
For this example that requires

\begin{equation}
V'(y)=0,
\end{equation}

so the potential must be constant over the region of interest.

\subsection*{Solution 5: a translation-invariant anisotropic kinetic energy}

The Lagrangian is

\begin{equation}
L
=
\frac12\dot{\mathbf q}^{T}\mathbf M\dot{\mathbf q}.
\end{equation}

Because \(\mathbf M\) is symmetric,

\begin{equation}
\boxed{
\mathbf p
=
\frac{\partial L}{\partial\dot{\mathbf q}}
=
\mathbf M\dot{\mathbf q}.}
\end{equation}

There is no explicit dependence on \(\mathbf q\), so

\begin{equation}
\dot{\mathbf p}=\mathbf 0.
\end{equation}

Since \(\mathbf M\) is constant and nonsingular,

\begin{equation}
\mathbf M\ddot{\mathbf q}=\mathbf 0
\end{equation}

implies

\begin{equation}
\ddot{\mathbf q}=\mathbf 0.
\end{equation}

For an elapsed time \(T\), the stationary path is

\begin{equation}
\boxed{
\mathbf q(t)
=
\mathbf q_0
+
\frac{t}{T}(\mathbf q_f-\mathbf q_0),
\qquad 0\le t\le T.}
\end{equation}

Its constant velocity is

\begin{equation}
\dot{\mathbf q}
=
\frac{\mathbf q_f-\mathbf q_0}{T},
\end{equation}

so

\begin{equation}
\boxed{
\mathbf p
=
\frac{1}{T}
\mathbf M(\mathbf q_f-\mathbf q_0).}
\end{equation}

The path is still affine in configuration space. The matrix \(\mathbf M\)
changes the relationship between velocity and momentum, not the fact that both
are constant for this translation-invariant quadratic Lagrangian.

\subsection*{Solution 6: one fixed endpoint component and one free component}

At the initial time,

\begin{equation}
\boldsymbol\eta(t_0)=\mathbf 0.
\end{equation}

At the final time, \(x(t_f)=X\) is fixed, so

\begin{equation}
\eta_x(t_f)=0.
\end{equation}

The final \(y\) value is free, so \(\eta_y(t_f)\) is arbitrary. Thus

\begin{equation}
\boldsymbol\eta(t_f)
=
\begin{pmatrix}
0\\
\eta_y(t_f)
\end{pmatrix}.
\end{equation}

After the interior Euler--Lagrange equations are satisfied, the remaining
endpoint term is

\begin{equation}
\mathbf p_f\cdot\boldsymbol\eta_f
=
p_x(t_f)\,0+p_y(t_f)\eta_y(t_f).
\end{equation}

Because \(\eta_y(t_f)\) is arbitrary,

\begin{equation}
\boxed{p_y(t_f)=0.}
\end{equation}

For

\begin{equation}
L=\frac12m(\dot x^2+\dot y^2)-V(x,y),
\end{equation}

we have \(p_y=m\dot y\), hence

\begin{equation}
\boxed{\dot y(t_f)=0.}
\end{equation}

The final velocity has no component along the direction in which the endpoint
is free to move. This is the componentwise natural boundary condition derived
abstractly in CV05.

\subsection*{Solution 7: endpoint constrained to a target curve}

Let \(\mathbf r_f\) lie on a smooth target curve \(C\). The endpoint may move
along the curve but not away from it. Therefore an admissible first-order
endpoint displacement has the form

\begin{equation}
\boldsymbol\eta_f
=
\alpha\boldsymbol\tau,
\end{equation}

where \(\boldsymbol\tau\) is tangent to \(C\) and \(\alpha\) is arbitrary.

The endpoint contribution to the first variation is

\begin{equation}
\mathbf p_f\cdot\boldsymbol\eta_f
=
\alpha\,\mathbf p_f\cdot\boldsymbol\tau.
\end{equation}

Stationarity for every allowed \(\alpha\) requires

\begin{equation}
\boxed{
\mathbf p_f\cdot\boldsymbol\tau=0.}
\end{equation}

Thus the terminal momentum is normal to the target curve.

If the curve is defined by

\begin{equation}
G(x,y)=0,
\end{equation}

then \(\nabla G\) is normal to the curve. Consequently

\begin{equation}
\boxed{
\mathbf p_f=\lambda\nabla G(\mathbf r_f)}
\end{equation}

for some scalar \(\lambda\).

\begin{center}
\includegraphics{CV07E2_terminal_curve_transversality.png}

\vspace{0.45em}

\textbf{Figure.}
At a fixed final time, a terminal point constrained to a curve may vary only
along the curve tangent. The variational endpoint term therefore forces the
terminal generalized momentum to be normal to every allowed endpoint motion.
\end{center}

For a free particle, \(\mathbf p=m\dot{\mathbf r}\), so the terminal velocity
is normal to \(C\). In the Euclidean kinetic-energy problem this reproduces
the familiar orthogonality of a shortest path to a freely chosen point on a
target curve.

\subsection*{Solution 8: a terminal endpoint cost}

Consider

\begin{equation}
J[\mathbf r]
=
\int_{t_0}^{t_f}L\,dt
+
\Phi(\mathbf r_f).
\end{equation}

The variation of the terminal cost is

\begin{equation}
\delta\Phi
=
\nabla\Phi(\mathbf r_f)\cdot\boldsymbol\eta_f.
\end{equation}

After imposing the interior Euler--Lagrange equations and the fixed initial
endpoint, the terminal part of the first variation is

\begin{equation}
\left[
\mathbf p_f+\nabla\Phi(\mathbf r_f)
\right]
\cdot\boldsymbol\eta_f.
\end{equation}

Because the final position is completely free, all components of
\(\boldsymbol\eta_f\) are arbitrary. Hence

\begin{equation}
\boxed{
\mathbf p_f
+
\nabla\Phi(\mathbf r_f)
=
\mathbf 0.}
\end{equation}

For the quadratic terminal penalty

\begin{equation}
\Phi(\mathbf r_f)
=
\frac{\kappa}{2}
\|\mathbf r_f-\mathbf r_d\|^2,
\end{equation}

we have

\begin{equation}
\nabla\Phi
=
\kappa(\mathbf r_f-\mathbf r_d).
\end{equation}

Therefore

\begin{equation}
\boxed{
\mathbf p_f
=
-\kappa(\mathbf r_f-\mathbf r_d).}
\end{equation}

Without a terminal cost, a completely free endpoint would give
\(\mathbf p_f=\mathbf 0\). The endpoint penalty replaces that zero-momentum
condition by a balance between terminal momentum and the gradient of the
endpoint objective. This structure later reappears in optimal control.

\subsection*{Solution 9: momentum-vector conservation as a symmetry test}

The component Euler--Lagrange equations are

\begin{equation}
\dot p_x=\frac{\partial L}{\partial x},
\qquad
\dot p_y=\frac{\partial L}{\partial y}.
\end{equation}

Therefore:

\begin{enumerate}
\item[(a)] If \(L\) is independent of \(x\), then
\begin{equation}
p_x=\text{constant},
\end{equation}
but \(p_y\) need not be constant.

\item[(b)] If \(L\) is independent of \(y\), then
\begin{equation}
p_y=\text{constant},
\end{equation}
but \(p_x\) need not be constant.

\item[(c)] If \(L\) is independent of both \(x\) and \(y\), then
\begin{equation}
\boxed{\mathbf p=\text{constant}.}
\end{equation}
The full translation group acts as a symmetry of the Lagrangian.

\item[(d)] For a central potential
\begin{equation}
V=V(r),
\qquad
r=\sqrt{x^2+y^2},
\end{equation}
the Lagrangian depends on position, so the linear momentum vector is not
generally conserved. The force points radially and changes the momentum
vector. Rotational symmetry instead leads to angular-momentum conservation,
a result developed systematically through Noether's theorem in CV20
\cite{Goldstein,Arnold}.
\end{enumerate}

\section{A compact endpoint-condition map for vector trajectories}

For a stationary vector trajectory, the boundary contribution at a fixed final
time is

\begin{equation}
\mathbf p_f\cdot\boldsymbol\eta_f.
\end{equation}

The allowed endpoint motion determines the terminal condition:

\begin{center}
\begin{tabular}{p{0.30\textwidth}p{0.29\textwidth}p{0.31\textwidth}}
\hline
\textbf{Endpoint freedom} &amp; \textbf{Allowed variation} &amp; \textbf{Stationarity condition} \\
\hline
Fully fixed &amp; \(\boldsymbol\eta_f=\mathbf 0\) &amp; no additional natural condition \\
All components free &amp; arbitrary \(\boldsymbol\eta_f\) &amp; \(\mathbf p_f=\mathbf 0\) \\
Only \(y_f\) free &amp; \((0,\eta_y)^T\) &amp; \(p_y(t_f)=0\) \\
Constrained to curve \(C\) &amp; tangent to \(C\) &amp; \(\mathbf p_f\perp C\) \\
Free with terminal cost \(\Phi\) &amp; arbitrary \(\boldsymbol\eta_f\) &amp; \(\mathbf p_f+\nabla\Phi=\mathbf 0\) \\
\hline
\end{tabular}
\end{center}

The important lesson is that a vector endpoint condition is not usually imposed
all at once. Each free direction contributes one scalar transversality
condition.

\section{Common mistakes}

\begin{itemize}
\item \textbf{Mistake:} treating \(\mathbf p\) as conserved whenever one
coordinate is cyclic. A single cyclic coordinate conserves one momentum
component, not necessarily the entire vector.
\item \textbf{Mistake:} forgetting that fixed endpoint values make the
corresponding components of \(\boldsymbol\eta\) vanish.
\item \textbf{Mistake:} setting every terminal momentum component to zero when
the endpoint is constrained to a curve. Only momentum components along
allowed endpoint directions must vanish.
\item \textbf{Mistake:} assuming that a conserved generalized momentum is
always \(m\dot{\mathbf r}\). For a general Lagrangian it is
\(\partial L/\partial\dot{\mathbf r}\).
\item \textbf{Mistake:} confusing the stationary mechanical trajectory with a
shortest spatial path. Hamilton's action and Euclidean path length are
different functionals.
\item \textbf{Mistake:} using Euler--Lagrange stationarity alone as a proof of
global minimality. Exercise 1 admits a direct positivity proof, but general
mechanical actions need not be minima.
\end{itemize}

\section{Summary}

For a vector trajectory \(\mathbf r(t)\), the Euler--Lagrange equation may be
written

\begin{equation}
\boxed{
\frac{d}{dt}
\left(
\frac{\partial L}{\partial\dot{\mathbf r}}
\right)
-
\frac{\partial L}{\partial\mathbf r}
=
\mathbf 0.}
\end{equation}

The generalized momentum vector is

\begin{equation}
\mathbf p
=
\frac{\partial L}{\partial\dot{\mathbf r}}.
\end{equation}

If every spatial coordinate is cyclic, then

\begin{equation}
\boxed{\dot{\mathbf p}=\mathbf 0.}
\end{equation}

If only selected coordinates are cyclic, only the corresponding momentum
components are conserved.

At a fixed terminal time, endpoint freedom is encoded in

\begin{equation}
\mathbf p_f\cdot\boldsymbol\eta_f=0.
\end{equation}

A completely free endpoint gives \(\mathbf p_f=0\); a point constrained to a
curve forces \(\mathbf p_f\) normal to that curve; and a terminal cost changes
the condition to

\begin{equation}
\mathbf p_f+\nabla\Phi=\mathbf 0.
\end{equation}

CV07E2 therefore ties together vector Euler--Lagrange equations, trajectory
geometry, conservation laws, and the endpoint conditions introduced in CV05.
The next main lesson, CV08, increases the differential order of the functional
and shows how repeated integration by parts creates higher-order
Euler--Lagrange equations and additional boundary terms.

\begin{thebibliography}{9}

\bibitem{GelfandFomin}
I.~M. Gelfand and S.~V. Fomin,
\emph{Calculus of Variations},
Dover Publications, 2000.

\bibitem{VanBrunt}
Bruce van Brunt,
\emph{The Calculus of Variations},
Springer, 2004.

\bibitem{Lanczos}
Cornelius Lanczos,
\emph{The Variational Principles of Mechanics},
4th ed., Dover Publications, 1986.

\bibitem{Goldstein}
Herbert Goldstein, Charles Poole, and John Safko,
\emph{Classical Mechanics},
3rd ed., Addison-Wesley, 2002.

\bibitem{Arnold}
V.~I. Arnold,
\emph{Mathematical Methods of Classical Mechanics},
2nd ed., Springer, 1989.

\end{thebibliography}</content>
</record>
