High School Physics/Projectile motion
The case of uniform gravity , disregarding drag and wind, yields a projectile motion trajectory which is a parabola. To model this, one chooses , where (gee) is the socalled acceleration of gravity.
Relative to a flat terrain, let the initial horizontal speed be , and the initial vertical speed be . It will be shown that, the range is , and the maximum altitude is . The maximum range, for a given total initial speed , is obtained when , i.e. the initial angle is 45 degrees. This range is , and the maximum altitude at the maximum range is a quarter of that.
Derivation
editThe equations of motion may be used to calculate the characteristics of the trajectory.
Let:
 be the time into the flight of the projectile
 be the horizontal displacement at time t
 be the vertical displacement at time t
 be the horizontal velocity (which is constant)
 be the initial vertical velocity upwards
 be the initial speed
 be the vertical velocity at time t
Along the horizontal dimension, is a constant and thus by the equations of motion,
 (Equation 1)
The vertical distance, or altitude, follows the equations of motion for constant negative acceleration :
 (Equation 2)
 (Equation 3: velocity equation which is the derivative of equation 2)
The range of the projectile occurs when is zero again and intercepts the ground. This occurs when in equation 2 is zero:
Solving this for time gives the time of the projectile's flight:
 (Equation 4: "hang time" of projectile)
The maximum range occurs when equation 4 is substituted into equation 1:
 (Equation 5: range of projectile)
The maximum altitude for a given trajectory occurs when the vertical velocity is zero. Thus set equation 3 to zero:
Solving for
This can be substituted into equation 2 to give the maximum altitude:
 (Equation 6: maximum altitude of projectile)
Thus, not surprisingly, for a given initial speed the attained altitude is highest if the initial velocity was straight up. This altitude is twice the attained altitude when the range is maximized.
Derivation in polar coordinates
editIn terms of angle of elevation and initial speed :
Substituting into Equation 1 gives:
 (Equation 1a)
Substituting into Equation 2 gives:
 (Equation 2a)
Taking the derivative gives the vertical velocity:
 (Equation 3a: vertical velocity)
Hang time calculated above in equation 4 may be expressed in terms of angle of elevation:
 (Equation 4a)
Equation 4a may be substituted into Equation 1a to get the horizontal distance or range:
Now using the trigonometric identity for :
 (Equation 5a: range of projectile)
This may be solved for angle to give the "angle" equation to hit a target at range :
 (Equation 7: angle of projectile launch)
Note that the sine function is such that there are two solutions for for a given range . Physically, this corresponds to a direct shot versus a mortar shot up and over obstacles to the target.
The maximum altitude for a given range may be determined by setting the vertical velocity to zero in equation 3a and solving for :
 (rearrange and solve for )
Now substitute into the vertical height equation 2a:
 (Equation 6a: max altitude for a given launch angle)
Maximum range
editGiven the above range and altitude equations, the maximum range and altitude may be determined. Both equations for the range, equations 5 and 5a may be used to determine the maximum range by setting their derivatives to zero. For equation 5, range of the projectile is a function of and such that where v is the total initial velocity and is constant. Thus, the range may be expressed as a function of by solving for :
 (Equation 8)
And substituting into equation 5:
The maximum may be determined by calculating the derivative and setting it to zero. The derivative is calculated as follows:

 (application of product rule)
 (application of chain rule)
 (derivative of square root)
 (simplify second term)
Set to zero and solve for :
 (Equation 9)
Thus maximum range occurs when is and this can be substituted back into equation 8:
Thus the maximum range occurs when .
The actual maximum range may now be calculated by substituting and equation 9 into equation 5:
Maximum range in polar coordinates
editThe same conclusion may be drawn by starting with equation 5a.

 (application of chain rule)
Set to zero and solve for :
Now cosine is zero at :
 (also directly clear from equation 5a, it gives the maximum possible sine value of 1)
 radians
Thus the maximum range occurs when the angle is 45 degrees.
The actual maximum range may now be calculated by substituting 45 degrees into equation 5a:
Maximum altitude at maximum range
editEquations 6 and 6a may be used to calculate the maximum altitude at the maximum range. Equation 9 may be substituted into equation 6:
Likewise 45 degrees may be substituted into equation 6a:
As a parabola
editEquations 1 and 2 are parametric equations that describe a parabola. They may be rearranged into the more familiar quadratic form by solving equation 1 for and substituting into equation 2:
 (rearrange equation 1 for )
Substituting this into equation 2:
This is now in the form
where
 .
This is the form of a parabola and thus the trajectory is a parabola.
Likewise equations 1a and 2a can be rearranged into quadratic form. Equation 1a may be rearranged to:
And this may be substituted into equation 2a:
Now , so:
 (Equation 10)
This is again now in the form where , , , and demonstrating that this is a parabola.
The quadratic formula gives the location of the intersection of the parabola and the xaxis. This is where the projectile trajectory starts and ends and thus may be used directly to calculate the range. In terms of rectilinear coordinate systems:
This is the same result as equation 5 above.
In polar coordinates and using the trigonometric identity , the intersections are:
This is the same result as in equation 5a above.
Similarly, the vertex of the parabola is the maximum altitude for a given range.
Computer simulation
editNCLab provides an interactive graphical module for projective motion with and without air friction. The Python source code of the simulation can be freely view and copied. For the case with air friction, RungeKutta methods of orders 1, 2 and 4 are used to solve the underlying ordinary differential equations.