Many elementary mechanics problems deal with the physics of objects moving or
flying through the air, but they almost always ignore friction and air
resistance to make the equations solvable. If we're using a computer, however,
we don't need solvable equations.
Consider, for instance, a spherical cannonball shot from a cannon standing on
level ground. The air resistance on a moving sphere is a force in the opposite
direction to the motion with magnitude
$$
F=\frac{1}{2} \pi R^{2} \rho C v^{2},
$$
where \(R\) is the sphere's radius, \(\rho\) is the density of air, \(v\) is the
velocity, and \(C\) is the so-called coefficient of drag (a property of the
shape of the moving object, in this case a sphere).
a) Starting from Newton's second law, \(F=m a\), show that the equations of
motion for the position \((x, y)\) of the cannonball are
$$
\ddot{x}=-\frac{\pi R^{2} \rho C}{2 m} \dot{x} \sqrt{\dot{x}^{2}+\dot{y}^{2}},
\quad \ddot{y}=-g-\frac{\pi R^{2} \rho C}{2 m} \dot{y}
\sqrt{\dot{x}^{2}+\dot{y}^{2}},
$$
where \(m\) is the mass of the cannonball, \(g\) is the acceleration due to
gravity, and \(\dot{x}\) and \(x\) are the first and second derivatives of \(x\)
with respect to time.
b) Change these two second-order equations into four first-order equations
using the methods you have learned, then write a program that solves the
equations for a cannonball of mass \(1 \mathrm{~kg}\) and radius \(8
\mathrm{~cm}\), shot at \(30^{\circ}\) to the horizontal with initial velocity
\(100 \mathrm{~m} \mathrm{~s}^{-1}\). The density of air is \(\rho=1.22
\mathrm{~kg} \mathrm{~m}^{-3}\) and the coefficient of drag for a sphere is
\(C=0.47\). Make a plot of the trajectory of the cannonball (i.e., a graph of
\(y\) as a function of \(x\) ).
c) When one ignores air resistance, the distance traveled by a projectile does
not depend on the mass of the projectile. In real life, however, mass
certainly does make a difference. Use your program to estimate the total
distance traveled (over horizontal ground) by the cannonball above, and then
experiment with the program to determine whether the cannonball travels
further if it is heavier or lighter. You could, for instance, plot a series of
trajectories for cannonballs of different masses, or you could make a graph of
distance traveled as a function of mass. Describe briefly what you discover.