# Calculating the time given initial position, initial velocity, current position and constant acceleration [closed]

I'm trying to write a simple physics engine (a bit different than what is already out there) and I've got the following problem;

(For simplicity let's imagine this problem in one dimension;)

I have an object with initial position of x0, initial velocity of v0 and constant acceleration of "a". At some point in time the object reaches position x1. Is there a formula which can help me calculate the time it took for the object to travel from x0 to x1? (t0=0)

Here is where I've got;

x1= 0.5*a*t^2 + v0*t + x0
so
x1-x0=(0.5*a*(t^2))+(v0*t)

But I have no idea how to break it down to something like (t=...)

I appreciate any help.

P.S. I apologize if I haven't tagged this question properly. I don't know the proper terms this question should be files under.

-
 I see the question is now closed "as too localized". Can anybody at least give me a reason what I did wrong for future reference, please? – user1751100 Oct 26 '12 at 2:57

## closed as too localized by Qmechanic♦, David Zaslavsky♦Oct 26 '12 at 1:09

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.