Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Trajectory Position At A Given Time

  1. Mar 28, 2004 #1
    I am writing a graphics program to model projectile motion of a ball being thrown. What I am looking for is an equation that will give a specific X and Y coordinate, in the parabolic path, for any specific time it is given, and a arbitratry velocity and angle.

    For example, if I give it some arbitrary velocity and angle, I would like to be able to figure out how high in the air the ball is and how far it has traveled horizontally at 5 seconds, 13.4 seconds or any other random time.

    Any help would be appreciated.

    Sklar
     
  2. jcsd
  3. Mar 28, 2004 #2

    Janitor

    User Avatar
    Science Advisor

    What sort of simplifying assumptions are you making? A flat earth, constant acceleration of gravity w.r.t. altitude, no air drag? Since you mention "parabolic path," I imagine you are going with all of these idealizations.

    If you idealize (simplify) things enough, you can make use of closed-form solutions that were worked out with calculus centuries ago. If you are going to make it more realistic, you will probably have to resort to numerical approximation methods.
     
  4. Mar 28, 2004 #3

    Integral

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    A strictly time depentent solution is pretty easy. The only force acting is gravity. Application of Newtons laws gives.

    in the x direction

    [tex]v_x (0) =v_i(0) cos(\theta) [/tex]
    so
    [tex] x(t) = v_x(0)t + C [/tex]

    If you define the origion as the point where the ball is thrown C=0

    Gravity acts in the y direction so

    [tex] \frac {d^2y} {dt^2} = -g [/tex]

    [tex] \frac {dy} {dt} = -gt + v_y(0) [/tex]
    but
    [tex]v_y(0) = v_i(0) sin (\theta) [/tex]

    [tex] y(t) = Y_0 + v_y(0)t - \frac {g t^2} 2 [/tex]
     
    Last edited: Mar 28, 2004
  5. Mar 28, 2004 #4

    Janitor

    User Avatar
    Science Advisor

    And thereby Integral has derived your parabolic curve, parameterized by time t.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?