Differential Equations of Motion

4.5 Numerical Time Stepping and Euler-Type Methods

An Equation You Cannot Solve

A falling object encounters air resistance that grows with the square of its speed. The faster it goes, the harder the air pushes back. Newton's second law gives:

$$m\frac{dv}{dt} = mg - cv^2$$

This is a perfectly well-defined differential equation. It tells you the acceleration at every instant, given the current velocity. It is an initial-value problem of exactly the kind you studied in Section 4.2. And yet --- try to solve it by separation of variables. Try substitution. Try every technique from calculus class.

You will not find a closed-form solution in terms of elementary functions.

This is not a failure of technique. It is a fundamental fact: most differential equations that arise in physics cannot be solved with pencil and paper. The models from Section 4.3 --- constant acceleration, linear drag --- were the exceptions, not the rule. Real-world forces produce equations that resist every algebraic method you know.

But the equation still means something. At every instant, it tells you the acceleration. If you know the current velocity, you can compute the current acceleration. And if you know the acceleration, you can estimate the velocity a tiny moment later. Then you can repeat: compute the new acceleration from the new velocity, take another tiny step, and repeat again.

A computer can do this thousands of times per second. The result is not a formula --- it is a table of numbers, a list of positions and velocities at a sequence of times. But that table is the solution, built one small step at a time.

How, exactly, does this work?

Prediction

Before you read on: Suppose you use this step-by-step method to solve the simple free-fall problem $dv/dt = -g$, starting from rest, using a time step of $\Delta t = 0.1$ s. After one second (10 steps), will the numerical velocity be:

(a) Exactly equal to the true velocity $v = -gt = -10$ m/s

(b) Slightly too large in magnitude (more negative than $-10$ m/s)

(c) Slightly too small in magnitude (less negative than $-10$ m/s)

Commit to your answer. The answer will reveal something important about how the method works.

The Guiding Question

How can we build an approximate solution to a differential equation one small time step at a time?

You already know the answer in spirit. The derivative tells you the slope. The slope tells you where to go next. You just need to turn that idea into a recipe --- a systematic procedure that a person or a computer can follow without thinking.

Exploration: Building a Solution by Hand

Let's start with the simplest possible case: an object dropped from rest under constant gravitational acceleration. The differential equation is:

$$\frac{dv}{dt} = -g = -10 \text{ m/s}^2$$

You know the exact solution: $v(t) = -gt = -10t$ m/s. That is the whole point --- we will use a problem where we know the answer, so we can see exactly what the numerical method does and where it goes wrong.

Here is the idea. You stand at time $t = 0$ with velocity $v = 0$. The equation tells you the acceleration right now: $a = -10$ m/s$^2$. If the acceleration stayed at this value for a short time $\Delta t$, the velocity would change by $a \cdot \Delta t$. So you estimate:

$$v_{\text{new}} \approx v_{\text{old}} + a \cdot \Delta t$$

Then you move to the next moment, compute the acceleration there, and repeat.

For constant acceleration, the acceleration never changes, so this recipe should work perfectly. Let's see.

[Interactive: Euler Stepper. Students choose a differential equation from a menu ($dv/dt = -g$, $dv/dt = -bv$, $dv/dt = g - cv^2$) and a time step $\Delta t$ via a slider (0.5 s, 0.2 s, 0.1 s, 0.05 s, 0.01 s). The system builds the solution one step at a time: at each step, a small right triangle appears on the $v$-vs-$t$ graph, with horizontal leg $\Delta t$ ("run") and vertical leg $a_n \cdot \Delta t$ ("rise"). The numerical solution is drawn as a staircase of straight-line segments. When an exact solution exists, it is overlaid as a smooth curve. A readout shows the current values of $t$, $v$, $a$, and the error $v_{\text{numerical}} - v_{\text{exact}}$. Guided prompts: "Halve the time step. What happens to the error at $t = 1$ s? Halve it again. Do you see a pattern?"]

Spend a few minutes with the interactive. Start with $dv/dt = -g$ and a large time step like $\Delta t = 0.5$ s. Watch the triangles march across the graph. Then switch to $dv/dt = -bv$ and notice something new: the triangles get smaller as the velocity decays. The slope changes at every step because the acceleration depends on the current velocity.

