Deriving ODEs for straight lines in polar coordinates for a given Lagrangian

In summary, the process of deriving ordinary differential equations (ODEs) for straight lines in polar coordinates involves applying the principles of Lagrangian mechanics. By expressing the Lagrangian in terms of polar coordinates and utilizing the Euler-Lagrange equations, one can formulate the motion of a particle moving in a straight line. This approach highlights the relationship between the geometry of polar coordinates and the dynamics dictated by the Lagrangian, ultimately leading to the derivation of ODEs that describe the trajectories of such lines in the polar coordinate system.
  • #1
Hamiltonian
296
193
Homework Statement
For ##Q=\mathbb{R}^2## and ##\mathcal{L}=\frac{1}{2}(\dot{x}^2+\dot{y}^2)## the EL equations are ODEs whose solutions are straight lines travelled at constant speed. Rewrite ##\mathcal{L}## in polar coordinates ##r,\theta## and write down the corresponding Euler-Lagrange equations, thus deriving the ODEs for straight lines in polar coordinates.
Relevant Equations
The Euler Lagrange Equations:
##\frac{d}{dt}\left( \frac{\partial\mathcal{L}}{\partial\dot{q}_i}\right)=\frac{\partial\mathcal{L}}{\partial q_i}##
In polar coordinates, ##x=rcos(\theta)## and ##y=rsin(\theta)## and their respective time derivatives are
$$\dot{x}=\dot{r}cos(\theta) - r\dot{\theta}sin(\theta)$$
$$\dot{y}= \dot{r}sin(\theta)+r\dot{\theta}cos(\theta)$$
so the lagrangian becomes after a little simplifying,
$$\mathcal{L}=\frac{1}{2}(\dot{r}^2+r^2\dot{\theta}^2)$$
The Euler-Lagrange equations are:
$$\frac{d}{dt}\left( \frac{\partial\mathcal{L}}{\partial \dot{r}}\right)=\frac{\partial\mathcal{L}}{\partial r}$$
$$\frac{d}{dt}\left( \frac{\partial\mathcal{L}}{\partial \dot{\theta}}\right)=\frac{\partial\mathcal{L}}{\partial \theta}$$
First the EL-equation in terms of ##r## we get,
##\frac{\partial\mathcal{L}}{\partial\dot{r}}=\dot{r}##
##\frac{\partial\mathcal{L}}{\partial r}=r\dot{\theta}^2##
putting it all together we get, $$\ddot{r}=r\dot{\theta}^2$$

The EL-equation in terms of ##\theta## we get,
##\frac{\partial\mathcal{L}}{\partial\dot{\theta}}=r^2\dot{\theta}##
##\frac{\partial\mathcal{L}}{\partial\theta}=0##
putting it all together we have,
##\frac{d(r^2\dot{\theta})}{dt}=0##
which can either simply be written as ##r^2\dot{\theta}=c## where ##c## is some constant or we can differentiate w.r.t ##t## and get ##2r\dot{r}\dot{\theta}+r^2\ddot{\theta}=0##

So I essentially have to equations, one from each EL-equation,
$$\ddot{r}=r\dot{\theta}^2$$ $$r^2\dot{\theta}=c$$
are these ODEs for straight lines in polar coordinates? I don't know what they mean by that or what ODEs for straight lines in polar coordinates should look like.
 
Physics news on Phys.org
  • #2
Hamiltonian said:
In polar coordinates, ##x=rcos(\theta)## and ##y=rsin(\theta)##
and from that it follows that ##x^2+y^2=r^2##. Does this relation look like a straight line?

You need a constraint.
 
Last edited:
  • #3
