The Mark McGwire Problem

By A. Sample

Introduction: This project is based on problem #18 in Section 2.7. We shall analyze the motion of a baseball with air resistance. The object is to hit a baseball over a 10 ft wall 350 ft away from the batter. We will show that the optimal initial angle for the ball's trajectory is, appoximately, 37 degrees, and that the minimine initial velocity for the ball is, approximately, 145 ft/sec.

Model: Let w be the velocity in the y direction, and let v be velocity in the x direction. We shall use g for the acceleration due to gravity and r for the coefficient of air resistance. When doing numerical calculations we shall take g to be 32 ft/sec-sec and r to be 0.2 inverse seconds , as suggested by the textbook. The differential equations we shall use to model the motion of the baseball are

dv/dt = -rv and dw/dt = -g-rw .

Thus, we are assuming the force due to air resistance is proportional to the velocity, but in the opposite direction.

Step 1: First we shall find v(t) and w(t) in terms of the initial speed u andthe initial angle of elevation A . We break down the initial velocity into its x and y component s : v(0) = u*cos(A) and w(0) = u*sin(A) . Then solving the differantial equations gives

v(t) = u*cos(A)*e^(-rt) and w(t) = (u*sin(A)+g/r)*e^(-rt)-g/r

Step 2: Now we must find the equations of motion, that is we must find x(t) and y(t) as functions of time t . For initial conditions we shall use x(0) = 0 and y(0) = h . Later we shall take h to be 3 ft. high. This yields,

x(t) = (u*cos(A)/r)(1-e^(-rt)) and y(t) = (u*sin(A)/r+g/(r^2))(1-e^(-rt))-gt/r+h .

Step 3: To give the reader a better feel for the dynamics represented by these equaitions we shall plot the baseball trajectories for several different values of the initial angle A . Let r = .2 , u = 150 , and h = 3. We shall vary A from 0 to Pi/2 in incriments of Pi/12 .

> A:=Pi*i/12:

> plot({seq([750*cos(A)*(1-exp(-t/5)),(750*sin(A) + 800)*(1-exp(-t/5))+3-160*t,t=0..10],
i=0..6)},0..500,0..250,color=black,thickness=2);

[Maple Plot]

A visual inspection suggests that two of the hits made it over the fence.

Next we shall do a plot with a fixed angle of Pi/6 but with varying the initial velocity form

50 to 200 ft/sec in incriments to 25.

> A:=Pi/6:

> u:=50+25*i:

> plot({seq([5*u*cos(A)*(1-exp(-t/5)),(5*u*sin(A) + 800)*(1-exp(-t/5))+3-160*t,t=0..10],
i=0..6)},0..600,0..150,color=black,thickness=2);

[Maple Plot]

Step 4: Now comes the hard part. We want to find the optimal value of A so that u can be as small as possible, under the constrant that the ball takes it over the fence. That is, it is not enough simply to find the value of A that maximizes the distance the ball travels and then find the smallest value of u that gets the ball over the fence for that angle. It may be that a smaller u with a different initial angle would get the ball over the fence even though the ball might not travel as far.

We shall proceed as follows. First we solve for y as a function of x , u , and A . Then we set y(350) = 10 . Thus incorporating the constrant that the ball just makes it over the fence. This will give a relation between u and A . To find the minimum u and hence the optimum A we need to find the derivative du/dA and set it equal to zero. Unfortunately, we were unable to find isolate u or find du/dA by implicit differentation, either by hand or with computer assistance. Thus, we resorted to plotting the relation y(350) = 10 as a function of u vs A , and zoming in on its unique minimum.

Since x(t) = (u*cos(A)/r)(1-e^(-rt)) we can solve for t and get t = -ln(1-rx/u*cos(A))/r . Substituting this into the equation for y(t) gives us the following, y(x,u,A) = x(tan(A)+160/u*cos(A))+800*ln(1-x/(5*u*c... . Since we require that y(350) = 10 this last equation reduces to

10 = 350(tan(A)+160/(u*cos(A)))+800*ln(1-70/(u*cos(... .

The reader can perhaps appreciate the diffeculty in finding du/dA . Below we plot this relation and estimate its minimum.

> restart;

Note: restart is needed to reset the value of A . After much "zooming in" the plot below shows the approximate minimum value of u .

> plots[implicitplot](10 = 350*(tan(A) + 160/(u*cos(A))) +
800*ln(1 - 70/(u*cos(A))) + 3,
A=0.643..0.644,u=145.337..145.338,color=black,grid=[50,50]);

[Maple Plot]

>

>

Conclusion: Using the graph above we conclude that the opitmal value of the initail angle A is .6437 radians or 37 degress and that this corresponds to a minumum value of the initial velocity of the baseball of u = 145.337382 ft/sec.