Before you read on: When you used the interactive with $dv/dt = -bv$ and a time step of 0.2 s, did the numerical solution lie above or below the exact exponential decay curve? Why might that be?

Concept Reveal: Euler's Method

What you just did has a name. It is called Euler's method, after Leonhard Euler, who described it in 1768. The idea is strikingly simple:

Given a differential equation $\frac{dv}{dt} = a(v, t)$ and an initial condition $v(0) = v_0$, compute the solution at discrete times $t_0, t_1, t_2, \ldots$ separated by a fixed time step $\Delta t$:

$$v_{n+1} = v_n + a_n \cdot \Delta t$$

That is it. One line. The acceleration $a_n$ is evaluated at the current values of $v_n$ and $t_n$, and the result gives the velocity at the next time step.

If you also want position, you add a second update:

$$x_{n+1} = x_n + v_n \cdot \Delta t$$

Together, these two equations march the state of the system forward in time: compute the acceleration, update the velocity, update the position, advance the clock, repeat.

Why Does It Work?

The definition of the derivative says:

$$\frac{dv}{dt} = \lim_{\Delta t \to 0} \frac{v(t + \Delta t) - v(t)}{\Delta t}$$

If you rearrange this (dropping the limit, which is what introduces the approximation), you get:

$$v(t + \Delta t) \approx v(t) + \frac{dv}{dt} \cdot \Delta t$$

This is Euler's method. It is the definition of the derivative, run in reverse --- not as a way to find the slope, but as a way to use the slope to step forward. The differential equation provides $dv/dt$ at every point. Euler's method uses that information to build the solution one piece at a time.

The approximation improves as $\Delta t$ shrinks, because the dropped limit becomes more nearly valid. In the limiting case $\Delta t \to 0$, you recover the exact solution. But you would also need infinitely many steps, which is not practical. The art of numerical methods is choosing $\Delta t$ small enough for acceptable accuracy, but large enough to finish in a reasonable time.

The Algorithm as a Table

Formulas are compact, but they can obscure the rhythm of the computation. A table makes the step-by-step logic visible. Each row is one tick of the clock. Each column is one quantity. You fill in the table left to right, top to bottom, and the solution assembles itself.

Here is the template:

Step $n$ Time $t_n$ Velocity $v_n$ Acceleration $a_n$ Position $x_n$
0 $t_0$ $v_0$ (given) compute from DE $x_0$ (given)
1 $t_0 + \Delta t$ $v_0 + a_0 \Delta t$ compute from DE $x_0 + v_0 \Delta t$
2 $t_1 + \Delta t$ $v_1 + a_1 \Delta t$ compute from DE $x_1 + v_1 \Delta t$
... ... ... ... ...

The key discipline: at each step, the acceleration is computed from the current velocity (and possibly time), using the differential equation. You never look ahead. You never use future values. Everything flows forward from the present state.

Worked Example: Constant Acceleration ($dv/dt = -g$)

Let's fill in this table completely for the simplest case. An object is dropped from rest at height $x_0 = 0$ (measuring downward as positive is tempting, but let's keep the standard convention: $x$ points upward). The differential equation is:

$$\frac{dv}{dt} = -g = -10 \text{ m/s}^2$$

Initial conditions: $v_0 = 0$ m/s, $x_0 = 100$ m (dropped from 100 m above the ground).

Time step: $\Delta t = 0.2$ s.

Step 0. We start with the given initial conditions. The acceleration is $a_0 = -10$ m/s$^2$ (constant, from the DE).

Step 1. Update the velocity: $v_1 = v_0 + a_0 \Delta t = 0 + (-10)(0.2) = -2$ m/s. Update the position: $x_1 = x_0 + v_0 \Delta t = 100 + (0)(0.2) = 100$ m. Compute the new acceleration: $a_1 = -10$ m/s$^2$ (still constant).

Step 2. Update: $v_2 = v_1 + a_1 \Delta t = -2 + (-10)(0.2) = -4$ m/s. Position: $x_2 = x_1 + v_1 \Delta t = 100 + (-2)(0.2) = 99.6$ m. Acceleration: $a_2 = -10$ m/s$^2$.

Continuing this process for 5 steps:

