Find v(x) of a mass suspended from a spring

Click For Summary
The discussion revolves around finding the velocity function v(x) for a mass suspended from a spring, with participants addressing the need for constants k and m in the differential equation. The original poster struggles with the correct formulation of energy conservation equations and the relationship between potential and kinetic energy. Clarifications are made regarding the total energy being constant and the proper definitions of gravitational potential energy. Ultimately, the poster expresses gratitude for the assistance received and believes they have arrived at a solution, although they still question a negative sign in their differential equation.
  • #31
Thank you. I did follow these questions which had led me to that result.

I think:

The spring PE is 0 at x=0

The KE is (1/2)*m*v^2

If we take x=0 as the height being 0 then GPE is 0

So the total then would be just the KE? (1/2)*m*v^2
 
Physics news on Phys.org
  • #32
spsch said:
Thank you. I did follow these questions which had led me to that result.

I think:

The spring PE is 0 at x=0

The KE is (1/2)*m*v^2

If we take x=0 as the height being 0 then GPE is 0

So the total then would be just the KE? (1/2)*m*v^2
Yes, then the GPE is 0 at x = 0.

What is the GPE at an arbitrary value for x ?
 
  • Like
Likes spsch
  • #33
spsch said:
The spring PE is 0 at x=0
I didn't ask about x=0. My questions are in the context of an arbitrary value of x.
 
  • Like
Likes spsch
  • #34
Thank you. I did follow these questions which had led me to that result.
SammyS said:
Yes, then the GPE is 0 at x = 0.

What is the GPE at an arbitrary value for x ?
x+h? as h being the displacement from x=0?
 
  • #35
haruspex said:
I didn't ask about x=0. My questions are in the context of an arbitrary value of x.
Oh, then 1/2*k*x^2?

I'm sorry I may have misunderstood.
 
  • #36
spsch said:
Thank you. I did follow these questions which had led me to that result.

x+h? as h being the displacement from x=0?
For one thing, x itself is the displacement from the location, x=0.
(If you are taking GPE to be zero at x=0, then h should not enter into this anymore.)

I asked for the GPE (gravitational potential energy) of the mass when it's at location x .

This should help you answer @haruspex's question(s)
 
  • Like
Likes spsch
  • #37
Oh! of course, so just mgx?
 
  • #38
spsch said:
Oh! of course, so just mgx?
Right, so what is the total mechanical energy at height x?
 
  • Like
Likes spsch
  • #39
haruspex said:
Right, so what is the total mechanical energy at height x?
(1/2)*m*v^2 + mgx+(1/2)*k*x^2?
 
  • #40
spsch said:
(1/2)*m*v^2 + mgx+(1/2)*k*x^2?
Good. And this should be constant, and we know all the values at t=0. So what general equation does that give you?
 
  • #41
(1/2*m*v0^2) = (1/2)*m*v^2 + mgx+(1/2)*k*x^2

##v = \sqrt{ v_^2 - \frac {kx^2} {m}, - 2gx}## (/ I'm sorry tried to but won't convert)

v = sqrt( v0^2 - (k*x^2) /m), - 2*g*x)

could this be it?
 
Last edited:
  • #42
spsch said:
(1/2*m*v0^2) = (1/2)*m*v^2 + mgx+(1/2)*k*x^2

## v = \sqrt{ v_0^2 - \frac {kx^2} {m} - 2gx} ##

could this be it?
That's it. (Latex doesn't like [ SUB] etc. use _)

Can you turn that into t= an integral wrt x?
 
  • #43
haruspex said:
That's it. (Latex doesn't like [ SUB] etc. use _)
Hmm, I subbed the sub with _ but it shows a square now, but i'll figure this out too :-)
haruspex said:
Can you turn that into t= an integral wrt x?

Hmm, with t? I think so, I'm anxious to see what solution I get. I'll try and get back.

PS, I am grateful that you made me work through the problem, even though it's a small difference, I now really understand what I did wrong. I don't think I would have this insight if you'd just told me to switch x with h. Thank you very much!
 
  • #44
