# Extremal Again

• Aug 26th 2010, 07:19 AM
funnyinga
Extremal Again
Hi,
I got some help with some worked examples here (thanks Ackbeet).

I'm now trying a question from my text to see if I understand it correctly. Do I have the right idea?

Find the extremal for the following:

$\displaystyle \int_1^2 \ \frac{2t \dot{x} + \dot{x}^2}{t^2} dt$ with $\displaystyle x(1) = 0, x(2) = 4$.

Let $\displaystyle f(t, x, \dot{x})= \frac{2t \dot{x} + \dot{x}^2}{t^2}$

Then Euler-Lagrange eqn is
$\displaystyle \frac{\partial f}{\partial x} - \frac{d}{dt} \big ( \frac{\partial f}{\partial \dot{x}} \big ) = 0$

So -

$\displaystyle 0 - \frac{d}{dt} \big ( \frac{2t + 2 \dot{x}}{t^2} \big )= 0$

Integrating $\displaystyle \int \frac{2t + 2 \dot{x}}{t^2} dt$ we get

$\displaystyle - \frac{2}{t} - \frac{\dot{x}}{t^2} = 0$

$\displaystyle \therefore \ \frac{\dot{x}}{t} = C - \frac{2}{t}$

$\displaystyle \dot{x} = Ct - 2$ where C is a constant.

Now - Integrate with respect to $\displaystyle t$ and we get

$\displaystyle x = \frac{1}{2} Ct^2 - 2t + l$

so $\displaystyle x = x(t) = kt^2 - 2t + l$ where $\displaystyle k = \frac{C}{2}$

Using $\displaystyle x(1) = 2$ and $\displaystyle x(2) = 4$ we have

$\displaystyle x(1) = k - 2 + l = 0$ and $\displaystyle x(2) = 4k - 4 + l = 4$

Solving these we get $\displaystyle l = 0, k = 2$

so the extremal is $\displaystyle x = 2t^2 - 4$. Is this right or did I stuff something?
• Aug 26th 2010, 07:32 AM
Ackbeet
You're fine up to and including this line:

$\displaystyle 0 - \frac{d}{dt} \big ( \frac{2t + 2 \dot{x}}{t^2} \big )= 0.$

To integrate, you can just eliminate the derivative symbol, because the LHS is a total derivative. That is,

$\displaystyle \frac{2t + 2 \dot{x}}{t^2}= C.$

At this point, I would solve for $\displaystyle \dot{x}$ and integrate again.
• Aug 27th 2010, 07:20 PM
funnyinga
This time I got .... (currently editing)
• Aug 28th 2010, 07:43 AM
Ackbeet
• Sep 10th 2010, 09:50 PM
funnyinga
I haven't looked at this for a while. Anyway, this time I got

$\displaystyle \frac{2t + 2 \dot{x}}{t^2} = C$

$\displaystyle \dot{x} = \frac{1}{2} \left( -2+Ct \right) t$ where $\displaystyle C$ is a constant.

Integrating again,

$\displaystyle x = \frac{1}{6} C{t}^{3}- \frac{1}{2} {t}^{2} + l$ where $\displaystyle l$ is a constant.

$\displaystyle = kt^2 - \frac{t^2}{2} + l$ where $\displaystyle l = \frac{C}{6}$

$\displaystyle x = t(kt - \frac{t}{2}) + l$

Using $\displaystyle x(1) = 0$ and $\displaystyle x(2) = 4$ we have

$\displaystyle x(1) = t(kt - \frac{t}{2}) + l = 0$ (call this eqn 1)

$\displaystyle x(2) = t(kt - \frac{t}{2}) + l = 4$ (call this eqn 2)

From 1, $\displaystyle x(2) = 4k - 2 + l = 4$

so $\displaystyle l = \frac{1}{2} - k$

Then from (2) $\displaystyle 4k - 2 + \frac{1}{2} - k = 4$

$\displaystyle k = \frac{11}{6}$

Sub back into (1)
$\displaystyle L = \frac{1}{2} - \frac{11}{6} = -\frac{4}{3}$

The extremal is
$\displaystyle x = \frac{11t^2}{6} - \frac{t^2}{2} - \frac{4}{3}$

$\displaystyle = \frac{4}{3} t^2 - \frac{4}{3}$
• Sep 11th 2010, 02:31 AM
Ackbeet
Again, everything looks good up until this point:

$\displaystyle = kt^2 - \frac{t^2}{2} + l$

You've lost the cubic power! I also think you mean $\displaystyle k=C/6$, not $\displaystyle l=C/6$. Try working those corrections back through and see what you get.

Here's a little hint for doing math in LaTeX: copy and paste. Whenever you're simplifying things, just copy the equation from the previous line, and make whatever changes you want. You'll make fewer mistakes that way than if you re-type out the whole equation. I do this all the time, and it's not only a mistake-saver, it's a real time-saver.
• Sep 11th 2010, 06:04 PM
funnyinga
Quote:

Originally Posted by Ackbeet
Again, everything looks good up until this point:

$\displaystyle = kt^2 - \frac{t^2}{2} + l$

You've lost the cubic power! I also think you mean $\displaystyle k=C/6$, not $\displaystyle l=C/6$. Try working those corrections back through and see what you get.

Here's a little hint for doing math in LaTeX: copy and paste. Whenever you're simplifying things, just copy the equation from the previous line, and make whatever changes you want. You'll make fewer mistakes that way than if you re-type out the whole equation. I do this all the time, and it's not only a mistake-saver, it's a real time-saver.

Thanks, I really need to check my work before I post things.

$\displaystyle = kt^3 - \frac{t^2}{2} + l$ where $\displaystyle k = \frac{C}{6}$

Using $\displaystyle x(1) = 0$ and $\displaystyle x(2) = 4$ we have

$\displaystyle x(1) = k - \frac{1}{2} + l = 0 \ \Rightarrow \ l = -k + \frac{1}{2}$

Sub into $\displaystyle x(2)$

$\displaystyle x(2) = kt^3 - \frac{t^2}{2} - k + \frac{1}{2} = 4$

$\displaystyle \therefore \ 8k - 2 - k + \frac{1}{2} = 4$

$\displaystyle k = \frac{11}{14}$

Sub back into $\displaystyle x(1)$

$\displaystyle \frac{11}{14} - \frac{1}{2} + l = 0 \ \Rightarrow \ l = \frac{-2}{7}$

and the extremal is (hopefully)

$\displaystyle x = \frac{11t^3}{14} - \frac{t^2}{2} - \frac{2}{7}$
• Sep 11th 2010, 06:06 PM
Ackbeet
Everything looks good to me!
• Sep 11th 2010, 06:16 PM
funnyinga
Quote:

Everything looks good to me.
Thanks very much for your help with this.

Quote:

Originally Posted by Ackbeet
You're fine up to and including this line:

$\displaystyle 0 - \frac{d}{dt} \big ( \frac{2t + 2 \dot{x}}{t^2} \big )= 0.$

To integrate, you can just eliminate the derivative symbol, because the LHS is a total derivative. That is,

$\displaystyle \frac{2t + 2 \dot{x}}{t^2}= C.$

At this point, I would solve for $\displaystyle \dot{x}$ and integrate again.

Just a question though, why isn't this

$\displaystyle 0 - \frac{2t + 2 \dot{x}}{t^2}= C$
• Sep 11th 2010, 06:29 PM
Ackbeet
Well, you can just absorb the minus sign into the constant. The important thing is to have a constant. In these sorts of situations, you can often re-define the constant as you go along, in appropriate ways.