$n$ $t_n$ (s) $v_n$ (m/s) $a_n$ (m/s$^2$) $x_n$ (m)
0 0.0 0.0 $-10$ 100.0
1 0.2 $-2.0$ $-10$ 100.0
2 0.4 $-4.0$ $-10$ 99.6
3 0.6 $-6.0$ $-10$ 98.8
4 0.8 $-8.0$ $-10$ 97.6
5 1.0 $-10.0$ $-10$ 96.0

Checking Against the Exact Solution

For constant acceleration, the exact solution is $v(t) = v_0 - gt$ and $x(t) = x_0 + v_0 t - \frac{1}{2}gt^2$.

At $t = 1.0$ s: - Exact velocity: $v = 0 - 10(1) = -10$ m/s. - Euler velocity: $-10$ m/s.

The velocities match exactly. This is because the acceleration is constant --- the Euler step uses a constant slope, and the true solution is a straight line in the $v$-vs-$t$ graph. A straight-line approximation to a straight line is exact.

But look at position: - Exact position: $x = 100 + 0 - \frac{1}{2}(10)(1)^2 = 95$ m. - Euler position: $96$ m.

The Euler position is too high by 1 m. The object has not fallen far enough in the numerical solution.

Why? Because the position update $x_{n+1} = x_n + v_n \Delta t$ uses the velocity at the beginning of each interval. But the object is accelerating --- its velocity at the end of the interval is more negative than at the beginning. By using the beginning-of-interval velocity, we underestimate how far the object falls during each step. The error accumulates over many steps.

Return to the Prediction

Now go back to your prediction. The velocity came out exactly right --- answer (a) --- because constant acceleration produces a linear velocity function, and Euler's method handles linear functions perfectly. But the position was too large (the object didn't fall far enough), which corresponds to an error that would appear in a position-based version of the prediction. If the prediction had asked about position, the answer would be (c): the displacement is too small in magnitude.

This is a general pattern. Euler's method uses the slope at the start of each step. When the slope is changing (as it does for position, whose "slope" is the velocity, which is changing), the method systematically falls behind.

Pause and check: Can you explain, in one sentence, why the Euler velocity is exact but the Euler position has error in the constant-acceleration example? If not, re-read the two paragraphs above before moving on.

Faded Example: Velocity-Dependent Acceleration ($dv/dt = -bv$)

Now let's try an equation where the acceleration is not constant. Consider an object experiencing linear drag:

$$\frac{dv}{dt} = -bv$$

with $b = 1$ s$^{-1}$, initial velocity $v_0 = 10$ m/s, and time step $\Delta t = 0.5$ s. We will track velocity only (no position for now) to keep the focus on how changing acceleration affects the method.

The exact solution is $v(t) = v_0 e^{-bt} = 10e^{-t}$ (from Section 4.3). We can check our numerical answer against it.

Step 0. Given: $t_0 = 0$, $v_0 = 10$ m/s. Acceleration: $a_0 = -bv_0 = -(1)(10) = -10$ m/s$^2$.

Step 1. $v_1 = v_0 + a_0 \Delta t = 10 + (-10)(0.5) = 5.0$ m/s. Time: $t_1 = 0.5$ s. Acceleration: $a_1 = -bv_1 = -(1)(5.0) = -5.0$ m/s$^2$.

Step 2. $v_2 = v_1 + a_1 \Delta t =$ ?

Fill in the remaining steps yourself.

$n$ $t_n$ (s) $v_n$ (m/s) $a_n$ (m/s$^2$) Exact $v(t_n)$ (m/s)
0 0.0 10.0 $-10.0$ 10.0
1 0.5 5.0 $-5.0$ 6.07
2 1.0 ? ? 3.68
3 1.5 ? ? 2.23
4 2.0 ? ? 1.35
Check your answer | $n$ | $t_n$ (s) | $v_n$ (m/s) | $a_n$ (m/s$^2$) | Exact $v(t_n)$ (m/s) | Error (m/s) | |:---:|:---:|:---:|:---:|:---:|:---:| | 0 | 0.0 | 10.0 | $-10.0$ | 10.0 | 0.0 | | 1 | 0.5 | 5.0 | $-5.0$ | 6.07 | $-1.07$ | | 2 | 1.0 | 2.5 | $-2.5$ | 3.68 | $-1.18$ | | 3 | 1.5 | 1.25 | $-1.25$ | 2.23 | $-0.98$ | | 4 | 2.0 | 0.625 | $-0.625$ | 1.35 | $-0.73$ | At each step: $v_{n+1} = v_n + a_n \Delta t = v_n + (-v_n)(0.5) = v_n(1 - 0.5) = 0.5\, v_n$. The numerical solution halves at every step, giving $v_n = 10 \times (0.5)^n$. The Euler solution decays too fast. At $t = 1.0$ s, the numerical velocity is 2.5 m/s while the exact value is 3.68 m/s --- an error of about 32%. Why does the method overshoot the decay? At the start of each interval, the velocity is at its highest value for that interval (because $v$ is decreasing). The acceleration $a = -bv$ is therefore at its most negative. Euler's method applies this most-negative acceleration for the entire step, dragging the velocity down more than it should. The true solution decelerates less aggressively because the velocity --- and hence the drag --- decreases throughout the interval.

