Sub topic 3
The trajectory equation y = x tanθ − gx²/(2u²cos²θ)
This chapter assumes you know vector resolution, the constant-acceleration equations, basic trigonometry (including 1/cos²θ = 1 + tan²θ), and how to solve a quadratic. It also assumes you have met level-ground projectile motion, so T, H and R should look familiar.
Eliminating time
A projectile launched from the origin with speed u at angle θ above the horizontal has two independent motions:
- Horizontal: x = u cosθ · t
- Vertical: y = u sinθ · t − ½gt²
The trajectory equation is the relation between y and x with t removed. From the horizontal equation, t = x/(u cosθ). Substituting into the vertical equation gives
y = x tanθ − gx² / (2u²cos²θ)
This is a parabola. It is valid for any point on the path, so it works from launch until landing.
Reading the equation
The equation can be rewritten using 1/cos²θ = 1 + tan²θ:
y = x tanθ − (gx²/2u²)(1 + tan²θ)
In this form the equation is a quadratic in tanθ. A point (x, y) is reachable with speed u only if this quadratic has a real root. That fact gives the envelope of safety, the outer boundary of all reachable points. It is a parabola, y = u²/(2g) − gx²/(2u²), and any target outside it cannot be hit with speed u.
The range follows by setting y = 0 and x ≠ 0:
x tanθ = gx²/(2u²cos²θ), so x = 2u² sinθ cosθ / g = u² sin2θ/g.
There is also a useful range form. Since R = u² sin2θ/g, the equation becomes
y = x tanθ (1 − x/R)
This form is fast in JEE problems. The height at any x needs only tanθ and R, and the parabola is clearly symmetric about x = R/2.
Worked example
A ball is thrown at 20 m/s at 45° with g = 10 m/s². Find its height when x = 10 m.
- R = u² sin2θ/g = 400 × 1/10 = 40 m.
- y = x tanθ (1 − x/R) = 10 × 1 × (1 − 10/40) = 7.5 m.
Check with the full equation: y = 10 − 10×100/(2×400×0.5) = 10 − 2.5 = 7.5 m. Both methods agree.
Checking the equation in code
The script below computes y from the trajectory equation and from the time-based equations, then compares them.
import math
g = 10.0
u = 20.0
theta = math.radians(45)
x = 10.0
y_traj = x * math.tan(theta) - g * x**2 / (2 * u**2 * math.cos(theta) ** 2)
t = x / (u * math.cos(theta))
y_time = u * math.sin(theta) * t - 0.5 * g * t**2
print(y_traj, y_time)Both values print as 7.5, up to floating-point rounding.
Common errors
- Using the equation for a launch that does not start at the origin. If the launch point is (0, h), add h to the right-hand side.
- Writing cosθ instead of cos²θ in the denominator.
- Substituting θ in degrees into a calculator set to radians.
- Taking y = 0 and dividing by x without noting that x = 0 is also a root (the launch point).
- Using the form y = x tanθ (1 − x/R) when R is the range for a different level. The factor (1 − x/R) assumes y = 0 at x = R.
Exercise
A projectile is launched from the origin at angle θ with tanθ = 1/2 and lands at x = 80 m on level ground. Find its height at x = 20 m.
Show answer
Use y = x tanθ (1 − x/R) with R = 80 m. Then y = 20 × 0.5 × (1 − 20/80) = 10 × 0.75 = 7.5 m.
Exercise
Starting from y = x tanθ − (gx²/2u²)(1 + tan²θ), show that the maximum horizontal reach at height y = 0 for fixed u occurs at θ = 45°.
Show answer
Set y = 0 and divide by x: tanθ = (gx/2u²)(1 + tan²θ). Rearranged, gx tan²θ... more directly, x = 2u² tanθ / (g(1 + tan²θ)) = u² sin2θ/g, since 2tanθ/(1 + tan²θ) = sin2θ. This is largest when sin2θ = 1, so θ = 45° and R_max = u²/g.