Sub topic 3
The trajectory equation y = x tanθ − gx²/(2u²cos²θ)
This chapter assumes you can resolve vectors into components and use the constant-acceleration equations. It also assumes you know the level-ground results for T, H and R, and can solve quadratics and use basic trigonometric identities.
Why an equation of the path
Time of flight, height and range describe a projectile at special instants. The trajectory equation describes the whole path as a relation between x and y with time removed. It answers questions such as "does the ball clear a wall at distance x?" and "at what angles can I hit a point (x, y)?". Both are common JEE questions, and the incline problems in later chapters reduce to it.
Deriving it
Launch a particle from the origin with speed u at angle θ above the horizontal. Take x horizontal and y vertically upward. The horizontal acceleration is zero and the vertical acceleration is −g:
- x = u cosθ · t
- y = u sinθ · t − ½ g t²
Solve the first equation for t = x/(u cosθ) and substitute into the second:
y = u sinθ · x/(u cosθ) − ½ g x²/(u² cos²θ)
This simplifies to the trajectory equation:
y = x tanθ − g x² / (2u² cos²θ)
The equation is quadratic in x with a negative leading coefficient, so the path is a downward-opening parabola through the origin.
Equivalent forms
Different problems call for different forms. Each one follows from the same equation.
| Form | Expression | Best used when |
|---|---|---|
| Standard | y = x tanθ − gx²/(2u²cos²θ) | θ and u are known |
| Range form | y = x tanθ (1 − x/R) | R is known, or you want the zeros at x = 0 and x = R |
| Tangent form | y = x tanθ − (gx²/2u²)(1 + tan²θ) | θ is unknown and you want a quadratic in tanθ |
To get the range form, note that R = 2u² sinθ cosθ / g. Then gx²/(2u²cos²θ) = x tanθ · x/R, so factoring x tanθ gives the second row. The tangent form uses 1/cos²θ = 1 + tan²θ.
Checking the standard results
The range form shows the familiar results immediately.
- Range. y = 0 gives x = 0 or x = R. The second root is the range.
- Maximum height. By symmetry the vertex is at x = R/2. Then y = (R/2) tanθ · (1/2) = R tanθ / 4. Substituting R = 2u² sinθ cosθ / g gives H = u² sin²θ / (2g).
Finding the angle to hit a point
Suppose the target is at (x, y) and u is fixed. Write T = tanθ and a = gx²/(2u²). The tangent form becomes
y = xT − a(1 + T²)
and rearranging gives a quadratic in T:
a T² − x T + (y + a) = 0
Its discriminant is x² − 4a(y + a). Two cases follow.
- Positive discriminant. There are two values of T, so two launch angles reach the point. One is a flatter, faster path and the other a higher, lobbed path.
- Negative discriminant. No angle works at this speed.
The target on level ground
For y = 0 the product of the two roots is (y + a)/a = 1. So tanθ₁ · tanθ₂ = 1, which means θ₁ + θ₂ = 90°. This is the familiar result that angles θ and 90° − θ give the same range.
The reachable region
The discriminant condition x² ≥ 4a(y + a) can be rearranged into
y ≤ u²/(2g) − g x²/(2u²)
This is another parabola, called the envelope or safety parabola. Every point on or below it can be hit with some angle at speed u. Every point above it is out of reach. Its peak is u²/(2g), the height of a vertical throw. Its x-intercepts are ±u²/g, the maximum level-ground range.
Worked example
A ball is thrown at u = 20 m/s with g = 10 m/s². The target is at x = 20 m horizontally and y = 5 m above the launch point. Find the launch angles.
Compute a = gx²/(2u²) = 10 × 400 / 800 = 5. The quadratic is
5T² − 20T + 10 = 0, which is T² − 4T + 2 = 0
The roots are T = 2 ± √2, so tanθ = 3.414 or 0.586. The angles are about 73.7° and 30.4°.
First check that the point is reachable. The envelope at x = 20 gives y_max = 400/20 − 10 × 400/800 = 15 m, and 5 m is below that, so both angles exist.
The code below solves the quadratic and then checks each angle by substituting back into the standard form.
import math
g = 10.0
def height_at(x, u, theta_deg):
"""Height of the path at horizontal distance x (standard form)."""
th = math.radians(theta_deg)
return x * math.tan(th) - g * x**2 / (2 * u**2 * math.cos(th) ** 2)
def launch_angles(u, x, y):
"""Angles (degrees) that hit the point (x, y), or None if unreachable."""
a = g * x**2 / (2 * u**2)
disc = x**2 - 4 * a * (y + a)
if disc < 0:
return None
root = math.sqrt(disc)
return tuple(math.degrees(math.atan((x + s * root) / (2 * a))) for s in (1, -1))
u, x, y = 20.0, 20.0, 5.0
angles = launch_angles(u, x, y)
print([round(t, 2) for t in angles])
print([round(height_at(x, u, t), 6) for t in angles])The first line prints about [73.67, 30.36]. The second prints [5.0, 5.0], which confirms that both angles pass through the target.
Clearing a wall
For a wall of height h at distance d, evaluate the standard form at x = d. The ball clears the wall if y(d) > h. When θ is unknown, use the quadratic above with (x, y) = (d, h) and read the allowed range of tanθ from the roots. Since the quadratic opens upward in T, the ball clears the wall for tanθ between the two roots. It does not clear for values outside them.
A link to inclines
Axes stay horizontal and vertical here, so an incline rising at angle α from the origin is the straight line y = x tanα. To find where the projectile lands, set the trajectory equal to the line:
x tanθ − gx²/(2u²cos²θ) = x tanα
Dividing by x and solving gives x = 2u² cos²θ (tanθ − tanα)/g. Use the identity cos²θ (tanθ − tanα) = cosθ sin(θ − α)/cosα to get
x = 2u² cosθ sin(θ − α) / (g cosα)
The distance along the incline is x/cosα, so
R = 2u² cosθ sin(θ − α) / (g cos²α)
This is the incline range formula derived in a later chapter with tilted axes. The trajectory equation gives the same result with no change of axes, which is a useful cross-check.
Common errors
- Dropping cos²θ. The denominator is 2u²cos²θ, not 2u². The squared cosine is easy to lose when copying the formula.
- Wrong sign of y. If the target is below the launch point, y is negative. Using +5 instead of −5 changes the answer.
- Using the formula after launch from a height. The equation as written assumes launch from the origin. For launch from height h, the path is y = h + x tanθ − gx²/(2u²cos²θ), measured from the ground.
- Treating one root as the answer. Both angles from the quadratic are valid unless the problem excludes one, for example by a ceiling or a requirement to land while descending.
- Mixing degrees and radians. Check your calculator or code mode before evaluating tanθ.
Summary of results
- Path: y = x tanθ − gx²/(2u²cos²θ), a parabola.
- Range form: y = x tanθ (1 − x/R).
- Tangent form: y = x tanθ − (gx²/2u²)(1 + tan²θ), quadratic in tanθ.
- Reachable points satisfy y ≤ u²/(2g) − gx²/(2u²).
- For level targets, the two angles satisfy θ₁ + θ₂ = 90°.
Exercise
A projectile is launched from the ground with u = 20 m/s at θ = 45°, g = 10 m/s². A vertical wall of height 8 m stands 10 m away. Does the projectile clear the wall? Use the trajectory equation.
Show answer
Use y = x tanθ − gx²/(2u²cos²θ). With x = 10, tan45° = 1, cos²45° = 0.5: y = 10 − 10 × 100/(2 × 400 × 0.5) = 10 − 1000/400 = 10 − 2.5 = 7.5 m. Since 7.5 m is less than 8 m, the projectile hits the wall and does not clear it.
Exercise
With u = 20 m/s and g = 10 m/s², show that a target on level ground at x = 30 m can be hit, and find the two angles. Which pair of angles is the answer, and what does tanθ₁ · tanθ₂ equal?
Show answer
For y = 0, a = gx²/(2u²) = 10 × 900/800 = 11.25. The quadratic is 11.25T² − 30T + 11.25 = 0, so T² − (8/3)T + 1 = 0. The discriminant is 64/9 − 4 = 28/9 > 0, so the point is reachable. T = (8/3 ± √28/3)/2 = (4 ± √7)/3, which gives tanθ ≈ 2.215 or 0.4514, and θ ≈ 65.7° or 24.3°. These add to 90° and the product of the tangents is 1. Check with the maximum range u²/g = 40 m, which is more than 30 m.