What Happens with a Smaller Step?

Try the same problem with $\Delta t = 0.25$ s for four steps (reaching $t = 1.0$ s). Does the error at $t = 1.0$ s get better? By roughly how much?

Check your answer With $\Delta t = 0.25$ s, the multiplier each step is $v_{n+1} = v_n(1 - 0.25) = 0.75\, v_n$. After 4 steps ($t = 1.0$ s): $v_4 = 10 \times (0.75)^4 = 10 \times 0.3164 = 3.16$ m/s. The exact value is $10e^{-1} = 3.68$ m/s. The error is $3.16 - 3.68 = -0.52$ m/s. Compare: with $\Delta t = 0.5$ s, the error at $t = 1.0$ s was $2.5 - 3.68 = -1.18$ m/s. Halving the time step reduced the error from 1.18 to 0.52 --- roughly cut in half. This is the signature of Euler's method: halving the step size roughly halves the error. The error is proportional to $\Delta t$. Mathematicians call this **first-order accuracy**.

Why Euler's Method Has Error: A Geometric View

The source of error has a clean geometric interpretation. Consider the $v$-vs-$t$ graph for $dv/dt = -bv$. The exact solution is a decaying exponential --- a curve that bends upward (concave up). Euler's method replaces this curve with a sequence of straight-line segments, each tangent to the curve at the start of the interval.

When a curve is concave up (bending upward), the tangent line lies below the curve. So each straight-line segment underestimates where the curve goes next. The numerical solution falls below the true solution.

When a curve is concave down (bending downward), the tangent line lies above the curve, and the numerical solution overshoots.

This is why the direction of the error depends on the shape of the solution curve. For exponential decay ($v = v_0 e^{-bt}$), the curve bends upward, and Euler undershoots. For exponential growth ($v = v_0 e^{bt}$), the curve bends downward in the sense relevant to the approximation, and Euler's method would lag behind the rapidly growing true solution.

Pause and think: Sketch the $v$-vs-$t$ graph for exponential decay. Draw a tangent line at $t = 0$. Does the tangent line lie above or below the curve at $t = 0.5$? This single picture explains all of the error in the faded example above.

Connection: From Section 4.1 to Here

In Section 4.1, you learned that a differential equation is a motion-generating rule: given the current state, it tells you what happens next. Euler's method is the most literal way to follow that rule. It says: compute the current acceleration, pretend it holds for a short time, step forward, and repeat.

There is nothing clever about it. No algebraic tricks, no inspired substitutions, no insight required beyond "read off the slope, take a step." That simplicity is both its strength and its limitation. It always works --- you can apply it to any differential equation, whether or not a closed-form solution exists. But it requires small steps for accuracy, and it accumulates error with every step.

The analytical methods of Sections 4.2 and 4.3 give exact answers when they work. Euler's method gives approximate answers that can be made as accurate as you like by taking smaller steps. These are complementary tools, not competing ones. For the quadratic drag equation $m\frac{dv}{dt} = mg - cv^2$ that opened this section, Euler's method is not a backup plan --- it is the primary method of solution.

Independent Problem: Quadratic Drag ($dv/dt = g - cv^2/m$)

Now apply Euler's method to an equation that truly cannot be solved by elementary methods. An object falls from rest through a medium with quadratic drag:

$$\frac{dv}{dt} = g - \frac{c}{m}v^2$$

Let $g = 10$ m/s$^2$ and $c/m = 0.1$ m$^{-1}$. Use $\Delta t = 1$ s and initial velocity $v_0 = 0$ (measuring downward as positive here, so $v$ and $g$ are both positive).

