Posted December 18, 2016
by Lensyl Urbano
One of the middle schoolers built a potato gun for his math class. He was looking a the mathematical relationship between the amount of fuel (hair spray) and the hang-time of the potato. To augment this work, I had my Numerical Methods class do the math and create analytical and numerical models of the projectile motion.
One of the things my students had to figure out was what angle would give the maximum range of the projectile? You can figure this out analytically by finding the function for how the horizontal distance (x) changes as the angle (theta) changes (i.e. x(theta)) and then finding the maximum of the function.
Distance as a function of the angle
In a nutshell, to find the distance traveled by the potato we break its initial velocity into its x and y components (vx and vy), use the y component to find the flight time of the projectile (tf), and then use the vx component to find the distance traveled over the flight time.
Starting with the diagram above we can separate the initial velocity of the potato into its two components using basic trigonometry:
Now we know that the height of a projectile (y) is given by the function:
(you can figure this out by assuming that the acceleration due to gravity (a) is constant and acceleration is the second differential of position with respect to time.)
To find the flight time we assume we’re starting with an initial height of zero (y0 = 0), and that the flight ends when the potato hits the ground which is also at zero ((yt = 0), so:
Factoring out t gives:
Looking at the two factors, we can now see that there are two solutions to this problem, which should not be too much of a surprise since the height equation is parabolic (a second order polynomial). The solutions are when:
The first solution is obviously the initial launch time, while the second is going to be the flight time (tf).
You might think it’s odd to have a negative in the equation, but remember, the acceleration is negative so it’ll cancel out.
Now since we’re working with the y component of the velocity vector, the initial velocity in this equation (v0) is really just vy:
so we can substitute in the trig function for vy to get:
Our horizontal distance is simply given by the velocity in the x direction (vx) times the flight time:
and substituting in the trig function for vx (just to make things look more complicated):
and factoring out some of the constants gives:
Now we have distance as a function of the launch angle.
We can simplify this a little by using the double-angle formula:
Finding the maximum distance
How do we find the maxima for this function. Sketching the curve should be easy enough, but because we know a little calculus we know that the maximum will occur when the first differential is equal to zero. So we differentiate with respect to the angle to get:
and set the differential equal to zero:
and solve to get:
Since we remember that the arccosine of 0 is 90 degrees:
And thus we’ve found the angle that gives the maximum launch distance for a potato gun.