Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Exercises

  1. Coupled vector Euler–Lagrange equations

    Consider

    J[x,y]=0T[12(x˙2+y˙2)+αxy˙ω22(x2+y2)]dt,J[x,y] = \int_0^T \left[ \frac{1}{2} \left( \dot{x}^2+\dot{y}^2 \right) + \alpha x\dot{y} - \frac{\omega^2}{2} \left( x^2+y^2 \right) \right] \,\mathrm{d}t,

    subject to

    x(0)=x0,y(0)=y0,x(T)=xf,y(T)=yf.x(0)=x_0, \qquad y(0)=y_0, \qquad x(T)=x_f, \qquad y(T)=y_f.

    (a) Derive the Euler–Lagrange equation for x(t)x(t).

    (b) Derive the Euler–Lagrange equation for y(t)y(t).

    (c) Write the resulting equations in the matrix form

    q¨+Aq˙+Bq=0,q=[xy].\ddot{\boldsymbol{q}} + A\dot{\boldsymbol{q}} + B\boldsymbol{q} = \boldsymbol{0}, \qquad \boldsymbol{q} = \begin{bmatrix} x\\y \end{bmatrix}.

    (d) For α=0\alpha=0, solve the complete boundary-value problem.

  2. Weighted minimum-slope trajectory

    Determine the extremal of

    J[x]=120Teβtx˙2(t)dtJ[x] = \frac{1}{2} \int_0^T e^{\beta t}\dot{x}^2(t)\,\mathrm{d}t

    subject to

    x(0)=x0,x(T)=xf.x(0)=x_0, \qquad x(T)=x_f.

    (a) Derive the Euler–Lagrange equation.

    (b) Solve explicitly for x(t)x^*(t).

    (c) Evaluate J[x]J[x^*].

    (d) Show that the solution approaches the straight-line path as

    β0.\beta\rightarrow 0.
  3. Free terminal state

    Consider

    J[x]=0T(x˙2+ω2x2)dt,J[x] = \int_0^T \left( \dot{x}^2+\omega^2x^2 \right) \,\mathrm{d}t,

    subject to

    x(0)=x0,x(0)=x_0,

    where TT is fixed and x(T)x(T) is free.

    (a) Derive the Euler–Lagrange equation.

    (b) Derive the natural boundary condition at t=Tt=T.

    (c) Solve the resulting boundary-value problem.

    (d) Determine x(T)x(T) explicitly in terms of x0x_0, TT, and ω\omega.

  4. Free final time

    Consider

    J[x,tf]=0tf[1+12(x˙at)2]dt,J[x,t_f] = \int_0^{t_f} \left[ 1+ \frac{1}{2} \left( \dot{x}-at \right)^2 \right] \,\mathrm{d}t,

    subject to

    x(0)=0,x(tf)=xf,x(0)=0, \qquad x(t_f)=x_f,

    where tft_f is free.

    (a) Derive the Euler–Lagrange equation.

    (b) Determine the general extremal x(t)x(t).

    (c) Derive the free-final-time condition.

    (d) Reduce the unknown final time to a scalar algebraic equation.

    (e) State how all positive admissible roots should be checked.

  5. Mass–spring boundary-value problem and singular terminal times

    For

    L=12mx˙212kx2,L = \frac{1}{2}m\dot{x}^2 - \frac{1}{2}kx^2,

    consider the endpoint conditions

    x(0)=x0,x(T)=xf.x(0)=x_0, \qquad x(T)=x_f.

    (a) Derive the Euler–Lagrange equation.

    (b) Solve the differential equation for m>0m>0 and k>0k>0.

    (c) Determine the constants in the general solution.

    (d) Show that a unique solution exists when

    sin(kmT)0.\sin\left(\sqrt{\frac{k}{m}}\,T\right)\neq 0.

    (e) Analyze separately the case

    sin(kmT)=0\sin\left(\sqrt{\frac{k}{m}}\,T\right)=0

    and determine when the boundary-value problem has no solution or infinitely many solutions.

  6. First variation and the natural boundary condition

    Let

    J[x]=t0tfL(x,x˙,t)dt,J[x] = \int_{t_0}^{t_f} L(x,\dot{x},t)\,\mathrm{d}t,

    where t0t_0, tft_f, and x(t0)x(t_0) are fixed, but x(tf)x(t_f) is free.

    Starting from

    xϵ(t)=x(t)+ϵη(t),x_\epsilon(t) = x(t)+\epsilon\eta(t),

    derive the complete first variation. Use integration by parts to show that stationarity requires

    Lxddt(Lx˙)=0\frac{\partial L}{\partial x} - \frac{\mathrm{d}}{\mathrm{d}t} \left( \frac{\partial L}{\partial\dot{x}} \right) = 0

    and

    Lx˙tf=0.\left. \frac{\partial L}{\partial\dot{x}} \right|_{t_f} = 0.
  7. Endpoint constrained to a curve

    Let the initial endpoint be fixed and let the terminal endpoint satisfy

    ψ(xf,tf)=xf2+c2tf2R2=0.\psi(x_f,t_f) = x_f^2+c^2t_f^2-R^2 = 0.

    (a) Starting from

    δxf=δx(tf)+x˙(tf)δtf,\delta x_f = \delta x(t_f) + \dot{x}(t_f)\delta t_f,

    derive the linearized endpoint constraint

    ψxδxf+ψtδtf=0.\psi_x\,\delta x_f + \psi_t\,\delta t_f = 0.

    (b) Compute ψx\psi_x and ψt\psi_t.

    (c) Express δx(tf)\delta x(t_f) in terms of δtf\delta t_f, assuming ψx0\psi_x\neq 0.

    (d) Substitute this relation into the terminal contribution

    Lx˙tfδx(tf)+L(tf)δtf\left. \frac{\partial L}{\partial\dot{x}} \right|_{t_f} \delta x(t_f) + L(t_f)\delta t_f

    and derive the corresponding scalar transversality relation.

  8. Planar locus-to-locus formulation

    Let

    x(t)=[x(t)y(t)].\boldsymbol{x}(t) = \begin{bmatrix} x(t)\\y(t) \end{bmatrix}.

    The initial state must lie on a circle of radius r0r_0 centered at (a0,b0)(a_0,b_0), and the final state must lie on a circle of radius rfr_f centered at (af,bf)(a_f,b_f).

    (a) Write the two scalar endpoint constraints.

    (b) Collect them in the vector form

    ϕ(x(t0),t0,x(tf),tf)=0.\boldsymbol{\phi} \bigl( \boldsymbol{x}(t_0), t_0, \boldsymbol{x}(t_f), t_f \bigr) = \boldsymbol{0}.

    (c) Derive the first-order variations of both endpoint constraints.

    (d) Identify the normal vector to each circle at the corresponding endpoint.

  9. General fixed point-to-point boundary mapping

    Express

    x(t0)=x0,x(tf)=xf\boldsymbol{x}(t_0)=\boldsymbol{x}_0, \qquad \boldsymbol{x}(t_f)=\boldsymbol{x}_f

    in the form

    ϕ(x(t0),t0,x(tf),tf)=0.\boldsymbol{\phi} \bigl( \boldsymbol{x}(t_0), t_0, \boldsymbol{x}(t_f), t_f \bigr) = \boldsymbol{0}.

    Then:

    (a) determine the dimension of ϕ\boldsymbol{\phi} when xRn\boldsymbol{x}\in\mathbb{R}^n;

    (b) compute the Jacobians of ϕ\boldsymbol{\phi} with respect to x(t0)\boldsymbol{x}(t_0) and x(tf)\boldsymbol{x}(t_f);

    (c) write the first-order variation δϕ\delta\boldsymbol{\phi};

    (d) show that fixed endpoint states imply δx0=0\delta\boldsymbol{x}_0=\boldsymbol{0} and δxf=0\delta\boldsymbol{x}_f=\boldsymbol{0}.

  10. Moving upper limit and free-final-time condition

    Consider

    J[x,tf]=t0tfL(x,x˙,t)dt,J[x,t_f] = \int_{t_0}^{t_f} L(x,\dot{x},t)\,\mathrm{d}t,

    with fixed t0t_0, fixed x(t0)x(t_0), fixed terminal value x(tf)=xfx(t_f)=x_f, and free tft_f.

    (a) Use the Leibniz rule to show that variation of the upper limit contributes

    L(tf)δtf.L(t_f)\delta t_f.

    (b) Derive the complete first variation.

    (c) Use

    δx(tf)=x˙(tf)δtf\delta x(t_f) = -\dot{x}(t_f)\delta t_f

    to eliminate the terminal trajectory variation.

    (d) Derive

    [Lx˙Lx˙]tf=0.\left[ L - \dot{x} \frac{\partial L}{\partial\dot{x}} \right]_{t_f} = 0.

    (e) Show that this condition is equivalent to

    H(tf)=0,H=x˙Lx˙L.H(t_f)=0, \qquad H = \dot{x} \frac{\partial L}{\partial\dot{x}} - L.