The angle of launching an Angry Bird that will land the bird furthest from the launching point is 45 degrees?

This is a question motivated by Angry Birds.

When playing the game, I notice that if the initial velocity is constant, the way to land a bird furthest away from the launching point is by launching the bird at 45 degrees from the ground.

Is it possible to obtain a derivation and a proof of this?

-

45 degrees is, in fact, the angle for maximum range for a projectile with no air resistance. In the absence of air resistance, the only force acting is gravity, which causes a constant acceleration of g downwards. this determines the amount of time the particle spends in the air, via the formula for the position of a particle with constant acceleration:

$y(t) = y(0) + v_y t + \frac{1}{2}a_y t^2$

Putting in the relevant parameters (start and end positions both 0, acceleration -g (negative because it's downward)) this becomes:

$0 = v_y t - \frac{1}{2}g t^2$

which we solve to get:

$t = \frac{2v_y}{g}$

This time then goes into the equation for the horizontal position:

$x(t) = x(0) + v_x t + \frac{1}{2}a_x t^2$

As there's no horizontal force acting, this reduces to just

$x(t) = v_x t = \frac{2v_x v_y}{g}$

To get this in terms of the angle, we use the fact from trigonometry that for a velocity $v$ at an angle $\theta$ from the horizontal, the vertical velocity is $v \sin \theta$ and the horizontal velocity is $v \cos \theta$, giving us:

$x = \frac{2v \cos \theta v\sin \theta}{g} =\frac{v^2}{g}\sin 2\theta$

This has its maximum value for $\theta = \frac{\pi}{4}$, namely, 45 degrees from the horizontal.

-
You should use $a_x$ and $a_y$ to make your answer clearer –  Sklivvz Dec 29 '10 at 15:21
I generally try to avoid the proliferation of needless subscripts-- I find people get hung up on the meaning of those more often than they confuse the acceleration between dimensions. But that's probably less of a problem with this crowd, so I added them. –  Chad Orzel Dec 29 '10 at 15:27
@Chad Orzel you should note this is the case where the starting and ending positions are the same. I believe if I remember correctly that for a higher starting position (as in the game) an angle of 42 degrees produces the furthest horizontal travel. –  msarchet Dec 29 '10 at 17:53
@msarchet: that would depend on the height difference. (I've heard that 42 degrees gives the furthest range for no height difference under realistic air resistance conditions) –  David Z Dec 29 '10 at 20:33
@David yea that's what I was thinking about when I wrote that. I had that angle tucked in the back of my head and couldn't remember where it came from. And I actually redid the math and it's always 45 degrees independent of the height since one time is negative (that's assuming ending height is always 0). –  msarchet Dec 30 '10 at 15:03

Marek asks for a "simpler conceptual argument"; there is one, using the basic observation that the distance travelled is linear in both the horizontal and vertical components of the initial velocity. It's not hard to fill in the rest, but I'm on a cross-country flight right now so it will need to wait a few hours.

Edit Ok, details:

The distance traveled is given by $d = v_xt$. One can either show with some algebra (as in Chad Orzel's answer) or otherwise that the flight time is linear in the vertical component: $t = cv_y$. Thus, $d$ is proportional to $v_xv_y$.

So we maximize the distance travelled by maximizing $v_xv_y$ subject to the constraint that the magnitude of the velocity vector is fixed: $|v| = c_2$. There's a bunch of ways to see how to do this; you can use calculus, but I prefer to observe that the level sets of $f(x,y) = xy$ are hyperbolas with asymptotes on the $x$ and $y$ axes, so the maximum must occur when $v_x = v_y$.

Even cuter is to appeal to the fact that both the constraint and the equation to maximize are quadratic, so there is either a unique maximum or the maximum occurs at one or both of the endpoints. Since the distance travelled at the endpoints is obviously zero, there is a unique maximum. By symmetry, it must occur when $v_x = v_y$.

-
Once you get to $v_xv_y$ and $|v|=c_2$ you can find the solution by geometrical means. $v_xv_y$ is proportional to the area of a right triangle with $v_x$, $v_y$, $v$ as sides and $\theta$, the shooting angle as one of the angles. In turn, this area is proportional to $c_2 \times \sin(2\theta)$. Therefore it is maximised by a 45 degree angle. –  Sklivvz Jan 4 '11 at 2:29
@Sklivvz: another very cute way to do it. –  Stephen Canon Jan 4 '11 at 2:41