Optimal Trajectory, bounded end point

Click For Summary

Homework Help Overview

The discussion revolves around finding the optimal trajectory x*(t) that minimizes a given integral involving a differential equation. The problem is set within the context of calculus of variations and differential equations, specifically focusing on boundary conditions.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss the application of Euler's equation to derive a differential equation. There are questions regarding the necessity of initial conditions for solving the differential equation, particularly in the context of Laplace transforms. Some participants explore the implications of ignoring initial conditions and the resulting constants in the solution.

Discussion Status

Some participants have found satisfactory approaches by introducing symbolic variables for initial conditions and solving for boundary values later. Others are exploring alternative methods and questioning the legality of certain mathematical steps taken in their attempts. There is an ongoing exchange of ideas about different methods to approach the problem.

Contextual Notes

Participants note the challenge posed by the lack of specified initial conditions for the derivative x'(0), which complicates the application of standard solution methods. The discussion also highlights the need to reconcile the derived solutions with the provided boundary conditions x(0) = 1 and x(1) = 4.

Number2Pencil
Messages
204
Reaction score
1

Homework Statement



Find the optimal trajectory x*(t) that minimizes:

<br /> J = \int_{0}^{1} \left( \frac{\dot{x}(t)^2}{2} + 3x(t) \dot{x}(t) + 2x^2(t) + 4x(t) \right) dt<br />

with x(0) = 1 and x(1) = 4

Homework Equations



Euler's equation:

<br /> \frac{\partial g}{\partial x} - \frac{d}{dt} \left[ \frac{\partial g}{\partial \dot{x}} \right] = 0<br />
where g is the portion inside the integral.

The Attempt at a Solution



Implementing Euler's equation on g:

<br /> -\ddot{x}(t) + 4x(t) + 4 = 0<br />

In which the question becomes, how do I solve this differential equation? In other classes, I would take the laplace transform, solve for X(s), and then do an inverse laplace transform. The problem is that I need to know the initial condition of x'(0) to do this, which I wasn't provided.

I looked at my notes from class, and in a similar example problem, my professor wound up with the following diff-eq:

<br /> \ddddot{x}(t) = 16x(t)<br />

He said he took the laplace transform and wound up with:

<br /> s^4 - 16 = 0<br />

But where did the X(s) go, and why didn't he use the initial conditions? His next step was to solve for s:

<br /> s = \pm 2, \pm j2<br />

Then he did some kind of generic form of the answer:

<br /> x^*(t) = A_1 e^{2t} + A_2 e^{-2t} + A_3 e^{j2t} + A_4 e^{-j2t}<br />

at this point, he created 4 simultaneous equations using the original problem's provided points to solve for A1,A2,A3, and A4. So when I try to do the same steps on my problem:

<br /> -\ddot{x}(t) + 4x(t) + 4 = 0<br />

I take the laplace, ignoring initial conditions:

<br /> -s^2X(s) + 4X(s) + \frac{4}{s} = 0<br />

But right here, can I really just "drop" the X(s) term and solve for s? Is that mathematically legal?
If I just solve for X(s) as I normally would and then do an inverse laplace, the answer does not satisfy the bounded points. ...and trying to do the laplace transform without the initial x'(0) point is confusing as well.

How do I solve this?
 
Physics news on Phys.org
Number2Pencil said:

Homework Statement



Find the optimal trajectory x*(t) that minimizes:

<br /> J = \int_{0}^{1} \left( \frac{\dot{x}(t)^2}{2} + 3x(t) \dot{x}(t) + 2x^2(t) + 4x(t) \right) dt<br />

with x(0) = 1 and x(1) = 4

Homework Equations



Euler's equation:

<br /> \frac{\partial g}{\partial x} - \frac{d}{dt} \left[ \frac{\partial g}{\partial \dot{x}} \right] = 0<br />
where g is the portion inside the integral.

The Attempt at a Solution



Implementing Euler's equation on g:

<br /> -\ddot{x}(t) + 4x(t) + 4 = 0<br />

In which the question becomes, how do I solve this differential equation? In other classes, I would take the laplace transform, solve for X(s), and then do an inverse laplace transform. The problem is that I need to know the initial condition of x'(0) to do this, which I wasn't provided.