Build the table for 5 steps. Describe what happens to the acceleration as the velocity increases.

$n$ $t_n$ (s) $v_n$ (m/s) $a_n = g - (c/m)v_n^2$ (m/s$^2$)
0 0 0 ?
1 1 ? ?
2 2 ? ?
3 3 ? ?
4 4 ? ?
5 5 ? ?
Check your answer | $n$ | $t_n$ (s) | $v_n$ (m/s) | $a_n$ (m/s$^2$) | |:---:|:---:|:---:|:---:| | 0 | 0 | 0.0 | $10 - 0.1(0)^2 = 10.0$ | | 1 | 1 | $0 + 10(1) = 10.0$ | $10 - 0.1(10)^2 = 0.0$ | | 2 | 2 | $10 + 0(1) = 10.0$ | $10 - 0.1(10)^2 = 0.0$ | | 3 | 3 | $10 + 0(1) = 10.0$ | $10 - 0.1(10)^2 = 0.0$ | | 4 | 4 | $10 + 0(1) = 10.0$ | $10 - 0.1(10)^2 = 0.0$ | | 5 | 5 | $10 + 0(1) = 10.0$ | $10 - 0.1(10)^2 = 0.0$ | Something striking happens: after just one step, the velocity reaches exactly 10 m/s, and the acceleration drops to zero. The numerical solution locks onto a constant velocity. This is the **terminal velocity** --- the speed at which the drag force exactly balances gravity. Setting $a = 0$: $$g - \frac{c}{m}v_{\text{term}}^2 = 0 \implies v_{\text{term}} = \sqrt{\frac{mg}{c}} = \sqrt{\frac{10}{0.1}} = 10 \text{ m/s}$$ With a finer time step, you would see a more gradual approach to terminal velocity --- the velocity would climb smoothly and asymptotically approach 10 m/s. With $\Delta t = 1$ s, the step is so large that the method jumps straight to the terminal value. This illustrates a general principle: **large time steps can miss the transient behavior** of the solution. The equilibrium is captured, but the journey to it is not. Try redoing this table with $\Delta t = 0.5$ s to see the gradual approach.

Multiple Representations

We have been working primarily with tables, but Euler's method can be understood through several lenses. Consider the linear drag problem $dv/dt = -v$ with $v_0 = 10$ m/s and $\Delta t = 0.5$ s.

As a table: each row gives the state of the system at one moment.

As a graph: the numerical solution is a staircase of straight-line segments on the $v$-vs-$t$ plot. Each segment has a slope equal to the acceleration at the start of that interval. The segments connect to form a piecewise-linear approximation to the smooth exponential curve.

As a formula: for this specific equation, $v_{n+1} = v_n - v_n \Delta t = v_n(1 - \Delta t)$. So $v_n = v_0(1 - \Delta t)^n$. With $\Delta t = 0.5$: $v_n = 10(0.5)^n$. This is a geometric sequence approximating the exponential $10e^{-t}$.

As physical interpretation: at each moment, the drag force is proportional to the current velocity. Euler's method says: hold that drag force constant for $\Delta t$ seconds, let it decelerate the object, then reassess. It is like a coach who checks in every $\Delta t$ seconds and adjusts the training plan based on the current state --- rather than continuously monitoring.

All four representations describe the same computational process. Fluency means being able to move between them.

Spaced Retrieval

Before moving to practice, test your recall of earlier material.

Recall prompt 1: In Section 4.1, you saw that a differential equation is a motion-generating rule. In your own words, what does that mean?

Recall prompt 2: What is the difference between a differential equation and an initial-value problem? (Section 4.2)

Recall prompt 3: In Section 4.4, you learned about linearization. How is linearization similar to what Euler's method does? (Hint: both replace a curve with a straight line.)

Practice Layers

Layer 1: Concrete --- Complete an Euler Method Table

Problem 1. An object is launched upward with initial velocity $v_0 = 20$ m/s from ground level ($x_0 = 0$). The only acceleration is gravity: $dv/dt = -10$ m/s$^2$. Use Euler's method with $\Delta t = 0.5$ s to fill in the table for 5 steps. Track both velocity and position.

