Dynamics of a Spring-Pendulum System

​
pendulum
mass of bob
1
initial angular position
1.
spring
spring start position
-1.
spring constant
150
animation
hide trace of pendulum bob
display
animation
phase curve
y
spring
θ
pendulum
A string of fixed length is free to move over two frictionless rollers fixed at the top. A spring is at one end of the string and a bob is at the other end, forming a pendulum of variable length.
This Demonstration lets you explore the dynamics of this system by changing its parameters or initial conditions.
The chart at the top shows the conservation of energy in the system, which is utilized in the Lagrangian method to solve for the equations of motion.

Details

The spring and pendulum system has two degrees of freedom:
θ(t)
, the angular displacement of the pendulum bob, and
y(t)
, the vertical displacement of the spring.
Lagrangian mechanics can be used to simulate this system.
The potential energy of the system at time
t
is:
V=
1
2
k
2
(y(t)-y(0))
-gmr(t)cosθ(t)
.
The kinetic energy of the system at time
t
is:
T=
1
2
m
2
ℓ(t)
2
′
θ
(t)
+
1
2
m
2
′
y
(t)
.
The Lagrangian
V-T
is given by
ℒ=
1
2
2gmcosθ(t)ℓ(t)+m
2
′
θ
(t)
2
ℓ(t)
-k
2
(y(0)-y(t))
+m
2
′
y
(t)

.
The algebraic constraint expresses the constant length
L
of the string:
d-y(t)+ℓ(t)=L
.
The resulting equations of motion are
m(L-d)
2
′
θ
(t)
+gmcosθ(t)+y(t)m
2
′
θ
(t)
-k+ky(0)-m
′′
y
(t)0
,
′′
θ
(t)ℓ(t)+gsinθ(t)+2
′
θ
(t)
′
y
(t)=0
.

External Links

Phase Curve (Wolfram MathWorld)

Permanent Citation

Erik Mahieu
​
​"Dynamics of a Spring-Pendulum System"​
​http://demonstrations.wolfram.com/DynamicsOfASpringPendulumSystem/​
​Wolfram Demonstrations Project​
​Published: October 7, 2014