Liearization of Lagrange EOMs of an Inverted Pendulum

In summary: I think the code looks messy because it's not well organized. Try to group your variables and functions together, and then put the equations for each group at the top of the file.(2) Pictures are helpful, but aren't necessary.(3) The code is doable, but it's going to take some time to learn it.(4) The equations are there, but they need to be written in a more legible format.(5) The forum is great, but I suggest posting your question there first and then if you don't get a response, post here.
  • #1
road_king
18
0
Linearization of Lagrange EOMs of an Inverted Pendulum

Hi Folks,

I am modelling a state space model of an Inverted Pendulum mounted on a cart over a balancing seesaw.

I developed the equations of motion using the Lagrangian approach an obtained 3 PDEs. I solved them using Mathematica 8 for the second order derivatives of the generalized coordinates, and using one of the new Mathematica functions obtained a linearized representation of the system. The model seems to me to be pretty convincing, but not for my Thesis director, who ask me to obtain a linearized model by myself

I try to use Mathematica to calculate the second order Taylor series expansion of the equations of movement but it only takes as variables the first two coordinates instead of the four that appeared in the equation.

Iif anyone may give me any idea it will be very appreciated.

First I defined the first equation of movement as a function of the 3 generalized coordinates [x[t], θ[t],α[t]] and vm[t], which is the voltage applied to the servo-motor. This 3 coordinates represent the position of the cart along the rack over the seesaw, the rotation of the seesaw around his fulcrum, and the rotation of the pendulum around the cart.


I believe I am using the correct syntax for that as I read in the program help...

Series[ expr, var1, var2, ... ]

Any suggestions of how to do the work?

Thank in advance!

Edit: I attach a pdf file with the mathematica code, the text is in Spanish but I think it is easyly readable. I will ask in the Mathematica subforum later, the expecific question with Series function. Excuse my bad English, please.The expressions I am asking for are on page 5.

I am sorry I have not any drawing of the system, but it it like this image

seesawpendulum.jpg


but without the c1 cart (my system only has one cart with the pendulum, and the names of the parameters and variables are different also)
 
Last edited:
Physics news on Phys.org
  • #2
road_king said:
Any suggestions of how to do the work?

Thank in advance!

I have some suggestions:

(1) You mean linearization right?

(2) Picture. That would be nice but not necessary

(3) That code is way too messy to do anything with. Right off the bat, don't use capital letters to start user-variable names. Try too to make the code pretty, use spaces, comments, better-meaning names for the variables.

(4) Would be nice to just write down the equations nicely but that requires learning latex and I'm not so mean to expect you to do that just starting. Still though, if maybe you took a little bit of time to learn how to write it in latex and then show us then we would have some idea what you're doing.

(5) We have a very good Mathematica forum down below in the Computer and Technology/Math and Science Software sub-forum.

This is my best advice then: if you want to improve your chances of getting help here, spend some time learning latex. See "Math and Science Learning Material" forum above, then the "Latex" thread in there to help you. Then just post the equations, neatly, and then ask how might they be linearized, and if you have specific questions about Matheamtica, post them in the science software sub-forum.
 
  • #3


Ok! thanks, I going to edit my post.
 
  • #4
jackmell said:
I have some suggestions:

(1) You mean linearization right?

(2) Picture. That would be nice but not necessary

(3) That code is way too messy to do anything with. Right off the bat, don't use capital letters to start user-variable names. Try too to make the code pretty, use spaces, comments, better-meaning names for the variables.

(4) Would be nice to just write down the equations nicely but that requires learning latex and I'm not so mean to expect you to do that just starting. Still though, if maybe you took a little bit of time to learn how to write it in latex and then show us then we would have some idea what you're doing.

(5) We have a very good Mathematica forum down below in the Computer and Technology/Math and Science Software sub-forum.

This is my best advice then: if you want to improve your chances of getting help here, spend some time learning latex. See "Math and Science Learning Material" forum above, then the "Latex" thread in there to help you. Then just post the equations, neatly, and then ask how might they be linearized, and if you have specific questions about Matheamtica, post them in the science software sub-forum.

I tried to improve the notebook file, I hope it will be more friendly!
 

Attachments

  • EOM1.pdf
    98.6 KB · Views: 342
  • #5
Ok road-king, that's nice. Really. However I should have mentioned that I might not be the one to help you with this. That's still confussing to me. I can't even pick out clearly what the PDEs are in that code, not without more work anyway. I guess what I was suggesting, if no one else helps you, was to simply write down the PDEs in latex, the same way they might appear in a textbook but with no extra trappings, no hard to read notation, just in their canonical forms like for example reaction-diffusion:

[tex]\frac{\partial a}{\partial t}=s(k(16-ab)+d_a \nabla^2 a)[/tex]
[tex]\frac{\partial b}{\partial t}=s(k(ab-b-12-\beta)+d_b \nabla^2 b)[/tex]

Also, your problem looks very interesting. However, I'm not what I would consider very good with PDEs so may not be able to help you with it.
 

1. What is the "Liearization" of Lagrange EOMs of an Inverted Pendulum?

The linearization of Lagrange EOMs (Equations of Motion) of an Inverted Pendulum is a mathematical process that involves approximating the nonlinear equations of motion for an inverted pendulum system into a simpler, linear form. This is done in order to make the system easier to analyze and control.

2. Why is the linearization of Lagrange EOMs important for an Inverted Pendulum?

The linearization of Lagrange EOMs is important for an Inverted Pendulum because it allows us to apply linear control theory techniques to the system. This makes it easier to analyze the stability and controllability of the system, and to design control strategies that can stabilize the pendulum in an upright position.

3. How is the linearization of Lagrange EOMs of an Inverted Pendulum performed?

The linearization of Lagrange EOMs of an Inverted Pendulum is typically done by taking the first-order Taylor series expansion of the nonlinear equations of motion around a particular operating point or equilibrium point. This results in a set of linear differential equations that can be solved using standard techniques.

4. What are the benefits of using linearized equations of motion for an Inverted Pendulum?

Using linearized equations of motion for an Inverted Pendulum allows for simpler and more efficient analysis and control of the system. It also allows for the use of well-established control techniques such as LQR (Linear Quadratic Regulator) and LQG (Linear Quadratic Gaussian) control, which can lead to improved system performance.

5. Are there any limitations to using linearized equations of motion for an Inverted Pendulum?

Yes, there are limitations to using linearized equations of motion for an Inverted Pendulum. The linearization process assumes that the system is operating near an equilibrium point, and this may not always be the case. Additionally, the linearized equations may not accurately capture the dynamics of the system for large deviations from the equilibrium point. Therefore, it is important to carefully consider the validity of the linearized model and its limitations when using it for control design.

Similar threads

  • Mechanical Engineering
Replies
1
Views
1K
  • Differential Equations
Replies
2
Views
1K
  • Introductory Physics Homework Help
Replies
14
Views
484
  • Programming and Computer Science
Replies
1
Views
2K
  • Programming and Computer Science
Replies
23
Views
3K
  • Introductory Physics Homework Help
Replies
9
Views
704
  • Classical Physics
Replies
3
Views
2K
  • Advanced Physics Homework Help
Replies
1
Views
1K
  • Advanced Physics Homework Help
Replies
7
Views
2K
Replies
1
Views
1K
Back
Top