# Calculus of Variation - Classical Mechanics

by Astrum
Tags: calculus, classical, mechanics, variation
 P: 273 I'm reading Classical Mechanics (Taylor), and the 6th chapter is a basic introduction to calculus of variations. I'm super confused I've tried to go to other sources for an explanation, but they just make it even worse! So, let me see if I can get some help here. $$\int^{x_{2}}_{x_{1}} f(y(x), y'(x), x)dx$$ - the integration of a function of three variables. y(x) is an as yet unknown curve. I understand that although f(y, y', x) is a function of three variables, it is only dependent on one variable, x. (where do these come from, exactly?) Taylor then defines Y(x) = y(x) + η(x) is the WRONG path, where y(x) is the correct one. η is the variation of Y(x) from y(x). - why do we need to introduce the INCORRECT path? Next, he introduces α into Y(x) = y(x) + αη(x). If we set α = 0, we will have Y(x) = y(x) - why do we need α? Our integral now becomes: $$\int^{x_{2}}_{x_{1}} f(y(x) + αη(x), y'(x) + αη'(x), x)dx$$ - we're assuming that α is equal to 0? I'm not sure I 100% understand this step. We need to check that $\frac{dS}{d\alpha} = 0$- is this to check that α is a constant? or used as a way of making sure α = 0? Take partial derivative: $$\frac{\partial f ((y(x) + αη(x), y'(x) + αη '(x), x)}{\partial \alpha}= \eta \frac{\partial f}{\partial \alpha}+ \eta ' \frac{\partial f}{\partial y'}$$ - because of the chain rule $$\frac{dS}{dα}=\int^{x_{2}}_{x_{1}}\frac{\partial f}{\partial α}dx = 0$$ - Next he works some voodoo magic by using integration by parts on the integral. I haven't worked this step out myself, but I assume it's straight forward. So, in the end, we get: $$\frac{\partial f}{\partial y}-\frac{d}{dx}\frac{\partial f}{\partial y'}= 0$$ So, I'm pretty lost. I think it would help if I understood the idea of what we're really doing here. This is essential arc length along the shortest curve, but all the additional variables and what not are confusing the hell out of me. Sorry for the long post, but any help is much appreciated. I'm so desperate, I'm offering a reward of one (1) virtual cookie to the first helpful post. NB - I put this in the Classical Physics section, because I'm more concerned with how this is used in mechanics right now. Although I'm interested, in what course is Calculus of Variation taught in at a rigorous level?
 P: 2,491 This writeup on the Brachistochrone problem may help: http://www.hep.caltech.edu/~fcp/math...alCalculus.pdf
 C. Spirit Sci Advisor Thanks P: 4,940 What part of Taylor is this exactly? Is it related to a problem? Or is it the derivation of the Euler-Lagrange equations? If it is the latter then I must say it is one of the most convoluted ways of deriving the equations I've ever seen; the standard method of taking a first variation is a lot more intuitive and straightforward.
P: 273

## Calculus of Variation - Classical Mechanics

 Quote by jedishrfu This writeup on the Brachistochrone problem may help: http://www.hep.caltech.edu/~fcp/math...alCalculus.pdf
Thanks, checking it out now.

 Quote by WannabeNewton What part of Taylor is this exactly? Is it related to a problem? Or is it the derivation of the Euler-Lagrange equations? If it is the latter then I must say it is one of the most convoluted ways of deriving the equations I've ever seen; the standard method of taking a first variation is a lot more intuitive and straightforward.
This is the derivation of the Euler-Lagrange equations. I'm über confused about it.

Starts on page 218

 P: 273 I'm looking into the link first posted. I'm befuddled by line 3 on page 4. But other than that, It it explained it much better than in Taylor's book. Although I'm still confused by why the function is f(y,y', x). y = this is the curve, of which the constraints are on. y' is the rate of change of this curve, and x is what all of this is dependent on. $$\int^{x_{2}}_{x_{1}} f(y(x), y'(x), x)dx$$ this gives us the length of the shortest path? What exactly is f(y,y', x)?
P: 2,491
That looks like a really good link too.
P: 2,491
 Quote by Astrum Thanks, checking it out now. This is the derivation of the Euler-Lagrange equations. I'm über confused about it. Starts on page 218 Here's your virtual cookie, by the way
Oh nooo! WannaBeNewton's gonna get to the cookie first. Are there seconds?
C. Spirit
Thanks
P: 4,940
 Quote by jedishrfu That looks like a really good link too.
Apologies if you thought I meant to take a look at my link as opposed to yours. I meant to take a look at my link as opposed to the explanation in Taylor's text, which I found to be atrocious.
P: 2,491
 Quote by WannabeNewton Apologies if you thought I meant to take a look at my link as opposed to yours. I meant to take a look at my link as opposed to the explanation in Taylor's text, which I found to be atrocious.
No apology needed. Can we split the cookie? I liked your link too. It was more to the point.
C. Spirit
Thanks
P: 4,940
 Quote by Astrum What exactly is f(y,y', x)?
It is a ##C^{1}## real valued function of ##y(x)##, ##y'(x)## and ##x##. It can be various things depending on what problem you are working on. For example, it could be the arc-length ##f(y,y',x) = \sqrt{1 + y'^{2}}## of a curve ##y(x)## or, more pertinent to mechanics, the Lagrangian ##L(q(t),\dot{q}(t),t) = \frac{1}{2}m\dot{q}^{2} - U## of a particle of mass ##m## and trajectory ##q(t)## interacting with a potential ##U##.
C. Spirit
Thanks
P: 4,940
 Quote by jedishrfu No apology needed. Can we split the cookie? I liked your link too. It was more to the point.
I'd rather you take the whole thing because I'm eating chips ahoy as we speak xDD
P: 2,491
 Quote by WannabeNewton I'd rather you take the whole thing because I'm eating chips ahoy as we speak xDD
Okay, thanks. I just finished my peanut butter sandwich (midnight snack).
 P: 273 Many thanks for those links, they really cleared things up for me! As for cookies, have some chemistry cookies: I need to go and work some problems out, if I have any other questions, I'll be sure to post.
 C. Spirit Sci Advisor Thanks P: 4,940 Chemistry cookies? I feel cheated :[
P: 273
 Quote by WannabeNewton Chemistry cookies? I feel cheated :[
http://www.math.umn.edu/~olver/am_/cvz.pdf this link is what I tried to use originally, was kinda confusing.

Alright alright. Have some Einstein chocolate

Never happy!

So, what kinda of class is this taught in, anyway? In a rigorous mathy style
 C. Spirit Sci Advisor Thanks P: 4,940 In a class called calculus of variations, believe it or not lol.

 Related Discussions Introductory Physics Homework 1 Academic Guidance 22 Introductory Physics Homework 6 General Physics 2 Calculus 3