# Energie cinetique/potentiel
T := 0.5*m*(diff(r(t),t)^2+r(t)^2*diff(theta(t),t)^2)+(1/6)*m*l^2*diff(theta(t),t)^2;
Ve := 0.5*k*(r(t)-r[o])^2;
Vg := -m*g*r(t)*cos(theta(t)) - 0.5*m[o]*g*l*cos(theta(t));
L := T - (Ve + Vg);
E := EulerLagrange(L,t,[theta(t),r(t)]);
I'm currently trying to learn some advanced mechanics with the Lagrangian method. I'm ok with the physics part. I can solve small problems by hand but when I try it on maple, it won't work.
The equations I'm using have no mistakes, I'm following a book step by step.
What I'm stuck with is to get a formula of theta and r that are only function of time (t) to then be able to plot it. And I need dsolve to work to get that.