kuruman said:
Does this relation look like a straight line?
I am a little confused as to what you mean by ##x^2+y^2=r^2## looks like a straight line, in cartesian coordinates that's a circle with radius ##r##.
I looked at the link you provided and it talks about how the equation for a straight line in polar coordinates is,
$$r=\frac{1}{sin\theta-cos\theta}$$ as if you substitute ##x=rcos\theta## & ##y=rsin\theta## you get the equation of a straight line in cartesian coordinates. But I still don't understand how the two ODEs I got ##\ddot{r}=r\dot{\theta}^2## and ##r^2\dot{\theta}=c## represent straight lines in polar coordinates.
Does it mean that the solutions to the ODEs must be straight lines? or that ##r(\theta)=\frac{1}{sin\theta-cos\theta}## must solve the ODEs but ##r## and ##\theta## are functions of time and not each other.
 
  • #4
kuruman said:
and from that it follows that ##x^2+y^2=r^2##. Does this relation look like a straight line?

You need a constraint.
Huh? This is irrelevant. It is just a coordinate transformation and ##r## is a new coordinate. What the coordinate level surfaces look like is of little importance here.

The approach of the OP is correct.
 
  • #5
Hamiltonian said:
Homework Statement: For ##Q=\mathbb{R}^2## and ##\mathcal{L}=\frac{1}{2}(\dot{x}^2+\dot{y}^2)## the EL equations are ODEs whose solutions are straight lines travelled at constant speed. Rewrite ##\mathcal{L}## in polar coordinates ##r,\theta## and write down the corresponding Euler-Lagrange equations, thus deriving the ODEs for straight lines in polar coordinates.
Relevant Equations: The Euler Lagrange Equations:
##\frac{d}{dt}\left( \frac{\partial\mathcal{L}}{\partial\dot{q}_i}\right)=\frac{\partial\mathcal{L}}{\partial q_i}##

So I essentially have to equations, one from each EL-equation,
r¨=rθ˙2 r2θ˙=c
are these ODEs for straight lines in polar coordinates? I don't know what they mean by that or what ODEs for straight lines in polar coordinates should look like.
These are the differential equations that a straight line in Euclidean space must satisfy when written in polar coordinates. There is nothing magical to it.

You could also derive them by simply making the appropriate coordinate transformation of the Cartesian coordinate equations ##\ddot x = \ddot y = 0##.
 
  • #6
Orodruin said:
These are the differential equations that a straight line in Euclidean space must satisfy when written in polar coordinates. There is nothing magical to it.
Yeah, that's what the question says, "thus deriving the ODEs for straight lines in polar coordinates". I do not understand why every straight line must satisfy these ODEs when written in polar coordinates is it because the path that minimizes the action for this particular lagrangian must be straight lines, as there is no force acting on the particle and hence it must by Netwons first law move in a straight line?
or is it an obvious mathematical fact that a straight line satisfies these ODEs, if it is I don't see it.

My understanding of what it means for a straight line written in polar coordinates to satisfy an ODE might be wrong?
I thought what it means is that the functions ##r(t)## and ##\theta (t)## that satisfy both the ODEs represent a time-parameterized straight line.
 
  • #7
Hamiltonian said:
I do not understand why every straight line must satisfy these ODEs when written in polar coordinates is it because the path that minimizes the action for this particular lagrangian must be straight lines, as there is no force acting on the particle and hence it must by Netwons first law move in a straight line?
The action is the action that gives straight lines in Cartesian coordinates when extremised. Changing coordinates will not change this so if you change coordinates and then apply the EL equations, those same straight lines must satisfy the differential equations you get out because they are still the same straight lines.

Forces have little to do with things here as there is no actual physics involved. (Even though you can make a parallel to the Lagrangian of a freely moving particle.)

Hamiltonian said:
or is it an obvious mathematical fact that a straight line satisfies these ODEs, if it is I don't see it.
You just derived it! I don’t see how you can really see it any more than actually proving it to be the case. Perhaps I am not getting what you mean by ”see it”? What exactly are you looking for?

Hamiltonian said:
My understanding of what it means for a straight line written in polar coordinates to satisfy an ODE might be wrong?
I thought what it means is that the functions r(t) and θ(t) that satisfy both the ODEs represent a time-parameterized straight line.
That is exactly what it means.
 
  • Like
