Help setting up a lagrangian problem NOT SOLVING IT

  • Thread starter troytroy
  • Start date
  • Tags
    Lagrangian
In summary: Your attempt at solving for the dx/dt is correct. However, you need to replace y with f(x). Doing so yields x=f^{-1}(y), and then you can calculate dx/dt using the chain rule. In summary, the homework statement provides an explanation for how a particle slides frictionlessly down a track. The particle is also in a uniform gravitational field. The equation for the particle's kinetic energy is L=T-U. The equation for the potential energy is U=mgy. The equation for the gravitational potential energy is U=mgy. If the particle's y-coordinate is increased, then its potential energy increases.
  • #1
troytroy
26
0

Homework Statement


A particle of mass m slides frictionlessly down a smooth track defined by the function y=f(x)=((-x^3)/a^2) where a is a constant with units of length. The particle is also in a uniform gravitational field. Set the lagrangian up in cartesian coordinates x and y

Homework Equations


L=T-U

T=kinetic energy
U=potential energy

The Attempt at a Solution



Since L=T-U, I know the solution will looking something close to (1/2)m(x'^2+y'^2)=mg(f(x)) but I am having difficulty determining what my x and y should be so I can apply them to the equation. I assume y=((-x^3)/a) so would I just need to solve for x and say x=(-y*a^2)^(1/3) and differentiate both x and y to find my x' and y'.
 
Physics news on Phys.org
  • #2
I think it should be something similar to,
(1/2)m{(dx/dt)2+(dy/dt)2)} -mgy,you can elliminate something here.
 
  • #3
You only have one degree of freedom in the problem. If you specify the x-coordinate position and velocity, the motion of the particle is fully determined. Therefore you should start with

[tex]L=\frac{1}{2}m(\frac{dx}{dt}^2+\frac{dy}{dt}^2)-mgy[/tex]

recognize that [itex]y=f(x)\Rightarrow ^{dy}/_{dt}=f'(x)^{dx}/_{dt}[/itex] and make the appropriate substitutions into your Lagrangian. If this is what you're doing (which it sounds like you are from your attempted solution), then there should be no problem. If you post your resulting Lagrangian, I can compare it to mine.
 
  • #4
McCoy13 for your lagrangian shouldn't the potential mgy be added because it is already negative (U=-mgy) and I am a little confused about how to obtain dx/dt and dy/dt. I think the first derivative of f(x) = dx/dt but what about dy/dt? is dy/dt=f(x)?
 
  • #5
I'm sorry I read what you typed wrong, what I wrote makes no sense. So if y=(-x^3)/(a^2)) then dy/dt=(x'*(-3x^2)/(a^2)) and rearranging the equation so that x= (-y(a^2))^(1/3) we can say dx/dt=(1/3)((-y(a^2))^(-2/3))*y' is this what you were getting at?
 
  • #6
so dx/dt=(f(x)/f(x)')
 
  • #7
As an object is raised (an increase in y-coordinate) its gravitational potential goes up, so U=mgy. To get dy/dt, we simply apply the chain rule.

[tex]y=f(x)[/tex]
[tex]\Rightarrow \frac{dy}{dt}=\frac{df}{dx}\frac{dx}{dt}[/tex]

The first derivative of f(x) is [itex]\frac{df}{dx}[/itex]. Is this clear? I will explain it another way.

We want to know [itex]\frac{dy}{dt}[/itex]. However, y=f(x). Therefore it is an identical question to find [itex]\frac{df}{dt}[/itex]. Note however that f(x) is not an explicit function of t. This is very important.

[tex]\frac{d}{dt}f(x)=\frac{d}{dt}f(x(t))=\frac{df}{dx}\frac{dx}{dt}[/tex]

I have simply applied the chain rule where x=x(t). Another way of writing this is [itex]f'(x)*dx/dt[/itex] where ' denotes differentiation with respect to x.
 
  • #8
If [itex]y=f(x)=\frac{-x^3}{a^2}[/itex] then [itex]\frac{dy}{dt}=\frac{df}{dx}\frac{dx}{dt}[/itex] where [itex]\frac{df}{dx}=\frac{-3x^2}{a^2}[/itex]. I do not think I can make this more clear without depriving you of a learning opportunity.
 
  • #9
troytroy said:
I'm sorry I read what you typed wrong, what I wrote makes no sense. So if y=(-x^3)/(a^2)) then dy/dt=(x'*(-3x^2)/(a^2)) and rearranging the equation so that x= (-y(a^2))^(1/3) we can say dx/dt=(1/3)((-y(a^2))^(-2/3))*y' is this what you were getting at?

I think this is correct provided that y' means dy/dt. However, you are given y as a function of x, which suggests you find dy/dt in terms of dx/dt. There is no reason to invert y(x) to get x(y) except to have a simpler expression for your potential, but making your potential U(x)=mgf(x) would not be so bad in this case.
 
  • #10
