# Two Masses with Forcing Functions Oscillating between Three Springs

Two Masses with Forcing Functions Oscillating between Three Springs

This Demonstration treats a system consisting of three springs connecting two masses between two walls with forcing functions on the masses, given by =5cos(t) and =5cos(t). The solution plots are shown and dynamically updated to reflect changes to the initial displacements and the forcing frequencies. The short-term behavior can be affected by the changes in initial displacement, but the long-term behavior is dominated by the forcing functions. The two equations being solved are:

F

1

ω

1

F

2

ω

2

2

d

x

1

d

2

t

1

m

1

k

1

k

2

x

1

k

2

m

1

x

2

ω

1

2

d

x

1

d

2

t

1

m

2

k

2

k

3

x

2

k

2

m

2

x

1

ω

2