Partner: David Scherzinger
For this project, we used the Trapezoidal Method to solve ordinary differential equations to observe certain properties of a pendulum. We defined the pendulum in the code given from the book pend.m answered the computer problems 4-8 in chapter 6.3.
With the initial position, y1=0, with the initial angular velocity, y2=0:
With the initial position, y1=π/4, with the initial angular velocity, y2=0:
With the initial position, y1=π/4, with the initial angular velocity, y2=-3:
With the initial position, y1=π/2, with the initial angular velocity, y2=0:
Starting the pendulum at the lower vertical position with zero velocity, at the rightward horizontal position with zero velocity, and at 45 degrees to the right of the downward horizontal position with a velocity of -3 radians/second produced the first trajectory. Starting the pendulum at 45 defrees to the right of the downward horizontal position with zero velocity produced the second trajectory.
We then increased the step size from h=.005 to h=.1. The results changed noticeably for the rightward starting position, which settled into the second trajectory fairly quickly instead of the first trajectory. The pendulum starting at 45 degrees with zero velocity also changed its trajectory by settling into the first. The other two starting conditions did not change their trajectories, but took longer to settle into them.
The changes can easily be explained by error accumulation. With a larger step size, each calculated step accrues more error, which is multiplied in each successive step.
The video of the pendulum where A=12 with the initial conditions [.05 0]:
The video of the pendulum where A=12 with the initial conditions [-.05 0]:
With the initial position of .05 radians, the pendulum eventually settles into a trajectory that begins at 45 degrees to the right of the downward horizontal, travels clockwise exactly 2 1/2 turns, then travels counter-clockwise exactly 3 1/2 turns. The initial position of -.05 settles into a trajectory that starts 45 degrees to the left of the downward horizontal and turns in the opposite directions.
Smaller values of A will keep the pendulum mostly upright, while larger values will induce a wide, but stable resonance without having the pendulum ever travel under the horizontal.
Some values above 14.3 result in non-resonant situations, or possibly take inordinate amounts of time to become unstable.