Classical Mechanics with Maple
Section 5.1: The Analytic Method Using the Lagrangian Equations
Dr. Harald Kammerer
maple@jademountain.de
Initialisation
> restart;
> libname:="C:/mylib/m6dynlib","C:/mylib/m6dynfig",libname:
> with(linalg):with(plots):with(plottools):with(dynamics);with(figures_chapter_5);
Warning, the protected names norm and trace have been redefined and unprotected
Warning, the name changecoords has been redefined
Warning, the name arrow has been redefined
5.1: The Analytic Method
Up to now we have considered mass particles, systems of mass particles and rigid bodies. Now we consider systems of rigid bodies. Now we consider different methods to get the equation of motion for rigid bodies and systems of them. Here we compare two usual methods to get these equations.
5.1.1 Review of the Synthetic Method
The synthetic method is well known in mechanics. To get the equation which describes a mechanical model, one cuts all connection between the single parts of the system and all supports and considers the equilibrium of the free bodies. We have done this for the case of single rigid bodies in section 4.2.4. We don't need the details at this point. Repeat example: cuboid and cylinder on a slope for details. Later in this section we consider some additional examples.
5.1.2 Introduction to the Analytic Method
For clarity we derive the following relations only for systems of mass particles. Then we needn't consider rotations. The results for the case of rigid bodies are analogous. As in
section 4.1.1 the considered mass particles are held together by boundaries. Their postition vectors are the vectors
,
i
=1, 2, ..
n
. The situation is shown in Fig. 1.
> display(Fig_5_1()[1],scaling=constrained,axes=none,title="Figure 1");
The resultant force acting on the particle
i
should be denoted as
(notice that this is a vector). For the mass particle the we know from
Newton's second law
where
is the acceleration of the particle:
. Now we define an virtual displacement
for every mass particle. The conditions for this virtual displacements are that they are small and with the boundaries of the system compatible, but apart from that without restrictions. The multiplication of the equation with
and addition of all equations yiels the principle of
d'Alembert
In a prior section we had defined active and passive forces. We know that passive forces which are caused by a boundary are always orthogonal to the boundary. And because the virtual displacements have to be compatible to the boundaries of the system they don't do work. So we needn't regard them here.
To describe the position of a mass particle in the three dimensional space we need three coordinates. In general we need
3n
conditions to describe the position of all
n
particles. The boundaries between the individual particles cause the number of degrees of freedom
f
of the total system to be less than
3n
. Consequently we need
boundary conditions to describe the system. The
Lagrangian coordinates
, i=1..f
are the coordinates which belong to the
f
degrees of freedom. Between them and the position vectors
there are transformation conditions
(
,..,
) which we assume to be known. In general, these conditions can be dependent on velocity and time. But in these course we don't consider this case.
In Fig. 2 there are two connected cuboids. We define the x,y -coordinate system, which we use to define the position vectors for both bodies. Additionally we define the coordinate s starting from the origin of the x,y -coordinate system, as shown in Fig. 2.
> display(Fig_5_2(),scaling=constrained,axes=none,title="Figure 2");
The total system has two bodies and 1 degree of freedom. The coordinate
s
is the Lagrangian coordinate. So we need
boundary conditions. Because we have a planar system we can assume that
and
. The
x
-coordinate from the position of the cuboid
1
is
. Its
y
-coordinate is
. The position of the cuboid
2
has the
x
-coordinate
and the
y
-coordinate
. In the initial position which is shown in Fig. 2 there is
. So we get the equations of transformation
>
for the cuboid 1 and
>
for the cuboid 2 .
Now we use the formula of Taylor to write for the virtual displacement
With this we get for the equation above
Some rearranging yields
The virtual displacements can be choosen freely. So we can set every
to zero except one of them, for example
. Remember that
,
and
are vectors. Write the resulting equation with use of coordinates we get
where we use the notation
,
and
.
We need some additional relations. But we don't prove these relations here.
1:
with
.
2:
with
.
3:
With use of 2 and 3 we get for 1:
The congruent results we get for y and z . Using these results yields
The term
is the total kinetic energy of the system of mass particles. But consider that the position vectors
must be expressed as functions of the Lagrnge coordinates
.
The same precedure can be used for the virtual displacements
. Altogether we get
f
relations
;
We call them the Lagrangian equations . The right side of the equations
(notice that
and
in the last relations are vectors) are called
generalized forces
.
We have mentioned that
is the resultant of all acting forces on particle
i
without consideration of the passive forces. So we have
with the definition from section 3.2 for conservative and non-conservative forces. For the conservative forces we have with the total potential V
Use these relation in the equation above we get
So we get the Lagrangian equations in the following form:
,
where
.The
are the generalized forces, which follows from
when only the non-conservative forces
are considered.
At last we point out that the Lagrangian equations are also valid for rigid bodies and systems of them when in the kinetic energy the part of the rotations is taken into account. It is not necessary to derive this fact in detail. We will see this in the following continuation of the example above.
Example 1 (continuation)
For clarity we don't use the prepared functions. The total kinetic energy of the system is given by
> T:=m[1]*(v[x[1]]**2+v[y[1]]**2+v[z[1]]**2)/2+m[2]*(v[x[2]]**2+v[y[2]]**2+v[z[2]]**2)/2;
From the transformation equations above we know
> evalm(r[1]);
> evalm(r[2]);
For the velocities we get from these the relations
> rel1:=v[x[1]]=v,v[y[1]]=0,v[z[1]]=0;
> rel2:=v[x[2]]=v*cos(alpha),v[y[2]]=-v*sin(alpha),v[z[2]]=0;
with
.
and for the kinetic energy we get
> Ts:=subs({rel1,rel2},T);
> Ts:=simplify(Ts,trig);
In this example we assume that there is no friction. Then there are only conservative forces. We have only the potential of gravity. The total potential is given by
> V:=m[1]*g*y[1]+m[2]*g*y[2];
And by use of the transformation equation it follows
> Vs:=subs({y[1]=r[1][2],y[2]=r[2][2]},V);
Here we see that it is usually possible to formulate the relations for the kinetic energy and the potential direct by use of the Lagrangian coordinates.
Because we have only one degree of freedom, the Lagrangian equation is here
The necessary derivatives are
> L1:=diff(Ts,v);
> L2:=diff(Ts,s);
> L3:=diff(Vs,s);
At last we need the derivative of
L1
with respect to time. With
we get
> L1a:=a*(m[1]+m[2]);
Altogether this yields
> EOMa:=L1a-L2+L3=0;
or with some rewriting
> EOM:=subs({a=diff(s(t),t$2),s=s(t)},EOMa);
>
In the next section we consider two more examples to illustrate the difference between the synthetic and the analytic method.