Range of a projectile
In physics, a projectile launched with specific initial conditions will have a range. It may be more predictable assuming a flat Earth with a uniform gravity field, and no air resistance. The following applies for ranges which are small compared to the size of the Earth. For longer ranges see sub-orbital spaceflight. The maximum horizontal distance traveled by the projectile, neglecting air resistance, can be calculated as follows: where If y is taken to be zero, meaning that the object is being launched on flat ground, the range of the projectile will simplify to: Ideal  projectile motion. Ideal projectile motion states that there is no air resistance and no change in gravitational acceleration. This assumption simplifies the mathematics greatly, and is a close approximation of actual projectile motion in cases where the distances travelled are small. Ideal projectile motion is also a good introduction to the topic before adding the complications of air resistance. Derivations. A launch angle of 45 degrees displaces the projectile the farthest horizontally. This is due to the nature of right triangles. Additionally, from the equation for the range : We can see that the range will be maximum when the value  of formula_4 is the highest (i.e. when it is equal to 1). Clearly, formula_5 has to be 90 degrees. That is to say, formula_6 is 45 degrees. Flat ground. First we examine the case where (y) is zero. The horizontal position of the projectile is In the vertical direction We are interested in the time when the projectile returns to the same height it originated. Let t be any time when the height of the projectile is equal to its initial value. By factoring: or but t = T = time of flight The first solution corresponds to when the  projectile is first launched. The second solution is the useful one for determining the range of the projectile. Plugging this value for (t) into the horizontal equation yields Applying the trigonometric identity If x and y are same, allows us to simplify the solution to Note that when (θ) is 45°, the solution becomes Uneven ground. Now we will allow (y) to be nonzero. Our equations of motion are now and Once again we solve for (t) in the case where the (y) position of the projectile is at zero (since this is how we defined our starting height  to begin with) Again by applying the quadratic formula we find two solutions for the time. After several steps of algebraic manipulation The square root must be a positive number, and since the velocity and the sine of the launch angle can also be assumed to be positive, the solution with the greater time will occur when the positive of the plus or minus sign is used. Thus, the solution is Solving for the range once again To maximize the range at any height Checking the limit as formula_25 approaches 0 Angle of impact. The angle ψ at which the  projectile lands is given by: For maximum range, this results in the following equation: Rewriting the original solution for θ, we get: Multiplying with the equation for (tan ψ)^2 gives: Because of the trigonometric identity this means that θ + ψ must be 90 degrees. Actual projectile motion. In addition to air resistance, which slows a projectile and reduces its range, many other factors also have to be accounted for when actual projectile motion is considered. Projectile characteristics. Generally speaking, a projectile with greater volume faces greater air resistance, reducing the range of the projectile. (And see Trajectory of a  projectile.) Air resistance drag can be modified by the projectile shape: a tall and wide, but short projectile will face greater air resistance than a low and narrow, but long, projectile of the same volume. The surface of the projectile also must be considered: a smooth projectile will face less air resistance than a rough-surfaced one, and irregularities on the surface of a projectile may change its trajectory if they create more drag on one side of the projectile than on the other. However, certain irregularities such as dimples on a golf ball may actually increase its range by  reducing the amount of turbulence caused behind the projectile as it travels. Mass also becomes important, as a more massive projectile will have more kinetic energy, and will thus be less affected by air resistance. The distribution of mass within the projectile can also be important, as an unevenly weighted projectile may spin undesirably, causing irregularities in its trajectory due to the magnus effect. If a projectile is given rotation along its axes of travel, irregularities in the projectile's shape and weight distribution tend to be cancelled out. See rifling for a greater explanation. Firearm barrels. For projectiles that  are launched by firearms and artillery, the nature of the gun's barrel is also important. Longer barrels allow more of the propellant's energy to be given to the projectile, yielding greater range. Rifling, while it may not increase the average (arithmetic mean) range of many shots from the same gun, will increase the accuracy and precision of the gun. Very large ranges. Some cannons or howitzers have been created with a very large range. During World War I the Germans created an exceptionally large cannon, the Paris Gun, which could fire a shell more than 80 miles (130  km). North Korea has developed a gun known in the West as Koksan, with a range of 60 km using rocket-assisted projectiles. (And see Trajectory of a projectile.) Such cannons are distinguished from rockets, or ballistic missiles, which have their own rocket engines, which continue to accelerate the missile for a period after they have been launched.