Time for Distance with variable velocity

9 views (last 30 days)
Hi!
I have an object that is moving towards a wall. The closer it gets to the wall the slower it gets, but it reaches the wall with a certain velocity (it does not stop at the wall).
So the velocity is depending on the distance to the wall: v(x) = K*(x^2) where K is a constant.
At the beginning, the object is located with the distance L to the wall. How can I calculate how long it takes for the object to reach the wall? I know the function of the velocity.
Is there a fast way to solve that in matlab?
Thanks very much!
  3 Comments
Paulo Silva
Paulo Silva on 8 Mar 2011
If the starting point is L units from the wall than v(0)=0 should be your velocity at the wall, now it depends on the kind of motion, see http://en.wikipedia.org/wiki/Equations_of_motion , find the position equation that fits your motion and substitute the position values and speed, that will get you the time.
Steve
Steve on 8 Mar 2011
Hi, I'm sorry, you're right. My Problem is correctly described like this:
At the beginning the object is located with the distance L (e.g. 100m) to the wall. When does it reach the distance D (e.g. 30m) from the wall.
Sorry for the confusion!

Sign in to comment.

Accepted Answer

the cyclist
the cyclist on 8 Mar 2011
This seems like a straightforward calculus problem, so I am not sure why you are trying to solve it in MATLAB. Is this homework for a MATLAB class? If so, I suggest you show us what you've managed to do so far in trying to solve it.
If this is homework in a calculus or physics class, I suggest you find a forum for help in those subjects.
Finally, you might want to check that you have the problem statement correct. I calculate that to go from a distance L1 to a closer distance L2, it will take
T = (1/L2 - 1/L1)/K
which goes to infinity as L2 approaches 0 (i.e. the wall).
I could be wrong, though. Been a long while since I've taken calculus (or even used it much).
  3 Comments
the cyclist
the cyclist on 9 Mar 2011
Pretty sure that your answer and mine are equivalent. (I just used different variable names.)
Steve
Steve on 9 Mar 2011
I just checked it.. you're right. The equation for t is
t = ((1/x)-(1/L))/k.
Thanks very much!

Sign in to comment.

More Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!