A Double Pendulum is simply two pendulums attached together. The system although very simple, exhibits highly chaotic movements and is one of the simplest demonstrations of a chaotic system.
A simple pendulum in comparison is a predictable system with its movements being very easy to ascertain and predict with high accuracy. But when another pendulum is attached to its end, the system turns chaotic. There is no real explanation as to why this occurs and it is representative of the chaotic nature of the universe.
Relatively simple actions invites chaos
The equations to find the cartesian co-ordinates of the two pendulums are as follows:
x1 = l1 sinθ1
y1 = - l1 cosθ1
x2 = l1 sinθ1 + l2 sinθ2
y2 = - l1 cosθ1 - l2 cosθ2
where,
(x1, y1) represents the co-ordinates of pendulum 1,
(x2, y2) represents the co-ordinates of pendulum 2
θ1'' and θ2'' represents the angular accelerations of both the pendulums. The equations of motion for the angles θ1 and θ2 are calculated using the equations given below by successively finding the acceleration, velocity and position. Once the angular positon is obtained, we can draw the pendulum with it's updated position.
θ1'' = |
−g (2 m1 + m2) sin θ1 − m2 g sin(θ1 − 2 θ2) − 2 sin(θ1 − θ2) m2 (θ2'2 l2 + θ1'2 l1 cos(θ1 − θ2)) |
l1 (2 m1 + m2 − m2 cos(2 θ1 − 2 θ2)) |
θ2'' = |
2 sin(θ1 − θ2) (θ1'2 l1 (m1 + m2) + g(m1 + m2) cos θ1 + θ2'2 l2 m2 cos(θ1 − θ2)) |
l2 (2 m1 + m2 − m2 cos(2 θ1 − 2 θ2)) |