$n$ $t_n$ (s) $v_n$ (m/s) $a_n$ (m/s$^2$) $x_n$ (m)
0 0.0 20.0 $-10$ 0.0
1 0.5 ? ? ?
2 1.0 ? ? ?
3 1.5 ? ? ?
4 2.0 ? ? ?
5 2.5 ? ? ?
Check your answer | $n$ | $t_n$ (s) | $v_n$ (m/s) | $a_n$ (m/s$^2$) | $x_n$ (m) | Exact $x(t_n)$ (m) | |:---:|:---:|:---:|:---:|:---:|:---:| | 0 | 0.0 | 20.0 | $-10$ | 0.0 | 0.0 | | 1 | 0.5 | 15.0 | $-10$ | 10.0 | 8.75 | | 2 | 1.0 | 10.0 | $-10$ | 17.5 | 15.0 | | 3 | 1.5 | 5.0 | $-10$ | 22.5 | 18.75 | | 4 | 2.0 | 0.0 | $-10$ | 25.0 | 20.0 | | 5 | 2.5 | $-5.0$ | $-10$ | 25.0 | 18.75 | The velocity column is exact (because $v(t)$ is linear for constant acceleration). The position column consistently overshoots because Euler's method uses the velocity at the *start* of each interval. On the way up, the starting velocity is larger than the average velocity during the interval, so the method overestimates the upward displacement. The error at $t = 2.0$ s is $25.0 - 20.0 = 5.0$ m. Notice that the Euler solution says the object reaches $x = 25$ m at $t = 2.0$ s, while the exact maximum height is $x = 20$ m at $t = 2.0$ s. The method gets the timing of the peak right (the velocity reaches zero at $t = 2.0$ s in both cases) but overshoots the height.

Layer 2: Pattern --- Compare Euler Results with Different Step Sizes

Problem 2. For the linear drag equation $dv/dt = -2v$ with $v_0 = 8$ m/s, compute the Euler velocity at $t = 1$ s using three different step sizes:

(a) $\Delta t = 0.5$ s (2 steps to reach $t = 1$)

(b) $\Delta t = 0.25$ s (4 steps to reach $t = 1$)

(c) $\Delta t = 0.1$ s (10 steps to reach $t = 1$)

The exact answer is $v(1) = 8e^{-2} \approx 1.08$ m/s. For each step size, compute the error and compare.

Check your answer For this equation, $v_{n+1} = v_n - 2v_n \Delta t = v_n(1 - 2\Delta t)$. After $N$ steps to reach $t = 1$: $v_N = 8(1 - 2\Delta t)^{1/\Delta t}$. **(a)** $\Delta t = 0.5$ s, $N = 2$: $v_2 = 8(1 - 1)^2 = 8(0)^2 = 0$ m/s. Error: $-1.08$ m/s. The velocity hits zero in just two steps. The time step is so large relative to the decay rate that the method annihilates the velocity completely. **(b)** $\Delta t = 0.25$ s, $N = 4$: $v_4 = 8(1 - 0.5)^4 = 8(0.5)^4 = 8(0.0625) = 0.5$ m/s. Error: $-0.58$ m/s. **(c)** $\Delta t = 0.1$ s, $N = 10$: $v_{10} = 8(1 - 0.2)^{10} = 8(0.8)^{10} = 8(0.1074) = 0.859$ m/s. Error: $-0.22$ m/s. | $\Delta t$ (s) | Euler $v(1)$ (m/s) | Exact (m/s) | Error (m/s) | |:---:|:---:|:---:|:---:| | 0.5 | 0.0 | 1.08 | $-1.08$ | | 0.25 | 0.5 | 1.08 | $-0.58$ | | 0.1 | 0.86 | 1.08 | $-0.22$ | Each time the step size decreases, the error decreases roughly proportionally. Going from $\Delta t = 0.5$ to $0.25$ (halving) cuts the error roughly in half. Going from $0.25$ to $0.1$ (reducing by a factor of 2.5) reduces the error by about a factor of 2.6. This is the first-order convergence of Euler's method: error $\propto \Delta t$. Note the extreme case: $\Delta t = 0.5$ s gives $v = 0$, which is wildly wrong. When the step size is too large relative to the timescale of the problem (here $1/b = 0.5$ s), Euler's method can give qualitatively wrong results. The step size must be small compared to the fastest timescale in the problem.

Layer 3: Structure --- Why Does Euler Lag Behind Exponential Growth?