spsch said:
I'm sorry tried to but won't convert
also: put a \ before the sqrt: $$v = \sqrt{ v_0^2 - \frac {kx^2} {m} - 2gx} $$
:wink:

(you could 'check' this expression: when is ##v=0## and when is it at a maximum ?)

And this is not the whole 'it', but a step towards the differential equation that the exercise asks ...

My impression is that it wants an equation in the form ##{dv\over dx} = ## { an expression in ##x## }
##\ ##
 
  • Like
Likes spsch
  • #45
BvU said:
also: put a \ before the sqrt: $$v = \sqrt{ v_0^2 - \frac {kx^2} {m} - 2gx} $$
:wink:

(you could 'check' this expression: when is ##v=0## and when is it at a maximum ?)

And this is not the whole 'it', but a step towards the differential equation that the exercise asks ...

My impression is that it wants an equation in the form ##{dv\over dx} = ## { an expression in ##x## }
##\ ##
Ah yes, @spsch, I was forgetting the original purpose of the thread. You were just checking an answer by using energy. So to get a differential equation involving v from your post #41 you now need to differentiate. But it is not clear to me whether you need to differentiate wrt t or wrt x. It depends what ODE you got that you are trying to verify.
 
  • Like
Likes spsch
  • #46
BvU said:
also: put a \ before the sqrt: $$v = \sqrt{ v_0^2 - \frac {kx^2} {m} - 2gx} $$
:wink:

(you could 'check' this expression: when is ##v=0## and when is it at a maximum ?)

And this is not the whole 'it', but a step towards the differential equation that the exercise asks ...

My impression is that it wants an equation in the form ##{dv\over dx} = ## { an expression in ##x## }
##\ ##
Thank you! the \sqrt wasn't enough yet. Don't worry about this though, you guys do enough already!

Probably a dumb question but... wouldn't dv/dx just be the derivative of the right side?
 
  • #47
haruspex said:
Ah yes, @spsch, I was forgetting the original purpose of the thread. You were just checking an answer by using energy. So to get a differential equation involving v from your post #41 you now need to differentiate. But it is not clear to me whether you need to differentiate wrt t or wrt x. It depends what ODE you got that you are trying to verify.
Hi Haruspex. I'm not sure what you mean with what ODE?

I had a solution which is actually what I got now with your help.

I got that by setting kx-mg = ma and using v*dv/dx for a as it was a hint on the problem.

The problem was looking for v(x)
 
Last edited:
  • #48
So I got this as the derivative. Is this a(x)?
 

Attachments

  • IMG_20190606_153747.jpg
    IMG_20190606_153747.jpg
    71.9 KB · Views: 349
  • #49
spsch said:
\sqrt wasn't enough yet
##\TeX## now stumbles over _^ without anything in between
244680

v_0^2 will fix it. You also don't really want the comma. And don't worry: we do it because we like to do it or else we wouldn't do it :smile:

Given up on ##\LaTeX## ? and back to images... :cry:

Methinks the image in #48 is a good answer to the problem statement in #19 (also an image :frown:).
Whether it's still correct can be checked 'easily':
  • ##{dv\over dx} = 0\ \ ## at ##\ \ x_0 = - {mg\over k} ##
  • substitute ##\omega =\sqrt{k\over m}, \ \ \xi = x_0-x, \ \ v = ## ... oh, well, maybe not that easy ...
and all that for 3 points ...

Makes me curious to see parts b) and c)
##\ ##
 
  • Like
Likes spsch
  • #50
spsch said:
So I got this as the derivative. Is this a(x)?
I should think ##a(x) = -\omega^2 (x-x_0) \ \ ## with ##\ \ \omega^2 = {k\over m}##

In other words: ##{da\over dx} = -\omega^2 ##
 
  • Like
Likes spsch
  • #51
BvU said:
Methinks the image in #48 is a good answer to the problem statement in #19 (also an image :frown:).
Whether it's still correct can be checked 'easily':
  • ##{dv\over dx} = 0\ \ ## at ##\ \ x_0 = - {mg\over k} ##
  • substitute ##\omega =\sqrt{k\over m}, \ \ \xi = x_0-x, \ \ v = ## ... oh, well, maybe not that easy ...
and all that for 3 points ...

Makes me curious to see parts b) and c)
##\ ##

