here only for xp1(t). Later I want to solve it for all variables. Everytime I try to solve it it gives me 0 or true as a result, even when I trace the calculation I don´t get a satisfying result. I actually only want the final equation, which indeed should be very long.
Mathematica syntax uses square brackets [] to indicate the argument of functions, not to show the order of operations. Moreover, you cannot leave the derivatives xe1’ without the [t]. Please check if this is what you meant:
Thanks for the fast help, but the answer of mathematica is still not satisfying. Now it´s “true” instead of an equation, even if I put “trace” in front of the equation. Are my expectations wrong? Before I was only using Matlab and Maple for computer calculations…
I would still be glad about any helpful comment.
Here is an explanation: the Lagrangian L is defined in terms of plain symbols xp1 and xp1prime, so that you can take the derivative with respect to xp1 and xp1prime. After taking that derivative, you replace xp1 with xp1[t] and xp1prime with xp1’[t].
Is xp1[t] really the only generalized coordinate in the Lagrangian? Or are the other functions of t also coordinates of the motion? Can you write the complete Lagrangian in terms of all the coordinates and there derivatives, using Mathematica notation?
So I better do this for all variables xp2, xe1, xe2 and then it´s fine and I can add up the equations. This should work, I will do so. On the other hand I tried to calculate the equation for two more variables and it´s messed up again. Why can´t one justelongate the equation and fine? I don´t get it. Here is what I have done:
Ok, coming back to the original problem (post above is not relevant, only interesting for me in terms of learning mathematica). I did change the equation to the other variables according to what G.Gorni showed me.Here for example on xe2:
Obviously it does not work. It seems to me there is a probelm in the solution of the chain rule. However the output it generates seems to have no information value, while the error messages and the helpfunction do not lead me to a solution. If your cup of tea is already hot and you are bored of television, I would be pleased for any suggestions.