Projectile motion with wind

A ball is thrown across flat ground, and a steady wind pushes it sideways while it flies. Nine formulas say where it lands, in the order the physics works it out. At the top is the up-and-down motion, which alone decides how long the ball stays up. Below it is the motion along the ground: the forward speed and the wind, which only need to know that time. Where the two meet, the ball lands. Drag a number, in the text or in a formula, and every formula it feeds shows its value instead of its symbol.

Thrown at 20 m/s, at 45° above the ground.

It lands away: downrange and to the side, after in the air.

The two charts show the same throw from the side and from above. From the side, the dashed line is the peak height H. From above, the ball goes X downrange and Z to the side, and the open circle is where it would land without wind, after the same time in the air.

Up and down, then along the ground

Gravity pulls straight down and the wind pushes straight sideways, so the two motions don't mix. The vertical one is a throw at v_y against g: up, and back down after t, peaking at H. Nothing horizontal feeds into it. In the diagram, no arrow comes up from the row of v_x, a_x and a_z.

The horizontal motion only borrows t. Along the ground, the ball keeps its forward speed v_x, and the wind adds ½ a_x t² downrange and ½ a_z t² to the side. The wind is an acceleration a_w toward the direction φ: 0° is a tailwind, 180° a headwind and 90° a push to the left.

Without wind, the throw that goes farthest downrange is at 45°. With wind, it isn't. A higher throw stays up longer, which gives a tailwind more time to push. Right now the farthest throw downrange is at , from setting the slope of X against θ to zero.

This is a simplification. Real wind acts through drag, on the ball's speed relative to the air, and that has no closed form for the time of flight. Drag also slows the ball in still air, so a real throw falls short of all of these numbers.

How it's built

One <t-formula-dag> holds the nine formulas. Each formula has a value, which makes it a variable, so the <t-out>s and both <t-obsplot> charts read t, X, Z and H straight from the diagram. v and theta are <t-num>s in the first sentence, and the diagram's params declare the other three numbers. A short script works out the charts' limits from the throw and glides them to new ones, so the whole throw stays in view.

The rows come from row. On its own, a formula that uses nothing sits in the top row, so v_x, a_x and a_z would sit beside v_y. row: 2 on all three moves the horizontal motion below the vertical one, and X, Z and D follow, because they use them. See Rows.