Coupled Oscillator: Double Pendulum

From Class Wiki
Jump to navigation Jump to search

By Jimmy Apablaza

This problem is described in Page 321-322, Section 7.6 of the A first Course in Differential Equations textbook, 8ED (ISBN 0-534-41878-3).

Error creating thumbnail: File missing
Figure 1. Coupled Pendulum.‎

Problem Statement

Consider the double-pendulum system consisting of a pendulum attached to another pendulum shown in Figure 1.

Assumptions:

  • the system oscillates vertically under the influence of gravity.
  • the mass of both rod are negligible
  • no damping forces act on the system
  • positive direction to the right.

The system of differential equations describing the motion is nonlinear

(m1+m2)l12θ1′′+m2l1l2θ2′′cos(θ1−θ2)+m2l1l2(θ2′)2sin(θ1−θ2)+(m1+m2)l1gsinθ1=0
m2l12θ2′′+m2l1l2θ1′′cos(θ1−θ2)−m2l1l2(θ1′)2sin(θ1−θ2)+m2l2gsinθ2=0


In order to linearize these equations, we assume that the displacements θ1 and θ2 are small enough so that cos(θ1−θ2)≈1 and sin(θ1−θ2)≈0. Thus,

(m1+m2)l12θ1′′+m2l1l2θ2′′+(m1+m2)l1gθ1=0
m2l12θ2′′+m2l1l2θ1′′+m2l2gθ2=0

Solution

Since our concern is about the motion functions, we will assign the masses m1 and m2, the rod lenghts l1 and l1, and gravitational force g constants to different variables as follows,

A=(m1+m2)l12B=m2l1l2C=(m1+m2)l1gD=m2l12E=m2l2g

Hence,

Aθ1'′+Bθ2'′+Cθ1=0
Dθ2'′+Bθ1'′+Eθ2=0

Solving for θ1'′ and θ2'′ we obtain,

θ1'′=−(BA)θ2'′−(CA)θ1
θ2'′=−(BD)θ1'′−(ED)θ2

Therefore,

θ1'′=−(CDAD+B2)θ1−(BEAD+B2)θ2
θ2'′=(BCAD+B2)θ1−(AEAD+B2)θ2

State Space

[θ1'θ1'′θ2'θ2'′]=A^x_(t)+B^u_(t)=[0100−CDAD−B20BEAD−B200001BCAD−B20−AEAD−B20]{θ1θ1'θ2θ2'}+0^

Let's plug some numbers. It's known that g=32. In addition, we assume that m1=3, m2=1, and l1=l2=16, so the constants defined previously become,

A=1024B=256C=2048D=256E=512

Hence, the state space matrix is,

[θ1'θ1'′θ2'θ2'′]=[0100−8302300001830−830]{θ1θ1'θ2θ2'}

Eigenvalues & Eigenvectors

The eigenvalues and eigenvectors are easily obtained with the help of a TI-89 calculator. First, we consider the A^'s identity matrix,

[λI−A]=[λ100−83λ23000λ1830−83λ]

Once we define the A^ matrix, the eigenvalues are determined by using the eigVi() function,

λ1=2i
λ2=−2i
λ3=1.1547i
λ4=−1.1547i

On the other hand, we use the eigVc() function to find the eigenvectors,

k1=[−0.2i0.40.4i−0.8]k2=[0.2i0.4−0.4i−0.8]k3=[−0.29277i0.338060.58554i−0.67621]k4=[0.29277i0.338060.58554i0.67621]

Standard Equation

Now, we plug the eigenvalues and eigenvectors to produce the standar equation,

x_=c1k1_eλ1t+c2k_2eλ2t+c3k3_eλ3t+c4k4_eλ4t
x_=c1[−0.2i0.40.4i−0.8]e2i+c2[0.2i0.4−0.4i−0.8]e−2i+c3[−0.29277i0.338060.58554i−0.67621]e1.1547i+c4[0.29277i0.338060.58554i0.67621]e−1.1547i

Matrix Exponential

The matrix exponential is,

z¯˙=A^z¯=TAT−1z¯

where

A=[0100−8302300001830−830],

and

T−1=[k1|k2|k3|k4]=[−0.2i0.2i−0.29277i0.29277i0.40.40.338060.338060.4i−0.4i0.58554i0.58554i−0.8−0.8−0.676210.67621],

so

T=(T−1)−1=[k1|k2|k3|k4]−1=[1.25i0.625−0.625i−0.3125−1.25i0.6250.625i−0.31250.853913i0.739510.426956i0.369755−0.853913i0.73951−0.426956i0.369755]

Again, we can resort to the TI-89 calculator. As it is mentioned above, the matrix exponential is obtained by typing eigVc(a)^-1*a*eigVc(a), where a is the A^ matrix. Thus,

z¯˙=A^z¯=TAT−1z¯=[2i0000−2i00001.1547i0000−1.1547i]z¯

So, the exponential matrix becomes,

x_˙=A^x_=T−1eA^tTx_=eAtx_

where

eA^t=[e2it0000e−2it0000e1.1547it0000e−1.1547it]

Hence,

x_˙=[−0.2i0.2i−0.29277i0.29277i0.40.40.338060.338060.4i−0.4i0.58554i0.58554i−0.8−0.8−0.676210.67621][e2it0000e−2it0000e1.1547it0000e−1.1547it][1.25i0.625−0.625i−0.3125−1.25i0.6250.625i−0.31250.853913i0.739510.426956i0.369755−0.853913i0.73951−0.426956i0.369755]x_

so, the matrix exponential can be solved using matrix multiplication.