Sub topic 12
Launching from a cliff or a raised platform
Earlier chapters solved launches that start and end at the same height. Real launches rarely do. A ball leaves a cliff edge, a stone is thrown from a bridge, or a ball is kicked up onto a roof. This chapter extends the level-ground results to any launch height by solving a quadratic in time. It assumes you can solve a quadratic equation, resolve a velocity into components, and write the ideal-model equations for x(t) and y(t). Air resistance is ignored throughout.
Why level-ground formulas stop working
The level-ground formula T = 2·v_y/g rests on a symmetry: the projectile spends as long falling from the peak as it spent rising to it. That holds only when the landing level equals the launch level. If the landing point is lower, the fall is longer than the rise. If the landing point is higher, the fall is shorter. The formulas for time of flight and range from the level-ground case would give wrong answers.
The equations of motion do not change. Only the condition that ends the flight changes.
Setting up the coordinates
Place the origin of y at the landing level, so the ground you land on is y = 0. The launch point is then at height h₀:
- h₀ > 0 means you launch from above the landing level (a cliff).
- h₀ < 0 means you launch from below it (the target is a raised platform).
- h₀ = 0 is the level-ground case.
With upward positive, the ideal-model equations are:
- x(t) = v₀ cos θ · t
- y(t) = h₀ + v₀ sin θ · t − ½ g t²
- vₓ = v₀ cos θ (constant)
- v_y(t) = v₀ sin θ − g t
Choosing the origin at the landing level lets you set y = 0 at impact, with no extra offset to track.
Solving for the time of flight
Landing happens when y(t) = 0. Write v_y0 = v₀ sin θ for the initial vertical speed:
h₀ + v_y0·t − ½ g t² = 0
Rearranged into standard form, ½ g t² − v_y0·t − h₀ = 0, the quadratic formula gives:
t = [vy0 ± √(vy0² + 2 g h₀)] / g
The two roots mean different things:
| Root | Sign choice | Meaning |
|---|---|---|
| Larger | + | The landing time you want |
| Smaller | − | A time before launch (h₀ > 0) or the first crossing of the platform level on the way up (h₀ < 0) |
For a cliff (h₀ > 0), the square root is larger than vy0, so the minus root is negative. Negative time lies before the launch, so you discard it. Check the level-ground case: with h₀ = 0 the plus root is 2·vy0/g, which matches the formula you already know.
Once you have t, the horizontal distance follows from the constant horizontal velocity: x = v₀ cos θ · t.
Worked example: a launch from a cliff
A ball is thrown at 15 m/s, 40° above horizontal, from the top of a 10 m cliff. Find the time of flight and the horizontal distance to the landing point.
- Components: vₓ = 15 cos 40° ≈ 11.49 m/s and v_y0 = 15 sin 40° ≈ 9.64 m/s.
- Discriminant: v_y0² + 2 g h₀ = 92.96 + 2(9.81)(10) = 289.16, whose square root is about 17.00.
- Time: t = (9.64 + 17.00) / 9.81 ≈ 2.72 s.
- Distance: x = 11.49 × 2.72 ≈ 31.21 m.
The same calculation in code, extended to return the impact speed:
import math
def landing(v0, angle_deg, h0, g=9.81):
"""Time of flight, horizontal distance, and impact speed for a launch
from height h0 above the landing level (h0 < 0 means the landing level
is higher than the launch point)."""
theta = math.radians(angle_deg)
vx = v0 * math.cos(theta)
vy = v0 * math.sin(theta)
disc = vy**2 + 2 * g * h0
if disc < 0:
raise ValueError("The projectile never reaches the landing level.")
t = (vy + math.sqrt(disc)) / g # larger root
vy_end = vy - g * t # vertical velocity at impact
speed = math.hypot(vx, vy_end)
return t, vx * t, speed
t, x, speed = landing(15.0, 40.0, 10.0)
print(f"cliff: T = {t:.2f} s, x = {x:.2f} m, speed = {speed:.2f} m/s")
t, x, speed = landing(15.0, 40.0, -3.0)
print(f"platform: T = {t:.2f} s, x = {x:.2f} m, speed = {speed:.2f} m/s")Running it prints:
cliff: T = 2.72 s, x = 31.21 m, speed = 20.52 m/s
platform: T = 1.58 s, x = 18.10 m, speed = 12.89 m/sThe second call is the same throw landing on a platform 3 m above the launch point.
The horizontal launch as a special case
If the projectile is launched horizontally (θ = 0), then v_y0 = 0 and the quadratic simplifies:
t = √(2 h₀ / g)
This is the time an object takes to fall from rest through h₀. The initial horizontal speed has no effect on it. A ball rolled off a table and a ball dropped from the table edge hit the floor at the same moment.
For example, a ball rolls off a 45 m cliff at 12 m/s:
- t = √(2·45 / 9.81) ≈ 3.03 s
- x = 12 × 3.03 ≈ 36.35 m
Launching onto a raised platform
When h₀ < 0 the quadratic can have two positive roots. Take the 15 m/s, 40° throw with the platform 3 m above the launch point (h₀ = −3 m). The discriminant is 92.96 − 58.86 = 34.10, with square root about 5.84. The roots are:
- t = (9.64 − 5.84) / 9.81 ≈ 0.39 s
- t = (9.64 + 5.84) / 9.81 ≈ 1.58 s
At 0.39 s the ball passes the platform's height while still rising. At 1.58 s it comes back down to that height. If the platform edge is far enough away, the ball lands on top of it at the later time. The code takes the larger root for this reason. If the platform is closer than 0.39 s of horizontal travel, the ball goes over the top on its way up and lands farther out, so check the platform's extent before assuming the larger root.
If the discriminant is negative, as it would be for a 5 m platform with this throw, the ball peaks below the platform's height and never reaches it.
Impact speed and angle
Impact conditions follow from the same time. For the cliff example:
- v_y at impact = 9.64 − 9.81 × 2.72 ≈ −17.00 m/s, so the ball is moving downward.
- Speed = √(11.49² + 17.00²) ≈ 20.52 m/s.
- Angle below horizontal = arctan(17.00 / 11.49) ≈ 56°.
There is a shortcut for the speed. In the ideal model the impact speed depends only on v₀ and the height dropped:
v² = v₀² + 2 g h₀
Check: 15² + 2(9.81)(10) = 421.2, and √421.2 ≈ 20.52 m/s. This is the same answer, with no time calculation. The launch angle does not change the speed on impact, though it does change the direction. The shortcut also comes from energy conservation, which is a useful check on your arithmetic.
Common errors
- Using T = 2 v_y0 / g for a cliff launch. The formula assumes level ground and underestimates the time.
- Sign of h₀. If you put the origin at the launch point instead, the landing level is at −h₀ and the quadratic becomes −h₀ = v_y0 t − ½ g t². The result is identical, but mixing the two conventions within one problem gives wrong answers.
- Keeping the wrong root. Always check that your time is positive and, for platforms, that it is the descending crossing.
- Forgetting that the optimal angle changes. On level ground 45° gives the longest range. From a cliff, the best angle is lower. For v₀ = 15 m/s and h₀ = 10 m, the best angle works out to about 36°, because a flatter throw spends less of its extra flight time climbing. A later chapter derives this result.
Summary of the method
- Put y = 0 at the landing level and write the launch height h₀ with its sign.
- Resolve the launch velocity into vₓ and v_y0.
- Solve h₀ + v_y0 t − ½ g t² = 0 and keep the larger root.
- Multiply by vₓ to get the horizontal distance.
- Use vy = vy0 − g t for the impact velocity, or v² = v₀² + 2 g h₀ for the speed alone.
Exercise
A stone is thrown horizontally at 20 m/s from the edge of an 80 m cliff. Find the time to reach the ground, the horizontal distance from the base of the cliff, and the impact speed. Use g = 9.81 m/s².
Show answer
With θ = 0, v_y0 = 0, so t = √(2·80 / 9.81) = √16.31 ≈ 4.04 s. The horizontal distance is x = 20 × 4.04 ≈ 80.8 m. For the speed, v² = v₀² + 2 g h₀ = 400 + 2(9.81)(80) = 1969.6, so v ≈ 44.4 m/s.
Exercise
In the platform example (v₀ = 15 m/s, θ = 40°, platform 3 m above the launch point), why does the code use the plus root, and what would the minus root represent if the platform were wide?
Show answer
The plus root is the later time, when the ball has risen past the platform height, peaked, and come back down to it. That is when it lands on the platform. The minus root, about 0.39 s, is when the ball first passes the platform height while still rising. On a wide platform the ball would be above the surface at that instant, so it is not a landing.