Skip to content
Tutorials Center
My learning

Topics

Lesson 39 of 39 ยท Projects and Practice

Project: A Falling Object with Air Resistance

Model a falling object with air resistance using a differential equation, find terminal velocity, solve exactly and simulate with Euler's method.

In school physics, a dropped ball falls with constant acceleration g โ‰ˆ 9.81 m/sยฒ. Real objects feel air resistance, which grows with speed, so the acceleration gets smaller and smaller until the object reaches a steady terminal velocity. In this project you will model that behavior with a differential equation, solve it with the methods you have learned, and check the solution with a simulation.

The model is a simplification: it assumes air resistance is proportional to speed (the linear drag model). That works for slow motion in a thick medium or for small light objects. Fast, large objects in air feel drag that grows closer to the square of the speed.

Step 1: the equation

Take downward as positive. Gravity pulls with force mg and drag pushes up with force kv, where v is the speed (m/s) and k is a drag constant (kg/s). Newton's second law, m dv/dt = mg - kv, gives

Text
dv/dt = g - (k/m) v

Suppose the object starts at rest: v(0) = 0. We will use m = 1 kg, k = 0.25 kg/s and g = 9.81 m/sยฒ (invented but reasonable numbers for a light, fluffy object).

Step 2: terminal velocity

The speed stops changing when dv/dt = 0, so g = (k/m) v, giving

Text
v_terminal = m g / k = 9.81 / 0.25 = 39.24 m/s

This is an equilibrium solution of the differential equation. All other solutions approach it.

Step 3: solve the equation

The equation is separable. Let c = k/m (units 1/s) and v_t = g/c. Then dv/dt = c (v_t - v). Separate: dv/(v_t - v) = c dt. Integrate: -ln(abs(v_t - v)) = ct + C. With v(0) = 0:

Text
v(t) = v_t (1 - e^(-ct))

The time constant is 1/c = m/k = 4 s: after about this time the speed has reached 1 - e^(-1) โ‰ˆ 63% of the terminal speed.

The distance fallen is the integral of velocity:

Text
s(t) = โˆซ from 0 to t of v(u) du = v_t [ t - (1 - e^(-ct))/c ]
Python Exact solution with sympy

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Step 4: simulate with Euler's method

Now ignore the formula and just step the differential equation forward in time. At each step, update the speed using the slope and the position using the speed.

Python Euler simulation versus exact

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Step 5: compare with no drag

Without drag, the speed would be v = gt and distance s = ยฝgtยฒ. Over 10 s the no-drag speed would be 98.1 m/s, much higher than the โ‰ˆ 36 m/s the drag model gives. The final TryIt plots the two cases and the distance fallen.

Python Drag versus no drag

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Your tasks

  1. Use the exact formula to find how long the object takes to reach 90% of terminal velocity. (Solve 1 - e^(-ct) = 0.9; the answer is ln(10)/c.)
  2. Change k to 1.0 kg/s and m to 2 kg. How does the terminal velocity change? What is the new time constant?
  3. Re-run the Euler simulation with h = 1, h = 0.1 and h = 0.01, and record the speed at t = 10. Which is closest to the exact value? How does the error depend on h?
  4. Challenge: add a starting speed v(0) = 60 m/s (an object thrown downward very fast). What happens to the speed? (It decreases toward the terminal speed, because drag is larger than gravity.)
  5. Write a short explanation of why a skydiver stops accelerating even though gravity never switches off.

You used almost every idea in this course: derivatives as rates, integrals as accumulation, separable differential equations, and numerical methods. This is how calculus is used to model the real world.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. In dv/dt = g - (k/m)v, when does the speed stop changing?

    dv/dt = 0 gives g = (k/m)v, so v = mg/k, the terminal velocity.
  2. 2. The solution with v(0) = 0 is

    Separating variables and using v(0) = 0 gives v = v_t(1 - e^(-ct)) with c = k/m.
  3. 3. Compared with the free-fall formula v = gt, the speed with drag is

    Drag opposes motion, so the speed with drag is smaller at every t > 0.
  4. 4. In the Euler simulation, which update gives the new position?

    Position changes at a rate equal to the speed, so each step adds speed times the step size.

Summary

  • Linear drag gives dv/dt = g - (k/m)v with terminal velocity mg/k.
  • The exact solution is v(t) = v_t(1 - e^(-kt/m)); integrating it gives the distance fallen.
  • Euler's method simulates the same equation step by step, and its error shrinks with the step size.
  • Modeling combines derivatives, integrals and differential equations.

Back to the track: Calculus for Beginners