Hello
@astroman707,
'Just curious, is this problem from coursework that requires calculus or differential equations?
Anyway, there's another way to approach this problem if you don't wish to use relative accelerations.
The first order of business is to define your displacements and then relate them to the stretch of the spring. For example, if you choose to define that x_1 is positive when m_1 moves to the
left and x_2 is positive when m_2 moves to the
right, then x = x_1 + x_2. On the other hand, if you want to define positive in the same x-direction for both, then there will be a negative sign in your equation somewhere (e.g., x = x_2 - x_1). Anyway, the choice is yours, but you'll need to define your terms before we move on.
With that, you should have enough to form two differential equations, one for each mass, by using Newton's second law. But don't worry, you'll only need to use one of them.
The trick then is to use the hint that
@Andrew Mason made in the previous post. You're interim goal is to find a relationship of the ratio \frac{x_1}{x_2} in terms of m_1 and m_2. Andrew's hint about Newton's third law will get you there.
After that, do a little substitution and you'll have all you need to solve either of the second order, ordinary differential equations and you'll have your \omega.