Likes Hamiltonian
  • #8
Orodruin said:
You just derived it! I don’t see how you can really see it any more than actually proving it to be the case. Perhaps I am not getting what you mean by ”see it”? What exactly are you looking for?
I was originally thinking that once we derive the two ODEs from the EL equation we must somehow prove that the solutions to these ODEs will be straight lines, by solving the ODEs.
But I think I understand now that is exactly what I have proved(without solving them ofcourse), the question states "EL equations are ODEs whose solutions are straight lines travelled at constant speed" and all I did was write the EL equations for polar coordinates instead of cartesian coordinates and hence the pair of ODEs I derived must still be for straight lines in polar coordinates.
Thank you!
 
  • #9
Hamiltonian said:
I am a little confused as to what you mean by ##x^2+y^2=r^2## looks like a straight line, in cartesian coordinates that's a circle with radius ##r##.
I looked at the link you provided and it talks about how the equation for a straight line in polar coordinates is,
$$r=\frac{1}{sin\theta-cos\theta}$$ as if you substitute ##x=rcos\theta## & ##y=rsin\theta## you get the equation of a straight line in cartesian coordinates. But I still don't understand how the two ODEs I got ##\ddot{r}=r\dot{\theta}^2## and ##r^2\dot{\theta}=c## represent straight lines in polar coordinates.
Does it mean that the solutions to the ODEs must be straight lines? or that ##r(\theta)=\frac{1}{sin\theta-cos\theta}## must solve the ODEs but ##r## and ##\theta## are functions of time and not each other.
Orodruin said:
Huh? This is irrelevant. It is just a coordinate transformation and ##r## is a new coordinate. What the coordinate level surfaces look like is of little importance here.

The approach of the OP is correct.
Sorry. I misread the question.
 

FAQ: Deriving ODEs for straight lines in polar coordinates for a given Lagrangian

What is the general approach to derive the equations of motion in polar coordinates from a given Lagrangian?

To derive the equations of motion in polar coordinates from a given Lagrangian, you start by expressing the Lagrangian in terms of polar coordinates (r, θ). Then, apply the Euler-Lagrange equations for each coordinate. The Euler-Lagrange equation for a coordinate q is given by d/dt (∂L/∂q̇) - ∂L/∂q = 0, where L is the Lagrangian and q̇ is the time derivative of q. This will yield a set of ordinary differential equations (ODEs) for r and θ.

How do you convert Cartesian coordinates to polar coordinates in the context of a Lagrangian?

To convert Cartesian coordinates (x, y) to polar coordinates (r, θ), use the transformations r = √(x² + y²) and θ = arctan(y/x). The velocities in Cartesian coordinates (ẋ, ẏ) are related to the velocities in polar coordinates (ṙ, θ̇) by the relations ẋ = ṙ cos(θ) - r θ̇ sin(θ) and ẏ = ṙ sin(θ) + r θ̇ cos(θ). Substitute these expressions into the Lagrangian to rewrite it in terms of r, θ, ṙ, and θ̇.

What are the typical forms of the Lagrangian in polar coordinates?

The typical form of the Lagrangian in polar coordinates is L = T - V, where T is the kinetic energy and V is the potential energy. For a particle of mass m, the kinetic energy in polar coordinates is T = 1/2 m (ṙ² + r² θ̇²), and the potential energy V depends on the specific problem. For example, for a central force problem, V might be a function of r only.

How do you apply the Euler-Lagrange equation to the Lagrangian in polar coordinates?

Apply the Euler-Lagrange equation separately for each coordinate r and θ. For r, the equation is d/dt (∂L/∂ṙ) - ∂L/∂r = 0, and for θ, it is d/dt (∂L/∂θ̇) - ∂L/∂θ = 0. Compute the partial derivatives of the Lagrangian with respect to r, ṙ, θ, and θ̇, and then substitute these into the Euler-Lagrange equations to obtain the ODEs for r and θ.

What are some

Back
Top