Problem 3. Consider the equation $dv/dt = kv$ with $k > 0$ and $v_0 > 0$. The exact solution is exponential growth: $v(t) = v_0 e^{kt}$.

(a) Explain, using the geometric tangent-line argument, why Euler's method always underestimates the true velocity for this equation.

(b) Does the error get better or worse as time goes on? Why?

Check your answer **(a)** The exact solution $v = v_0 e^{kt}$ is an exponential growth curve. This curve is **concave up**: it bends upward, curving away from any tangent line. Euler's method follows the tangent line at the start of each interval. Because the curve bends upward and away from the tangent, the tangent-line step always lands *below* the true curve. After that underestimate becomes the starting point for the next step, the new tangent is also below the true tangent, and the method falls further behind. **(b)** The error gets *worse* as time goes on, and it does so exponentially. Each step underestimates by a fraction proportional to $\Delta t$, and these underestimates compound. The true solution is growing exponentially, and the numerical solution --- while also growing --- grows at a slower exponential rate. The gap between them widens at every step. For long-time simulations of exponentially growing systems, Euler's method can become dramatically inaccurate. This is why exponential growth problems are the hardest test cases for numerical methods. The method needs very small steps to keep the error manageable over long times.

Layer 4: Creation --- Build a Numerical Solution

Problem 4. Consider a velocity-dependent acceleration that has no elementary closed-form solution. For example:

$$\frac{dv}{dt} = 10 - 0.5v - 0.02v^2$$

with $v_0 = 0$ and $\Delta t = 0.5$ s.

(a) Build an Euler method table for 10 steps (reaching $t = 5$ s).

(b) Describe the qualitative behavior: Does the velocity approach a limiting value? If so, estimate it from your table.

(c) Find the terminal velocity analytically by setting $dv/dt = 0$ and solving the quadratic. Compare with your numerical estimate.

Check your answer **(a)** At each step, compute $a_n = 10 - 0.5v_n - 0.02v_n^2$, then $v_{n+1} = v_n + a_n(0.5)$. | $n$ | $t_n$ (s) | $v_n$ (m/s) | $a_n$ (m/s$^2$) | |:---:|:---:|:---:|:---:| | 0 | 0.0 | 0.00 | 10.00 | | 1 | 0.5 | 5.00 | 7.00 | | 2 | 1.0 | 8.50 | 4.305 | | 3 | 1.5 | 10.65 | 2.408 | | 4 | 2.0 | 11.85 | 1.314 | | 5 | 2.5 | 12.51 | 0.622 | | 6 | 3.0 | 12.82 | 0.302 | | 7 | 3.5 | 12.97 | 0.148 | | 8 | 4.0 | 13.04 | 0.098 | | 9 | 4.5 | 13.09 | 0.073 | | 10 | 5.0 | 13.13 | --- | (Values are rounded to two or three significant figures. Your numbers may differ slightly depending on rounding.) **(b)** The velocity rises quickly at first, then the acceleration decreases and the velocity levels off. By $t = 5$ s, the velocity appears to be approaching approximately 13.1--13.2 m/s. The acceleration has dropped below 0.1 m/s$^2$ and is still decreasing. The motion is approaching a terminal velocity. **(c)** Setting $dv/dt = 0$: $$10 - 0.5v - 0.02v^2 = 0$$ Multiply by $-50$: $v^2 + 25v - 500 = 0$. Using the quadratic formula: $$v = \frac{-25 + \sqrt{625 + 2000}}{2} = \frac{-25 + \sqrt{2625}}{2} = \frac{-25 + 51.23}{2} \approx 13.12 \text{ m/s}$$ (We take the positive root since $v > 0$.) The numerical estimate of approximately 13.1 m/s is consistent with this. The Euler method successfully captured both the transient rise and the approach to equilibrium --- for an equation that has no simple closed-form solution for $v(t)$.

Reflection

Why is numerical solving not just a "backup" for when you can't do algebra --- but a fundamental tool in its own right?

Consider what you have seen in this section. The quadratic drag equation, the combined linear-and-quadratic drag equation --- these are not exotic, artificial problems. They are the equations that arise naturally when you model real physical situations. The equations that can be solved analytically are the special cases. Numerical methods are not a last resort; they are the default tool for the vast majority of problems in physics and engineering.

