Exercise 3.1: Run the script
and stop the calculation after one orbit. Interpolate the the
velocity to determine its value at y = y0. Tune the step
dx until the error in vy at y =
y0 is less than 0.1%
Exercise 3.2: Repeat Exercise
3.1 using this dx, and plot vy versus
y for each of the following initial velocities:
vy0 = 0.25, 0.5, 1.0, 1.25, 1.5, 2.0.
Use one of these improved integrators (i.e. NOT Euler) to
explore how the period of the Duffing oscillator depends on the
amplitude of the motion. Use the same parameters as before,
choose y0 = 1.3, and compute the time taken to return
to the same value of y as a measure of the period.
Plot the period as a function of vy0 for vy0 =
0.1, ..., 10, in steps of 0.01.
Explore how the solution to the problem changes as first
damping and then driving are introduced.
(1) Set alpha = -1, beta = 1, y0
= 1.5, v0 = 0, and modify the script to show two plots:
the time sequence (y versus x) at the left and
the phase portrait (v versus y) at right.
(2) Then set delta = 0.3 and 0.6. As expected, the
dissipation causes the oscillation to decay on a time scale
inversely proportional to delta.
(3) Now, with delta = 0.3, set omega = 1.2
and gamma = 0.2. Note how the initial oscillation dies
away and the system ends up oscillating at the driving frequency
omega. From here on, we will discard the decay of the initial
conditions by only plotting results after some time. Modify the
program to start plotting at x = 200 and continue until
x = 500.
(4) Now successively try gamma = 0.28, 0.29, 0.35,
0.5, 0.65. You should see period doubling and a transition into
and out of chaotic motion. How does the behavior you see depend
on the choice of integration scheme?
Exercise 3.8: Apply the
drift-kick-drift and kick-drift-kick schemes to the same (undamped,
undriven) Duffing system studied in Exercise 3.2, except that now we
will switch notation to use t (not x) as the
independent variable (time) and pos and vel as
position and velocity. Use a time step of dt = 0.05 in
each case. Stop when the system has completed one orbit and plot
the phase portrait vel versus pos. Starting
integrators can be found here.