so for my dy/dt I got -((3x^2)/(a^2))*(dx/dt) and I understand your example but I don't know why I am have trouble see how to actually solve for (dx/dt)?
 
  • #11
Why do you want to solve for dx/dt?
 
  • #12
would dx/dt just be 1/f(x)'?
 
  • #13
To plug it into the lagrangian for the kinetic energy term
 
  • #14
Why don't you plug in the formula you've found for dy/dt into the Lagrangian? And you can replace y with f(x).

If you really have your heart set on using y and replacing dx/dt, then what you need to do is invert f(x), so that you have [itex]x=f^{-1}(y)[/itex], and then you can calculate dx/dt using the chain rule.
 
  • #15
I am confused about the (1/2)m(((dx/dt)^2)+(dy/dt)^2) I understand that we solved for dy/dt by differentiating the f(x) but I don't see what we can plug in for the dx/dt term
 
  • #16
Wait are you saying we can just leave dx/dt in as it is? wow I can believe I did not realize it because now the lagrangian L will be in terms of only x and x'(x'=dx/dt) so L(x,x')=T-U
 
  • #17
You don't need to plug in something for the dx/dt term. You may choose to plug in something for dx/dt.

We are describing the motion of a particle on a track. Because it is on the track, if you know its x-coordinate then you know its y-coordinate. Similarly (because the track is not U-shaped) if you know its y-coordinate then you know its x-coordinate. Therefore, we can choose to describe the motion of the particle in terms of either it's x-coordinate or its y-coordinate. It is this choice that determines if you should replace dx/dt or dy/dt.
 
  • #18
Okay I get it now, thank you very much for taking the time to help me out I really do appreciate it. I will post my final result for my lagrangian to see if they match up!
 
  • #19
(18(x^3)((dx/dt)^2))+((3gb^2)((dx/dt)^2))-(b^4)((dx^2/dt^2))-(9x^4)(dx^2/dt^2)=0
 
  • #20
I don't really understand what equation you've written down here. Why is this expression equal to 0? What is b? Is dx^2/dt^2 the second derivative of x with respect to t or is it (dx/dt)^2?
 
  • #21
It's equal to zero because the lagrangian is set to zero. (∂l/∂x)-((d/dt)(∂l/∂x'))=0
 
  • #22
also the second derivative is with respect to t so I could just write x''
 
  • #23
I got L=T-U= ((1/2)m(x'^2+((-3x'x^2)/b^2)^2))+mg((x^3)/b^2) and then from there I calculated the lagrangian of the system by taking the derivatives according to (∂l/∂x)-((d/dt)(∂l/∂x'))=0
 
  • #24
and b is just a constant that comes from the given equation y=(-x^3)/b^2 initially I wrote a instead of b but it is just a constant
 

1. What is a Lagrangian problem?

A Lagrangian problem is a mathematical optimization problem that involves finding the minimum or maximum value of a certain function, subject to constraints. It is named after the mathematician Joseph-Louis Lagrange and is commonly used in physics and engineering.

2. How do I set up a Lagrangian problem?

To set up a Lagrangian problem, you first need to identify the objective function and the constraints. The objective function is the function you want to minimize or maximize, while the constraints are the limitations or conditions that must be satisfied. Once you have identified these, you can use the Lagrangian method to formulate the problem and solve it using calculus.

3. What is the Lagrangian multiplier?

The Lagrangian multiplier is a constant that is used in the Lagrangian method to incorporate the constraints into the objective function. It is represented by the Greek letter lambda (λ) and is used to account for the trade-off between the objective function and the constraints.

4. Can you give an example of a Lagrangian problem?

One example of a Lagrangian problem is the optimization of a rectangular box. The objective function is the volume of the box, while the constraints are the surface area and the material available. By using the Lagrangian method, we can find the dimensions of the box that will result in the maximum volume while satisfying the given constraints.

5. What are some applications of Lagrangian problems?

Lagrangian problems have various applications in mathematics, physics, and engineering. They are commonly used in optimization problems, mechanics, and control theory. They can also be applied in economics, finance, and other fields that involve decision-making and trade-offs between different parameters or variables.

Similar threads

Replies
6
Views
977
  • Advanced Physics Homework Help
Replies
7
Views
1K
  • Advanced Physics Homework Help
Replies
1
Views
346
  • Advanced Physics Homework Help
Replies
26
Views
2K
  • Advanced Physics Homework Help
Replies
6
Views
1K
  • Advanced Physics Homework Help
Replies
2
Views
1K
  • Advanced Physics Homework Help
Replies
11
Views
229
  • Advanced Physics Homework Help
Replies
6
Views
2K
  • Advanced Physics Homework Help
Replies
3
Views
1K
  • Advanced Physics Homework Help
Replies
0
Views
662
Back
Top