I think 48 is the derivative of the solution?

we solved a and b almost I think. a asks to set up the differential equation. b asks to solve it.

I haven't looked at what c and d is yet, but it seems not to difficult, c) asks you to graph the function v(x) in an x-v-diagramm.

And d finally asks you for the deviation (*Auslenkung, I don't quite know what that word in german means actually) and the speed of the mass when the spring is pulled 20 cm up or down.
I think it just means plug in 0.2 for x and state the value. so v(0.2).

a, b and c each give you 3 points, d 1 point.

I'll figure out Latex too! :-) It doesn't let me edit the previous post anymore, I think I did it too many times. But next chance I get.
 
  • #52
BvU said:
I should think ##a(x) = -\omega^2 (x-x_0) \ \ ## with ##\ \ \omega^2 = {k\over m}##

In other words: ##{da\over dx} = -\omega^2 ##
Thank you for all the help!
hmm, this gives me trouble, I have to ponder about this a bit.
 
  • #53
From Post #41:
spsch said:
...

##v = \sqrt{ v_^2 - \frac {kx^2} {m}, - 2gx}## (/ I'm sorry tried to but won't convert)

v = sqrt( v0^2 - (k*x^2) /m), - 2*g*x)
Just some ##\LaTeX## stuff.

The ##\LaTeX## code you entered was: ##v = \sqrt{ v_^2 - \frac {kx^2} {m}, - 2gx}## .

Correcting the omission of the 0 (thanks @BvU) to give v_0^2 and letting ##\LaTeX## do its thing gives the following.

##v = \sqrt{ v_0^2 - \frac {kx^2} {m}, - 2gx}##

Drop the comma, wrap v_0 in braces and use \dfrac rather than \frac gives the result

## v = \sqrt{ {v_0}^2 - \dfrac {kx^2} {m} - 2gx } ##

from the input line:

## v = \sqrt{ {v_0}^2 - \dfrac {kx^2} {m} - 2gx } ##
 
  • Like
Likes spsch
  • #54
spsch said:
... hmm, this gives me trouble, I have to ponder about this a bit.

It looks like the big picture may still elude you. Remember that the zero of potential energy is arbitrary. The gravitational energy of mass ##m## at height ##y## above ground is ##U_g=mg(y-y_0)##; it is zero when ##y=y_0##. The elastic energy of a spring stretched (or compressed) by amount ##x## from its relaxed position is ##U_s=\frac{1}{2}k(x^2-x_0^2)##; it too is zero when ##x=x_0##. Note that ##x## in this context denotes "displacement of the spring from equilibrium", it does not denote position. The total potential energy is ##U_{tot}=U_g+U_s=mg(y-y_0)+\frac{1}{2}k(x^2-x_0^2)##.

