# [SOLVED] Physics Formula: s = 1/2a*t^2 + (u * t)

### » Fri Jun 24, 2011 2:56 pm

Hey guys,

I am just getting back into the realm of equations again, and have a question, that maybe someone more into the depths of this could help me with.

I am trying to find a formula, into which I input desired Distance (s) and Time (t), resulting in a given Initial Velocity (u) in relation to a negative Acceleration (-a), so that after going the given Distance (s), the Final Velocity (v) = 0.

What equations I think should help me achieve this somehow:
s = 1/2 * a * t^2 + (u * t)
v = u + a*t
OR in this case:
s = 1/2 * -a * t^2 + (u * t)
v = u - a*t

I know that as an example, if I wanted to go the Distance (s) [u:2br9o2qx]= 100m[/u:2br9o2qx] in Time (t)[u:2br9o2qx] = 10s[/u:2br9o2qx], I would use the following values:
1.) [u:2br9o2qx]0[/u:2br9o2qx] = 20 - 2*10 [v = u - a*t]
2.) [u:2br9o2qx]100m[/u:2br9o2qx] = -1 * 10^2 + (20 * 10) [s = 1/2 -a * t^2 + (u * t)]
3.) Now I could just increase the Time (t) as I want in relation to changing either the Initial Velocity (u) or Acceleration(a); For example, if I wanted the Distance(s) = 1000m, I could change Time(t) = 100, and Acceleration(a) = 0.2 .

But I struggle converting this knowledge and the relativity of the values to each other into a formula. I would grealty appreciate if anyone could help me out here.

Shindoh2011-06-27 05:22:57
B
3
G
1
Posts: 70
Reputation: 615

### » Fri Jun 24, 2011 7:29 pm

I don't know where you pulled those values of acceleration and initial velocity from in your example, but for that formula to work you will need to have only one variable (unless you plan on programming simultaneous equations into your program, but I've not tried that before so I can't help there sorry ). This means you can either look for acceleration, or initial velocity.

Acceleration can be calculated as (v - u) / t
Initial velocity can be calculated as v - at

However, you may find these equations of motion useful:

s = (1/2)(u + v)t
s = ut + (1/2)at^2
v^2 = u^2 + 2as
v = u + at
a = (v - u) / t

Edit: also, for unnaccelerated motion there is s = vt
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
88
S
29
G
13
Posts: 2,098
Reputation: 15,171

### » Fri Jun 24, 2011 8:32 pm

You're almost there.

Given:
s distance
t time
v final velocity=0

Find:
u initial velocity
a acceleration

(1)
v=a*t + u
solve for u
=> u= 0-a*t or u=-a*t

(2)
s = 1/2 * a * t^2 + u * t
substitute u with -a*t and solve for a:
a=-2*s/t^2

and you also get u by plugging a into equation 1
u=2*s/t

Here's a example:
http://dl.dropbox.com/u/5426011/example ... ration.cap
B
82
S
26
G
62
Posts: 4,830
Reputation: 45,200

### » Mon Jun 27, 2011 5:21 am

Guys, I love You. And R0J0hound, exactly that! Thank You!
B
3
G
1
Posts: 70
Reputation: 615