Two particles with masses m 1 and m 2 are connected by three springs as shown in the diagram. The springs are anchored at fixed points ( x , y ) = ( 0 , 0 ) on the left and ( x , y ) = ( 3 , 0 ) on the right. All three springs are identical, with natural length L 0 and force constant k . The ambient gravitational acceleration g is in the negative y direction.
In equilibrium (zero net force on each particle), how far apart are the two particles?
Details and Assumptions:
1)
m
1
=
1
2)
m
2
=
3
3)
L
0
=
1
4)
k
=
5
5)
g
=
1
0
6)
Neglect the gravitational interaction between the particles
7)
Assume appropriate standard
S
I
units for all quantities
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
@Gediminas Sadzius nice solution.upvoted.
@Gediminas Sadzius Brilliant solution. I didn't think it could be solved analytically until I saw this one. Worthy of a full 3 upvotes for sure.
A few supplementary notes. There are two methods that I think are convenient for this problem.
1) Run a time-domain simulation with damping, as shown in the solution by @Karan Chatrath
2) Use a hill-climbing algorithm to randomly bump around within a four-dimensional parameter space ( x 1 , y 1 , x 2 , y 2 ) . Store an incremental change (mutation) in the parameters if the resulting sum of the net force magnitudes ( ∣ F 1 ∣ + ∣ F 2 ∣ ) is smaller than the smallest sum seen thus far. If not, reject the mutated parameters. Eventually the algorithm converges on the result.
I don't like Newton-Raphson for these types of problems because the symbolic manipulation is very unwieldy.
The hill-climbing algorithm code is attached
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
|
@Steven Chase nice solution.
The following code is the implementation of Newton-Raphson without crunching a single derivative by hand. Do share your thoughts or feedback. I have not commented the code properly but the general layout is hopefully understandable. I have used several user defined functions. Essentially, I am minimizing the potential energy of the system.
Run using non-zero initial coordinates. The code still has some unidentified bugs, but it seems to work otherwise.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
|
So lines 40-58 are effectively setting up a system of equations by partially differentiating the potential function with respect to the four spatial parameters. And lines 58 and onward are forming the Jacobian matrix by partially differentiating each of the four equations by each of the spatial parameters. But it's all done numerically instead of analytically.
Is that a correct interpretation? If so, it's eye-opening that it can be done numerically in such a general fashion.
Log in to reply
Yes, that is the correct interpretation. Symbolic manipulations can be explicitly avoided, through robust numerical techniques. However, my code is not very robust, to be honest. Work in progress.
@Steven Chase Hey, nice solution. Good problem.
Equilibrium problems can generally be solved by balancing all forces or by minimizing the total potential energy of the system. I chose a dynamic route. I decided to simulate the motion in the presence of one dissipative force, from an arbitrary initial condition. The particle, after a long time, settles at its stable equilibrium position.
Let the coordinates of m 1 be r 1 = ( x 1 , y 1 ) and that of m 2 be r 1 = ( x 2 , y 2 ) . I define a drag coefficient C d = 5 0 for each mass. The drag force on each mass is:
F D 1 = − C d ∣ v 1 ∣ v 1 F D 2 = − C d ∣ v 2 ∣ v 2 v 1 = d t d r 1 v 2 = d t d r 2
Gravitational force acting on the particle:
F G 1 = − m 1 g j ^ F G 2 = − m 2 g j ^
Spring force for spring joining m 1 and origin:
F S 1 = ( ∣ r 1 ∣ K ( ∣ r 1 ∣ − L o ) ) r 1
Spring force for spring joining m 1 and m 2 :
F S 2 = ( ∣ r 2 − r 1 ∣ K ( ∣ r 2 − r 1 ∣ − L o ) ) ( r 2 − r 1 )
Spring force for spring joining r f = ( 3 , 0 ) and m 2 :
F S 3 = ( ∣ r 2 − r f ∣ K ( ∣ r 2 − r f ∣ − L o ) ) ( r 2 − r f )
Finally, the equations of motion of the system are:
m 1 [ x ¨ 1 y ¨ 1 ] = F G 1 + F D 1 − F S 1 + F S 2 m 2 [ x ¨ 2 y ¨ 2 ] = F G 2 + F D 2 − F S 2 − F S 3
Writing out the equations of motion requires a rough free body diagram, which I have left out. The reader may attempt to derive these and see if they agree with my findings. Finally, this system can be numerically integrated for a prolonged period of time till the drag force dissipates all energy out of the system, leaving it in its state of minimal potential energy. In fact, equating the the accelerations to zero and assuming the system to be in rest gives the equilibrium equations itself. That requires an iterative scheme like Newton-Raphson to solve.
Simulation code attached below:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
|
Hehe, good one. I solved it exactly the same way. At first I tried screwing around with simultaneous equations, but realised that the equations were too complicated to solve.
My code is almost exactly the same as Karan Chatrath's, so I don't have much to add. I approached the problem the same way by adding damping and computing all the force vectors and numerically integrating.
Although I attempted the problem analytically at first by making a system of 4 equations, the equations were way too complicated to solve.
So I simulated the motion over a long period of time.
Here are some juicy gifs:
Problem Loading...
Note Loading...
Set Loading...
I'd like to share this solution where I minimised the potential energy instead of setting up a force balance. Here is a diagram explaining the variables in the potential energy function under the diagram:
m 1 = 1
m 2 = 3
l 0 = 1
k = 5
g = 1 0
The potential energy function which is to be minimised to obtain the equilibrium state of the system:
U ( X1 , X2 , Y1 , Y2 ) = 2 1 k ( X1 2 + Y1 2 − l 0 ) 2 + 2 1 k ( X2 2 + ( Y2 − Y1 ) 2 − l 0 ) 2 + 2 1 k ( ( X3 2 + Y2 2 − l 0 ) 2 + g m 1 ( h 0 − Y1 ) + g m 2 ( h 0 − Y2 )
In addition, the following constraint is used:
X1 + X2 + X3 = 3
The potential energy function is differentiated by each variable and set to zero to obtain a system of 4 equations. I took a shortcut and solved it using Wolfram Mathematica in the domain of real numbers ...
NSolve [ { ∂ X1 ∂ U ( X1 , X2 , Y1 , Y2 ) = 0 , ∂ X2 ∂ U ( X1 , X2 , Y1 , Y2 ) = 0 , ∂ Y1 ∂ U ( X1 , X2 , Y1 , Y2 ) = 0 , ∂ Y2 ∂ U ( X1 , X2 , Y1 , Y2 ) } , { X1 , X2 , Y1 , Y2 } , R ]
... to obtain just a single solution. Based on the set up of the problem its is clear the solution is the minimum:
Y 1 = 4 . 0 3 4 8 7
Y 2 = 5 . 9 3 0 3 9
X 2 = 1 . 2 4 5 6 0
The distance between the two masses is Distance = X2 2 + ( Y2 − Y1 ) 2 . Plugging in the numbers gives the result 2 . 2 6 8