Skip to content

Exemple: Simple Pendulum (Cartesian parameterization)

Carlos Adir edited this page Oct 29, 2021 · 1 revision

Let's suppose that we have a pendulum of mass m, which describes a circular route of radius a that starts at an angle theta0 with speed 0.

This same problem is already described in the link Exemple: Simple Pendulum (Angular parameterization). But instead of using the angle theta as parameter, we are going to use the variables x and y which describes the cartesian position of the mass.

Initial conditions

We start at the position (x0, y0) and without any velocity, so, we have that

System's energy

The kinetic energy is given by the speed how the mass is moving in space. So it's only:

The potential energy is given only by the position of y and so we have

So, the total energy is

In a matricial form we have that

The lagrangian

As we don't have external force:

In a matrix notation, we have

Constraint function

As before we had only one degree of freedom for theta, the real problem has only one degree of freedom. Once we have two variables, and one degree of freedom, we need one contraint function g.

So, as the point (x, y) is in a circle, we add the constraint function g that keeps the point in the circle:

But instead of having g=0 we will use the equation

Which means

We write it in a matrix notation to get

So, our real system equation is