myphysicslab – chaotic pendulum
a damped driven pendulum is often used as a basic example of a chaotic system. for a chaotic system the future behavior is highly dependent on the exact value of the initial conditions. a tiny change in initial conditions can cause huge changes after a short period of time.
you can change parameters in the simulation such as drive amplitude, frequency, mass, gravity, and damping. you can drag the pendulum with your mouse to change the starting position. if you don't see the simulation try instructions for enabling java. scroll down to see the math!
the damped driven pendulum
the pendulum is subject to frictional damping, meaning that it will slow down over time if there is no driving force. to see this try setting the drive amplitude to zero, so the only forces are damping and gravity.
the driving force is shown as a curved arrow in the simulation. the length of the arrow corresponds to the amount of torque (twisting force) at a given moment. the direction of the arrow, clockwise or counter-clockwise, shows the direction of this applied force. you can change the amplitude (strength) of the driving force or its frequency (how often it switches directions).
not all combinations of the parameters (eg. length, gravity, drive amplitude, drive frequency, damping,...) will lead to chaos. many combinations result in simpler repeating behavior. click the "single loop" button above to see this. you'll need to wait about a minute for the simulation to settle into the loop.
there is a phenomenon known as period doubling
where slowly increasing one of the parameters (such as drive amplitude) causes the number of loops in the repeating behavior to double. some of the buttons (above) change the drive amplitude gradually so that you see this period doubling occur.
after enough period doublings occur, the system becomes chaotic. click one of the buttons labelled "chaos" to set the parameters and see this. a curious thing about this chaotic behavior is that it is not entirely random. while you can't predict the exact state of the system at a given time in the future, it is possible to show that the system will follow an elaborate pattern, these patterns are fractals
, which are patterns that repeat themselves when you magnify them.
the pendulum is modeled as a point mass at the end of a massless rod. the damping (friction) is proportional to the angular velocity of the pendulum. there is also an external driving force which provides a periodic torque (twist). define the following variables:
- θ = angle of pendulum (0 = vertical)
- ω = θ' = angular velocity
- r = length of rod
- m = mass of pendulum
- g = gravitational constant
- b = damping (friction) constant
- a = amplitude of driving force
- k = constant related to frequency of driving force
- t = time in seconds
we will derive the equation of motion for the pendulum using the rotational analog of newton's second law for motion about a fixed axis, which is
- ∑ τ = sum of applied torques
- i = rotational inertia
- α = θ'' = angular acceleration
the rotational inertia about the pivot is i = m r2
. torque can be calculated as the vector cross product of the position vector and the force.
- torque due to gravity is τ = −r m g sin θ.
- torque due to friction is τ = −b ω.
- torque due to driving force is τ = a cos(k t).
so equation (1) becomes
m r2 α = −r m g sin θ −
b ω +
a cos(k t)
which we can write as
θ'' = − g⁄r sin θ +
−b θ' + a cos(k t)
this is the equation of motion for the driven damped pendulum.
to solve the equation of motion numerically, so that we can run the simulation, we use the runge-kutta algorithm
for solving sets of ordinary differential equations. first we define a variable for the angular velocity ω = θ'
. we also add an equation for time because time appears explicitly in the equations in the driving force a cos(k t)
. then we can write the second order equation above as three first order equations.
t' = 1
θ' = ω
ω' = − g⁄r sin θ +
−b ω + a cos(k t)
this is the form needed for using the runge-kutta algorithm.