Trajectory
From Academic Kids

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 <math>m<math>, moving in a potential field <math>V<math>. Physically speaking, mass represents inertia, and the field <math>V<math> represents external forces, of a particular kind known as "conservative". That is, given <math>V<math> 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
 <math> m \frac{d^2 \vec{x}(t)}{dt^2} = \nabla V(\vec{x}(t)) <math> with <math>\vec{x} = (x, y, z)<math>
On the righthand side, the force is given in terms of <math>\nabla V<math>, 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 <math>V = m g z<math>, where <math>g<math> (gee) is the socalled acceleration of gravity. This gives the equations of motion
 <math> \frac{d^2 x}{dt^2} = \frac{d^2 y}{dt^2} = 0<math>
 <math> \frac{d^2 z}{dt^2} =  g<math>
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 <math>v_h<math>, and the initial vertical speed be <math>v_v<math>. It will be shown that, the range is <math>2v_h v_v/g<math>, and the maximum altitude is <math>{v_v^2}/2g<math>. The maximum range, for a given total initial speed <math>v<math>, is obtained when <math>v_h=v_v<math>, i.e. the initial angle is 45 degrees. This range is <math>v^2/g<math>, 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:
 <math>t \;<math> be the time into the flight of the projectile
 <math>d_h(t) \;<math> be the horizonal displacement at time t
 <math>d_v(t) = z \;<math> be the vertical displacement at time t
 <math>v_h \;<math> be the horizonal velocity (which is constant)
 <math>v_v \;<math> be the initial vertical velocity upwards
 <math>v \;<math> be the initial speed
 <math>v_v(t) \;<math> be the vertical velocity at time t
Along the horizontal dimension, <math>v_h<math> is a constant and thus by the equations of motion,
 <math>d_h(t)=v_h t \;<math> (Equation 1)
The vertical distance, or altitude follows the equations of motion for constant negative acceleration <math>g<math>:
 <math>d_v=v_vt {{gt^2} \over 2}<math> (Equation 2)
 <math>v_v = \frac{d}{dt} d_v(t) = v_vgt<math> (Equation 3: velocity equation which is the derivative of equation 2)
The range of the projectile occurs when <math>d_v(t)<math> is zero again and intercepts the ground. This occurs when <math>d_v<math> in equation 2 is zero:
 <math>0=v_vt {{gt^2} \over 2 }<math>
Solving this for time <math>t<math> gives the time of the projectile's flight:
 <math>t={2v_v \over g }<math> (Equation 4: "hang time" of projectile)
