

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Due April 15
In this assignment, we will study the evolution of a double pendulum. The state of the config- uration at any time t is given by the angles θ 1 (t) and θ 2 (t), see figure below.
θ 1
θ 2
The MATLAB utility pendplot.m on the course webpage can be used to visualize the double pendulum in any configuration. Here is an example of how to use it, to animate the motion θ 1 (t) = 2 sin t, θ 2 (t) = sin(2t):
for t=0:0.01:10, pendplot(2sin(t),sin(2t)); end
This motion was of course just made up and does not correspond to a true, physical motion. Now we will solve for the actual evolution of the pendulum for various initial conditions!
θ′′ 1 =
−3 sin θ 1 − sin(θ 1 − 2 θ 2 ) − 2 sin(θ 1 − θ 2 ) · (θ′ 22 + θ′ 12 cos(θ 1 − θ 2 )) 3 − cos(2θ 1 − 2 θ 2 )
θ′′ 2 = 2 sin(θ 1 − θ 2 )(2θ′ 12 + 2 cos θ 1 + θ′ 22 cos(θ 1 − θ 2 )) 3 − cos(2θ 1 − 2 θ 2 )
Rewrite (1),(2) into a system of 1st order equations by introducing the angular velocities ω 1 = θ 1 ′ and ω 2 = θ′ 2. The current state of the pendulum can then be described by the vector y = (θ 1 , θ 2 , ω 1 , ω 2 ), and the 1st order system can be written as ˙y = f (y). Write a MATLAB function fpend.m of the form
function ydot = fpend(y)
which evaluates f (y). Your report should contain the 1st order system of equations and your MATLAB function fpend.m.
Turn page −→
Case θ 1 (0) θ 2 (0) ω 1 (0) ω 2 (0) 1 1 1 0 0 2 π 0 0 10 −^10 3 2 2 0 0 4 2 2 + 10−^3 0
For each case, plot the function θ 2 (t) versus time. Cases 3 and 4 demonstrate the initial value sensitivity of the system, namely, that a small perturbation can lead to drastically different solutions. Your report should contain the MATLAB commands required to produce the results, and the four plots of θ 2 (t).