Solving an ODE-45 from Euler-Lagrange Diff. Eqn.

In summary, the conversation discussed the need to find the equation of motion for a double pendulum using the Euler-Lagrange differential equations. The equations were simplified and initial conditions were assumed. The procedure for solving the problem was also discussed, including defining generalized coordinates and finding the kinetic and potential energy. It was mentioned that the problem can be solved numerically in MATLAB, but an analytical solution may not be possible due to the chaotic nature of the problem. The small angle approximation was also mentioned as a simplification but may not be applicable in this case.
  • #1
Axecutioner
32
0
I need to find the equation of motion of a double pendulum, as shown here:

dimg270.gif


I've gotten as far as the two euler-lagrange differential equations, simplified to this:

K1[itex]\ddot{θ}[/itex]1 + K2[itex]\ddot{θ}[/itex]2cos(θ1 - θ2) + K3[itex]\dot{θ}[/itex]22sin(θ1 - θ2) + K4sin(θ1) = 0
K5[itex]\ddot{θ}[/itex]2 + K6[itex]\ddot{θ}[/itex]1cos(θ1 - θ2) + K7[itex]\dot{θ}[/itex]12sin(θ1 - θ2) + K8sin(θ2) = 0

Assuming initial conditions [itex]\ddot{θ}[/itex]1o, [itex]\dot{θ}[/itex]1o, θ1o, [itex]\ddot{θ}[/itex]2o, [itex]\dot{θ}[/itex]2o, θ2o

What would these equations of motion be?
θ1(t) =
θ2(t) =

I was told it could be done in MATLAB but I don't have the software or know how to use it yet so any help would be appreciated. Step-by-step solution would be even better. Thanks in advance.
 
Physics news on Phys.org
  • #2
Have you considered the rotational energy aswell? You have to have a moment of inertia dependent term.
The procedure for solving this type of problems is as follows:
1. Define your generalized coordinates for each of the masses: e.g. (x1,y1) = (l1sin(theta(t),l1cos(theta(t)) ...
2. Find the velocity and simplify it. Remember the chain rule for differentiation.
3. Find the Potential energy V and kinetic T([itex] T = 1/2m_1v_1^2+1/2m_2v_2^2+1/2I_1 \omega_1^2+1/2I_2\omega_2^2)[/itex] where omega = dtheta/dt
and the lagrangian is L = T-V
4. Write down your dynamical equations, 2 masses gives 2 equations. and there you go.
[itex] \dfrac{\partial L}{\partial \theta_1} - \dfrac{d}{dt}\dfrac{\partial L}{\partial \dot{\theta_1}}=0[/itex]
Summary: Be strict defining coordinate system. Remember the chain rule and product rule for differentiation. Concentrate it is hard algebra.
The equations of motion comes from solving this differential equation system. Sometimes it is assumed that sin(theta) = theta for theta<<1 and that simplifys a lot.
But in general this problem is chaotic in nature, and you would probably solve nummericaly in matlab.
 
Last edited:
  • #3
Here's what I've done so far, before I posted the OP:

http://i.imgur.com/c1Sdb.jpg

Some of the K values are the same but just keep each one different, since this entire double pendulum case is a simplification of part of a project I'm working on.

And Rotational Kinetic energy and Kinetic energy are the same for a point mass ( 1/2mv^2 = 1/2mL^2w^2 = 1/2Iw^2) so adding both would be wrong.

And I do not want to use the small angle approximation because the actual pendulum in my project is being torqued with an angle dependent force, and the angles involved cover a wide range.
 
  • #4
Iv'e tried solving the system in maple nummerically without luck. I don't think i am able to get an analytical solution, sorry. And I've never seen a analytical solution.
 
  • #5


I understand your frustration in trying to solve these equations of motion for the double pendulum. However, I can assure you that this is a common challenge in the field of mathematical physics and there are various methods to solve it.

Firstly, I would recommend using MATLAB or any other software that is capable of solving differential equations numerically. This will save you a lot of time and effort in solving the equations manually.

To use MATLAB, you will need to input the equations in the form of a function with the dependent variables and their derivatives. You can then use the built-in ODE solver, such as ODE45, to obtain the solutions for θ1(t) and θ2(t).

If you prefer to solve the equations manually, you can use the method of small oscillations to simplify the equations and solve them using standard techniques. However, this method may not give an accurate solution for large oscillations.

Another approach is to use the Lagrangian formalism to derive the equations of motion and then solve them using numerical methods or analytical techniques. This method is more rigorous and can handle large oscillations, but it requires a good understanding of Lagrangian mechanics.

In conclusion, there are various ways to solve the equations of motion for a double pendulum, and the best approach will depend on your level of expertise and the accuracy required for your solution. I would recommend starting with MATLAB or seeking help from a colleague or a mentor who is familiar with these types of problems. I hope this helps and wish you success in your endeavor.
 

FAQ: Solving an ODE-45 from Euler-Lagrange Diff. Eqn.

What is an ODE-45?

An ODE-45 is a numerical method used to solve ordinary differential equations (ODEs). It is based on the fourth-order Runge-Kutta method and is commonly used in scientific and engineering applications.

What is an Euler-Lagrange Differential Equation?

An Euler-Lagrange differential equation is a second-order ODE that arises in the calculus of variations. It is used to find the function that minimizes a certain integral. In physics, it is used to describe the motion of a system under the influence of potential and kinetic energy.

What is the process for solving an ODE-45 from an Euler-Lagrange Differential Equation?

The first step is to rewrite the Euler-Lagrange equation as a system of first-order differential equations. Then, the ODE-45 method can be used to numerically integrate the equations and obtain a solution. This involves choosing appropriate initial conditions and a time interval over which to solve the equations.

What are some applications of solving ODE-45 from an Euler-Lagrange Differential Equation?

ODE-45 is commonly used in physics and engineering to model and simulate various systems, such as the motion of a pendulum or a spring-mass system. It can also be applied in economics and biology to analyze dynamic systems.

Are there any limitations to using ODE-45 for solving an Euler-Lagrange Differential Equation?

ODE-45 is a numerical method and therefore, it can introduce errors in the solution. It is also limited to solving equations with smooth solutions and may not be suitable for systems with discontinuities or singularities. Additionally, it may not be efficient for solving very stiff equations.

Back
Top