PROJECTILE MOTION SIMULATION

An educational tool to aid understanding of projectile motion

The Simulation

The simulation plots x displacement agaisnt y displacement over time. Interact with the simulation, change settings & explore the calculations below!

Input the initial height lauched from (must be positive), the initial speed launched at (must be positive), and the initial angle launched at (must be positive). Defaults: initial height = 0, initial speed = 30 ms-1 , initial angle= 45 ° .
Input the coefficiants of your chosen acceleration function with respect to time at2 + bt + c. Note: positive coefficiants extend the trajectory and negative coefficiants shorten the trajectory. Default: -t2-2.

The Calculations

Since we have horizontal acceleration as a function with respect to time we know acceleration is not constant and hence SUVAT equations do not hold.
Instead we have a differential equations with respect to time. We integrate at each timestep and find the constant to get velocity, then again to get displacement. Repeating this multiple times every second we get enough position points to plot the whole curve.
Note: each new position depends on the old position so there is no way to calculate the final position/time/velocity without calculating all the points inbetween.

The inital conditions for this projectile are given by:

Initial height: , Initial Vertical Velocity : , Initial Horizontal Velocity :

Horizontal Velocity = t2 + t + dt = t3 + t2 + t + c1

where c1 is found by solving the equation with the initial conditions. Doing this we get c1 = . So Horizontal Velocity

Vertical Velocity = ∫ -9.81 dt = -9.81t + c2

where c2 is found by solving the equation witht the initial conditions. Doing this we get c2 = So Vertical Velocity

Then we integrate again to get the displacement,

Horizontal Diplacement = t3 + t2 + t + dt = t4 + t3 + t2 + t + c3

where c3 is found by solving the equation with the initial conditions. Doing this we get c3=0 So Horizontal Displacement

Vertical Displacement = ∫ -9.81t + dt = 4.9t2 + t + c4

where c4 is found by solving the equation with the given initial conditions. Doing this we get c4 = So Vertical Displacement

Note: as with all projectile motion examples we are making a lot of assumptions: (1) the vertical acceleration is constant and is given by gravity (2) horizontal acceleration is variable and can be given as a polynomial of degree at most 2 with respect to time (3) we are taking the earth as flat (3) each axis is a 'wall' (4) the particle does not bounce