Moreover, a numerical solution is not a lesser kind of answer. A table of velocities at discrete times tells you everything a formula does: how fast the object moves at each moment, when it reaches terminal velocity, how long the transient lasts. You can plot it, interpolate it, and extract physical insight from it. The answer is a function --- it just happens to be represented as a list of numbers rather than a symbolic expression.

In many ways, numerical methods are closer to the physics than analytical methods are. A differential equation says: "Given the current state, here is the next instant." Euler's method follows that instruction literally. It is physics as recipe, physics as algorithm, physics as the universe actually computes itself --- one moment at a time.

Chapter Summary: Differential Equations of Motion

This chapter began with a question: How does a physical rule about acceleration become a complete prediction of motion? Over five sections, we built the answer.

Section 4.1: From acceleration laws to differential equations. When acceleration depends on velocity or position --- not just time --- the equation that governs motion becomes a differential equation. The equation $dv/dt = f(v, t)$ is a motion-generating rule: it tells you the next instant from the current instant. This is a fundamentally different object from the kinematic equations of Chapter 2, where $a(t)$ was given and could be integrated directly.

Section 4.2: Solving initial-value problems. A differential equation alone has infinitely many solutions. Initial conditions select one. Together, the DE and the initial conditions form an initial-value problem --- the complete mathematical model of a specific motion. Every constant of integration corresponds to a measurable piece of physical information.

Section 4.3: Acceleration models and their consequences. Different forms of acceleration laws produce qualitatively different motions. Constant acceleration gives parabolas. Linear velocity-dependence gives exponential decay or growth. Position-dependence gives oscillation. The form of the law predicts the character of the motion, even before you solve the equation.

Section 4.4: Approximation and linearization. When exact equations are too complex, linearization replaces the equation with a simpler one that is accurate near a chosen point. This is a principled scientific move, not a shortcut. The key skill is knowing when the approximation is trustworthy and when it breaks down.

Section 4.5: Numerical time stepping. When no analytical method works, Euler's method builds the solution one step at a time: compute the acceleration, update the velocity, advance the clock, repeat. The accuracy improves with smaller steps. This is not a fallback --- it is the primary method for the majority of equations in physics.

The hero concept of this chapter is the initial-value problem: the idea that an acceleration law plus starting conditions generates a unique, complete motion. This is the mathematical expression of determinism in classical mechanics. Given the rule and the starting point, the future is determined. The methods differ --- analytical when possible, numerical when necessary --- but the structure is always the same: a rule, a starting state, and a unique trajectory.

Chapter-End Retrieval

Close your notes. Answer these from memory.

1. What is an initial-value problem? What are its two components, and why are both necessary?

2. Why does the form of the acceleration law determine the character of the motion? Give an example of two different acceleration laws that produce qualitatively different motions.

3. What is Euler's method? Write the update equations and explain, in one sentence, why the method works.

4. When would you use an analytical approach to solve a differential equation, and when would you use a numerical approach? Is one always better than the other?

5. What is the relationship between the time step $\Delta t$ and the accuracy of Euler's method?

After you have attempted all five, check your answers against the chapter summary above.

Looking Ahead

Chapters 1 through 3 asked: given the motion, describe it. Chapter 4 reversed the question: given the rule for acceleration, predict the motion. You learned to translate physical scenarios into differential equations, solve them analytically when possible, approximate them when useful, and compute them numerically when necessary.

But one enormous question has been left unanswered: where does the acceleration law come from?

We have treated $dv/dt = -g$, $dv/dt = -bv$, and $dv/dt = g - cv^2$ as given rules. We have never asked why the acceleration takes one form and not another. What determines whether a falling object experiences constant acceleration, linear drag, or quadratic drag? What physical quantity controls the acceleration?

The answer is force. Chapter 5 introduces Newton's laws of motion --- the laws that connect force to acceleration. Newton's second law, $\vec{F} = m\vec{a}$, is the bridge between the physical world (forces: gravity, friction, tension, drag) and the mathematical world (differential equations of motion). Every differential equation you solved in Chapter 4 was secretly a statement about forces. In Chapter 5, you will learn where those statements come from.

The mathematical machinery is ready. You know how to solve initial-value problems, how to classify acceleration models, how to linearize, and how to compute numerically. What you need now are the rules themselves --- the force laws that nature provides. That is the subject of dynamics, and it begins in the next chapter.