Trajectory
A trajectory is an imagined trace of positions followed by an object moving through space. Some common examples of trajectories: (i) the path taken by a falling body, and (ii) the orbit of a spacecraft. A particular trajectory may be described mathematically either by the geometry of the entire trajectory (i.e. the set of all positions taken by the object), or as the position of the object as function of time.
A familiar example is a projectile launched under the influence of only a uniform gravitational force field. A rock thrown on the practically airless surface of the Moon is a good approximation. In this case, the trajectory takes the shape of a parabola, provided the rock is not thrown too far. More generally, the precise trajectory of a projectile requires taking into account nonuniform gravitational forces and other forces such as drag and wind. This is the focus of the discipline of ballistics. A projectile, such as a baseball, when thrown through the air, is influenced by both gravity and aerodynamics.
More generally, trajectory refers to the ordered set of intermediate states assumed by a dynamical system as a result of time evolution.
The word trajectory is also often used metaphorically, for instance, to describe an individual's career.
Contents
Physics of trajectories
One of the remarkable achievements of Newtonian mechanics was the derivation of the laws of Kepler, in the case of the gravitational field of a single point mass (representing the Sun). The trajectory is a conic section, like an ellipse or a parabola. This agrees with the observed orbits of planets and comets, to a reasonably good approximation. Although if a comet passes close to the Sun, then it is also influenced by other forces, such as the solar wind and radiation pressure, which modify the orbit, and cause the comet to eject material into space.
Newton's theory later developed into the branch of theoretical physics known as classical mechanics. It employs the mathematics of differential calculus (which was, in fact, also initiated by Newton, in his youth). Over the centuries, countless scientists contributed to the development of these two disciplines. Classical mechanics became a most prominent demonstration of the power of rational thought, i.e. reason, in science as well as technology. It helps to understand and predict an enormous range of phenomena. Trajectories are but one example.
Consider a particle of mass , moving in a potential field . Physically speaking, mass represents inertia, and the field represents external forces, of a particular kind known as "conservative". That is, given at every relevant position, there is a way to infer the associated force that would act at that position, say from gravity. Not all forces can be expressed in this way, however.
The motion of the particle is described by the secondorder differential equation
 with
On the righthand side, the force is given in terms of , the gradient of the potential, taken at positions along the trajectory. This is the mathematical form of Newton's second law of motion: mass times acceleration equals force, for such situations.
Example: Uniform gravity, no drag or wind
The case of uniform gravity, disregarding drag and wind, yields a trajectory which is a parabola. To model this, one chooses , where (gee) is the socalled acceleration of gravity. This gives the equations of motion
Simplifications are made for the sake of studying the basics. The actual situation, at least on the surface of Earth, is considerably more complicated than this example would suggest, when it comes to computing actual trajectories. By deliberately introducing such simplifications, into the study of the given situation, one does, in fact, approach the problem in a way that has proved exceedingly useful in physics.
The present example is one of those originally investigated by Galileo Galilei. To neglect the action of the atmosphere, in shaping a trajectory, would (at best) have been considered a futile hypothesis by practical minded investigators, all through the Middle Ages in Europe. Nevertheless, by anticipating the existence of the vacuum, later to be demonstrated on Earth by his collaborator Evangelista Torricelli, Galileo was able to initiate the future science of mechanics. And in a near vacuum, as it turns out for instance on the Moon, his simplified parabolic trajectory proves essentially correct.
Relative to a flat terrain, let the initial horizontal speed be , and the initial vertical speed be . It will be shown that, the range is , and the maximum altitude is . The maximum range, for a given total initial speed , is obtained when , i.e. the initial angle is 45 degrees. This range is , and the maximum altitude at the maximum range is a quarter of that.
Derivation
The equations of motion may be used to calculate the characteristics of the trajectory.
Let:
 be the time into the flight of the projectile
 be the horizontal displacement at time t
 be the vertical displacement at time t
 be the horizontal velocity (which is constant)
 be the initial vertical velocity upwards
 be the initial speed
 be the vertical velocity at time t
Along the horizontal dimension, is a constant and thus by the equations of motion,
 (Equation 1)
The vertical distance, or altitude follows the equations of motion for constant negative acceleration :
 (Equation 2)
 (Equation 3: velocity equation which is the derivative of equation 2)
The range of the projectile occurs when is zero again and intercepts the ground. This occurs when in equation 2 is zero:
Solving this for time gives the time of the projectile's flight:
 (Equation 4: "hang time" of projectile)
The maximum range occurs when equation 4 is substituted into equation 1:
 (Equation 5: range of projectile)
The maximum altitude for a given trajectory occurs when the vertical velocity is zero. Thus set equation 3 to zero:
Solving for
This can be substituted into equation 2 to give the maximum altitude:
 (Equation 6: maximum altitude of projectile)
Thus, not surprisingly, for a given initial speed the attained altitude is highest if the initial velocity was straight up. This altitude is twice the attained altitude when the range is maximized.
Derivation in polar coordinates
In terms of angle of elevation and initial speed :
Substituting into Equation 1 gives:
 (Equation 1a)
Substituting into Equation 2 gives:
 (Equation 2a)
Taking the derivative gives the vertical velocity:
 (Equation 3a: vertical velocity)
