For maximum projectile range from an elevated launch, let be horizontal projectile range from the tower and the launch angle above horizontal. The projectile motion trajectory isPut . For a fixed , its largest possible occurs at ; the envelope is . The furthest attainable ground point satisfies , soThe optimum angle is less than for and approaches as . The result is the maximum horizontal distance, using uniform gravity and no drag.
Use coordinates down the inclined plane and along its upward normal, with the launch point as origin. Gravity has components and . For launch angle above the downhill direction,The nonzero root of is . Substituting into and combining the two trigonometric terms gives the distance along the slope:This assumes , , and a downhill landing with , as well as the neglected air resistance. It reduces to the horizontal projectile range at . The angle relative to the horizontal is , which explains the shifted cosine. The original diagram uses stipulated illustrative angles; no examination figure is being reconstructed.
Take the launch point as and ignore air drag. In projectile motion with constant gravitational acceleration , a launch at angle above the horizontal givesAt the wall , the height isThis is a concave quadratic polynomial in , so its unique maximum satisfies . HenceFor , the best trajectory has and reaches the wall at launch height. For , the mathematical maximum height is negative. If the ball must stay above level ground, it lands before reaching the wall: is the maximum same-level projectile range. If there is no intervening ground and the wall extends below the launch height, the same optimum still applies, but its impact point is below that height.
For a launch angle , the projectile motion equations give a flight time , a projectile range , and an apex height . Thus the ceiling requires .
Set . Then , which increases up to . The optimum is therefore , giving the projectile range under a ceilingThe printed expression is valid in the first regime. A higher ceiling leaves the usual launch admissible, so it cannot reduce the maximum range. The angle in the ceiling-limited regime is . Equality at the roof is allowed in this ideal geometrical model; if touching the roof is forbidden, the same value is a supremum approached from below.
Projectile range under a ceiling 2026-10-25
A projectile launched from and returning to the floor beneath a horizontal ceiling of height has maximum projectile range when . For higher ceilings the maximum is . This assumes uniform gravitational acceleration, no air resistance and fixed launch speed .
Indeed, with , the apex condition is and . This concave quadratic function is maximized at the admissible value nearest . Thus the lower-ceiling expression must not be extrapolated past its regime. If touching the ceiling is excluded, the limiting value is a supremum instead of an attained maximum.