I looked at my notes from class, and in a similar example problem, my professor wound up with the following diff-eq:

<br /> \ddddot{x}(t) = 16x(t)<br />

He said he took the laplace transform and wound up with:

<br /> s^4 - 16 = 0<br />

But where did the X(s) go, and why didn't he use the initial conditions? His next step was to solve for s:

<br /> s = \pm 2, \pm j2<br />

Then he did some kind of generic form of the answer:

<br /> x^*(t) = A_1 e^{2t} + A_2 e^{-2t} + A_3 e^{j2t} + A_4 e^{-j2t}<br />

at this point, he created 4 simultaneous equations using the original problem's provided points to solve for A1,A2,A3, and A4. So when I try to do the same steps on my problem:

<br /> -\ddot{x}(t) + 4x(t) + 4 = 0<br />

I take the laplace, ignoring initial conditions:

<br /> -s^2X(s) + 4X(s) + \frac{4}{s} = 0<br />

But right here, can I really just "drop" the X(s) term and solve for s? Is that mathematically legal?
If I just solve for X(s) as I normally would and then do an inverse laplace, the answer does not satisfy the bounded points. ...and trying to do the laplace transform without the initial x'(0) point is confusing as well.

How do I solve this?

Solve it symbolically, with an unknown parameter ##a = x'(0)##. Then figure out what value of ##a## will give you ##x(1) = 4##. Alternatively, solve the DE without specified boundary conditions; the solution will contain two unknown constants. Determine the two constants from the conditions ##x(0)=1, x(1)= 4##.
 
Last edited:
Thanks Ray, I did get an satisfactory answer using the symbolic variable for x'(0), and then solving at the end for x(1) = 4.

You mentioned another way to just ignore initial conditions and I will end up with 2 constants that I need to solve for. This is what I originally tried, using the laplace/partial fraction method...but I did not end up with any constants (I basically got a solution where x(0) = 0 and x'(0) = 0). Care to describe this secondary method?
 
Number2Pencil said:
Thanks Ray, I did get an satisfactory answer using the symbolic variable for x'(0), and then solving at the end for x(1) = 4.

You mentioned another way to just ignore initial conditions and I will end up with 2 constants that I need to solve for. This is what I originally tried, using the laplace/partial fraction method...but I did not end up with any constants (I basically got a solution where x(0) = 0 and x'(0) = 0). Care to describe this secondary method?

First, let ##x+1 = z## and notice that the DE is ##\ddot{z} - 4z = 0##. If you use Laplace transforms, you might as well use whatever initial conditions you are given, but if you use another method you get the type of problem I mentioned above. The characteristic equation for the DE is ##r^2 - 4 = 0##, or ##r = \pm 2##, so the solutions will be multiples of ##e^{\pm 2 t}##. That is,
z(t) = c_1 e^{2t} + c_2 e^{-2t}
for some constants ##c_1,c_2##. Use the boundary conditions on ##z## to find ##c_1,c_2##.

Alternatively, you can use the fact that
{\cal L}[\ddot{z}(t)](s) = s {\cal L}[\dot{z}(t)](s) - \dot{z}(0)\\<br /> = - \dot{z}(0) + s [ s {\cal L}[z(t)](s) - z(0)] = s^2 \tilde{z}(s) - s z(0) - \dot{z(0)},
where
\tilde{z}(s) = {\cal L}[z(t)](s)
is the Laplace transform of ##z##. This involves two constants ##z(0), \: \dot{z(0)}##.
 
Thanks Ray! Just so I'm clear, was the substitution of x+1=z because of that +4 offset that was impeding you from directly obtaining a characteristic polynomial equation? After finding a solution for z(t), I can just convert back to x knowing that x = z-1
 
Number2Pencil said:
Thanks Ray! Just so I'm clear, was the substitution of x+1=z because of that +4 offset that was impeding you from directly obtaining a characteristic polynomial equation? After finding a solution for z(t), I can just convert back to x knowing that x = z-1

Of course.
 

Similar threads

Replies
2
Views
2K
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
9
Views
2K
Replies
5
Views
2K
Replies
6
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
Replies
4
Views
2K