Case 1. A horizontal spring-mass system
For the vertical motion
(a) you can choose the position of the origin, ##Y_{or}## at the vertical height of the mass
(b) you can choose the zero of potential energy at the origin (##y_0=0##)
Then ##U_g =mg(0-0)=0## throughout the motion.
For the horizontal motion
(a) you can choose the horizontal location of the origin, ##X_{or}## at the mass when the spring is unstretched. Remembering that ##x## stands for the displacement of the spring from the origin, clearly it also stands for the displacement of the mass from the origin. At this point you still have to choose the zero of spring energy.
(b) A common and useful choice is ##x_0=0##, but it could be anything you want.

With all of the above in mind, if the mass has speed ##v_0## when the spring is unstretched, the mechanical energy at some arbitrary ##x## is $$ME=K+U_g+U_s=\frac{1}{2}mv^2+0+\frac{1}{2}kx^2.$$Because mechanical energy is conserved and we have chosen the zero spring potential energy to be where the speed is maximum at ##x=0##, this becomes the familiar $$ME=\frac{1}{2}mv^2+\frac{1}{2}kx^2=\frac{1}{2}mv_0^2~~~~~(1)$$

Case 2. A vertical spring-mass system
Start with the most general expression for the mechanical energy and then you need to choose three quantities, the position of the origin ##Y_{or}##, the zero of gravitational potential energy ##y_0## and the zero of spring potential energy ##x_0##.$$ME=\frac{1}{2}mv^2+mg(y-y_0)+\frac{1}{2}k(x^2-x_0^2)~~~~~(2)$$

Suppose you choose the origin ##Y_{or}## to be at the position of the mass when the net force acting on it is zero, i.e. ##kx_{eq}-mg=0##. Then ##x_{eq}=\frac{mg}{k}## below the unstretched position of the spring. The displacement of the mass from this origin is the same as the additional stretch (or compression) of the spring call that quantity, ##\xi##, that is ##y=\xi##.
We choose the zero of gravitational potential energy to be at ##Y_{or}##. Then ##y_0=0##.
We also choose the zero of spring potential energy to be not where the spring is unstretched but where the additional stretch ##\xi = 0##. That occurs at ##x_{eq}## as we have previously found, that is ##x_0=x_{eq}=\frac{mg}{k}##.

Finally, the stretch of the spring from the equilibrium position ##x## is related to the additional stretch ##\xi## by$$x=\xi-\frac{mg}{k}.$$With all this equation (2) becomes$$ME=\frac{1}{2}mv^2+mg\xi-\frac{1}{2}k\left[\left(\xi- \frac{mg}{k}\right)^2-\left(\frac{mg}{k}\right)^2\right]$$This simplifies to$$ME=\frac{1}{2}mv^2+\frac{1}{2}k\xi^2~~~~~(3)$$
If we compare equations (1) and (2) for the mechanical energy of a spring-mass system, we see that they are identical in that, by judicious choices of the origin and the zeroes of the two potential energies, (a) the spring potential energy depends quadratically on the displacement relative to the (force) equilibrium position and (b) the potential energy contribution can be written out of the picture.
 
Last edited:
  • Like
Likes spsch
  • #55
Second @kuruman ! With all due respect, to me the nice feature of this exercise (see OP image ?:) in #19) is that they ask for a first-order differential equation in ##v(x) ##, as opposed to the usual ##\ddot x = -kx## second order treatment.

Note that the choice for x=0 has already been made in the problem statement. At that point the initial ##v_0## is also given. And the 1st order DE for ##v(x)## necessarily contains the gravitational potential energy.

And we should emphasize that the physics outcome is of course independent of the choices for zero coordinate and zero potential energy.
##\ ##
 
  • Like
Likes SammyS
  • #56
BvU said:
Note that the choice for x=0 has already been made in the problem statement. At that point the initial v0v_0 is also given. And the 1st order DE for v(x)v(x) necessarily contains the gravitational potential energy.
Yes, I tried to show how, using ME conservation, one can get the same result as integrating the DE, but I sidetracked myself. I should have picked ##Y_{or}=x_0=y_0=0## instead. o:)
 
  • #57
kuruman said:
It looks like the big picture may still elude you. Remember that the zero of potential energy is arbitrary. The gravitational energy of mass ##m## at height ##y## above ground is ##U_g=mg(y-y_0)##; it is zero when ##y=y_0##. The elastic energy of a spring stretched (or compressed) by amount ##x## from its relaxed position is ##U_s=\frac{1}{2}k(x^2-x_0^2)##; it too is zero when ##x=x_0##. Note that ##x## in this context denotes "displacement of the spring from equilibrium", it does not denote position. The total potential energy is ##U_{tot}=U_g+U_s=mg(y-y_0)+\frac{1}{2}k(x^2-x_0^2)##.

Case 1. A horizontal spring-mass system
For the vertical motion
(a) you can choose the position of the origin, ##Y_{or}## at the vertical height of the mass
(b) you can choose the zero of potential energy at the origin (##y_0=0##)
Then ##U_g =mg(0-0)=0## throughout the motion.
For the horizontal motion
(a) you can choose the horizontal location of the origin, ##X_{or}## at the mass when the spring is unstretched. Remembering that ##x## stands for the displacement of the spring from the origin, clearly it also stands for the displacement of the mass from the origin. At this point you still have to choose the zero of spring energy.
(b) A common and useful choice is ##x_0=0##, but it could be anything you want.

With all of the above in mind, if the mass has speed ##v_0## when the spring is unstretched, the mechanical energy at some arbitrary ##x## is $$ME=K+U_g+U_s=\frac{1}{2}mv^2+0+\frac{1}{2}kx^2.$$Because mechanical energy is conserved and we have chosen the zero spring potential energy to be where the speed is maximum at ##x=0##, this becomes the familiar $$ME=\frac{1}{2}mv^2+\frac{1}{2}kx^2=\frac{1}{2}mv_0^2~~~~~(1)$$

Case 2. A vertical spring-mass system
Start with the most general expression for the mechanical energy and then you need to choose three quantities, the position of the origin ##Y_{or}##, the zero of gravitational potential energy ##y_0## and the zero of spring potential energy ##x_0##.$$ME=\frac{1}{2}mv^2+mg(y-y_0)+\frac{1}{2}k(x^2-x_0^2)~~~~~(2)$$

Suppose you choose the origin ##Y_{or}## to be at the position of the mass when the net force acting on it is zero, i.e. ##kx_{eq}-mg=0##. Then ##x_{eq}=\frac{mg}{k}## below the unstretched position of the spring. The displacement of the mass from this origin is the same as the additional stretch (or compression) of the spring call that quantity, ##\xi##, that is ##y=\xi##.
We choose the zero of gravitational potential energy to be at ##Y_{or}##. Then ##y_0=0##.
We also choose the zero of spring potential energy to be not where the spring is unstretched but where the additional stretch ##\xi = 0##. That occurs at ##x_{eq}## as we have previously found, that is ##x_0=x_{eq}=\frac{mg}{k}##.

Finally, the stretch of the spring from the equilibrium position ##x## is related to the additional stretch ##\xi## by$$x=\xi-\frac{mg}{k}.$$With all this equation (2) becomes$$ME=\frac{1}{2}mv^2+mg\xi-\frac{1}{2}k\left(\xi- \frac{mg}{k}\right)^2-\left(\frac{mg}{k}\right)^2$$This simplifies to$$ME=\frac{1}{2}mv^2+\frac{1}{2}k\xi^2~~~~~(3)$$
If we compare equations (1) and (2) for the mechanical energy of a spring-mass system, we see that they are identical in that, by judicious choices of the origin and the zeroes of the two potential energies, (a) the spring potential energy depends quadratically on the displacement relative to the (force) equilibrium position and (b) the potential energy contribution can be written out of the picture.
Hi, thank you kuruman. This was very helpful. What gives me trouble is how a(x) has been related to ## \sqrt{ \frac km} ## by just knowing x.
I see how it's the acceleration. I had some trouble following it. It's more clear now, but still a little fuzzy haha. I'm sure it shall clear up.
 
Last edited:
  • #58
kuruman said:
It looks like the big picture may still elude you. Remember that the zero of potential energy is arbitrary. The gravitational energy of mass ##m## at height ##y## above ground is ##U_g=mg(y-y_0)##; it is zero when ##y=y_0##. The elastic energy of a spring stretched (or compressed) by amount ##x## from its relaxed position is ##U_s=\frac{1}{2}k(x^2-x_0^2)##; it too is zero when ##x=x_0##. Note that ##x## in this context denotes "displacement of the spring from equilibrium", it does not denote position. The total potential energy is ##U_{tot}=U_g+U_s=mg(y-y_0)+\frac{1}{2}k(x^2-x_0^2)##.

Case 1. A horizontal spring-mass system
For the vertical motion
(a) you can choose the position of the origin, ##Y_{or}## at the vertical height of the mass
(b) you can choose the zero of potential energy at the origin (##y_0=0##)
Then ##U_g =mg(0-0)=0## throughout the motion.
For the horizontal motion
(a) you can choose the horizontal location of the origin, ##X_{or}## at the mass when the spring is unstretched. Remembering that ##x## stands for the displacement of the spring from the origin, clearly it also stands for the displacement of the mass from the origin. At this point you still have to choose the zero of spring energy.
(b) A common and useful choice is ##x_0=0##, but it could be anything you want.

With all of the above in mind, if the mass has speed ##v_0## when the spring is unstretched, the mechanical energy at some arbitrary ##x## is $$ME=K+U_g+U_s=\frac{1}{2}mv^2+0+\frac{1}{2}kx^2.$$Because mechanical energy is conserved and we have chosen the zero spring potential energy to be where the speed is maximum at ##x=0##, this becomes the familiar $$ME=\frac{1}{2}mv^2+\frac{1}{2}kx^2=\frac{1}{2}mv_0^2~~~~~(1)$$

Case 2. A vertical spring-mass system
Start with the most general expression for the mechanical energy and then you need to choose three quantities, the position of the origin ##Y_{or}##, the zero of gravitational potential energy ##y_0## and the zero of spring potential energy ##x_0##.$$ME=\frac{1}{2}mv^2+mg(y-y_0)+\frac{1}{2}k(x^2-x_0^2)~~~~~(2)$$

Suppose you choose the origin ##Y_{or}## to be at the position of the mass when the net force acting on it is zero, i.e. ##kx_{eq}-mg=0##. Then ##x_{eq}=\frac{mg}{k}## below the unstretched position of the spring. The displacement of the mass from this origin is the same as the additional stretch (or compression) of the spring call that quantity, ##\xi##, that is ##y=\xi##.
We choose the zero of gravitational potential energy to be at ##Y_{or}##. Then ##y_0=0##.
We also choose the zero of spring potential energy to be not where the spring is unstretched but where the additional stretch ##\xi = 0##. That occurs at ##x_{eq}## as we have previously found, that is ##x_0=x_{eq}=\frac{mg}{k}##.

Finally, the stretch of the spring from the equilibrium position ##x## is related to the additional stretch ##\xi## by$$x=\xi-\frac{mg}{k}.$$With all this equation (2) becomes$$ME=\frac{1}{2}mv^2+mg\xi-\frac{1}{2}k\left(\xi- \frac{mg}{k}\right)^2-\left(\frac{mg}{k}\right)^2$$This simplifies to$$ME=\frac{1}{2}mv^2+\frac{1}{2}k\xi^2~~~~~(3)$$
If we compare equations (1) and (2) for the mechanical energy of a spring-mass system, we see that they are identical in that, by judicious choices of the origin and the zeroes of the two potential energies, (a) the spring potential energy depends quadratically on the displacement relative to the (force) equilibrium position and (b) the potential energy contribution can be written out of the picture.

Does epsilon (if it is epsilon, the additional stretch) just represent dx here?
 
  • #59
kuruman said:
With all this equation (2) becomes$$ME=\frac{1}{2}mv^2+mg\xi-\frac{1}{2}k\left(\xi- \frac{mg}{k}\right)^2-\left(\frac{mg}{k}\right)^2$$
Did you mean $$ME=\frac{1}{2}mv^2+mg\xi+\frac{1}{2}k\left(\left(\xi- \frac{mg}{k}\right)^2-\left(\frac{mg}{k}\right)^2\right)$$
 
  • Like
Likes kuruman
  • #60
spsch said:
Does epsilon (if it is epsilon, the additional stretch) just represent dx here?
##\xi##, pronounced "ksy", is the Greek equivalent of x. Not sure how you are defining dx here, but that usually refers to an infinitesimal change. @kuruman is using ##\xi## to stand for a variable like x but differing from it by a constant amount.
 
  • Like
Likes spsch

Similar threads

Replies
29
Views
3K
  • · Replies 10 ·
Replies
10
Views
1K
Replies
3
Views
2K
  • · Replies 31 ·
2
Replies
31
Views
2K
Replies
2
Views
766
Replies
2
Views
1K
Replies
5
Views
5K
Replies
1
Views
1K
Replies
26
Views
3K
Replies
2
Views
2K