Projectile With and Without Air Resistance

April 12, 2026

Problem

Compare projectile paths with and without air resistance for a ball thrown at 20 m/s at 45°

Explanation

Real projectiles don't follow perfect parabolas — air pushes back. With linear drag (a simplified but instructive model where drag is proportional to velocity), the equations of motion become:

v˙x=kvxv˙y=gkvy\dot{v}_x = -k\,v_x \qquad \dot{v}_y = -g - k\,v_y

where kk is the drag coefficient (per unit mass, units of s1\text{s}^{-1}). Compare this to the vacuum case (k=0k = 0) where v˙x=0\dot{v}_x = 0 — horizontal velocity stays constant. With drag, the horizontal velocity decays exponentially, which dramatically shortens the range.

The Physics

The system of ODEs has a clean closed-form solution. With initial velocity (v0x,v0y)(v_{0x}, v_{0y}):

vx(t)=v0xektvy(t)=gk+(v0y+gk)ektv_x(t) = v_{0x}\,e^{-kt} \qquad v_y(t) = -\dfrac{g}{k} + \left(v_{0y} + \dfrac{g}{k}\right) e^{-kt}

x(t)=v0xk(1ekt)x(t) = \dfrac{v_{0x}}{k}\bigl(1 - e^{-kt}\bigr)

y(t)=gkt+1k(v0y+gk)(1ekt)y(t) = -\dfrac{g}{k}\,t + \dfrac{1}{k}\left(v_{0y} + \dfrac{g}{k}\right)\bigl(1 - e^{-kt}\bigr)

As tt \to \infty, vyg/kv_y \to -g/k — that's the terminal velocity. The visualization integrates the ODEs numerically using RK4 to get an exact pink curve regardless of the chosen kk.

Step-by-Step Solution

Given:

  • Initial speed: v0=20  m/sv_0 = 20\;\text{m/s}
  • Launch angle: θ=45°\theta = 45°
  • Drag coefficient: k=0.10  s1k = 0.10\;\text{s}^{-1}
  • Gravity: g=9.81  m/s2g = 9.81\;\text{m/s}^{2}

Find: Compare the range and trajectory with drag vs. the vacuum case.


Step 1 — Compute the vacuum case (baseline).

v0x=v0y=20sin45°14.142  m/sv_{0x} = v_{0y} = 20\sin 45° \approx 14.142\;\text{m/s}

Tvac=2v0yg=28.2849.812.884  sT_{\text{vac}} = \dfrac{2 v_{0y}}{g} = \dfrac{28.284}{9.81} \approx 2.884\;\text{s}

Rvac=v02g=4009.8140.77  mR_{\text{vac}} = \dfrac{v_0^{2}}{g} = \dfrac{400}{9.81} \approx 40.77\;\text{m}

Hvac=v0y22g=20019.6210.19  mH_{\text{vac}} = \dfrac{v_{0y}^{2}}{2g} = \dfrac{200}{19.62} \approx 10.19\;\text{m}

These are our reference numbers.

Step 2 — Compute the terminal velocity with drag.

vterminal=gk=9.810.10=98.1  m/sv_{\text{terminal}} = \dfrac{g}{k} = \dfrac{9.81}{0.10} = 98.1\;\text{m/s}

That's the steady downward speed the ball would reach if it had infinite time to fall.

Step 3 — Write the position equations with drag.

Substituting v0x=v0y=14.142v_{0x} = v_{0y} = 14.142, g/k=98.1g/k = 98.1, and v0y+g/k=112.242v_{0y} + g/k = 112.242:

x(t)=14.1420.10(1e0.1t)=141.42(1e0.1t)x(t) = \dfrac{14.142}{0.10}\bigl(1 - e^{-0.1t}\bigr) = 141.42\bigl(1 - e^{-0.1t}\bigr)

y(t)=98.1t+1122.42(1e0.1t)y(t) = -98.1\,t + 1122.42\bigl(1 - e^{-0.1t}\bigr)

Step 4 — Find the landing time numerically (when y=0y = 0).

The equation 98.1t+1122.42(1e0.1t)=0-98.1\,t + 1122.42\bigl(1 - e^{-0.1t}\bigr) = 0 is transcendental — no closed-form root. We solve it by iteration (this is exactly what the visualization does internally with RK4):

| tt | e0.1te^{-0.1t} | y(t)y(t) | |---|---|---| | 2.7 s | 0.7634 | 264.87+265.56+0.69-264.87 + 265.56 \approx +0.69 m | | 2.8 s | 0.7558 | 274.68+274.090.59-274.68 + 274.09 \approx -0.59 m |

Linear interpolation between these brackets:

tland2.7+0.1×0.690.69+0.592.754  st_{\text{land}} \approx 2.7 + 0.1 \times \dfrac{0.69}{0.69 + 0.59} \approx 2.754\;\text{s}

Step 5 — Compute the horizontal range with drag.

x(2.754)=141.42(1e0.2754)x(2.754) = 141.42\bigl(1 - e^{-0.2754}\bigr)

e0.27540.7593e^{-0.2754} \approx 0.7593

x(2.754)=141.42×(10.7593)=141.42×0.240734.04  mx(2.754) = 141.42 \times (1 - 0.7593) = 141.42 \times 0.2407 \approx 34.04\;\text{m}

Step 6 — Compute the loss.

Range lost=RvacRdrag=40.7734.046.73  m\text{Range lost} = R_{\text{vac}} - R_{\text{drag}} = 40.77 - 34.04 \approx 6.73\;\text{m}

Percent loss=6.7340.77×100%16.5%\text{Percent loss} = \dfrac{6.73}{40.77} \times 100\% \approx 16.5\%


Answer: With k=0.10  s1k = 0.10\;\text{s}^{-1} of linear drag, the ball lands at 34.04  m\approx 34.04\;\text{m} instead of the vacuum distance of 40.77  m\approx 40.77\;\text{m} — a loss of about 6.73 m, or roughly 16.5% of the vacuum range. The trajectory is also no longer symmetric: the descent is steeper than the ascent because horizontal velocity has bled away. The terminal velocity for this drag coefficient is g/k=98.1  m/sg/k = 98.1\;\text{m/s}.

What Drag Does (Visually)

  1. The path is no longer symmetric. Descent is steeper than ascent.
  2. Range is reduced — by 16% in this example, much more for higher drag.
  3. Maximum height drops slightly — vertical drag opposes upward motion all the way to the apex.
  4. The trajectory loses its parabolic perfection — it's a transcendental curve, not a polynomial.

Try It

  • Crank the drag coefficient from 0 toward 0.5 — see the cyan (vacuum) and pink (with-drag) trajectories diverge dramatically.
  • For real baseballs, k0.05k \approx 0.050.10  s10.10\;\text{s}^{-1}. Wiffle balls and ping-pong balls have much higher kk and behave very differently from a baseball.
  • The HUD shows the range lost in real time. At k=0.5k = 0.5, the projectile loses over half its range to air resistance.

Interactive Visualization

Parameters

20.00
45.00
0.10
9.81
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Projectile With and Without Air Resistance | MathSpin