Hang time calculated above in equation 4 may be expressed in terms of angle of elevation:
 (Equation 4a)
Equation 4a may be substituted into Equation 1a to get the horizontal distance or range:
Now using the trigonometric identity for :
 (Equation 5a: range of projectile)
This may be solved for angle to give the "angle" equation to hit a target at range :
 (Equation 7: angle of projectile launch)
Note that the sine function is such that there are two solutions for for a given range . Physically, this corresponds to a direct shot versus a mortar shot up and over obstacles to the target.
The maximum altitude for a given range may be determined by setting the vertical velocity to zero in equation 3a and solving for :
 (rearrange and solve for )
Now substitute into the vertical height equation 2a:
 (Equation 6a: max altitude for a given launch angle)
Maximum range
Given the above range and altitude equations, the maximum range and altitude may be determined. Both equations for the range, equations 5 and 5a may be used to determine the maximum range by setting their derivatives to zero. For equation 5, range of the projectile is a function of and such that where v is the total initial velocity and is constant. Thus, the range may be expressed as a function of by solving for :
 (Equation 8)
And substituting into equation 5:
The maximum may be determined by calculating the derivative and setting it to zero. The derivative is calculated as follows:

 (application of product rule)
 (application of chain rule)
 (derivative of square root)
 (simplify second term)
Set to zero and solve for :
 (Equation 9)
Thus maximum range occurs when is and this can be substituted back into equation 8:
Thus the maximum range occurs when .
The actual maximum range may now be calculated by substituting and equation 9 into equation 5:
Maximum range in polar coordinates
The same conclusion may be drawn by starting with equation 5a.

 (application of chain rule)
Set to zero and solve for :
Now cosine is zero at :
 (also directly clear from equation 5a, it gives the maximum possible sine value of 1)
 radians
Thus the maximum range occurs when the angle is 45 degrees.
The actual maximum range may now be calculated by substituting 45 degrees into equation 5a:
Maximum altitude at maximum range
Equations 6 and 6a may be used to calculate the maximum altitude at the maximum range. Equation 9 may be substituted into equation 6:
Likewise 45 degrees may be substituted into equation 6a:
As a parabola
Equations 1 and 2 are parametric equations that describe a parabola. They may be rearranged into the more familiar quadratic form by solving equation 1 for and substituting into equation 2:
 (rearrange equation 1 for )
Substituting this into equation 2:
This is now in the form
where
 .
This is the form of a parabola and thus the trajectory is a parabola.
Likewise equations 1a and 2a can be rearranged into quadratic form. Equation 1a may be rearranged to:
And this may be substituted into equation 2a:
Now , so:
 (Equation 10)
This is again now in the form where , , , and demonstrating that this is a parabola.
The quadratic formula gives the location of the intersection of the parabola and the xaxis. This is where the projectile trajectory starts and ends and thus may be used directly to calculate the range. In terms of rectilinear coordinate systems:
This is the same result as equation 5 above.
In polar coordinates and using the trigonometric identity , the intersections are:
This is the same result as in equation 5a above.
Similarly, the vertex of the parabola is the maximum altitude for a given range.
Uphill/downhill in uniform gravity in a vacuum
Given a hill angle and launch angle as before, it can be shown that the range along the hill forms a ratio with the original range along the imaginary horizontal, such that:
 (Equation 11)
In this equation, downhill occurs when is between 0 and 90 degrees. For this range of we know: and . Thus for this range of , . Thus is a positive value meaning the range downhill is always further than along level terrain. This makes perfect sense as it is expected that gravity will assist the projectile, giving it greater range.
While the same equation applies to projectiles fired uphill, the interpretation is more complex as sometimes the uphill range may be shorter or longer than the equivalent range along level terrain. Equation 11 may be set to (i.e. the slant range is equal to the level terrain range) and solving for the "critical angle" :
Equation 11 may also be used to develop the "rifleman's rule" for small values of and (i.e. close to horizontal firing, which is the case for many firearm situations). For small values, both and have a small value and thus when multiplied together (as in equation 11), the result is almost zero. Thus equation 11 may be approximated as:
And solving for level terrain range,
 "Rifleman's rule"
Thus if the shooter attempts to hit the level distance R, s/he will actually hit the slant target. "In other words, pretend that the inclined target is at a horizontal distance equal to the slant range distance multiplied by the cosine of the inclination angle, and aim as if the target were really at that horizontal position."[1]
Derivation based on equations of a parabola
The intersect of the projectile trajectory with a hill may most easily be derived using the trajectory in parabolic form in Cartesian coordinates (Equation 10) intersecting the hill of slope in standard linear form at coordinates :
 (Equation 12) where in this case, , and
Substituting the value of into Equation 10:
 (Solving above x)
This value of x may be substituted back into the linear equation 12 to get the corresponding y coordinate at the intercept:
Now the slant range is the distance of the intercept from the origin, which is just the hypoteneuse of x and y:
Now is defined as the angle of the hill, so by definition of tangent, . This can be substituted into the equation for :
Now this can be refactored and the trigonometric identity for may be used:
Now the flat range by the previously used trigonometric identity and so:
See also
de:Trajektorie_(Physik) pt:Trajetória et:Trajektoor it:Traiettoria pl:Trajektoria