The maximum range occurs when equation 4 is substituted into equation 1:
 <math>d_h(t) = { v_h t } = { v_h ({2 v_v \over g})} = { {2 v_h v_v} \over g } <math> (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:
 <math>0=v_vgt \;<math>
Solving for <math>t<math>
 <math>t= { {v_v} \over g } <math>
This can be substituted into equation 2 to give the maximum altitude:
 <math>d_v(max)=v_v ( {v_v \over g})  \frac 1 2 g( { v_v \over g } )^2 = {{v_v}^2 \over 2g } <math> (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.
Derviation in polar coordinates
In terms of angle of elevation <math>\theta<math> and initial speed <math>v<math>:
 <math>v = \sqrt{ {v_h}^2 + {v_v}^2 } <math>
 <math>v_h=v \cos \theta \;<math>
 <math>v_v=v \sin \theta \;<math>
Substituting into Equation 1 gives:
 <math>d_h=v_h t = vt \cos \theta \;<math> (Equation 1a)
Substituting into Equation 2 gives:
 <math>d_v=v_vt {{gt^2} \over 2} = ( v \sin \theta ) t  { { g t^2 } \over 2 } <math> (Equation 2a)
Taking the derivative gives the vertical velocity:
 <math>v_v=\frac{d}{dt} d_v = \frac{d}{dt} (v \sin \theta) t  {{g t^2} \over 2} = v \sin \theta gt <math> (Equation 3a: vertical velocity)
Hang time calculated above in equation 4 may be expressed in terms of angle of elevation:
 <math>t={2v_v \over g} = {{2 v \sin \theta } \over g }<math> (Equation 4a)
Equation 4a may be substituted into Equation 1a to get the horizontal distance or range:
 <math>d_h=v_h t = { vt \cos \theta } =v ({{2 v \sin \theta} \over g}) \cos \theta = { { 2 v^2 \sin \theta \cos \theta } \over g}<math>
Now using the trigonometric identity for <math>2 \sin \theta \cos \theta = sin 2 \theta<math>:
 <math>d_h={{ v^2 \sin 2 \theta } \over g}<math> (Equation 5a: range of projectile)
This may be solved for angle <math>\theta<math> to give the "angle" equation to hit a target at range <math>d_h<math>:
 <math> { \theta } = \frac 1 2 \sin^{1} ( { {g d_h} \over { v^2 } } ) <math> (Equation 7: angle of projectile launch)
Note that the sine function is such that there are two solutions for <math>\theta<math> for a given range <math>d_h<math>. 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 <math>t<math>:
 <math>0= v \sin \theta gt \;<math>
 <math>t= \frac{v \sin \theta}{g} <math> (rearrange and solve for <math>t<math>)
Now substitute into the vertical height equation 2a:
 <math>d_v = (v \sin \theta) t  \frac{g t^2}{2} = (v \sin \theta)(\frac {v \sin \theta}{g})  \frac {g (\frac{v \sin \theta}{g})^2}{2} = \frac{v^2 {\sin}^2 \theta}{g}  \frac{v^2 {\sin}^2 \theta}{2g} = \frac{v^2 {\sin}^2 \theta}{2g}<math> (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 <math>v_h<math> and <math>v_v<math> such that <math>v_v^2+v_h^2=v^2<math> where v is the total initial velocity and is constant. Thus, the range may be expressed as a function of <math>v_v<math> by solving for <math>v_h<math>:
 <math>v_h=\sqrt{v^2v_v^2}<math> (Equation 8)
And substituting <math>v_h<math> into equation 5:
 <math>d_h={ {2 v_h v_v} \over g } = { {2v_v \sqrt{v^2v_v^2} } \over g} <math>
The maximum <math>d_h<math> may be determined by calculating the derivative and setting it to zero. The derivative is calculated as follows:
 <math>\frac{d}{dv_v} d_h={1 \over g} \frac{d}{dv_v} {2v_v \sqrt{v^2v_v^2} } <math>
 <math>={1 \over g} (2 \sqrt{v^2{v_v}^2} +2v_v \frac{d}{dv_v} \sqrt{v^2v_v^2} <math> (application of product rule)
 <math>={1 \over g} (2 \sqrt{v^2{v_v}^2} +2v_v \frac{d \sqrt{v^2v_v^2} }{d{v_v}^2} \frac{d{v_v}^2}{dv_v}) <math> (application of chain rule)
 <math>={1 \over g} (2 \sqrt{v^2{v_v}^2} +2v_v (\frac{1} {2 \sqrt{v^2{v_v}^2}}) 2v_v) <math> (derivative of square root)
 <math>={1 \over g} (2 \sqrt{v^2{v_v}^2}  \frac{2{v_v}^2}{\sqrt{v^2{v_v}^2}}) <math> (simplify second term)
Set to zero and solve for <math>v<math>:
 <math>0={1 \over g} (2 \sqrt{v^2{v_v}^2}  \frac{2{v_v}^2}{\sqrt{v^2{v_v}^2}}) <math>
 <math>\sqrt{v^2{v_v}^2}=\frac {{v_v}^2}{\sqrt{v^2{v_v}^2}}<math>
 <math>v^2{v_v}^2=v_v^2<math>
 <math>v^2=2v_v^2<math> (Equation 9)
Thus maximum range occurs when <math>v^2<math> is <math>2v_v^2<math> and this can be substituted back into equation 8:
 <math>v_h=\sqrt{v^2v_v^2}=\sqrt{v^2v_v^2}=\sqrt{2v_v^2v_v^2}=v_v<math>
Thus the maximum range occurs when <math>v_h=v_v<math>.
The actual maximum range may now be calculated by substituting <math>v_h=v_v<math> and equation 9 into equation 5:
 <math>d_h = { {2 v_h v_v} \over g } = { {2 v_v v_v} \over g } = { {2 v_v^2} \over g } = {v^2 \over g} <math>
Maximum range in polar coordinates
The same conclusion may be drawn by starting with equation 5a.
 <math>\frac{d}{d\theta} d_h = \frac{d}{d\theta} {{ v^2 \sin 2 \theta } \over g} <math>
 <math>= \frac{v^2}{g} \frac{d}{d2\theta} \sin 2 \theta \frac{d2\theta}{d\theta} <math> (application of chain rule)
 <math>= \frac{v^2}{g} (\cos 2 \theta) 2 \quad <math>
Set to zero and solve for <math>\theta<math>:
 <math>0= \frac{v^2}{g} (\cos 2 \theta) 2 <math>
 <math>0=\cos 2 \theta \quad <math>
Now cosine is zero at <math>\pi \over 2<math>:
 <math>2 \theta=\frac \pi 2<math> (also directly clear from equation 5a, it gives the maximum possible sine value of 1)
 <math>{\theta}_{\max} = \frac \pi 4 <math> 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:
 <math>d_h={{ v^2 \sin 2 \theta } \over g}={{v^2 \sin 2 ( \frac{\pi}{4} ) } \over g} = {v^2 \over g}<math>
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:
 <math>d_v=\frac{v_v^2}{2g}=\frac{(\frac{v^2}{2})}{2g}=\frac{v^2}{4g}<math>
Likewise 45 degrees may be substituted into equation 6a:
 <math>d_v=\frac{v^2 {\sin}^2 \theta}{2g}=\frac{v^2(\frac{1}{\sqrt 2})^2}{2g}=\frac{v^2}{4g} <math>
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 <math>t<math> and substituting into equation 2:
 <math>t=\frac{d_h}{v_h}<math> (rearrange equation 1 for <math>t<math>)
Substituting this into equation 2:
 <math>d_v=v_vt \frac{gt^2}{2}=v_v(\frac{d_h}{v_h})\frac{g(\frac{d_h}{v_h})^2}{2}=\frac{g}{2{v_h}^2}(d_h)^2 + \frac{v_v}{v_h}(d_h)<math>
This is now in the form
 <math>y=ax^2+bx+c \quad <math>
where
 <math>y=d_v, x=d_h, a=g/{2{v_h}^2}, b=v_v/v_h, c=0<math>.
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:
 <math>t=\frac{d_h}{v \cos \theta}<math>
And this may be substituted into equation 2a:
 <math>d_v=vt \sin \theta  \frac{gt^2}{2}=v \sin \theta \frac{d_h}{v \cos \theta}  \frac{g {(\frac{d_h}{v \cos \theta})}^2}{2} <math>
Now <math>\tan \theta=\sin \theta / \cos \theta<math>, so:
 <math>d_v=\frac{g}{2v^2{\cos}^2 \theta}d_h^2 + d_h \tan \theta <math> (Equation 10)
This is again now in the form <math>y=ax^2+bx+c<math> where <math>y=d_v<math>, <math>x=d_h<math>, <math>a=g/{2v^2{\cos}^2 \theta}<math>, <math>b=\sin \theta / \cos \theta<math> and <math>c=0<math> 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 rectinlinear coordinate systems:
 <math>
d_h=\frac{b \pm \sqrt {b^24ac\ }}{2a}=\frac{(v_v/v_h) \pm \sqrt{(v_v/v_h)^2  0} }{2(g/2v_h^2)} = \frac{v_v/v_h \pm v_v/v_h}{g/v_h^2}=0, \frac{2{v_v}{v_h}}{g} <math>
This is the same result as equation 5 above.
In polar coordinates and using the trigonometric identity <math> 2 \sin \theta \cos \theta = \sin 2 \theta<math>, the intersections are:
 <math>
d_h=\frac{b \pm \sqrt {b^24ac\ }}{2a}=\frac{(\sin \theta / \cos \theta) \pm \sqrt{(\sin \theta / \cos \theta)^2  0 }}{2(g/2v^2 \cos^2 \theta)} =0, \frac{2 \sin \theta / \cos \theta}{g/v^2 \cos^2 \theta} = 0, \frac{2 v^2 \sin \theta \cos \theta}{g} = 0, \frac{v^2 \sin 2 \theta}{g} <math>
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 <math>\alpha<math> and launch angle <math>\theta<math> as before, it can be shown that the range along the hill <math>R_s<math> forms a ratio with the original range <math>R<math> along the imaginary horizontal, such that:
 <math>\frac{R_s} {R}=(1\tan \theta \tan \alpha)\sec \alpha <math> (Equation 11)
In this equation, downhill occurs when <math>\alpha<math> is between 0 and 90 degrees. For this range of <math>\alpha<math> we know: <math>\tan(\alpha)=\tan \alpha<math> and <math>\sec (  \alpha ) = \sec \alpha<math>. Thus for this range of <math>\alpha<math>, <math>R_s/R=(1+\tan \theta \tan \alpha)\sec \alpha <math>. Thus <math>R_s/R<math> 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 <math>R_s/R=1<math> (i.e. the slant range is equal to the level terrain range) and solving for the "critical angle" <math>\theta_{cr}<math>:
 <math>1=(1\tan \theta \tan \alpha)\sec \alpha \quad \; <math>
 <math>\theta_{cr}=\arctan((1\csc \alpha)\cot \alpha) \quad \; <math>
Equation 11 may also be used to develop the "rifleman's rule" for small values of <math>\alpha<math> and <math>\theta<math> (i.e. close to horizontal firing, which is the case for many firearm situations). For small values, both <math>\tan \alpha<math> and <math>\tan \theta<math> 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:
 <math>\frac{R_s} {R}=(10)\sec \alpha <math>
And solving for level terrain range, <math>R<math>
 <math>R=R_s \cos \alpha \ <math> "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] (http://www.snipertools.com/article4.htm)
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 <math>m<math> in standard linear form at coordinates <math>(x,y)<math>:
 <math>y=mx+b \;<math> (Equation 12) where in this case, <math>y=d_v<math>, <math>x=d_h<math> and <math>b=0<math>
Substituting the value of <math>d_v=m d_h<math> into Equation 10:
 <math>m x=\frac{g}{2v^2{\cos}^2 \theta}x^2 + \frac{\sin \theta}{\cos \theta} x<math>
 <math>x=\frac{2v^2\cos^2\theta}{g}(\frac{\sin \theta}{\cos \theta}m)<math> (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:
 <math>y=mx=m \frac{2v^2\cos^2\theta}{g} (\frac{\sin \theta}{\cos \theta}m)<math>
Now the slant range <math>R_s<math> is the distance of the intercept from the origin, which is just the hypoteneuse of x and y:
 <math>R_s=\sqrt{x^2+y^2}=\sqrt{(\frac{2v^2\cos^2\theta}{g}(\frac{\sin \theta}{\cos \theta}m))^2+(m \frac{2v^2\cos^2\theta}{g} (\frac{\sin \theta}{\cos \theta}m))^2}<math>
 <math>=\frac{2v^2\cos^2\theta}{g} \sqrt{(\frac{\sin \theta}{\cos \theta}m)^2+m^2(\frac{\sin \theta}{\cos \theta}m)^2}<math>
 <math>=\frac{2v^2\cos^2\theta}{g} (\frac{\sin \theta}{\cos \theta}m) \sqrt{1+m^2}<math>
Now <math>\alpha<math> is defined as the angle of the hill, so by definition of tangent, <math>m=\tan \alpha<math>. This can be substituted into the equation for <math>R_s<math>:
 <math>R_s=\frac{2v^2\cos^2\theta}{g} (\frac{\sin \theta}{\cos \theta}\tan \alpha) \sqrt{1+\tan^2 \alpha}<math>
Now this can be refactored and the trigonometric identity for <math>\sec \alpha = \sqrt {1 + \tan^2 \alpha}<math> may be used:
 <math>R_s=\frac{2v^2\cos\theta\sin\theta}{g}(1\frac{\sin\theta}{\cos\theta}\tan\alpha)\sec\alpha<math>
Now the flat range <math>R=v^2\cos 2 \theta / g = 2v^2\cos\theta\sin\theta<math> by the previously used trigonometric identity and <math>\sin\theta/\cos\theta=tan \theta<math> so:
 <math>R_s=R(1\tan\theta\tan\alpha)\sec\alpha \;<math>
 <math>\frac{R_s}{R}=(1\tan\theta\tan\alpha)\sec\alpha<math>