Another oscillation problem from a physics forum.
A box of mass M = 2 kg is held to two opposite walls by two springs each of spring constant k = 115 N m-1. For simplicity, you may assume that when the box is halfway between the two walls, both springs are relaxed.
a.) With what frequency does it oscillate?
b.) Suppose now we change the problem so that the left and right springs have spring constants k1 = 161 N m-1 and k2 = 92 N m-1, respectively. Now what is the frequency of oscillation?

If when
is midway between the walls, any displacement
will compress one spring by
and extend the other by the same amount
.
We again consider the Lagragian .
The equation of motion becomes . Again, the solution to this equation is of the form
where
is the amplitude of oscillation,
the angular frequency and
the initial phase.
Obviously, when solving the equation of motion, we obtain and we can easily compute the value of the frequency using
.
Therefore, . Solutions to a) and b) are obtained by plugging in the numbers.







