Finding Coefficients for Coupled Harmonic Oscillator

AI Thread Summary
The discussion focuses on determining coefficients for a coupled harmonic oscillator using initial conditions for position and velocity. The equations derived from the normal modes are set up, leading to a system of equations that includes both position and velocity terms. To solve for the coefficients, the user suggests transforming the equations to include sine and cosine components, resulting in a total of six equations. There is a mention of needing an algorithm for solving these equations, particularly for scaling to multiple masses, while emphasizing the preference for a Newtonian mechanics approach for clarity. The user ultimately finds success by expressing the solution in terms of complex numbers and separating it into real and imaginary parts.
mrandersdk
Messages
243
Reaction score
1
I've been looking at a coupled harmonic oscillator, and normal modes of this:

http://en.wikipedia.org/wiki/Normal_mode#Example_.E2.80.94_normal_modes_of_coupled_oscillators

At the bottom of this example it says:

This corresponds to the masses moving in the opposite directions, while the center of mass remains stationary. The general solution is a superposition of the normal modes where c1, c2, φ1, and φ2, are determined by the initial conditions of the problem.

What is the best way to determine these coefficients, given some initial conditions (start position and velocity)?

This is only for two masses, but the method should also work for n equal masses. It is fine if I need to program me out of it, but how should i do this?
 
Physics news on Phys.org
According to that website, the equatios are:

x1(t) = c1*cos(w1*t+phi1)+c2*cos(w2*t+phi2)
x2(t) = c1*cos(w1*t+phi1)-c2*cos(w2*t+phi2)

Taking the derivative, you get 2 more equations

v1(t) = -c1*w1*sin(w1*t+phi1)-c2*w2*sin(w2*t+phi2)
v2(t) = -c1*w1*sin(w1*t+phi1)+c2*w2*sin(w2*t+phi2)

If your initial conditions are:

x0_1 = x1(t=0)
x0_2 = x2(t=0)
v0_1 = v1(t=0)
v0_2 = v2(t=0)

then your equations become:

x0_1 = c1*cos(phi1)+c2*cos(phi2)
x0_2 = c1*cos(phi1)-c2*cos(phi2)
v0_1 = -c1*w1*sin(phi1)-c2*w2*sin(phi2)
v0_2 = -c1*w1*sin(phi1)+c2*w2*sin(phi2)

Now you have 4 equations and 4 unknowns and can solve the coefficients.
 
Last edited:
Actually, to solve this you need more variables and more equations. Instead of phi1 and phi2, use these:

sp1 = sin(phi1)
cp1 = cos(phi1)
sp2 = sin(phi2)
cp2 = cos(phi2)

Adding 2 new equations, you now have these 6 equations:

x0_1 = c1*cp1+c2*cp2
x0_2 = c1*cp1-c2*cp2
v0_1 = -c1*w1*sp1-c2*w2*sp2
v0_2 = -c1*w1*sp1+c2*w2*sp2
sp1^2+cp1^2 = 1
sp2^2+cp2^2 = 1

Once you've solved sp1,cp1,sp2, and cp2:

phi1 = atan2(sp1,cp1)
phi2 = atan2(sp2,cp2)
 
maybe I was a bit unclear, i know how to set up the equations, but what algorithm should i use to find the coefficients, especially when i need to scale it to n equal masses.
 
I would use http://en.wikipedia.org/wiki/Lagrangian_mechanics" . It's basically an energy method approach to solving equations of motion for systems with multiple degrees of freedom much more quickly than using Newtonian mechanics. There are examples at the link above.
 
Last edited by a moderator:
ok thanks. I know lagrangian mechanics, but need to solve it with Newtonian mechanics, because i need to explain it to someone who doesn't know it.

I've wrote the complex solution as the real and imaginary part and then i could solve it. Thanks for all your sugestions.
 
Thread 'Question about pressure of a liquid'
I am looking at pressure in liquids and I am testing my idea. The vertical tube is 100m, the contraption is filled with water. The vertical tube is very thin(maybe 1mm^2 cross section). The area of the base is ~100m^2. Will he top half be launched in the air if suddenly it cracked?- assuming its light enough. I want to test my idea that if I had a thin long ruber tube that I lifted up, then the pressure at "red lines" will be high and that the $force = pressure * area$ would be massive...
I feel it should be solvable we just need to find a perfect pattern, and there will be a general pattern since the forces acting are based on a single function, so..... you can't actually say it is unsolvable right? Cause imaging 3 bodies actually existed somwhere in this universe then nature isn't gonna wait till we predict it! And yea I have checked in many places that tiny changes cause large changes so it becomes chaos........ but still I just can't accept that it is impossible to solve...
Back
Top